/* CSSをより整理して、関連するスタイルをグループ化します */
:root {
    --primary-color: #2d5aa0;
    --secondary-color: #30b9c4;
    --text-color: #4a4a4a;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --footer-bg: #212529;
    --footer-text: #adb5bd;
    --max-width: 1024px;
    --section-padding: 80px 5%;
    --font-heading: 'IBM Plex Sans JP', sans-serif;
    --font-body: 'IBM Plex Sans JP', sans-serif;
}

/* Google Fonts: Material Symbols */
.material-symbols-rounded {
    display: inline-block;
    direction: ltr;
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    font-feature-settings: 'liga';
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* スクロールアニメーション用のスタイル */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.slide-in-left.appear, .slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.zoom-in.appear {
    opacity: 1;
    transform: scale(1);
}

/* JavaScriptが利用できない場合もコンテンツを表示する */
@media (scripting: none) {
    .fade-in, .slide-in-left, .slide-in-right, .zoom-in {
        opacity: 1;
        transform: none;
    }
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }
.delay-800 { transition-delay: 0.8s; }

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

html {
    scroll-padding-top: 84px;
}

h1, h2, h3, h4, h5, h6, .section-title, .section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

/* ヘッダー */
header {
    background:
        linear-gradient(115deg, rgba(220, 236, 250, 0.78), rgba(225, 246, 244, 0.62));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 28px rgba(18, 43, 76, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    padding: 10px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    display: block;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    height: 30px;
}

.logo-wordmark {
    height: 25px;
}

.hamburger-menu {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    order: -1;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hamburger-menu:hover {
    background: rgba(45, 90, 160, 0.08);
}

.hamburger-menu .material-symbols-rounded {
    font-size: 30px;
}

.hamburger-menu .close-icon {
    display: none;
}

.hamburger-menu.active .menu-icon {
    display: none;
}

.hamburger-menu.active .close-icon {
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 3;
}

nav li {
    margin-left: 22px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--secondary-color);
}

/* メインビジュアル */
.hero {
    position: relative;
    color: white;
    padding: 0 5% 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
}

.hero-content {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.hero-poster,
.hero-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-poster {
    z-index: 0;
}

.hero-poster img {
    object-fit: cover;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100vw;
}

.hero.video-ready .hero-video.active {
    opacity: 1;
}

/* 動画再生失敗時のフォールバックモード */
.hero.video-fallback-mode .hero-video {
    display: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 透明度を上げるために、rgba値の最後の数値（アルファ値）をさらに小さくする */
    background: linear-gradient(135deg, rgba(45, 90, 160, 0.2), rgba(48, 185, 196, 0.2));
    z-index: 2;
    /* 網掛けパターンも薄くする */
    background-image: 
        linear-gradient(135deg, rgba(45, 90, 160, 0.2), rgba(48, 185, 196, 0.2)),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
}

.hero h1, .hero p, .hero .cta-buttons {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* キャッチコピーをフレーズ単位で折り返す */
.hero-title-line {
    display: block;
}

.hero-title-phrase {
    display: inline-block;
    white-space: nowrap;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero .cta-buttons {
    margin-top: 36px;
}

.hero .primary-btn,
.hero .secondary-btn {
    width: 176px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 56px;
    line-height: 1.2;
}

.primary-btn {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.primary-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* セクション共通 */
section {
    padding: var(--section-padding);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* サービスセクション */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* サービスカードのヘッダー画像 */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image img.service-image-business {
    object-position: center 38%;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--primary-color);
    margin: 20px 0 15px;
    font-size: 1.4rem;
    padding: 0 20px;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
    padding: 0 20px;
    flex-grow: 1;
}

/* サービス機能リストのスタイル */
.service-features {
    list-style: none;
    padding: 0 20px 30px;
    margin-top: 15px;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--dark-gray);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features .list-icon,
.profile-highlights .list-icon {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-right: 0.4em;
    vertical-align: -0.14em;
}

.service-card .case-card-link {
    margin: 0 20px 26px;
}

/* 開発の流れ */
.development-flow {
    background:
        radial-gradient(circle at 85% 18%, rgba(48, 185, 196, 0.11), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
}

.process-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
}

.process-step {
    position: relative;
    z-index: 0;
    display: flex;
    min-height: 264px;
    padding: 26px 18px 20px;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(45, 90, 160, 0.14);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 251, 0.96));
    box-shadow: 0 12px 30px rgba(21, 55, 92, 0.07);
    text-align: center;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(50% - 7px);
    right: -15px;
    width: 10px;
    height: 14px;
    background: var(--secondary-color);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.process-copy {
    width: 100%;
}

.process-step h3 {
    display: flex;
    margin-bottom: 7px;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    color: #173d70;
    font-size: 1.08rem;
}

.process-number {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.process-step p {
    color: var(--dark-gray);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.65;
}

.process-illustration {
    display: block;
    width: 150px;
    max-width: 100%;
    height: 112px;
    margin-top: auto;
    object-fit: contain;
}

.process-cycle-note {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid rgba(48, 185, 196, 0.24);
    border-radius: 999px;
    background: rgba(231, 247, 247, 0.8);
    color: #176f79;
    font-size: 0.84rem;
    font-weight: 600;
}

.process-cycle-note span {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1;
}

/* 開発事例 */
.case-library {
    background:
        radial-gradient(circle at 12% 12%, rgba(48, 185, 196, 0.1), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.case-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 30px;
    border: 1px solid rgba(45, 90, 160, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 35px rgba(21, 55, 92, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(21, 55, 92, 0.14);
}

.case-thumbnail {
    display: block;
    aspect-ratio: 3 / 2;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(45, 90, 160, 0.1);
    border-radius: 11px;
    background: #eef7fb;
}

.case-thumbnail picture,
.case-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
}

.case-thumbnail img {
    object-fit: cover;
}

.case-thumbnail-label {
    align-self: end;
    color: #7c8998;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.case-thumbnail-label--before,
.case-thumbnail-shape--before {
    grid-column: 1;
}

.case-thumbnail-label--before {
    grid-row: 1;
}

.case-thumbnail-label--after,
.case-thumbnail-shape--after {
    grid-column: 3;
}

.case-thumbnail-label--after {
    grid-row: 1;
    color: #147783;
}

.case-thumbnail-shape {
    position: relative;
    display: block;
    grid-row: 2;
    overflow: hidden;
    border: 1px solid rgba(45, 90, 160, 0.12);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
}

.case-thumbnail-arrow {
    display: grid;
    grid-column: 2;
    grid-row: 1 / 3;
    place-items: center;
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 700;
}

/* 予約: 長い入力フォームから、見通しのよいステップへ */
.case-thumbnail--booking .case-thumbnail-shape--before {
    background:
        linear-gradient(90deg, #f09a88 0 18%, transparent 18%) 14px 12px / 54% 5px no-repeat,
        linear-gradient(90deg, #b8c5d3 0 82%, transparent 82%) 14px 24px / 68% 4px no-repeat,
        linear-gradient(90deg, #b8c5d3 0 96%, transparent 96%) 14px 34px / 68% 4px no-repeat,
        linear-gradient(90deg, #b8c5d3 0 70%, transparent 70%) 14px 44px / 68% 4px no-repeat,
        rgba(255, 255, 255, 0.9);
}

.case-thumbnail--booking .case-thumbnail-shape--after {
    background:
        radial-gradient(circle at 22% 50%, #30b9c4 0 5px, transparent 6px),
        radial-gradient(circle at 50% 50%, #30b9c4 0 5px, transparent 6px),
        radial-gradient(circle at 78% 50%, #2d5aa0 0 7px, transparent 8px),
        linear-gradient(90deg, transparent 22%, #8bd6da 22% 78%, transparent 78%) center / 100% 2px no-repeat,
        rgba(255, 255, 255, 0.9);
}

.case-thumbnail--booking .case-thumbnail-shape--after::after {
    content: "check";
    position: absolute;
    top: 16px;
    right: calc(22% - 5px);
    color: white;
    font-family: 'Material Symbols Rounded';
    font-size: 0.58rem;
    font-weight: 700;
    font-feature-settings: 'liga';
    line-height: 1;
}

/* 発送: ばらばらの帳票作業から、一つにつながったフローへ */
.case-thumbnail--shipping .case-thumbnail-shape--before::before,
.case-thumbnail--shipping .case-thumbnail-shape--before::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 27px;
    border: 1px solid #aab8c7;
    border-radius: 5px;
    background:
        linear-gradient(#b8c5d3, #b8c5d3) 8px 9px / 22px 3px no-repeat,
        linear-gradient(#d5dde5, #d5dde5) 8px 16px / 17px 3px no-repeat,
        white;
}

.case-thumbnail--shipping .case-thumbnail-shape--before::before {
    top: 10px;
    left: 15px;
    transform: rotate(-8deg);
}

.case-thumbnail--shipping .case-thumbnail-shape--before::after {
    right: 14px;
    bottom: 9px;
    transform: rotate(7deg);
}

.case-thumbnail--shipping .case-thumbnail-shape--after {
    background:
        radial-gradient(circle at 18% 50%, #30b9c4 0 8px, transparent 9px),
        radial-gradient(circle at 50% 50%, #2d8eb1 0 8px, transparent 9px),
        radial-gradient(circle at 82% 50%, #2d5aa0 0 8px, transparent 9px),
        linear-gradient(90deg, transparent 18%, #86ced4 18% 82%, transparent 82%) center / 100% 3px no-repeat,
        rgba(255, 255, 255, 0.9);
}

/* 決済: 入金確認待ちから、オンラインで完結する流れへ */
.case-thumbnail--payment .case-thumbnail-shape--before {
    background:
        radial-gradient(circle at 34% 74%, #aebbc8 0 3px, transparent 4px),
        radial-gradient(circle at 50% 74%, #aebbc8 0 3px, transparent 4px),
        radial-gradient(circle at 66% 74%, #aebbc8 0 3px, transparent 4px),
        linear-gradient(135deg, transparent 46%, #f09a88 47% 53%, transparent 54%) center 11px / 18px 18px no-repeat,
        linear-gradient(#c0ccd8, #c0ccd8) center 34px / 44px 4px no-repeat,
        rgba(255, 255, 255, 0.9);
}

.case-thumbnail--payment .case-thumbnail-shape--after::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 15px;
    width: 52px;
    height: 31px;
    border-radius: 6px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)) 8px 9px / 36px 4px no-repeat,
        linear-gradient(135deg, #2d5aa0, #30b9c4);
    box-shadow: 0 5px 12px rgba(45, 90, 160, 0.19);
}

.case-thumbnail--payment .case-thumbnail-shape--after::after {
    content: "check";
    position: absolute;
    top: 16px;
    right: 14px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #e3f6f4;
    color: #147783;
    font-family: 'Material Symbols Rounded';
    font-size: 0.78rem;
    font-weight: 700;
    font-feature-settings: 'liga';
    line-height: 1;
}

.case-card-topline,
.case-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.case-industry,
.case-service,
.case-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.case-industry {
    background: #e7f7f7;
    color: #137984;
}

.case-service,
.case-tag {
    background: #eaf0fa;
    color: var(--primary-color);
}

.case-card h3 {
    margin-bottom: 24px;
    color: #173d70;
    font-size: 1.28rem;
    line-height: 1.55;
}

.case-summary {
    margin-bottom: 26px;
}

.case-summary div {
    display: grid;
    grid-template-columns: 3.6em 1fr;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #e8edf3;
}

.case-summary dt {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.case-summary dd {
    color: var(--dark-gray);
    font-size: 0.92rem;
}

.case-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.case-card-link .material-symbols-rounded,
.text-link-button .material-symbols-rounded {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.case-card-link:hover .material-symbols-rounded,
.text-link-button:hover .material-symbols-rounded {
    transform: translateX(4px);
}

.case-library-action {
    margin-top: 40px;
    text-align: center;
}

.text-link-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid rgba(45, 90, 160, 0.22);
    border-radius: 6px;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

/* 開発事例の下層ページ */
.case-body {
    background: #f6f9fc;
}

.case-main {
    padding-top: 76px;
}

.case-page-hero {
    padding: 72px 5% 64px;
    background:
        radial-gradient(circle at 82% 12%, rgba(48, 185, 196, 0.18), transparent 26%),
        linear-gradient(135deg, #09264b 0%, #184d81 62%, #176d79 100%);
    color: white;
}

.case-page-hero .section-container {
    max-width: 960px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 46px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    list-style: none;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.45);
}

.breadcrumb-list a {
    color: inherit;
}

.case-page-hero h1 {
    max-width: 860px;
    margin-bottom: 22px;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.case-hero-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.9;
}

.case-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.case-article-meta span {
    display: inline-flex;
    gap: 0.45em;
    align-items: baseline;
}

.case-article-meta time,
.case-article-meta a {
    color: white;
    font-weight: 600;
}

.case-article-meta a {
    text-underline-offset: 0.2em;
}

.case-hero-visual {
    overflow: hidden;
    margin-top: 38px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: white;
    box-shadow: 0 22px 55px rgba(0, 12, 31, 0.3);
}

.case-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.case-hero-tags .case-industry,
.case-hero-tags .case-service,
.case-hero-tags .case-tag {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.case-overview-section,
.case-content-section,
.case-related-section {
    padding: 72px 5%;
}

.case-overview-section {
    background: white;
}

.case-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
    gap: 56px;
    align-items: start;
}

.case-overview-copy h2,
.case-content-block h2,
.case-related-section h2 {
    margin-bottom: 22px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.case-overview-copy p,
.case-content-block p {
    color: #536171;
    line-height: 1.95;
}

.case-facts {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fbfe;
}

.case-facts div {
    padding: 16px 20px;
    border-bottom: 1px solid #dce5ef;
}

.case-facts div:last-child {
    border-bottom: 0;
}

.case-facts dt {
    margin-bottom: 4px;
    color: var(--dark-gray);
    font-size: 0.78rem;
    font-weight: 600;
}

.case-facts dd {
    color: #173d70;
    font-weight: 700;
}

.case-content-section {
    background: #f6f9fc;
}

.case-content-stack {
    display: grid;
    gap: 26px;
    max-width: 900px;
    margin: 0 auto;
}

.case-content-block {
    padding: 38px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 28px rgba(21, 55, 92, 0.06);
}

.case-content-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.case-check-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    list-style: none;
}

.case-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #536171;
}

.case-check-list .list-icon {
    flex: 0 0 auto;
    margin-top: 0.28em;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.case-related-section {
    background: white;
}

.case-related-section .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-note {
    margin-top: 20px;
    color: var(--dark-gray);
    font-size: 0.82rem;
}

.case-page-cta {
    padding: 72px 5%;
    background: #071a34;
    color: white;
    text-align: center;
}

.case-page-cta h2 {
    margin-bottom: 14px;
    font-size: 2rem;
}

.case-page-cta p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.8);
}

.case-page-cta .contact-button {
    min-width: 220px;
}

@media (max-width: 900px) {
    .process-track {
        grid-template-columns: 1fr;
        gap: 26px;
        max-width: 620px;
        margin: 0 auto;
    }

    .process-step {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 18px;
        min-height: 132px;
        padding: 18px 22px;
        align-items: center;
        text-align: left;
    }

    .process-step h3 {
        justify-content: flex-start;
    }

    .process-step:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -20px;
        left: calc(50% - 7px);
        width: 14px;
        height: 10px;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }

    .process-illustration {
        grid-column: 1;
        grid-row: 1;
        width: 96px;
        height: 96px;
        margin-top: 0;
    }

    .process-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-overview-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-related-section .case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .case-page-hero {
        padding-top: 52px;
    }

    .breadcrumb-list {
        margin-bottom: 34px;
    }

    .case-article-meta {
        display: grid;
        gap: 7px;
    }

    .case-hero-visual {
        margin-top: 30px;
        border-radius: 10px;
    }

    .case-content-block {
        padding: 28px 22px;
    }

    .case-card {
        padding: 24px;
    }

    .process-cycle-note {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        text-align: center;
    }
}

/* 強みセクション */
.features {
    background-color: var(--light-gray);
}

/* 統計ストリップ */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    margin-top: 8px;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* 強みカードグリッド */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.strength-number {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.strength-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.strength-card p {
    color: var(--dark-gray);
}

@media (max-width: 992px) {
    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-strip {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 2rem;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
    }

    .stat-value {
        font-size: 1.6rem;
        white-space: nowrap;
    }

    .stat-label {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}

/* よくある質問セクション */
.faq {
    background-color: white;
}

.faq-list {
    max-width: var(--max-width);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 30px 22px 0;
    position: relative;
    font-weight: 600;
    color: var(--text-color);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icons {
    position: absolute;
    right: 0;
    top: 24px;
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
}

.faq-icon--remove,
.faq-item[open] .faq-icon--add {
    display: none;
}

.faq-item[open] .faq-icon--remove {
    display: inline-block;
}

.faq-answer {
    padding: 0 0 22px;
    color: var(--dark-gray);
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

/* 実績セクション */
.works {
    background-color: var(--light-gray);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-image {
    height: 200px;
    background-color: #e9f0f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.work-content {
    padding: 20px;
}

.work-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.work-category {
    display: inline-block;
    background-color: #e9f0f8;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 会社概要セクション */
.company-profile {
    background-color: var(--light-gray);
    padding: 80px 5%;
}

.info-table {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.info-table th {
    width: 30%;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
}

/* お問い合わせセクション */
.contact-section {
    position: relative;
    padding: var(--section-padding);
    background-color: #071a34;
    background-image: url('data/contact_system_background.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 21, 43, 0.78), rgba(9, 42, 75, 0.7));
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.contact-section .section-title {
    color: white;
}

.contact-copy {
    line-height: 2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.contact-copy-line {
    display: block;
}

.contact-actions {
    margin-top: 40px;
}

.contact-form-container {
    margin: 40px auto;
    max-width: 600px;
}

.contact-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-button:hover {
    background-color: #eef5ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.contact-buttons .contact-button {
    min-width: 240px;
    text-align: center;
}

.contact-button-line {
    background-color: #06C755;
    color: #fff;
}

.contact-button-line:hover {
    background-color: #05b34c;
}

.contact-note {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

/* フッター */
footer {
    background-color: var(--footer-bg);
    color: var(--light-gray);
    padding: 50px 5% 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.footer-links {
    flex: 1;
}

.footer-links:first-child {
    margin-right: auto;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
    font-weight: 800;
}

.footer-about p {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    color: var(--footer-text);
    font-size: 0.9rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* レスポンシブ対応 */
/* ナビはヘッダー内に収まらなくなる768px以下でドロワー化する */
@media (max-width: 768px) {
    .header-container {
        justify-content: center;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        left: 5%;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav li {
        margin: 15px 0;
        width: 100%;
    }

    /* オーバーレイ */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.45rem, 7vw, 1.75rem);
    }

    .hero p {
        font-size: 1.05rem;
    }

    .logo {
        text-align: center;
        gap: 8px;
    }

    .logo-icon {
        height: 26px;
    }

    .logo-wordmark {
        height: 22px;
    }

    .section-container,
    .header-container,
    .footer-container {
        width: 100%;
        box-sizing: border-box;
    }

    .section-container {
        padding-left: 0;
        padding-right: 0;
    }

    .header-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-content {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    /* テーブルのレスポンシブ対応 */
    .info-table {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .info-table th,
    .info-table td {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
}

/* メニュー表示中のbodyスタイル */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 浮遊する幾何学的要素のスタイルを削除 */
.floating-element {
    display: none; /* 要素を非表示にする */
}

/* 以下の関連するスタイルも削除または非表示にする */
.floating-element.circle,
.floating-element.triangle,
.floating-element.square,
.floating-element.rectangle,
.floating-element.hexagon {
    display: none;
}

@keyframes float {
    /* アニメーションは残しておくが、使用されない */
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(0) translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

/* パララックスセクション */
.parallax-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform; /* パフォーマンス最適化 */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center bottom; /* 初期位置を下部に設定 */
    background-repeat: no-repeat;
    transform: translateZ(0); /* ハードウェアアクセラレーションを有効化 */
    will-change: transform, background-position; /* パフォーマンス最適化 */
    z-index: 1;
    -webkit-transform: translate3d(0,0,0); /* iOS Safari対応 */
    -webkit-backface-visibility: hidden; /* iOS Safari対応 */
    backface-visibility: hidden; /* 標準プロパティを追加 */
    background-image: url('data/para1_office.webp');
    background-image: image-set(
        url('data/para1_office.avif') type('image/avif'),
        url('data/para1_office.webp') type('image/webp')
    );
}

.parallax-content {
    position: relative;
    z-index: 2; /* z-indexを2に戻す */
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: var(--max-width);
}

.parallax-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* モバイル向け調整 */
@media (max-width: 768px) {
    .parallax-section {
        height: 200px; /* モバイルでは高さを小さく */
    }

    .parallax-bg {
        background-image: url('data/para1_office-768.webp');
        background-image: image-set(
            url('data/para1_office-768.avif') type('image/avif'),
            url('data/para1_office-768.webp') type('image/webp')
        );
    }
}

/* スマホでの横スクロール問題を修正 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 会社概要ページ・代表プロフィール */
.representative-card {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px;
    border: 1px solid rgba(45, 90, 160, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 35px rgba(21, 55, 92, 0.08);
}

.representative-avatar,
.representative-photo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background-color: #6f93c4;
    color: white;
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-weight: 700;
    text-align: center;
    object-fit: cover;
}

.representative-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.representative-photo {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    font-size: 2.4rem;
}

.representative-name {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
}

.representative-line {
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.representative-card-body .text-link-button {
    margin-bottom: 0;
}

.representative-signature {
    margin-top: 22px;
    text-align: right;
    color: var(--dark-gray);
    font-weight: 600;
}

/* 代表プロフィール2カラムレイアウト */
.profile-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.profile-name-kana {
    margin-left: 0.5em;
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 400;
}

.profile-title {
    margin: 6px 0 18px;
    color: var(--dark-gray);
}

.profile-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-highlights li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--dark-gray);
}

.profile-highlights li:last-child {
    border-bottom: none;
}

.profile-highlights a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .representative-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-highlights {
        text-align: left;
    }
}

/* 情報セキュリティ基本方針ページ */
.policy-lead {
    margin-top: 10px;
}

.policy-content-section .case-content-block p + p {
    margin-top: 12px;
}

.policy-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding-left: 1.4em;
    color: #536171;
    line-height: 1.85;
}

.policy-list li::marker {
    color: var(--secondary-color);
}

.company-commitments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.commitment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 0;
    margin: 0;
    padding: 28px 32px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 28px rgba(21, 55, 92, 0.06);
}

.commitment-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
}

.partnership-logo-frame {
    padding: 20px clamp(36px, 6vw, 56px);
}

.commitment-card figcaption {
    color: #536171;
    line-height: 1.8;
    text-align: center;
}

.partnership-caption {
    font-size: clamp(0.5rem, 2.9vw, 1rem);
    white-space: nowrap;
}

.commitment-caption-line {
    display: block;
}

.commitment-card img {
    display: block;
    max-width: 100%;
    height: auto;
}

.partnership-logo {
    width: 300px;
}

.security-action-logo {
    width: 150px;
}

.case-content-block h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.policy-signature {
    margin-top: 32px;
    text-align: right;
    color: var(--text-color);
    font-weight: 600;
}

.policy-signature-date {
    color: var(--dark-gray);
    font-weight: 400;
}

@media (max-width: 768px) {
    .company-commitments {
        grid-template-columns: 1fr;
    }

    .commitment-card {
        gap: 18px;
        padding: 22px;
    }

    .security-action-logo {
        width: 136px;
    }
}
