/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-orange: #ef4d86;
    --secondary-orange: #238cd6;
    --dark-gray: #32373c;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #32373c;
    --text-light: #666666;
    --danger: #dd3737;
    --success: #4caf50;
    --warning: #ff9800;
    --bg-color:#f5f5f5;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* ボーダー */
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* トランジション */
    --transition: all 0.3s ease;

    /* フェーズ色（制作 / 保守管理 / 運営） */
    --phase-prod-bg: #e8f4dd;
    --phase-prod-fg: #4d7a36;
    --phase-maint-bg: #dfedfa;
    --phase-maint-fg: #2c5482;
    --phase-op-bg: #fce0d4;
    --phase-op-fg: #a8341d;

    /* Tier色（マトリクスナビ） */
    --tier-1-bg: #fde8d4;
    --tier-1-fg: #b8580f;
    --tier-2-bg: #e7f1fb;
    --tier-2-fg: #2c5482;
    --tier-3-bg: #f1f1f1;
    --tier-3-fg: #888;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.05em;
    background-color: var(--bg-color);
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   ヘッダー・ナビゲーション
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(var(--spacing-xs),3.2vw,var(--spacing-md));
    padding-left: 0;
    max-width: 100%;
}

.header-logo-area{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: clamp(10px,2vw,20px);
    align-items: center;
}
.header-logo{
    background-color: rgba(255,255,255,0);
    padding: clamp(10px,2vw,20px);
    border-radius: 0 0 clamp(15px,3vw,30px) 0;
}

.header-logo .site-title {
    font-size: 1rem;
    color: var(--primary-orange);
    font-weight: bold;
}
.header-logo .site-title img{
    height: clamp(30px,4vw,40px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
.description-text{
    font-size: clamp(10px,1.4vw,14px);
    color: var(--text-dark);
    font-weight: 500;
}

/* ヘッダー右側（CTA + ハンバーガー） */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: clamp(10px,2vw,20px) clamp(18px,2.4vw,30px);
    border-radius: 100px;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(16px,1.8vw,18px);
    line-height: 1.4;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-cta-btn:hover {
    background-color: #e67a1f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-cta-icon svg {
    width: 20px;
    height: 20px;
}

.header-cta-text {
    flex: 1;
}

.header-cta-arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: var(--transition);
}

.header-cta-btn:hover .header-cta-arrow {
    transform: rotate(45deg) translate(2px, -2px);
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
}

/* ナビゲーション */
.nav-main {
    display: flex;
    align-items: center;
}


/* ハンバーガーメニュー（2本線：上長・下短） */
.hamburger {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    height: 4px;
    background-color: var(--dark-gray);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger span:nth-child(1) {
    width: 35px;
}

.hamburger span:nth-child(2) {
    width: 25px;
}

.hamburger.active span:nth-child(1) {
    width: 20px;
}

.hamburger.active span:nth-child(2) {
    width: 15px;
}

/* ナビゲーション（ドロワー形式） */
.nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 88%);
    height: 100vh;
    background-color: var(--white);
    padding: 100px var(--spacing-md) var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-main.active {
    right: 0;
}


/* サイトナビ（ハンバーガーメニュー内・SNSリストの上） */
.nav-site-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 0.14em;
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0e0e8;
}

.nav-site-heading + .nav-site-heading {
    margin-top: 1.25rem;
}

.nav-site-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
}

.nav-site-list li {
    border-bottom: 1px dashed #eee;
}

.nav-site-list li:last-child {
    border-bottom: none;
}

.nav-site-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.nav-site-list a::after {
    content: '›';
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.nav-site-list a:hover, .nav-site-list a:focus {
    color: var(--primary-orange);
    padding-left: 8px;
}

.nav-site-list a:hover::after, .nav-site-list a:focus::after {
    color: var(--primary-orange);
    transform: translateX(3px);
}

/* 取扱カテゴリは2列グリッド */


/* SNS紹介リスト（ハンバーガーメニュー内） */
.nav-sns-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-orange);
    letter-spacing: 0.14em;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0ecf4;
}

.nav-sns-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-sns-list li {
    border-bottom: 1px solid #eee;
}

.nav-sns-list li:last-child {
    border-bottom: none;
}

.nav-sns-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-sns-list a:hover {
    color: var(--primary-orange);
}

.nav-sns-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--text-dark);
}

.nav-sns-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nav-sns-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-sns-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-sns-desc {
    font-size: 0.75rem;
    color: var(--text-sub, #777);
    margin-top: 2px;
}

.nav-cta {
    margin-top: auto;
    padding-top: var(--spacing-md);
    width: 100%;
}

.nav-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-width: 3px;
    font-size: 0.95rem;
    gap: 0.4em;
}

.nav-cta .btn-primary::before {
    width: 1.1em;
    height: 1.1em;
}

.nav-cta .btn-primary::after {
    width: 0.6em;
    height: 0.6em;
    border-top-width: 2px;
    border-right-width: 2px;
}

/* ============================================
   ページヒーロー（各ページ共通）
============================================ */
.page-hero {
    padding-top: clamp(80px, 10vw, 110px);
    padding-bottom: var(--spacing-md);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}


/* ============================================
   TOPページ ヒーローセクション
============================================ */
.hero {
    min-height: clamp(400px,90vh,1400px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: var(--white);
}
.hero .bg-wrapper{
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url(images/fv/SVG/fv-bg.svg);
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0.1;
    animation: slideBgLeft 60s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes slideBgLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 罫線パターン背景 */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(50, 55, 60, 0.1) 39px,
            rgba(50, 55, 60, 0.1) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(50, 55, 60, 0.1) 39px,
            rgba(50, 55, 60, 0.1) 40px
        );
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

/* 下部街並み背景 */
.hero-bg-town {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    aspect-ratio: 1514 / 276;
    background-image: url(images/fv/2x/fv-bg-bottom@2x.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}

/* 右上装飾 */
/* .hero-bg-deco {
    position: absolute;
    top: -80px;
    right: -210px;
    width: clamp(500px, 50vw, 700px);
    height: clamp(500px, 50vw, 700px);
    background-image: url(images/fv/SVG/fv-bg-004-3.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: 1;
    pointer-events: none;
} */

/* 左中央回転装飾 */


@keyframes rotateClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 波の背景 */
.hero .bg-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: clamp(400px,70vw,800px);
    height: clamp(67px,12vw,150px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f5f5' d='M0,100 C240,200 480,0 720,100 C960,200 1200,0 1440,100 L1440,200 L0,200 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}
.hero .container {
    position: relative;
    z-index: 5;
    padding: var(--spacing-lg) var(--spacing-md);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    flex: 1 1 55%;
    min-width: 0;
}

.hero-right {
    flex: 1 1 45%;
    min-width: 0;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--primary-orange);
    border-radius: 999px;
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    margin-top: 1.2em;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    list-style: none;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    padding: 0;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid rgba(50, 55, 60, 0.08);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-gray);
    box-shadow: var(--shadow-sm);
}

.hero-feature-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-sm);
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* CTA グループ（主CTA + 補助テキスト + サブCTA） */
.hero-cta-group {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.hero-cta-group .hero-cta {
    margin-top: 0;
}

.hero-cta-sub {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0.2rem 0 0;
    padding-left: 4px;
    line-height: 1.5;
}

.hero-secondary-actions {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
}

.hero-secondary-actions li { margin: 0; }

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    color: var(--primary-orange);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.2rem;
    transition: var(--transition);
}

.hero-secondary-link::after {
    content: "→";
    margin-left: 0.2em;
    transition: transform 0.2s;
}

.hero-secondary-link:hover {
    color: var(--secondary-orange);
}

.hero-secondary-link:hover::after {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .hero-cta-group { gap: 0.5rem; }
    .hero-secondary-actions { gap: 0.3rem 0.9rem; }
    .hero-secondary-link { font-size: 0.84rem; }
    .hero-cta-sub { font-size: 0.74rem; }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: var(--spacing-md) 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-stats li {
    position: relative;
    padding-left: 18px;
}

.hero-stats li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
}

.hero-visual-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 12px 32px rgba(50, 55, 60, 0.12));
}

.hero-bubble {
    position: absolute;
    background: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-gray);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.hero-bubble-1 { top: 6%; left: -6%; }
.hero-bubble-2 { top: 42%; right: -4%; }
.hero-bubble-3 { bottom: 14%; left: -4%; }

.hero-bonus {
    position: absolute;
    bottom: -24px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--white);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-gray);
    box-shadow: var(--shadow-md);
}

.hero-bonus-icon {
    font-size: 1.1rem;
}

@media (max-width: 968px) {
    .hero-inner {
        flex-direction: column;
        text-align: left;
    }

    .hero-left, .hero-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .hero-visual {
        margin: var(--spacing-md) auto 0;
    }

    .hero-bubble {
        display: none;
    }

    .hero-bonus {
        position: static;
        margin-top: var(--spacing-sm);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-features li {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-cta {
        width: 100%;
        padding: 14px 20px;
    }

    .hero-stats {
        font-size: 0.8rem;
        gap: 6px 14px;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 2.8rem);
    line-height: 1.5;
    color: var(--dark-gray);
}
@media (max-width: 1400px) {
    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.8rem);
        line-height: 1.4;
        color: var(--dark-gray);
    }
}
@media (max-width: 768px) {
    .hero .container {
        margin-left: 0;
        margin-inline: auto;
    }
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.8rem);
        line-height: 1.4;
        color: var(--dark-gray);
    }
}

.hero-title .highlight {
    color: var(--primary-orange);
    display: block;
}


/* ヒーロースクロールボタン（左） */
.hero-scroll-btn {
    position: absolute;
    left: var(--spacing-md);
    bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 100;
}

.hero-scroll-btn:hover {
    color: var(--primary-orange);
}

.scroll-text {
    writing-mode: vertical-rl;
    font-size: clamp(0.7rem, 1vw, 1rem);
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scroll-line {
    width: clamp(1px, 0.2vw, 2px);
    height: clamp(50px, 8vw, 100px);
    background-color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(25px, 4vw, 50px);
    background-color: var(--primary-orange);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

/* ヒーローSNSボタン（右） */


/* SNSブランドカラー（ホバー時） */


@media (max-width: 768px) {
    .hero-scroll-btn {
        left: var(--spacing-sm);
        bottom: var(--spacing-md);
    }

    
}

/* 消防車アニメーション */


/* 吹き出し */


/* 三角形の枠線（外側） */


/* 三角形の塗り（内側） */


/* 吹き出しの順次表示アニメーション */


@keyframes driveAcross {
    0% {
        left: -150px;
    }
    100% {
        left: calc(100% + 150px);
    }
}

@keyframes showBubble {
    0%, 5% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    8%, 20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    23%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}


/* ============================================
   セクション共通スタイル
============================================ */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--light-gray);
}
.section-program{
    background-color: white;
}

.section-title {
    font-size: clamp(2.5rem, 7vw, 7rem);
    text-align: left;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}


.section-description {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 0 var(--spacing-lg);
    color: var(--text-light);
    font-weight: 800;
}

.section-description-icon img {
    display: none;
}

/* セクションキャラクター */
.section .container {
    position: relative;
}


/* ============================================
   TOPページ ABOUTセクション
============================================ */
/* ABOUT 2カラムレイアウト */
/* .about-section{
    background-image: url(images/about/2x/about-top-bg-sibahu@2x.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
} */
.about-content-grid {
    display: grid;
    grid-template-columns: 60% auto;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.about-text .section-title {
    margin-bottom: var(--spacing-sm);
}

.about-text .section-description {
    margin-bottom: var(--spacing-md);
}
.btn-primary-wrapper{
    padding-top: 20px;
    padding-bottom: 20px;
    flex:1;
    width: 100%;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.dotted-border {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom:clamp(10px,2vw,20px) solid dotted;
    width: 60%;
}

.dotted-border::before {
    content: '';
    flex: 1;
    border-bottom: 20px dotted var(--dark-gray);
}

.dotted-border::after {
    content: '';
    display: block;
    width: clamp(80px,10vw,120px);
    height: clamp(80px,10vw,120px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2332373c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    align-self: center;
}

.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: column;
}


.about-image .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

@media (max-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-text {
        order: 1;
    }

    .about-text .section-title, .about-text .section-description {
        text-align: left;
    }

    .about-image {
        order: 2;
        position: relative;
    }

    .about-image img {
        max-width: 70%;
        margin-left: auto;
    }

    .about-image::before {
        content: "一緒に\A腸を\A考えよう🔥";
        position: absolute;
        top: 0;
        right: 58%;
        background: #fff;
        border: 2px solid var(--color-primary);
        border-radius: 20px;
        padding: 12px 16px;
        min-width: clamp(100px,20vw,240px);
        min-height: clamp(100px,20vw,240px);
        font-size: clamp(0.85rem,3vw,2.5rem);
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        color: var(--color-primary);
        white-space: pre;
        text-align: center;
        z-index: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .about-image::after {
        content: "";
        position: absolute;
        top: 68px;
        right: 43%;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid var(--color-primary);
        z-index: 1;
    }
}

/* MVVグリッド（ABOUTページ用に残す） */


/* PC用：グリッドレイアウト */
/* SP用：Swiperスライダー */
/* ============================================
   TOPページ ACHIEVEMENTSセクション（実績）
============================================ */
.achievements-grid.swiper {
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    padding: 8px 0;
}

.achievements-grid.swiper::-webkit-scrollbar {
    display: none;
}

.achievements-grid .swiper-wrapper {
    align-items: stretch;
}

.achievements-grid .swiper-slide {
    width: clamp(180px,28vw,300px);
    flex-shrink: 0;
    height: auto;
    transition: var(--transition);
}
.achievements-grid .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.achievements-grid .swiper-pagination {
    display: none;
}

.achievement-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.achievement-icon {
    width: clamp(40px,6vw,64px);
    height: clamp(40px,6vw,64px);
    margin: 0;
}

.achievement-icon img, .achievement-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.swiper-slide-instagram{
    background-image: url(images/front/instagram-bg-origin.png);
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
}
.achievement-card-instagram{
    background: transparent;
    position: relative;
    overflow: hidden;
}
.achievement-card-instagram::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(150deg, rgba(247, 166, 12, 1) 10%, rgba(255, 34, 87, 1) 40%, rgba(154, 39, 238, 1) 68%, rgba(35, 102, 247, 1) 90%);
    opacity: 0.8;
    z-index: 0;
    border-radius: inherit;
}
.achievement-card-instagram > *{
    position: relative;
    z-index: 1;
}


.swiper-slide-line {
    background-color: #06C755;
    border-radius: var(--border-radius-lg);
}

.archivement-card-line {
    background-color: #06C755;
}


.swiper-slide-origin{
    background-image: url(images/front/personal.jpg);
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
}


.swiper-slide-support{
    background-image: url(images/front/support.jpg);
}
.achievement-card-origin{
    background: transparent;
    position: relative;
    overflow: hidden;
}
.achievement-card-origin::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(90deg, rgba(65, 164, 253, 1), rgba(14, 244, 255, 1));
    opacity: 0.8;
    z-index: 0;
    border-radius: inherit;
}

.achievement-card-origin > *{
    position: relative;
    z-index: 1;
}


@media (max-width: 768px) {
    #achievements .container {
        padding-right: 0;
    }

    .achievements-grid.swiper {
        overflow: hidden;
        overflow-x: hidden;
        padding-right: var(--spacing-sm);
    }

    .achievements-grid .swiper-wrapper {
        display: flex;
        align-items: stretch;
        gap: 0;
        transform: translate3d(0, 0, 0);
        width: auto;
    }

    .achievements-grid .swiper-pagination {
        display: block;
        margin-top: var(--spacing-md);
        position: relative;
        padding-right: var(--spacing-sm);
    }

    .achievements-pagination .swiper-pagination-bullet {
        background-color: var(--primary-orange);
        opacity: 0.3;
    }

    .achievements-pagination .swiper-pagination-bullet-active {
        opacity: 1;
    }

    .achievements-grid .swiper-slide {
        width: clamp(220px, 55vw, 280px);
    }

    .achievement-card {
        padding: var(--spacing-sm);
    }

    

    
}

/* ============================================
   TOPページ SERVICEセクション
============================================ */
.top-service-block {
    background-color: transparent;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}


@media (max-width: 768px) {
    .top-service-block {
        padding: var(--spacing-sm) var(--spacing-md);
        box-shadow: none;
        margin-bottom: var(--spacing-sm);
    }
    
}

.top-service-block:last-of-type {
    margin-bottom: 0;
}


.top-service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.top-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.top-service-title {
    flex: 1;
}

.top-service-label {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.top-service-title h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-top: var(--spacing-xs);
}

.top-service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.top-service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs) var(--spacing-md);
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.top-service-list li {
    position: relative;
    padding-left: 1.5em;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.top-service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .top-service-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   講師紹介
============================================ */


/* ============================================
   TOPページ CASEセクション
============================================ */
/* タブナビゲーション */


/* タブコンテンツ */


.top-case-grid.swiper {
    margin-bottom: var(--spacing-lg);
}

.top-case-grid .swiper-pagination {
    display: none;
}

/* PC用：グリッドレイアウト */
@media (min-width: 769px) {
    .top-case-grid.swiper {
        overflow: visible !important;
    }

    .top-case-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        transform: none !important;
    }

    .top-case-grid .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
}

.top-case-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.top-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.top-case-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.top-case-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-case-header h4 {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.top-case-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* SP用：Swiperスライダー */
@media (max-width: 768px) {

    .top-case-grid.swiper {
        overflow: hidden;
        padding-right: var(--spacing-sm);
    }

    .top-case-grid .swiper-wrapper {
        display: flex;
        align-items: stretch;
        grid-template-columns: unset;
        gap: 0;
        transform: translate3d(0, 0, 0);
    }

    .top-case-grid .swiper-slide {
        width: 75%;
        flex-shrink: 0;
        height: auto;
    }

    .top-case-card {
        height: 100%;
    }

    .top-case-grid .swiper-pagination {
        display: block;
        margin-top: var(--spacing-md);
        position: relative;
        padding-right: var(--spacing-sm);
    }

    

    
}

/* ボタンスタイル追加 */
.btn-outline {
    padding: 12px 32px;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
    border-radius: 100px;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ============================================
   サービスカード
============================================ */


/* ============================================
   会社概要
============================================ */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.company-info dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-sm) var(--spacing-md);
}

.company-info dt {
    font-weight: bold;
    color: var(--primary-orange);
}

.company-info dd {
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .company-info dl {
        grid-template-columns: 1fr;
    }

    .company-info dt {
        margin-top: var(--spacing-sm);
    }
}

/* ============================================
   ミッション・ビジョン・バリュー
============================================ */


/* バリューリスト */


/* ============================================
   代表プロフィール
============================================ */


/* 代表メッセージ */


/* ============================================
   サービス詳細
============================================ */


/* ============================================
   導入事例（CASE）
============================================ */


/* ============================================
   お問い合わせ
============================================ */


/* ============================================
   ボタン共通
============================================ */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.btn-secondary::after, .btn-outline::after {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: var(--transition);
}

.btn-secondary:hover::after, .btn-outline:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

.btn-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    border: clamp(3px,0.5vw,5px) solid var(--dark-gray);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
}
@media (max-width: 768px) {
    .btn-primary {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
}

.btn-primary::before {
    content: '';
    display: inline-block;
    width: clamp(1em, 2vw, 1.4em);
    height: clamp(1em, 2vw, 1.4em);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.btn-primary::after {
    content: '';
    display: inline-block;
    width: clamp(0.5em,1.6vw,1em);
    height: clamp(0.5em,1.6vw,1em);
    border-top: clamp(2px,0.3vw,3px) solid currentColor;
    border-right: clamp(2px,0.3vw,3px) solid currentColor;
    transform: rotate(135deg);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-primary:hover::after {
    transform: rotate(135deg) translate(3px, -3px);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-orange);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-orange);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ============================================
   タイムスケジュールセクション
============================================ */
.schedule-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-sub, #777);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.schedule-timeline {
    position: relative;
    padding: var(--spacing-md) 0;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.schedule-item:last-child {
    padding-bottom: 0;
}

.schedule-time {
    width: clamp(70px, 12vw, 100px);
    flex-shrink: 0;
    text-align: right;
    padding-right: var(--spacing-sm);
}

.schedule-time-num {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--primary-orange);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.schedule-dot {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    z-index: 1;
}

.schedule-dot::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
}

.schedule-item:first-child .schedule-dot::before {
    background-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(239, 77, 134, 0.2);
}

.schedule-dot::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + var(--spacing-lg) - 24px);
    background: linear-gradient(to bottom, var(--primary-orange), rgba(239, 77, 134, 0.2));
}

.schedule-item:last-child .schedule-dot::after {
    display: none;
}

.schedule-content {
    flex: 1;
    padding-left: var(--spacing-sm);
    padding-top: 0;
}

.schedule-content-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3em;
}

.schedule-content-text {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .schedule-time {
        width: 60px;
        padding-right: var(--spacing-xs);
    }

    .schedule-time-num {
        font-size: 1rem;
    }

    .schedule-dot {
        width: 16px;
        height: 16px;
    }

    .schedule-dot::before {
        width: 12px;
        height: 12px;
        top: 4px;
        border-width: 2px;
    }

    .schedule-dot::after {
        top: 20px;
        height: calc(100% + var(--spacing-lg) - 20px);
    }

    .schedule-content {
        padding-left: var(--spacing-xs);
    }

    .schedule-item {
        padding-bottom: var(--spacing-md);
    }
}

/* ============================================
   セミナー会場案内セクション
============================================ */
.venue-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.venue-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.venue-name {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-orange);
}

.venue-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.venue-table th, .venue-table td {
    padding: var(--spacing-sm) var(--spacing-xs);
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--light-gray);
}

.venue-table th {
    width: 80px;
    color: var(--primary-orange);
    font-weight: bold;
    white-space: nowrap;
}

.venue-table td {
    color: var(--text-dark);
}

.venue-cta {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

.venue-map {
    min-height: 350px;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

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

    .venue-info {
        padding: var(--spacing-md);
    }

    .venue-map {
        min-height: 250px;
    }
}

/* ============================================
   CTAセクション
============================================ */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff9944 100%);
    text-align: center;
}

.cta-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.cta-box p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}


@media (max-width: 768px) {
    .cta-box {
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   フッター
============================================ */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-left {
    flex: 0 0 auto;
    max-width: 350px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-sm) var(--spacing-md);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--white);
}

/* SNSメニュー（アイコン付き） */
.footer-sns a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-sns svg {
    flex-shrink: 0;
}

/* 基本メニュー */
.footer-nav-menu a {
    font-weight: 500;
}

/* 法的メニュー */
.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* フッター レスポンシブ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-right {
        align-items: flex-start;
        width: 100%;
    }

    .footer-menu {
        justify-content: flex-start;
    }
}

/* ============================================
   トップに戻るボタン
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e67a1f;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   アニメーション
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ユーティリティ
============================================ */


.flex-row-between {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}
@media (max-width: 768px) {
    .flex-row-between {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    } 
    .dotted-border::after {
        rotate: 90deg;
    }
}


/* PC/SP改行切り替え */


.sp-br {
    display: none;
}

@media (max-width: 1400px) {
    

    .sp-br {
        display: block;
    }
}

.sp-br-sm {
    display: none;
}

@media (max-width: 768px) {
    .sp-br-sm {
        display: block;
    }
}

/* ============================================
   固定フッターCTA（SP用）
============================================ */
.fixed-footer-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-xs);
}

.fixed-cta-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 2em;
    transition: var(--transition);
}

.fixed-cta-btn:hover {
    background-color: #e67a1f;
}

.fixed-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-cta-icon svg {
    width: 20px;
    height: 20px;
}

.fixed-cta-text {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .fixed-footer-cta {
        display: grid;
    }

    /* トップに戻るボタンの位置調整 */
    .back-to-top {
        bottom: 80px;
    }

    /* フッターの余白調整 */
    .footer {
        padding-bottom: calc(var(--spacing-md) + 70px);
    }
}

/* ============================================
   マトリクスナビ（取扱領域）
   ============================================ */

.matrix-section .matrix-intro {
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.matrix-section .matrix-intro strong {
    color: var(--primary-orange);
}

.matrix-table-wrapper {
    overflow-x: auto;
    margin: 0 auto 2rem;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e4e4e4;
    border-radius: var(--border-radius);
    background: var(--white);
}

.matrix-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.matrix-table thead th {
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.9rem 0.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.matrix-table thead th.matrix-col-category {
    text-align: left;
    min-width: 210px;
}

.matrix-table tbody td, .matrix-table tbody th {
    padding: 0.85rem 0.75rem;
    border-top: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
}

.matrix-table tbody th.matrix-cat {
    text-align: left;
    font-weight: 700;
    background: #fafafa;
    white-space: nowrap;
}

.matrix-table tbody tr.matrix-row-subhead th {
    background: #f2f2f2;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: left;
    padding-left: 1.5rem;
    white-space: nowrap;
}

.matrix-table tbody th.matrix-cat a, .matrix-table tbody tr.matrix-row-subhead th a {
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 1px dashed #bbb;
    padding-bottom: 1px;
}

.matrix-table tbody th.matrix-cat a:hover, .matrix-table tbody tr.matrix-row-subhead th a:hover {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.matrix-tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

.matrix-tier-1 {
    background: #ffe8ef;
    color: var(--primary-orange);
}

.matrix-tier-2 {
    background: #e3f1fb;
    color: var(--secondary-orange);
}

.matrix-tier-3 {
    background: #f0f0f0;
    color: var(--text-light);
}

.matrix-table tbody td a.matrix-cell-link {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 20px;
    background: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
    min-width: 64px;
}

.matrix-table tbody td a.matrix-cell-link:hover {
    background: #d43870;
    transform: translateY(-1px);
}

.matrix-table tbody td .matrix-cell-disabled {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    color: #999;
    font-size: 0.82rem;
    font-weight: 500;
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 20px;
    min-width: 64px;
}

.matrix-table tbody tr.matrix-row-websitehub th.matrix-cat {
    background: linear-gradient(90deg, #fff5f8 0%, #fafafa 100%);
}

.matrix-table tbody tr.matrix-row-websitehub td {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.matrix-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.matrix-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.matrix-legend-dot.is-available {
    background: var(--primary-orange);
}

.matrix-legend-dot.is-disabled {
    background: transparent;
    border: 1px dashed #ccc;
}

.matrix-note {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.2rem;
    background: #fff9fb;
    border-left: 3px solid var(--primary-orange);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
    border-radius: 4px;
}

.matrix-note strong {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .matrix-section .matrix-intro {
        font-size: 0.95rem;
        text-align: left;
    }

    .matrix-table {
        font-size: 0.85rem;
    }

    .matrix-table thead th, .matrix-table tbody td, .matrix-table tbody th {
        padding: 0.65rem 0.5rem;
    }

    .matrix-table tbody td a.matrix-cell-link, .matrix-table tbody td .matrix-cell-disabled {
        padding: 0.35rem 0.55rem;
        font-size: 0.78rem;
        min-width: 54px;
    }

    .matrix-tier-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
}


/* =====================================================
   マトリクスメガメニュー（PC + SP）
   ===================================================== */

/* デフォルト：PCメガメニューは非表示 */
.nav-pc-mega { display: none; }

/* PC（≥1024px）：ハンバーガー＆ドロワーを隠し、メガメニューを表示 */
@media (min-width: 1024px) {
    .nav-pc-mega { display: flex; align-items: center; margin-left: auto; margin-right: 1.2rem; }
    .nav-main { display: none !important; }
    .hamburger { display: none !important; }
    .header-cta { display: flex !important; margin-left: 0; }
}

/* PCメガメニューのリスト */
.nav-pc-list {
    display: flex; align-items: center; gap: 1.4rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-pc-list > li { position: relative; }
.nav-pc-list a, .nav-pc-trigger {
    display: inline-flex; align-items: center; gap: 0.3em;
    font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
    text-decoration: none; background: none; border: none; cursor: pointer;
    padding: 0.6rem 0.2rem; font-family: inherit;
}
.nav-pc-list > li > a:hover, .nav-pc-trigger:hover, .nav-pc-trigger[aria-expanded="true"] {
    color: var(--primary-orange);
}
.nav-pc-trigger::after {
    content: ""; display: inline-block;
    width: 0.5em; height: 0.5em; margin-left: 0.4em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}
.nav-pc-trigger[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(2px);
}

/* メガパネル（取扱領域のhover/click展開） */
.nav-pc-mega-panel {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(50, 55, 60, 0.16);
    border: 1px solid #f3e9e0;
    border-radius: 14px;
    padding: 1.5rem 1.8rem 1.2rem;
    width: 880px; max-width: 92vw;
    z-index: 1000;
}
.nav-pc-mega-item.is-open .nav-pc-mega-panel, .nav-pc-mega-item:hover .nav-pc-mega-panel, .nav-pc-mega-item:focus-within .nav-pc-mega-panel {
    display: block;
}

.nav-pc-mega-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 1.4rem;
}
.nav-pc-mega-col h4 {
    font-size: 0.72rem; color: var(--primary-orange);
    letter-spacing: 0.14em; margin: 0 0 0.6rem;
    border-bottom: 1px solid #f3e0e8; padding-bottom: 0.4rem;
    font-weight: 700;
}
.nav-pc-mega-cat {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.45rem 0; font-size: 0.92rem; color: var(--text-dark);
    text-decoration: none; font-weight: 500;
}
.nav-pc-mega-cat:hover { color: var(--primary-orange); }
.nav-pc-mega-cat .arrow { color: #ccc; transition: transform 0.2s; }
.nav-pc-mega-cat:hover .arrow { color: var(--primary-orange); transform: translateX(3px); }

.nav-pc-mega-children {
    padding-left: 0.7rem; border-left: 2px solid #f5e8e0;
    margin: 0.1rem 0 0.5rem; display: flex; flex-direction: column; gap: 0.1rem;
}
.nav-pc-mega-children a {
    padding: 0.18rem 0; font-size: 0.82rem; color: #666;
}
.nav-pc-mega-children a:hover { color: var(--primary-orange); }

.nav-pc-mega-disabled {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.45rem 0; font-size: 0.92rem; color: #aaa;
}
.nav-pc-mega-soon {
    font-size: 0.65rem; padding: 1px 6px; border-radius: 999px;
    background: #f1f1f1; color: #888;
}

.nav-pc-mega-phase {
    display: flex; align-items: center; padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem; font-weight: 600; text-decoration: none;
    border-radius: 8px;
}
.nav-pc-mega-phase.phase-prod { background: var(--phase-prod-bg); color: var(--phase-prod-fg); }
.nav-pc-mega-phase.phase-maint { background: var(--phase-maint-bg); color: var(--phase-maint-fg); }
.nav-pc-mega-phase.phase-op { background: var(--phase-op-bg); color: var(--phase-op-fg); }
.nav-pc-mega-phase:hover { filter: brightness(0.95); }

.nav-pc-mega-note { font-size: 0.72rem; color: #888; margin: 0.5rem 0 0; line-height: 1.5; }

.nav-pc-mega-foot {
    margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid #f3e9e0;
    display: flex; gap: 1rem; align-items: center; justify-content: flex-end;
}
.nav-pc-mega-foot a { font-size: 0.85rem; color: var(--text-dark); text-decoration: none; }
.nav-pc-mega-foot a:hover { color: var(--primary-orange); }
.nav-pc-mega-foot .nav-pc-mega-cta {
    background: var(--primary-orange); color: var(--white);
    padding: 0.55rem 1.3rem; border-radius: 999px; font-weight: 600;
}
.nav-pc-mega-foot .nav-pc-mega-cta:hover { color: var(--white); filter: brightness(1.05); }

/* =====================================================
   SPドロワー内：マトリクスアコーディオン
   ===================================================== */

.nav-matrix-note {
    font-size: 0.78rem; color: #888; margin: -0.3rem 0 0.6rem;
}
.nav-matrix-list {
    list-style: none; padding: 0; margin: 0 0 1.3rem;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.nav-matrix-item {
    border: 1px solid #f3e0e8; border-radius: 10px;
    background: #fffaf6;
}
.nav-matrix-item.is-disabled {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    background: #fafafa; color: #999;
    border: 1px solid #eee;
}
.nav-matrix-item details { padding: 0; }
.nav-matrix-item summary {
    list-style: none; cursor: pointer;
    padding: 0.7rem 0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-matrix-item summary::-webkit-details-marker { display: none; }
.nav-matrix-item summary::after {
    content: ""; margin-left: auto;
    width: 0.55em; height: 0.55em;
    border-right: 2px solid #aaa; border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.nav-matrix-item details[open] summary::after {
    transform: rotate(-135deg);
}
.nav-matrix-cat-name { font-weight: 600; font-size: 0.96rem; color: var(--text-dark); }
.nav-matrix-tier {
    font-size: 0.66rem; padding: 1px 7px; border-radius: 999px;
    font-weight: 700; letter-spacing: 0.04em;
}
.nav-matrix-tier-1 { background: var(--tier-1-bg); color: var(--tier-1-fg); }
.nav-matrix-tier-2 { background: var(--tier-2-bg); color: var(--tier-2-fg); }
.nav-matrix-tier-3 { background: var(--tier-3-bg); color: var(--tier-3-fg); }
.nav-matrix-soon {
    font-size: 0.72rem; color: #999; margin-left: auto;
    padding: 1px 7px; border-radius: 999px; background: #f1f1f1;
}
.nav-matrix-panel {
    padding: 0.2rem 0.9rem 0.95rem;
    border-top: 1px dashed #f0d8c8;
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.nav-matrix-sub-label {
    font-size: 0.7rem; color: var(--primary-orange);
    letter-spacing: 0.12em; font-weight: 700;
    margin: 0.7rem 0 0.35rem;
}
.nav-matrix-subcats, .nav-matrix-phases {
    list-style: none; padding: 0; margin: 0 0 0.4rem;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.nav-matrix-subcats li, .nav-matrix-phases li { margin: 0; }
.nav-matrix-subcats a {
    display: inline-block; padding: 0.32rem 0.75rem;
    font-size: 0.84rem; text-decoration: none;
    background: #fdf6f0; color: var(--text-dark); border-radius: 999px;
    border: 1px solid #f3e0e8;
}
.nav-matrix-subcats a:hover { background: var(--tier-1-bg); }
.nav-matrix-phases a {
    display: inline-block; padding: 0.35rem 0.85rem;
    font-size: 0.86rem; text-decoration: none; font-weight: 600;
    border-radius: 999px;
}
.nav-matrix-phases a.phase-prod { background: var(--phase-prod-bg); color: var(--phase-prod-fg); }
.nav-matrix-phases a.phase-maint { background: var(--phase-maint-bg); color: var(--phase-maint-fg); }
.nav-matrix-phases a.phase-op { background: var(--phase-op-bg); color: var(--phase-op-fg); }
.nav-matrix-hub-link {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.82rem; color: var(--primary-orange);
    text-decoration: none; font-weight: 600;
}
.nav-matrix-hub-link:hover { text-decoration: underline; }

/* PC で複数列表示にしたいケース（任意） */
@media (min-width: 1024px) {
    .nav-main .nav-matrix-list { /* 既に non-display なので使われない、保険 */ }
}
