/* Base Variables & Reset */
:root {
    /* Structural — calm, serious, B2B */
    --primary-color: #1f2937;        /* Charcoal: sidebar, headings, structural buttons */
    --primary-hover: #111827;
    --secondary-color: #ffffff;
    --text-main: #2f3540;
    --text-muted: #6b7280;

    /* Brand accent — maroon, used sparingly (CTAs, key numbers, emphasis) */
    --accent-color: #b71549;
    --accent-hover: #90113a;
    --accent-soft: rgba(183, 21, 73, 0.08);
    --accent-soft-strong: rgba(183, 21, 73, 0.18);

    /* Surfaces — warm neutral (was pink-tinted) */
    --bg-light: #f7f6f4;
    --bg-story: #eeece8;
    --border-soft: #e6e4df;

    --border-radius: 4px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    overflow-x: hidden;
    max-width: 100%;
}
body {
    font-family: 'Lato', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}
a { text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.align-left { text-align: left; margin-bottom: 30px; }
.bg-light { background-color: var(--bg-light); }
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--accent-color); margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-50 { margin-bottom: 50px; }
.mt-30 { margin-top: 30px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-primary { background: var(--accent-color); color: #fff; border: 1px solid var(--accent-color); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent-color); border: 1px solid var(--accent-color); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-group-center { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}

/* Header */
.header {
    position: fixed; top: 0; width: 100%;
    background: #fff; border-bottom: 1px solid #eee;
    z-index: 1000; padding: 15px 0;
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 0 30px;
}
.logo { display: flex; align-items: center; }
.header-logo { height: 45px; width: auto; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 15px; }

/* Hamburger */
.hamburger {
    background: none; border: none; cursor: pointer;
    width: 36px; height: 24px; position: relative; z-index: 1001;
    margin-left: 15px;
}
.hamburger::after {
    content: "MENU";
    position: absolute;
    top: 28px;
    right: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #666;
}
.hamburger .bar {
    display: block; height: 3px; background: var(--text-main);
    position: absolute; right: 0; transition: all 0.3s ease-out;
}
.hamburger .bar:nth-child(1) { top: 0; width: 125%; }
.hamburger .bar:nth-child(2) { top: 10px; width: 100%; }
.hamburger .bar:nth-child(3) { top: 20px; width: 75%; }

.hamburger:hover .bar {
    width: 100%;
}

/* Sidebar Menu */
.sidebar-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 1005;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sidebar-backdrop.active { opacity: 1; visibility: visible; }

.sidebar-menu {
    position: fixed; top: 0; right: -100%;
    width: 25%; min-width: 300px; max-width: 400px; height: 100vh;
    background: var(--primary-color);
    z-index: 1010; padding: 50px 30px 30px 40px;
    display: flex; flex-direction: column;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.sidebar-menu.active { right: 0; }

.close-btn {
    position: absolute; top: 20px; right: 25px;
    background: none; border: none; color: #fff;
    font-size: 2rem; font-weight: 300; cursor: pointer;
    transition: transform 0.3s;
}
.close-btn:hover { transform: scale(1.1); }

.sidebar-links { flex: 1; margin-top: 20px; }
.sidebar-links li { margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    transition: color 0.2s ease;
}
.sidebar-links a .en {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.sidebar-links a .jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-left: 0;
    transition: color 0.2s ease;
}
.sidebar-links a:hover .jp { color: var(--accent-color); }
.sidebar-links a:hover .en { color: #fff; }

.sidebar-bottom { margin-top: 40px; }
.btn-sidebar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; background: var(--accent-color); color: #fff;
    padding: 15px 0; border-radius: 4px; font-weight: 700; font-size: 1.1rem;
    margin-bottom: 30px; transition: background 0.3s;
}
.btn-sidebar:hover { background: var(--accent-hover); }

.sidebar-footer-links .link-row { display: flex; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 10px;}
.sidebar-footer-links a { color: #fff; font-size: 0.75rem; text-decoration: none; opacity: 0.8; }
.sidebar-footer-links a:hover { opacity: 1; text-decoration: underline; }

/* 1. Hero - Cinematic Vertical Story */
.hero-cinematic {
    margin-top: 60px;
    background: #000;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    height: calc(100vh - 60px);
    min-height: 500px;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}
.main-visual {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.75;
}

/* Hero overlay: Dark gradient for text readability */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Hero Content Overlay */
.hero-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8vw;
    color: #fff;
}

.cinematic-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: cinFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.cinematic-brand-headline {
    margin-bottom: 30px;
    font-family: 'Lato', 'Noto Sans JP', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-brand-line {
    display: flex;
    align-items: baseline;
    line-height: 0.92;
    margin-bottom: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: cinFadeUp 0.8s ease forwards;
}

.hero-brand-line:nth-child(1) { animation-delay: 0.3s; }
.hero-brand-line:nth-child(2) { animation-delay: 0.4s; }
.hero-brand-line:nth-child(3) { animation-delay: 0.5s; }

.brand-init {
    font-size: clamp(60px, 9vw, 140px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    
    /* Text color and outline */
    color: var(--accent-color);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6); /* Adds a softer black outline */
    
    /* Removed glow, keeping only the dark drop shadow for legibility */
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    display: inline-block;
    width: 0.95em;
    text-align: center;
}

.brand-rest {
    display: inline-block;
    font-size: clamp(20px, 4vw, 55px);
    letter-spacing: 0.02em;
    margin-left: 0.02em;
    color: #ffffff; /* Changed to white for high contrast */
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Dark shadow for legibility */
}

.cinematic-sub {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 20px; /* Reduced margin */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: cinFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Integrated News Section inside Hero */
.cinematic-news-wrapper {
    margin-top: 20px; /* Reduced margin */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: cinFadeUp 0.8s ease forwards;
    animation-delay: 1s; /* Shows up last */
}
.cinematic-news-header {
    margin-bottom: 15px;
}
.cinematic-news-header .news-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}
.cinematic-news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.cinematic-news-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.cinematic-news-list .news-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    padding-top: 2px;
}
.cinematic-news-list .news-title {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.3s;
}
.cinematic-news-list .news-title:hover {
    opacity: 0.7;
}
.cinematic-news-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}
.cinematic-news-more:hover {
    opacity: 0.7;
}



@keyframes cinFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-gradient-overlay {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.2) 100%
        );
    }
    .hero-content-overlay {
        justify-content: flex-start;
        padding-bottom: 15vw;
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .cinematic-headline {
        margin-bottom: 20px;
    }
    .cinematic-sub {
        margin-bottom: 30px;
    }
    .cta-buttons {
        gap: 10px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}



/* 2. News */
.news-section { padding: 30px 0; background: #fff; }
.news-container { display: flex; align-items: flex-start; gap: 30px; max-width: 900px; margin: 0 auto; }
.news-label { font-weight: 900; color: var(--primary-color); font-size: 1.1rem; letter-spacing: 1px; padding-top: 2px;}
.news-list { flex: 1; }
.news-list li { margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px;}
.news-list li:last-child { margin-bottom: 0; }
.news-date { color: var(--text-muted); font-size: 0.9rem; }
.news-tag { background: #eee; padding: 2px 8px; font-size: 0.8rem; border-radius: 2px; }
.news-title { color: var(--text-main); font-size: 0.95rem; }
.news-title:hover { color: var(--primary-color); text-decoration: underline; }

/* Marquee */
.marquee-section {
    padding: 30px 0 40px; background: #ffffff; overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.marquee-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--accent-color); margin-bottom: 20px; }
.marquee-wrapper { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-content { display: flex; align-items: center; flex-shrink: 0; }
.univ-logo { font-size: 1.2rem; font-weight: 900; color: rgba(31, 41, 55, 0.45); padding: 0 40px; white-space: nowrap; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 2-Column Layouts */
.section-inner { display: flex; align-items: center; gap: 60px; }
.section-inner.reverse { flex-direction: row-reverse; }
.content-col { flex: 1; }
.image-col { flex: 1; display: flex; justify-content: center; }
.placeholder-image {
    width: 100%; min-height: 300px; background: rgba(31, 41, 55, 0.04);
    border: 2px dashed rgba(31, 41, 55, 0.18); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(31, 41, 55, 0.45); font-weight: 700; font-size: 1.2rem; letter-spacing: 2px;
}

/* 3. TAO Details */
.details-section .highlight-text { font-size: 2.8rem; color: var(--accent-color); display: block; margin-top: 10px;}

/* Philosophy — Light Corporate Theme with right-side world map + TAO marker */
.philosophy-section {
    position: relative;
    overflow: hidden;
    background: #fef5f7; /* Very faint pinkish white */
    color: #2a2e3d; /* Dark text */
    padding: 110px 0;
    isolation: isolate;
}

.philosophy-map-bg {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 65%;
    height: 140%;
    background: url('imeges/world_map.jpeg') center right / contain no-repeat;
    opacity: 1; /* さらに濃くする */
    mix-blend-mode: multiply; /* 背景色と自然に馴染ませる */
    filter: contrast(1.2) brightness(0.95); /* 画像自体を少し強めに */
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    z-index: 0;
    pointer-events: none;
}

.philosophy-tao-marker {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.6); /* Slightly white background inside circle */
    border: 3px solid #d96a8a; /* Pink border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(217, 106, 138, 0.15); /* Soft pink glow */
    z-index: 2;
    pointer-events: none;
}
.philosophy-tao-marker img {
    width: 50%;
    height: auto;
    display: block;
    /* Removed invert filter to show original color, hoping it matches or looks good */
}

.philosophy-text-block {
    position: relative;
    z-index: 3;
    max-width: 58%;
}

.philosophy-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.eyebrow-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}
.eyebrow-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.7);
}

.philosophy-headline {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin: 0 0 40px;
    color: var(--accent-color);
}

/* nobr: 改行を抑制する汎用ユーティリティ（全画面サイズ） */
.nobr,
.text-nobr {
    white-space: nowrap;
}

/* nobr-pc: PCサイズのみ改行抑制（スマホ・タブレットでは自然に折り返す） */
.nobr-pc {
    white-space: nowrap;
}
@media (max-width: 1024px) {
    .nobr-pc {
        white-space: normal;
    }
}

/* ==========================================================================
   Contact Form 7 (CF7) 全般スタイル（個別相談・資料ダウンロード等）
   ========================================================================== */
/* CF7が自動挿入する <br> を抑制（ラベルと入力欄の隙間を詰める） */
.wpcf7 .form-group br,
.wpcf7-form .form-group br { display: none; }
/* wrap span はブロック化して input の width:100% を効かせる */
.wpcf7 .form-group .wpcf7-form-control-wrap { display: block; }
.wpcf7 { width: 100%; }
.wpcf7 .contactarea { width: 100%; }
.wpcf7 .hdtxt { display: none; } /* CF7テンプレ内に重複している説明文を非表示 */
.wpcf7 .contactbox { width: 100%; }
.wpcf7 table.contactform { width: 100%; border-collapse: collapse; }
.wpcf7 table.contactform tr { display: block; margin-bottom: 22px; }
.wpcf7 table.contactform td { display: block; width: 100%; padding: 0; }
.wpcf7 .formtit {
    margin: 0 0 8px;
    font-weight: 700;
    color: #1a202c;
    font-size: 0.95rem;
}
.wpcf7 .formtit .must {
    display: inline-block;
    background: var(--accent-color, #b71549);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
.wpcf7 .formcont { margin: 0; }
.wpcf7 .formcont input[type="text"],
.wpcf7 .formcont input[type="tel"],
.wpcf7 .formcont input[type="email"],
.wpcf7 .formcont input[type="number"],
.wpcf7 .formcont select,
.wpcf7 .formcont textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.wpcf7 .formcont input:focus,
.wpcf7 .formcont select:focus,
.wpcf7 .formcont textarea:focus {
    outline: none;
    border-color: var(--accent-color, #b71549);
}
.wpcf7 .formcont textarea { min-height: 120px; resize: vertical; }
.wpcf7 .formcont.contactselect { display: block; }
/* チェックボックス・ラジオボタン群 */
.wpcf7 .wpcf7-list-item {
    display: block;
    margin: 0 0 8px;
}
.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
    margin-right: 6px;
}
.wpcf7 .wpcf7-list-item-label { font-weight: normal; cursor: pointer; }
/* 同意チェックボックス（モックアップcontact.htmlに合わせる） */
.wpcf7 .consent-group .wpcf7-form-control-wrap {
    display: inline-block; /* 内側はインライン配置に戻す（block override を打ち消し） */
}
.wpcf7 .wpcf7-acceptance {
    display: inline-block;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: inline-block;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-weight: bold;
}
/* 送信ボタン */
.wpcf7 .wpcf7-submit,
.wpcf7 input.wpcf7-submit {
    background: var(--accent-color, #b71549);
    color: #fff;
    border: 1px solid var(--accent-color, #b71549);
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
    margin: 20px auto 0;
}
.wpcf7 .wpcf7-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.wpcf7 form.wpcf7-form > p:last-child,
.wpcf7 .form-submit-wrap {
    text-align: center;
}
/* バリデーションエラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 6px;
}
.wpcf7 .wpcf7-response-output {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    margin-top: 24px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.wpcf7 .wpcf7-mail-sent-ok { border-color: #86efac; background: #f0fdf4; color: #14532d; }

/* 「TAO導入！」吹き出し（roiChart 2023年バー上にJSで動的配置） */
.tao-bubble {
    position: absolute;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(183, 21, 73, 0.3);
    z-index: 10;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: taoBubbleBounce 2s infinite;
    pointer-events: none;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tao-bubble-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}
@keyframes taoBubbleBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}
@media (max-width: 768px) {
    .tao-bubble {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* EN版 Cost ¥2M saved 円 */
.cost-circle-en {
    position: absolute;
    top: -145px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background: #fff;
    border: 4px solid #f5a65b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(245, 166, 91, 0.25);
    text-align: center;
    gap: 0;
    z-index: 2;
}
.cost-circle-en .cost-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f5a65b;
    margin-bottom: 2px;
}
.cost-circle-en .cost-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #f5a65b;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2px;
}
.cost-circle-en .cost-unit {
    font-size: 1rem;
    font-weight: 800;
    margin-left: 1px;
}
.cost-circle-en .cost-yen {
    font-size: 0.75em; /* ¥は数字より小さく（親.cost-value比） */
    align-self: center;
}
@media (max-width: 768px) {
    .cost-circle-en .cost-yen {
        font-size: 0.65em;
    }
}
.cost-circle-en .cost-saved {
    font-size: 1.2rem;
    font-weight: 900;
    color: #f5a65b;
    line-height: 1;
}

/* EN版 Work time 360h saved 円 */
.work-circle-en {
    position: absolute;
    top: -135px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    background: #fff;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px var(--accent-soft-strong);
    text-align: center;
    gap: 2px;
}
.work-circle-en .work-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
}
.work-circle-en .work-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}
.work-circle-en .work-unit {
    font-size: 1.1rem;
}
.work-circle-en .work-saved {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

/* 旧HTML対応：page-en.phpがcost-circle-enクラスに移行されていない場合の!importantフォールバック
   .before-after-graph 内の 丸囲みdivと内部spanを 属性セレクタで強制縮小 */
@media (max-width: 1024px) {
    .before-after-graph > div > div[style*="border-radius: 50%"] {
        width: 110px !important;
        height: 110px !important;
        top: -120px !important;
    }
    /* 1番目: 「Cost」「Work time」ラベル */
    .before-after-graph > div > div[style*="border-radius: 50%"] > span:nth-child(1) {
        font-size: 0.7rem !important;
    }
    /* 2番目: 「¥2M」「360h」値 */
    .before-after-graph > div > div[style*="border-radius: 50%"] > span:nth-child(2) {
        font-size: 1.4rem !important;
    }
    /* 2番目内のlast-child (M, h など単位) */
    .before-after-graph > div > div[style*="border-radius: 50%"] > span:nth-child(2) > span:last-child {
        font-size: 0.75rem !important;
    }
    /* 3番目: 「saved」 */
    .before-after-graph > div > div[style*="border-radius: 50%"] > span:nth-child(3) {
        font-size: 0.85rem !important;
    }
}

/* SP〜iPad対応：新HTML（cost-circle-en/work-circle-enクラス使用時）：円自体を小さくし、中の文字も縮小 */
@media (max-width: 1024px) {
    .cost-circle-en {
        width: 110px;
        height: 110px;
        top: -120px;
    }
    .cost-circle-en .cost-label {
        font-size: 0.65rem;
    }
    .cost-circle-en .cost-value {
        font-size: 1.4rem;
    }
    .cost-circle-en .cost-unit {
        font-size: 0.7rem;
    }
    .cost-circle-en .cost-saved {
        font-size: 0.85rem;
    }
    .work-circle-en {
        width: 105px;
        height: 105px;
        top: -115px;
    }
    .work-circle-en .work-label {
        font-size: 0.65rem;
    }
    .work-circle-en .work-value {
        font-size: 1.4rem;
    }
    .work-circle-en .work-unit {
        font-size: 0.75rem;
    }
    .work-circle-en .work-saved {
        font-size: 0.85rem;
    }
}

.philosophy-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4f5e;
    margin: 0 0 30px;
    font-weight: 400;
    max-width: none;
}

.philosophy-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2e3d;
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: none;
}

.philosophy-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4f5e;
    margin: 0 0 40px;
    font-weight: 400;
    max-width: none;
}
.sp-philosophy-image {
    display: none;
}

.btn-philosophy-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    border: 1px solid #d96a8a;
    border-radius: 4px; /* Rectangular with slight rounding */
    color: #d96a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-philosophy-outline:hover {
    background: #d96a8a;
    color: #fff;
}

/* 4. Story / Voices — Before & After with character + speech bubbles */
.story-section { padding: 0; background: transparent; }
.story-section .section-header { margin-bottom: 60px; text-align: center; }
.story-section .section-header .section-eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--accent-color);
    margin-bottom: 16px;
}
.story-section .section-header p { color: var(--text-muted); font-size: 1rem; margin-top: 12px; }
.story-section .highlight-text { color: var(--accent-color); }

.voices-stage {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.stage-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    padding: 12px 24px 12px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.stage-tag::before {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}
.tag-pain {
    background: var(--primary-color);
    color: #fff;
}
.tag-pain::before {
    content: "!";
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tag-relief {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 26px rgba(183, 21, 73, 0.4);
}
.tag-relief::before {
    content: "\2713"; /* check mark */
    color: var(--accent-color);
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Transition arrow between BEFORE and AFTER */
.stage-arrow {
    text-align: center;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent-color);
    margin: 28px 0;
    font-weight: 700;
    letter-spacing: 0;
    user-select: none;
}

.stage-wrap {
    position: relative;
}

.stage-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    aspect-ratio: 16 / 10;
}
.stage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* 人物を吹き出し / オーバーレイの反対側に寄せる */
.stage-pain .stage-image { object-position: 70% center; }
.stage-relief .stage-image { object-position: 70% center; }

/* Speech bubbles */
.bubble {
    position: absolute;
    background: #fff;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    padding: 22px 28px 22px 76px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    max-width: 380px;
    z-index: 3;
}
.bubble p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary-color);
}
.bubble-num {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.08);
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bubble tail outline (accent red, behind) */
.bubble::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 28px solid var(--text-muted);
}

/* Bubble tail fill (white, on top) */
.bubble::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 26px solid #fff;
}

/* Pain bubble positions on worried image */
.bubble-pos-1 { top: 20%; left: 3%; }
.bubble-pos-2 { top: 42%; left: 3%; }
.bubble-pos-3 { top: 64%; left: 3%; }

/* Relief overlay panel on happy image */
.relief-overlay {
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    border-left: 4px solid var(--accent-color);
    max-width: 500px;
    z-index: 3;
}
.relief-headline {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0 0 16px;
    line-height: 1.4;
    letter-spacing: -0.005em;
}
.relief-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.relief-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
    line-height: 1.5;
}
.relief-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.relief-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.relief-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    white-space: nowrap;
}
.relief-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* Transition divider between stages */
.voices-divider {
    text-align: center;
    margin: 36px 0;
}
.divider-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 22px rgba(183, 21, 73, 0.3);
}

/* 5. Admission Workflow */
.pdf-flowchart {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: #fff; padding: 30px; border: 1px solid #ddd;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05); border-radius: 8px;
}
.flow-block {
    border: 2px solid var(--primary-color); padding: 15px 10px; text-align: center;
    background: #fff; border-radius: 8px; width: 100%;
}
.flow-block.highlight-block { background: var(--bg-light); }
.flow-title {
    font-size: 1.1rem; font-weight: 700; color: #333;
    margin: 0 auto;
}
.flow-arrow { text-align: center; color: #555; font-size: 1.5rem; margin: 5px 0; }
.flow-arrow::after { content: "▼"; }

@media (min-width: 769px) {
    .pdf-flowchart { flex-direction: row; align-items: stretch; padding: 40px; justify-content: space-between; overflow-x: auto;}
    .flow-block {
        flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 15px;
        min-width: 60px;
    }
    .flow-title {
        font-size: 1.2rem; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.2em;
    }
    .flow-arrow { display: flex; align-items: center; justify-content: center; margin: 0 5px; }
    .flow-arrow::after { content: "▶"; }
}

/* 6. Features */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { background: #fff; padding: 25px; border-left: 4px solid var(--primary-color); box-shadow: var(--shadow); }
.feature-item h3 { margin-bottom: 10px; font-size: 1.2rem; display: flex; align-items: center;}
.feature-num { background: var(--primary-color); color: #fff; width: 24px; height: 24px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 0.9rem; margin-right: 10px;}
.feature-item p { font-size: 0.95rem; color: var(--text-muted); }

/* 7. Benefits */
.benefit-box { background: #fff; padding: 35px; border: 1px solid #eee; box-shadow: var(--shadow);}
.benefit-tag { display: inline-block; padding: 4px 10px; background: var(--text-main); color: #fff; font-size: 0.8rem; margin-bottom: 15px; }
.benefit-box h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
.benefit-box p { font-size: 0.95rem; }

/* 8. FAQ */
.faq-accordion { width: 100%; }
.faq-item { margin-bottom: 10px; border: 1px solid #ddd; background: #fff; }
.faq-question {
    width: 100%; text-align: left; padding: 20px;
    background: none; border: none; font-size: 1rem; font-weight: 700;
    color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { background: #fafafa; }
.faq-question .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 0.95rem; /* adjusted for ▼ character */
    font-weight: 400;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question .icon { 
    transform: rotate(180deg); /* down arrow becomes up arrow */
    background: var(--accent-color);
    color: #fff;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fafafa; }
.faq-answer p { padding: 0 20px 20px 20px; font-size: 0.95rem; color: var(--text-muted); }

/* Footer */
.footer { background: var(--text-main); color: #fff; text-align: center; padding: 40px 0; }
.footer-logo { margin-bottom: 10px; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* 導入校の声: 3つの吹き出しを順番にふわっと表示 */
.testimonial-bubble.fade-in { transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.testimonial-bubble.fade-in[data-stagger="1"] { transition-delay: 0.05s; }
.testimonial-bubble.fade-in[data-stagger="2"] { transition-delay: 0.25s; }
.testimonial-bubble.fade-in[data-stagger="3"] { transition-delay: 0.45s; }

/* Responsive utility */
.sp-only { display: none; }


/* Sequential reveal — workflow comparison */
.flow-row.fade-in.before, .flow-row.fade-in.after { transition-delay: 0s; }
.flow-arrow-anchor.fade-in { transition-delay: 0.2s; }
.flow-points.fade-in { transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    /* .count-up: number stays at final value, JS will skip if not observed */
}

/* Responsive */
@media (max-width: 768px) {
    /* Header */
    .header-right .btn { display: none; }
    .header-inner { padding: 0 16px; }
    .header-logo { height: 35px; }

    /* Container & section padding */
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }

    /* Typography downsizing */
    .section-title { font-size: 1.55rem; }
    .strong-phrase { font-size: 1.25rem; }

    /* Hero */
    .hero { height: calc(100vh - 60px); min-height: 420px; max-height: 720px; }
    .details-section .highlight-text { font-size: 2rem; }

    /* News */
    .news-container { flex-direction: column; gap: 15px; padding: 0 4px; }
    .news-title { font-size: 0.9rem; }

    /* 2-Col layouts */
    .section-inner, .section-inner.reverse { flex-direction: column; gap: 40px; }
    .image-col { width: 100%; order: -1; }

    /* Sidebar */
    .sidebar-menu { width: 85%; }

    /* Story / Voices — bubbles stack below image on mobile */
    .story-section { padding: 0; }
    .story-section .section-header { margin-bottom: 36px; }
    .voices-stage { padding: 0 4px; }
    .sp-only { display: block; }
    .stage-tag { font-size: 0.7rem; padding: 6px 12px; margin-bottom: 12px; gap: 6px; }
    .stage-tag::before { font-size: 0.85rem; width: 18px; height: 18px; }

    .stage-frame { aspect-ratio: auto; }
    .stage-image { height: auto; object-fit: initial; object-position: initial; }

    .bubble {
        position: relative;
        max-width: 100%;
        margin-top: 14px;
        padding: 14px 18px 14px 52px;
    }
    .bubble::before {
        display: block;
        right: 30px;
        top: -14px;
        transform: none;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-bottom: 16px solid var(--text-muted);
        border-top: none;
    }
    .bubble::after {
        display: block;
        right: 32px;
        top: -12px;
        transform: none;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 14px solid #fff;
        border-top: none;
    }
    .bubble p { font-size: 0.9rem; }
    .bubble-num { left: 14px; width: 26px; height: 26px; font-size: 0.7rem; }

    .relief-overlay {
        position: static;
        transform: none;
        max-width: 100%;
        margin-top: 14px;
        padding: 24px 24px;
    }
    .relief-headline { font-size: 1.1rem; }
    .relief-list li { font-size: 0.88rem; }
    .relief-main { white-space: normal; }

    .voices-divider { margin: 24px 0; }
    .divider-pill { font-size: 0.75rem; padding: 10px 20px; }
    .stage-arrow { font-size: 1.8rem; margin: 18px 0; }
    .stage-tag { position: relative; top: auto; left: auto; }

    /* Philosophy — Mobile tuning */
    .philosophy-section { padding: 70px 0; }
    .philosophy-map-bg {
        display: none; /* スマホでは文字との重なりを防ぐため非表示 */
    }
    .philosophy-tao-marker { display: none !important; }
    .philosophy-veil { display: none; }
    .philosophy-text-block { max-width: 100%; text-align: left; }
    .philosophy-eyebrow { margin-bottom: 24px; gap: 12px; justify-content: flex-start; }
    .eyebrow-rule { width: 28px; }
    .eyebrow-text { font-size: 0.7rem; letter-spacing: 0.3em; }
    .philosophy-headline { font-size: 1.4rem; line-height: 1.4; margin-bottom: 24px; text-align: left; }
    .philosophy-intro { font-size: 0.95rem; line-height: 1.85; margin-bottom: 20px; text-align: left; }
    .philosophy-lead { font-size: 1.1rem; padding-left: 0; margin-bottom: 22px; text-align: left; color: var(--accent-color); }
    .philosophy-body { font-size: 0.95rem; line-height: 1.8; margin-bottom: 32px; text-align: left; }
    .philosophy-body br, .philosophy-intro br { display: none; }
    .btn-philosophy { padding: 13px 28px; font-size: 0.88rem; }
    .btn-philosophy:hover { padding-right: 32px; }
    .sp-philosophy-image { display: none; }
    .sp-philosophy-image img { width: 100%; max-width: 400px; height: auto; opacity: 1; }

    /* Workflow comparison — allow horizontal scroll, shrink min-widths */
    .workflow-section { overflow-x: hidden; }
    .flow-comparison-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    .flow-comparison-container .flow-row { min-width: 720px; }
    .flow-comparison-container .flow-points { min-width: 720px; }
    .flow-step { font-size: 0.75rem !important; padding: 8px 10px !important; }

    /* Stats — global reach stacks */
    .stats-section { padding: 60px 0; }
    .stat-box { padding: 24px 16px; border-radius: 10px; }
    .stat-box h3 { font-size: 1.1rem; line-height: 1.5; }
    .stat-sub { font-size: 0.9rem; }
    .global-reach-content { flex-direction: column; gap: 24px; padding: 16px; }
    .countries-list, .region-chart { min-width: 0; width: 100%; }
    .country-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 100%; overflow: hidden; }
    /* 国名はすべて1行に収める。長い名前（バングラデシュ等）も含めて文字サイズで対応 */
    .country-grid li {
        font-size: 0.55rem !important;
        padding: 4px 2px !important;
        border-bottom-width: 1px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        letter-spacing: -0.02em;
        line-height: 1.3 !important;
    }
    .country-grid li .flag { font-size: 1em !important; margin-right: 3px !important; flex-shrink: 0; }
    .country-grid li::before { font-size: 0.55rem !important; min-width: 12px !important; margin-right: 2px !important; flex-shrink: 0; }
    .stats-row-2col { gap: 24px !important; }

    /* ROI before/after infographic — tighter padding & sizes */
    .infographic-panel { padding: 30px 12px !important; }
    .infographic-panel h3 { font-size: 1.1rem !important; }
    .before-after-graph { padding-bottom: 65px !important; }

    /* Benefits / Testimonials */
    .testimonial-text { font-size: 0.95rem; }
    .testimonial-author { font-size: 0.85rem; }

    /* FAQ */
    .faq-section { padding: 60px 0; }
    .faq-question { padding: 16px; font-size: 0.95rem; }
    .faq-answer p { padding: 0 16px 16px; font-size: 0.9rem; }

    /* Footer */
    .footer { padding: 30px 0; }

    /* Buttons / CTAs in mobile feel */
    .btn { padding: 10px 22px; font-size: 0.9rem; letter-spacing: 0.04em; }
    .btn-group-center { gap: 12px; }
}

/* Narrow phones */
@media (max-width: 480px) {
    .section-title { font-size: 1.4rem; }
    .marquee-title { font-size: 1.05rem; }
    .bubble p { font-size: 0.85rem; }
    .relief-headline { font-size: 1rem; }
    .relief-list li { font-size: 0.85rem; }
    /* 30件あるので狭い端末でも2列を維持（縦長すぎ回避）。国名は1行で収める */
    .country-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
    .country-grid li {
        font-size: 0.6rem !important;
        padding: 4px 4px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        letter-spacing: -0.02em;
        line-height: 1.3 !important;
    }
    .footer p { font-size: 0.85rem; }
}

/* Subpage Common Styles — 英字eyebrow + 日本語メイン構成（ハンバーガーと統一） */
.page-header { background: #1a202c; padding: 50px 0 60px; text-align: center; border-bottom: 3px solid var(--accent-color, #b71549); }
.page-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.4;
}
.page-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.85rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}
.page-content { padding: 80px 0; background: #fff; min-height: 50vh; }

/* Forms */
.form-container { max-width: 700px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid #eee; }
.form-group { margin-bottom: 25px; text-align: left; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; color: #333; }
.req,
.form-label .req {
    display: inline-block;
    color: #fff;
    background: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
}

/* 同意チェックボックス文言: どんな画面幅でも1行に収める */
.consent-line {
    white-space: nowrap;
    font-size: 0.95rem;
}
@media (max-width: 480px) {
    .consent-line { font-size: 0.78rem; }
    .consent-line .req { font-size: 0.62rem !important; padding: 1px 6px !important; margin-left: 5px !important; }
}
@media (max-width: 360px) {
    .consent-line { font-size: 0.72rem; }
}
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; transition: border 0.3s; background: #fafafa; }
.form-control:focus { outline: none; border-color: var(--accent-color); background: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
textarea.form-control { resize: vertical; min-height: 150px; }
.form-submit { text-align: center; margin-top: 40px; }
.form-submit .btn { padding: 15px 60px; font-size: 1.1rem; }

/* Stats Section */
.stats-section { padding: 80px 0; background: var(--bg-light); }
.stats-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; max-width: 100%; }
.stat-box { background: #fff; padding: 40px; border-radius: 12px; border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.06); max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; }
.stat-box h3 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 5px; }
.stat-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; }

/* Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 15px; }
.bar-row { display: flex; align-items: center; gap: 15px; }
.bar-label { width: 70px; font-weight: bold; font-size: 0.95rem; }
.bar-track { flex: 1; height: 12px; background: #e0d8db; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }
.bar-pct { width: 50px; text-align: right; font-weight: bold; font-size: 0.95rem; color: #555; }

/* ROI Grid */
.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roi-card { background: #fff; padding: 25px 10px; text-align: center; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); border: none; display: flex; flex-direction: column; justify-content: center;}
.roi-card.highlight { border-color: var(--accent-color); border-width: 2px; }
.roi-val { font-size: 2.2rem; font-weight: 900; color: var(--accent-color); margin-bottom: 5px; line-height: 1; }
.roi-val .unit { font-size: 0.9rem; color: #666; margin-left: 2px; font-weight: bold; }
.roi-label { font-size: 0.85rem; font-weight: bold; color: #333; }

/* 13 Features Grid (About Page) */
.feature-grid-13 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.f-card { background: #fff; border: none; padding: 25px; border-radius: 12px; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.f-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--border-soft); }
.f-card h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 12px; border-bottom: 2px solid var(--accent-soft-strong); padding-bottom: 8px; display: flex; align-items: center;}
/* function-card (特徴・機能紹介) のタイトルは、アクセントカラーより少し薄めの赤 */
.function-card h3,
.f-card.function-card h3 { color: #d04866 !important; }
.f-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Testimonials */
.testimonials-wrapper { display: flex; flex-direction: column; gap: 25px; }
.testimonial-bubble { position: relative; background: #fff; border: none; border-radius: 12px; padding: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.testimonial-bubble::after { content: ''; position: absolute; top: 30px; left: -10px; border-width: 10px 10px 10px 0; border-style: solid; border-color: transparent #fff transparent transparent; display: block; width: 0; }
.testimonial-bubble::before { display: none; }
.testimonial-bubble.right::after { left: auto; right: -10px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent #fff; }
.testimonial-bubble.right::before { display: none; }
.testimonial-text { font-size: 1.05rem; font-weight: bold; color: var(--text-main); margin-bottom: 15px; line-height: 1.6; }
.testimonial-author { font-size: 0.9rem; color: var(--text-muted); text-align: right; }

/* About Hero Section (Satori Style - Revised) */
.about-hero-section { position: relative; padding: 80px 0; background: #fff; }
.relative-z { position: relative; z-index: 1; }
.about-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 6rem; font-family: 'Lato', sans-serif; font-weight: 900; color: rgba(0,0,0,0.03); white-space: nowrap; z-index: 0; text-transform: uppercase; letter-spacing: 5px; }
.about-hero-section .section-header { position: relative; z-index: 2; border-bottom: none; }
.about-hero-content { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.about-hero-subtitle { font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; color: var(--accent-color); }
.about-hero-desc { font-size: 1.05rem; line-height: 1.8; color: var(--text-main); text-align: left; }

.about-features-section { padding: 80px 0 100px; background: var(--bg-light); border-top: 1px solid var(--border-soft); }
.about-hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.ah-card { background: #fff; border-radius: 8px; padding: 40px 20px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); color: var(--text-main); position: relative; border: 1px solid #eee; }
.ah-card::after { content: '▼'; position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); color: #e0d8db; font-size: 1rem; }
.ah-card-tag { font-size: 1rem; font-weight: bold; color: var(--primary-color); margin-bottom: 15px; }
.ah-card-tag span { font-size: 1.8rem; }
.ah-card-title { font-size: 1.3rem; font-weight: 900; line-height: 1.4; color: var(--text-main); }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .roi-grid { grid-template-columns: 1fr; }
    .about-hero-cards { grid-template-columns: 1fr; }
}

/* Chart.js Layouts */
.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

/* Global Reach */
.global-reach-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.countries-list {
    flex: 1.5;
    min-width: 300px;
}
.country-grid-wrapper {
    /* max-height and overflow removed so all countries show without scrolling */
    padding-right: 10px;
}
/* スクロールバーのデザイン（Webkit用） */
.country-grid-wrapper::-webkit-scrollbar {
    width: 6px;
}
.country-grid-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.country-grid-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.country-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: country-counter;
}
.country-grid li {
    counter-increment: country-counter;
    font-size: 0.8rem;
    color: #444;
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed #eaeaea;
}
.country-grid li::before {
    content: counter(country-counter) ".";
    color: #bbb;
    font-size: 0.75rem;
    margin-right: 6px;
    min-width: 18px;
    font-family: monospace;
}
.country-grid li .flag {
    margin-right: 6px;
    font-size: 1.2em;
}
/* ヒートマップ風の色分け（ランキングによるさりげない変化） */
.country-grid li:nth-child(-n+10) { font-weight: 500; color: #222; }
.country-grid li:nth-child(n+11):nth-child(-n+20) { color: #555; }
.country-grid li:nth-child(n+21) { color: #777; }
.country-grid li:nth-child(-n+10)::before { color: #d9a04a; font-weight: bold; }

/* 地域別のアンダーラインと番号の色（円グラフの色とリンク） */
.country-grid li.region-jp { border-bottom: 2px solid #e63946; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-jp::before { color: #e63946; }
.country-grid li.region-asia { border-bottom: 2px solid #f4a261; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-asia::before { color: #f4a261; }
.country-grid li.region-na { border-bottom: 2px solid #457b9d; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-na::before { color: #457b9d; }
.country-grid li.region-eu { border-bottom: 2px solid #2a9d8f; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-eu::before { color: #2a9d8f; }
.country-grid li.region-af { border-bottom: 2px solid #1d3557; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-af::before { color: #1d3557; }
.country-grid li.region-other { border-bottom: 2px solid #a8dadc; transition: background-color 0.2s, transform 0.2s; }
.country-grid li.region-other::before { color: #a8dadc; }
/* チャートホバー連動: アクティブ地域のリスト項目を強調表示 */
.country-grid li.region-highlight {
    background-color: rgba(230, 57, 70, 0.12);
    transform: translateX(3px);
    font-weight: 700;
}
.country-grid li.region-jp.region-highlight { background-color: rgba(230, 57, 70, 0.15); }
.country-grid li.region-asia.region-highlight { background-color: rgba(244, 162, 97, 0.18); }
.country-grid li.region-na.region-highlight { background-color: rgba(69, 123, 157, 0.15); }
.country-grid li.region-eu.region-highlight { background-color: rgba(42, 157, 143, 0.15); }
.country-grid li.region-af.region-highlight { background-color: rgba(29, 53, 87, 0.15); }
.country-grid li.region-other.region-highlight { background-color: rgba(168, 218, 220, 0.35); }
.region-chart {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}
.chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px; /* Modest padding to prevent it from touching the edges */
}
.chart-container canvas {
    max-height: 350px !important; /* Allow it to grow a bit taller */
}

/* ROI Chart */
.roi-chart-wrapper {
    margin-top: 20px;
    position: relative;
}
.roi-highlight {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.roi-highlight .badge {
    background: var(--accent-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}
.roi-highlight .highlight-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #444;
}

/* Daigakuin Charts */
.daigakuin-charts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.daigakuin-chart-box {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}
.daigakuin-chart-box.highlight-box {
    background: #fff;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

@keyframes slideIn {
    from { width: 0; }
}

/* ==========================================================
   WORKFLOW POINT POPUPS
   ========================================================== */
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4)); }
}

.flow-step { position: relative; text-align: center; } /* Ensure relative positioning and centered text */

.point-trigger-btn {
    position: absolute;
    top: 5px;
    left: 10px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-bottom: 3px solid #7a0d31; /* 3D effect (darker accent) */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    z-index: 10;
    animation: pulseGlow 2s infinite;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.1s ease;
}
.point-trigger-btn:active {
    border-bottom: 1px solid #b0b0b0;
    transform: translateY(2px);
    animation: none;
}

.point-tooltip {
    position: absolute;
    top: 40px; /* Just below the button */
    left: 20px; /* Anchor horizontally near button center */
    width: max-content;
    max-width: 220px;
    background: #fff;
    color: var(--primary-color);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); /* Stronger shadow */
    border-right: 3px solid var(--accent-color); /* Changed accent border to right side since it opens left */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-85%) translateY(-10px); /* Expand mostly to the left */
    transition: all 0.2s ease;
    z-index: 9999; /* Topmost layer */
    pointer-events: none;
    text-align: left;
}

/* Tooltip tail */
.point-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px; /* Tail on the right side to point back at the button */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

/* When active */
.point-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-85%) translateY(0);
    pointer-events: auto;
}

/* ==========================================================
   MOBILE RESPONSIVE STYLES (Added for smartphone support)
   ========================================================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll globally */
    html, body { overflow-x: hidden; width: 100%; }

    .pc-only-points { display: none !important; }

    /* 1. Header */
    .header-right .btn { display: none; }
    .header { padding: 15px 0; }
    .header-logo { height: 35px; }

    /* 2. Hero — 縦長端末でも空白が広がりすぎないよう、コンテンツの自然高さに任せる */
    .hero-cinematic {
        position: relative;
        height: auto;
        min-height: 560px;       /* iPhone SE等の小型端末で見栄えする最小値 */
        padding-bottom: 0;
        display: flex;
        align-items: stretch;
    }
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        min-height: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .main-visual {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .hero-content-overlay {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 0;
        padding-top: 80px;
        padding-bottom: 40px;
        justify-content: flex-start;
    }
    .cinematic-brand-headline { margin-bottom: 15px; }
    .cinematic-brand-headline .brand-init { font-size: 4rem !important; line-height: 0.9; }
    .cinematic-brand-headline .brand-rest { font-size: 1.8rem !important; }
    .cinematic-sub { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.4; word-break: keep-all; }
    
    .cinematic-news-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        background: rgba(0,0,0,0.5);
        padding: 15px;
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }
    /* EN版はニュースティッカーが無いので、ヒーローを詰める */
    html[lang="en"] .hero-cinematic {
        min-height: 0;
    }
    html[lang="en"] .hero-content-overlay {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    html[lang="en"] .cinematic-sub {
        margin-bottom: 0;
    }
}

/* タブレット (iPad等) のヒーロー文字を大きく */
@media (min-width: 769px) and (max-width: 1024px) {
    .cinematic-brand-headline .brand-init {
        font-size: clamp(95px, 13vw, 160px) !important;
    }
    .cinematic-brand-headline .brand-rest {
        font-size: clamp(38px, 5.5vw, 60px) !important;
    }
    .cinematic-sub {
        font-size: clamp(1.4rem, 2.6vw, 1.8rem) !important;
    }

    /* === 入試業務フロー: iPadでも横にはみ出さないよう、スマホ同様の2カラムレイアウトに === */
    .workflow-section { padding: 60px 0; overflow: hidden; }
    .flow-comparison-container {
        width: 100%;
        padding-bottom: 10px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .flow-comparison-container .flow-row:first-child { display: none !important; }
    /* 矢印（before→after間）はiPad縦並びでは不要なので非表示にして、TAO列をBefore列の右に並べる */
    .flow-arrow-anchor { display: none !important; }
    .flow-row {
        min-width: 0 !important;
        flex-direction: column !important;
        margin-top: 0 !important;
        border-radius: 10px !important;
        overflow: hidden;
        background: #f9f9f9;
        margin-bottom: 0 !important;
    }
    .flow-row.before { grid-column: 1; }
    .flow-row.after { grid-column: 2; background: #fff5f8; }
    .flow-label {
        width: 100% !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        padding: 10px !important;
        font-size: 1.1rem !important;
        text-align: center;
        border-radius: 0 !important;
    }
    .flow-steps {
        flex-direction: column !important;
        width: 100%;
        padding: 10px;
        gap: 10px !important;
        background: transparent !important;
    }
    .flow-step {
        position: relative !important;
        font-size: 0.92rem !important;
        padding: 32px 10px 12px !important;
        clip-path: none !important;
        margin-bottom: 0 !important;
        border-radius: 6px !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        text-align: center !important;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .flow-step:first-child,
    .flow-step:last-child {
        clip-path: none !important;
        padding: 32px 10px 12px !important;
        border-radius: 6px !important;
    }
    /* 各ステップ上部のステージ名ピル（モバイルと同じ::beforeを再利用） */
    .flow-step::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #fff;
        background: #4a5568;
        padding: 2px 10px;
        border-radius: 10px;
        white-space: nowrap;
        line-height: 1.3;
    }
    .flow-step:nth-child(1)::before { content: "出願"; }
    .flow-step:nth-child(2)::before { content: "必要書類提出"; }
    .flow-step:nth-child(3)::before { content: "受験票発行"; }
    .flow-step:nth-child(4)::before { content: "評価・判定"; }
    .flow-step:nth-child(5)::before { content: "合否発表"; }
    .flow-step:nth-child(6)::before { content: "入学手続き"; }
    html[lang="en"] .flow-step:nth-child(1)::before { content: "Application"; }
    html[lang="en"] .flow-step:nth-child(2)::before { content: "Documents"; }
    html[lang="en"] .flow-step:nth-child(3)::before { content: "Exam Ticket"; }
    html[lang="en"] .flow-step:nth-child(4)::before { content: "Evaluation"; }
    html[lang="en"] .flow-step:nth-child(5)::before { content: "Results"; }
    html[lang="en"] .flow-step:nth-child(6)::before { content: "Enrollment"; }
    .flow-row.after .flow-step::before { background: var(--accent-color); }
    .badge-none {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }
    /* PC専用のポイントカードは非表示（iPadではフローが縦2列に変わるので不要） */
    .pc-only-points { display: none !important; }
    /* iPadでは「!」ヒントボタンも表示（フローが2列縦になるので必要） */
    .point-trigger-btn {
        display: flex !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 0.95rem !important;
        top: 6px !important;
        left: 6px !important;
        border-bottom-width: 2px !important;
    }
    .point-tooltip { display: block; }
}

/* スマホ用CSS再開 — 以下のルールが誤って iPad限定media queryに入っていたのを修復 */
@media (max-width: 768px) {
    /* スマホではニュースを2件まで表示してヒーローを縦に詰める */
    .cinematic-news-list li:nth-child(n+3) { display: none; }
    .cinematic-news-list li { margin-bottom: 10px; }
    .cinematic-news-list .news-title { font-size: 0.9rem; line-height: 1.4; }

    /* 3. Philosophy */
    .philosophy-section { padding: 60px 0 80px 0; } /* Reduced padding-bottom from 240px since we added an image */
    /* .philosophy-map-bg already handled above */
    .philosophy-text-block { max-width: 100%; text-align: left; }
    .philosophy-headline { font-size: 1.4rem; }
    .philosophy-lead { font-size: 1.1rem; }
    .philosophy-tao-marker { right: 50%; top: auto; bottom: 40px; transform: translateX(50%); width: 140px; height: 140px; }
    
    /* 4. Story (Challenges) */
    .story-section { padding: 0; }
    .story-tabs { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .story-tab { flex: 1 1 45%; justify-content: center; margin-bottom: 0; }
    .panel-grid { grid-template-columns: 1fr; gap: 30px; }
    .panel-divider { display: none; }
    .panel-col { padding: 20px; }
    .panel-bg-num { font-size: 8rem; right: 10px; top: -10px; }
    
    /* 5. Workflow — スマホは2カラム比較を維持、各ステップ上部にステージ名ラベルを表示 */
    .workflow-section { padding: 40px 0; overflow: hidden; }
    .flow-comparison-container {
        width: 100%;
        padding-bottom: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* ヘッダー行（PC用の上部ピル）はスマホでは非表示。代わりに各ステップに::beforeでステージ名を出す */
    .flow-comparison-container .flow-row:first-child { display: none; }

    .flow-row {
        min-width: 0 !important;
        flex-direction: column !important;
        margin-top: 0 !important;
        border-radius: 10px !important;
        overflow: hidden;
        background: #f9f9f9;
        margin-bottom: 0 !important;
    }
    .flow-row.before { grid-column: 1; }
    .flow-row.after { grid-column: 2; background: #fff5f8; }

    .flow-label {
        width: 100% !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        padding: 8px !important;
        font-size: 0.95rem !important;
        text-align: center;
        border-radius: 0 !important;
    }

    .flow-steps {
        flex-direction: column !important;
        width: 100%;
        padding: 8px;
        gap: 8px !important;
        background: transparent !important;
    }

    /* 各ステップを縦並びカードに。矢印形クリップは解除、上部にステージ名表示 */
    .flow-step {
        position: relative !important;
        font-size: 0.78rem !important;
        padding: 28px 8px 10px 8px !important;
        clip-path: none !important;
        margin-bottom: 0 !important;
        border-radius: 6px !important;
        line-height: 1.35 !important;
        height: auto !important;
        min-height: 92px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        text-align: center !important;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .flow-step:first-child,
    .flow-step:last-child {
        clip-path: none !important;
        padding: 28px 8px 10px 8px !important;
        border-radius: 6px !important;
    }

    /* 各ステップ上部にステージ名ピルを ::before で挿入（HTMLに変更なし） */
    .flow-step::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #fff;
        background: #4a5568;
        padding: 2px 8px;
        border-radius: 10px;
        white-space: nowrap;
        line-height: 1.3;
    }
    .flow-step:nth-child(1)::before { content: "出願"; }
    .flow-step:nth-child(2)::before { content: "必要書類提出"; }
    .flow-step:nth-child(3)::before { content: "受験票発行"; }
    .flow-step:nth-child(4)::before { content: "評価・判定"; }
    .flow-step:nth-child(5)::before { content: "合否発表"; }
    .flow-step:nth-child(6)::before { content: "入学手続き"; }

    /* 英語版用ステージ名 */
    html[lang="en"] .flow-step:nth-child(1)::before { content: "Application"; }
    html[lang="en"] .flow-step:nth-child(2)::before { content: "Documents"; }
    html[lang="en"] .flow-step:nth-child(3)::before { content: "Exam Ticket"; }
    html[lang="en"] .flow-step:nth-child(4)::before { content: "Evaluation"; }
    html[lang="en"] .flow-step:nth-child(5)::before { content: "Results"; }
    html[lang="en"] .flow-step:nth-child(6)::before { content: "Enrollment"; }

    /* TAOカラムはステージ名ピルもアクセント色で差別化 */
    .flow-row.after .flow-step::before { background: var(--accent-color); }

    .badge-none {
        font-size: 0.62rem !important;
        padding: 2px 6px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }

    /* ヒント（💡）ボタンとツールチップはスマホでも機能するように位置調整 */
    .point-trigger-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.85rem !important;
        top: 4px !important;
        left: 4px !important;
        border-bottom-width: 2px !important;
    }
    .point-tooltip {
        max-width: 180px;
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .flow-arrow-anchor { display: none !important; }

    .flow-points {
        grid-column: 1 / -1;
        flex-direction: column !important;
        min-width: 100% !important;
        gap: 15px !important;
        margin-top: 15px !important;
    }
    .point-col { padding: 20px !important; }
    .point-title { font-size: 0.85rem !important; margin-bottom: 10px !important; }
    .point-col p { font-size: 0.85rem !important; line-height: 1.5 !important; }

    /* 6. Stats (Force Compress to fit screen) */
    .stats-section { padding: 40px 0; overflow: hidden; }
    .stats-row-2col { flex-direction: column; gap: 30px; }
    .stat-box { width: 100% !important; min-width: 0 !important; padding: 20px 8px !important; word-break: break-word; overflow-wrap: anywhere; }
    /* スマホでは stat-box と benefits-section の親 .container 横パディングを縮めて表示幅を広げる */
    .stats-section .container,
    .benefits-section .container { padding: 0 10px; }
    .global-reach-content { flex-direction: column; padding: 15px !important; gap: 15px !important; }
    .countries-list { min-width: 100% !important; flex: 1 !important; max-width: 100%; overflow: hidden; }
    .country-grid { grid-template-columns: repeat(3, 1fr) !important; max-width: 100%; }
    .region-chart { min-width: 100% !important; }
    /* Chart.js のレスポンシブ化: コンテナに固定高さを与えて潰れ/縦長を回避 */
    .chart-container {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        max-height: 50vw !important;
    }
    .chart-container canvas {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    .region-chart canvas, .daigakuin-charts-wrapper canvas { max-width: 100% !important; height: auto !important; }
    .daigakuin-charts-wrapper { flex-direction: column; gap: 15px !important; }
    .daigakuin-chart-box { width: 100% !important; min-width: 0 !important; padding: 15px !important; box-sizing: border-box; }
    
    /* 7. Benefits / Testimonials */
    .benefits-section { padding: 60px 0; }
    .section-inner { flex-direction: column; }
    .testimonial-bubble { width: 75%; margin-left: 0; margin-right: auto; margin-bottom: 20px; padding: 18px; }
    .testimonial-bubble.right { margin-left: auto; margin-right: 0; }
    .testimonial-text { font-size: 0.9rem; line-height: 1.55; }
    .testimonial-author { font-size: 0.75rem; }
    .infographic-panel { padding: 20px 10px; }
    .before-after-graph { transform: none; margin-bottom: 30px; padding-bottom: 60px !important; }
    /* スマホでは円バブルを縮小して画面端からの被りを回避（深いネストに対応） */
    .before-after-graph div[style*="border-radius: 50%"] {
        width: 100px !important;
        height: 100px !important;
        top: -110px !important;
        border-width: 3px !important;
        gap: 0 !important;
    }
    .before-after-graph div[style*="border-radius: 50%"] > span:nth-child(1) { font-size: 0.7rem !important; }
    .before-after-graph div[style*="border-radius: 50%"] > span:nth-child(2) { font-size: 1.5rem !important; }
    .before-after-graph div[style*="border-radius: 50%"] > span:nth-child(2) > span { font-size: 0.75rem !important; }
    .before-after-graph div[style*="border-radius: 50%"] > span:nth-child(3) { font-size: 0.9rem !important; }
    .graphs-container { gap: 20px; }
    
    /* 8. FAQ */
    .faq-section { padding: 60px 0; }
    .faq-section .section-inner.reverse { flex-direction: column; }
    .faq-item { margin-bottom: 10px; }
    .faq-question { padding: 15px; font-size: 0.95rem; }
    .faq-answer p { padding: 0 15px 15px; font-size: 0.9rem; }
    
    /* General Settings */
    .section-title { font-size: 1.8rem; }
    .section-header p { font-size: 0.95rem; line-break: strict; word-break: keep-all; overflow-wrap: normal; text-wrap: pretty; }
}

/* Override FAQ section background to match philosophy section */
.faq-section { background: #fef5f7 !important; }


/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-right: 15px;
}
.lang-switch a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.lang-switch a:hover {
    color: var(--primary-color);
}
.lang-switch a.active {
    color: var(--primary-color);
}
.lang-switch .divider {
    color: #ccc;
    font-weight: 300;
}


/* --- New LP Form Styling --- */
.lp-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #cd4b6b; /* Softer red */
    padding: 50px 40px;
    border-radius: 4px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.lp-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}



.lp-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.lp-form-group {
    margin-bottom: 25px;
}

.lp-form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.lp-form-control {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.lp-form-control::placeholder {
    color: #999;
}

.lp-form-control:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.lp-form-agreement {
    margin-top: 40px;
    margin-bottom: 30px;
}

.lp-agreement-text {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 15px;
}

.lp-agreement-link {
    color: #fff;
    text-decoration: underline;
}

.lp-agreement-link:hover {
    text-decoration: none;
}

.lp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.lp-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lp-checkbox-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-lp-submit {
    width: 100%;
    padding: 16px;
    background-color: #333333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-lp-submit:hover {
    background-color: #444444;
}

/* --- Premium Contact Form Styling --- */
.premium-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--accent-color, #b71549);
}

.premium-contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.premium-contact-desc {
    color: #666;
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.premium-contact-wrapper .form-group {
    display: flex;
    flex-direction: column;
}

.premium-contact-wrapper .form-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.req-badge {
    background-color: var(--accent-color, #b71549);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.opt-badge {
    background-color: #94a3b8;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.premium-contact-wrapper .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.premium-contact-wrapper .form-control:focus {
    outline: none;
    border-color: var(--accent-color, #b71549);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(183, 21, 73, 0.1);
}

.premium-contact-wrapper .form-control::placeholder {
    color: #94a3b8;
}

textarea.premium-contact-wrapper .form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.contact-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: #475569;
    cursor: pointer;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.contact-checkbox-label:hover {
    background: #f1f5f9;
}

.contact-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color, #b71549);
}

.contact-agreement {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.contact-agreement label {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.contact-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color, #b71549);
}

.btn-contact-submit {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 18px 30px;
    background-color: var(--accent-color, #b71549);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(183, 21, 73, 0.3);
}

.btn-contact-submit:hover {
    background-color: #9a123e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 21, 73, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .premium-contact-wrapper {
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-checkbox-group {
        grid-template-columns: 1fr;
    }
}

.premium-contact-wrapper .form-group { margin-bottom: 24px; }
.premium-contact-wrapper .form-control { width: 100%; box-sizing: border-box; }

/* --- Privacy Modal --- */
.privacy-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.privacy-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.privacy-modal {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}
.privacy-modal-backdrop.active .privacy-modal {
    transform: translateY(0);
}
.privacy-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.privacy-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #1a202c);
    margin: 0;
}
.privacy-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}
.privacy-modal-close:hover {
    color: #ef4444;
}
.privacy-modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}
.privacy-modal-body h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color, #b71549);
    padding-left: 10px;
}
.privacy-modal-body p {
    margin-bottom: 15px;
}

/* --- Fat Footer Styles --- */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}
.footer-brand {
    flex: 1 1 300px;
    text-align: left;
}
.footer-logo {
    margin-bottom: 20px;
}
.footer-desc {
    font-size: 0.85rem;
    text-align: left;
    color: #aaa;
    line-height: 1.6;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    flex: 2 1 600px;
    justify-content: flex-start;
}
.footer-col {
    display: flex;
    text-align: left;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}
.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 2px solid #b71549;
    padding-bottom: 8px;
    display: inline-block;
}
.footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.footer-col a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.footer-col a:hover .footer-link-en {
    color: #fff;
}
/* 英語サブラベル: 日本語のリンクに添えられる控えめなeyebrow */
.footer-link-en {
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #666;
}
@media (max-width: 768px) {
    .footer-nav {
        justify-content: flex-start;
        gap: 30px;
    }
}

/* --- Desktop Header Nav Styles --- */
.header-nav-desktop {
    display: none;
    align-items: center;
    gap: 25px;
    margin-left: 30px;
    margin-right: auto;
}
.header-nav-desktop a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s;
}
.header-nav-desktop a:hover {
    color: #b71549;
}
@media (min-width: 1025px) {
    .header-nav-desktop {
        display: flex;
    }
    .hamburger {
        display: none !important;
    }
    .header-right {
        gap: 15px;
    }
}

@media (min-width: 1025px) {
    .footer-logo img {
        height: 85px !important;
    }
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: var(--bg-light);
    padding-top: 80px;
    border-bottom: 1px solid #eee;
}
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}


.page-header-dark .page-title {
    color: #fff !important;
}
.page-header-dark .page-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Header Button Specific Styles */
.header-right .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-header-sub {
    color: var(--accent-color, #b71549) !important;
    border: 2px solid var(--accent-color, #b71549) !important;
    background: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(183, 21, 73, 0.15) !important;
}
.btn-header-sub:hover {
    color: #fff !important;
    background: var(--accent-color, #b71549) !important;
}
.btn-header-main {
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(183, 21, 73, 0.3) !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}
@media (max-width: 1200px) {
    .header-right .btn-header-sub {
        display: none !important; /* Hide sub buttons on slightly smaller screens to save space */
    }
}
@media (max-width: 1024px) {
    .header-right .btn-header-sub {
        display: none !important; 
    }
    .header-right .btn-header-main {
        display: none !important; /* Will show in hamburger menu */
    }
}

/* Responsive Corporate Table Fix */
@media (max-width: 768px) {
    .table-width {
        table-layout: auto !important;
    }
    .table-width td {
        font-size: 0.85rem !important;
        padding: 10px !important;
    }
    .table-width td.table-upper {
        width: auto !important;
        white-space: nowrap !important;
    }
}


/* ==========================================================================
   News Archive / List Page Styles
   ========================================================================== */

.news-archive-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.category-nav li a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav li a:hover,
.category-nav li a.active {
    background: var(--accent-color, #b71549);
    color: #fff;
    border-color: var(--accent-color, #b71549);
}

/* SP: 2列グリッドで均等に並べる */
@media (max-width: 768px) {
    .category-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .category-nav li {
        width: 100%;
    }
    .category-nav li a {
        display: block;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

/* News List Item */
.news-list-page {
    padding: 0;
    margin: 0;
}

.news-list-page li {
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 22px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background-color 0.2s;
}

.news-list-page li:first-child {
    border-top: 1px solid #f0f0f0;
}

.news-list-page li:hover {
    background-color: #fdfdfd;
}

/* News Meta (Date + Tag) */
.news-meta-block {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px; /* enough space for date and tag */
    flex-shrink: 0;
}

.news-date-block {
    font-size: 0.85rem;
    color: #999;
    font-family: "Lato", sans-serif;
    letter-spacing: 0.02em;
}

.news-tag-block {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.75rem;
    color: #fff;
    background: #1a202c; /* Default dark background for tags */
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

/* News Title */
.news-body-block {
    flex-grow: 1;
}

.news-body-block a {
    font-size: 0.98rem;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: color 0.2s;
}

.news-body-block a:hover {
    color: var(--accent-color, #b71549);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1a202c;
}

.pagination .page-numbers.current {
    background: var(--accent-color, #b71549);
    border-color: var(--accent-color, #b71549);
    color: #fff;
}

.pagination .next, .pagination .prev {
    width: auto;
    padding: 0 15px;
}

/* Bottom Banners for News */
.news-bottom-banners {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .news-list-page li {
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
    }
    
    .news-meta-block {
        width: 100%;
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .news-body-block a {
        font-size: 0.95rem;
    }
}


/* ==========================================================================
   Users (Case Studies / Clients) Page Styles
   ========================================================================== */
.user-intro {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 50px;
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}
.logo-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.logo-card .logo-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 90px;
}
.logo-card .logo-img img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
}
.logo-card .logo-name {
    margin: 0;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #eaeaea;
    background: #fafafa;
    line-height: 1.3;
}
.user-cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 50px 20px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}
.user-cta-block p {
    color: #333;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .logo-card .logo-img {
        padding: 10px;
        min-height: 70px;
    }
    .logo-card .logo-img img {
        max-height: 50px;
    }
    .logo-card .logo-name {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
}

/* ==========================================================================
   ABOUT Page Premium Styles
   ========================================================================== */

/* Hero Section */
.about-hero-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}
.about-hero-image img {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.5s ease;
}
.about-hero-image:hover img {
    transform: scale(1.02);
}

/* Feature & Function Cards */
.premium-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(183, 21, 73, 0.1);
}
.premium-card h3 {
    margin-top: 0;
    color: #1a1a1a;
}
.premium-card p {
    margin-bottom: 0;
    flex-grow: 1;
}

/* Function Icons */
.function-icon {
    display: flex;
    align-items: flex-end;
    margin-bottom: 25px;
    height: 60px;
}
.function-icon img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Badge */
.badge-new {
    background-color: var(--primary-color, #b71549);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    vertical-align: middle;
}



/* NEWS LIVE DESIGN REPLICATION */
.news-archive-wrapper .newslist {
    background: transparent;
    border-top: 1px solid #ddd;
    margin: 0;
    padding: 0;
    list-style: none;
}
.news-archive-wrapper .newslist li {
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding: 0;
}
.news-archive-wrapper .newslist li a {
    display: block;
    padding: 24px 60px 24px 16px;
    color: #333;
    position: relative;
    text-decoration: none;
    transition: background 0.2s ease;
}
.news-archive-wrapper .newslist li a:hover {
    background: #f9f9f9;
    color: #333;
}
.news-archive-wrapper .newsmess {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* tight gap between lines */
}
.news-archive-wrapper .newsdate {
    margin: 0 16px 0 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}
.news-archive-wrapper .newscatain {
    font-size: 0.8rem;
    padding: 4px 16px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    margin: 0;
    background: transparent;
}
.news-archive-wrapper .newscont {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Arrow */
.news-archive-wrapper .newslist li a:after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b71549' stroke-width='1.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M0 12h22M15 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat right center;
    background-size: contain;
    transition: right 0.2s ease;
}
.news-archive-wrapper .newslist li a:hover:after {
    right: 15px;
}

@media (max-width: 767px) {
    .news-archive-wrapper .newslist li a { padding: 20px 16px; }
    .news-archive-wrapper .newslist li a:after { display: none; }
    .news-archive-wrapper .newscont { font-size: 0.95rem; }
}

/* SINGLE NEWS DETAIL PAGE */
.newsarea {
    background: #f4f4f4;
    padding: 60px 20px 80px;
}
.newsdetcont {
    background: transparent;
    padding: 0;
}
.newsdetcont .newsdetin {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    padding: 80px 100px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.newsdetcont .newsmess {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.newsdetcont .newsdate {
    margin: 0 16px 0 0;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
}
.newsdetcont .newscatain {
    font-size: 0.85rem;
    padding: 4px 16px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    margin: 0;
    font-weight: 600;
    border-radius: 4px;
}
.newsdetcont .newsdethd {
    line-height: 1.5;
    font-size: 1.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 40px;
    color: #222;
}
.newsdetcont .newsdettxt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
/* 長いURL等が画面外にはみ出ないよう、newsdetin 配下全要素に改行許可を伝播
   the_content() で <p> がネストされて DOM 構造が変わっても確実に適用 */
.newsdetin,
.newsdetin *,
.newsdetcont,
.newsdetcont .newsdettxt,
.newsdetcont .newsdettxt p,
.newsdetcont .newsdettxt li,
.newsdetcont .newsdettxt div {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
/* リンク（URL文字列）: 青色で表示、URLは必ず途中で改行可能に */
.newsdetin a,
.newsdetcont a,
.newsdetcont .newsdettxt a {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}
.newsdetin a:hover,
.newsdetcont a:hover,
.newsdetcont .newsdettxt a:hover {
    color: #0d47a1;
}

/* 記事コンテナ自体に overflow 制御を入れ、子要素のはみ出しを完全に防ぐ */
.newsarea,
.newsdetcont,
.newsdetin,
.newsdettxt {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* 記事内の画像・YouTube埋め込み・動画は画面幅に収まるよう最大幅100% */
.newsdettxt img,
.newsdettxt video,
.newsdettxt embed,
.newsdettxt object,
.newsdettxt iframe,
.newsdetin img,
.newsdetin video,
.newsdetin embed,
.newsdetin object,
.newsdetin iframe {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
/* YouTube等の埋め込み iframe: アスペクト比は親ラッパーで担保するため iframe 自体には付けない
   width:100% だけ強制し、height はWPデフォルトのままにする */
.newsdettxt iframe,
.newsdetin iframe {
    width: 100% !important;
    display: block;
}
/* WordPress ブロックエディタの埋め込みラッパーと figure */
.newsdettxt .wp-block-embed,
.newsdettxt .wp-block-embed__wrapper,
.newsdettxt figure,
.newsdettxt figure.wp-block-image {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}
/* WPが付ける aspect-ratio クラスで動画を 16:9 維持 */
.newsdettxt .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.newsdettxt .wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
.newsdetcont .newsdettxt a:hover {
    color: var(--accent-color);
}

@media (max-width: 767px) {
    .newsarea { padding: 40px 15px; }
    .newsdetcont { padding: 0; }
    .newsdetcont .newsdetin { padding: 40px 25px; }
    .newsdetcont .newsdethd { font-size: 1.4rem; padding-bottom: 20px; margin-bottom: 30px; }
    .newsdetcont .newsdettxt { font-size: 1rem; }
}

/* PREVENT LINE BREAK ON PC FOR ABOUT HERO SUBTITLE */
@media (min-width: 768px) {
    .about-hero-subtitle {
        white-space: nowrap;
    }
}

/* REVERTED STORY SECTION CSS */
.story-top { padding: 80px 0 60px; background: #fff; }
.pain-points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pain-card { 
    background: #fff; padding: 40px 30px; border-radius: 8px; text-align: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative; border: 1px solid #eee; 
}
.pain-badge { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg); 
    background: #999; color: #fff; padding: 6px 20px; border-radius: 4px; 
    font-weight: bold; font-size: 0.95rem; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.pain-text { font-size: 1.1rem; font-weight: 700; color: #444; line-height: 1.6; }

.story-bottom { padding: 60px 0 80px; background: #fdf6f7; position: relative; }
.story-bottom::before {
    content: ""; position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    border-width: 25px 30px 0 30px; border-style: solid; border-color: #fff transparent transparent transparent;
}
.solution-heading { text-align: center; font-size: 2.2rem; font-weight: 700; color: #333; margin-bottom: 50px; }
.solution-heading .highlight-box {
    background: var(--accent-color); color: #fff; padding: 5px 15px; display: inline-block; margin: 0 5px;
}
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.solution-card {
    background: #fff; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; overflow: hidden;
}
.sol-top-text { padding: 30px 20px; text-align: center; font-size: 1.05rem; font-weight: 700; color: #333; flex: 1; line-height: 1.6;}
.sol-bottom-block {
    background: var(--accent-color); color: #fff; text-align: center;
    padding: 15px 20px; font-size: 0.95rem; font-weight: 700; line-height: 1.5;
}
@media (max-width: 768px) {
    .pain-points-grid, .solutions-grid { grid-template-columns: 1fr; gap: 24px; }
    .solution-heading { font-size: 1.8rem; line-height: 1.5; }

    /* HTMLに埋め込まれている <br>（意図された自然な改行位置）は維持する */
    /* 日本語のCJK改行ルールに従って自然に折り返す */
    .pain-text,
    .sol-top-text,
    .sol-bottom-block,
    .section-title,
    .solution-heading,
    .testimonial-text,
    .testimonial-author {
        line-break: strict;       /* 禁則処理（行頭に句読点を置かない等） */
        word-break: normal;       /* 日本語のCJK標準ルール */
        overflow-wrap: normal;    /* 文字単位の強制折り返しを禁止 */
    }

    /* セクション見出し: 文字単位の強制改行を禁止し、<wbr>でのみ改行 */
    .section-title,
    .solution-heading {
        word-break: keep-all;
        overflow-wrap: normal;
        text-wrap: balance;
    }

    /* TAOならすべての[課題を解決]！— ハイライト箱を新しい行に */
    .solution-heading .highlight-box {
        display: inline-block;
        margin-top: 6px;
    }

    .pain-card { padding: 32px 20px; }
    .pain-text { font-size: 1rem; }
    .sol-top-text { font-size: 1rem; padding: 24px 18px; }
    .sol-bottom-block { font-size: 0.9rem; padding: 14px 16px; }
}

/* 狭い端末ではハイライト箱を独立行に */
@media (max-width: 480px) {
    .solution-heading {
        font-size: 1.8rem;
    }
    .solution-heading .highlight-box {
        display: block;
        margin: 8px auto 0;
        width: max-content;
        max-width: 90%;
    }
}

/* PAGE TITLE MOBILE SIZE ADJUSTMENT — 英字小 / 日本語大の階層を保つ */
@media (max-width: 768px) {
    .page-header { padding: 40px 16px 44px; }
    .page-title {
        font-size: 0.72rem;
        letter-spacing: 0.24em;
        margin-bottom: 10px;
    }
    .page-subtitle {
        font-size: 1.45rem;
    }
}

/* ==========================================================
   PAGE-WIDE TEXT WRAPPING (mobile)
   方針:
   - keep-all は <wbr> を明示挿入した一部の短い見出しにだけ適用
   - その他の見出し・本文は日本語標準のCJK改行ルールに任せる
   - これによりはみ出しや不自然な改行を防ぐ
   ========================================================== */
@media (max-width: 768px) {
    /* 強い改行制御（<wbr>が挿入されている短い見出し限定）:
       これらは事前に <wbr> を入れているので word-break: keep-all で問題ない */
    .section-title,
    .solution-heading {
        word-break: keep-all;
        overflow-wrap: normal;
        text-wrap: balance;
    }
    /* FAQ質問: 「Q.」が孤立行にならないよう、CJK標準改行 + pretty */
    .faq-question {
        word-break: normal;
        overflow-wrap: normal;
        line-break: strict;
        text-wrap: pretty;
    }
    /* それ以外のサブタイトル/見出し/本文: 標準のCJK改行で自然に折返し */
    .page-title,
    .page-subtitle,
    .page-header p,
    .archive-header p,
    .section-header p,
    .philosophy-headline,
    .case-detail-title,
    .case-detail-comment,
    .case-detail-body,
    .case-detail-body p,
    .newsdethd,
    .newsdettxt,
    .newsdettxt p,
    .newscont,
    .about-hero-subtitle,
    .about-hero-desc,
    .premium-contact-desc,
    .privacy-content,
    .privacy-content p,
    .privacy-content h3,
    .privacy-content h4,
    main article p,
    main .post-content p,
    main .entry-content p {
        word-break: normal;
        overflow-wrap: normal;
        line-break: strict;
        text-wrap: pretty;
    }

    /* ----- 個別ページの過大なインライン余白・フォントを上書き ----- */

    /* About: hero subtitle/desc */
    .about-hero-subtitle { font-size: 1.15rem !important; line-height: 1.55 !important; }
    .about-hero-desc { font-size: 0.92rem !important; line-height: 1.85 !important; }

    /* About: function-card — タイトルは必ず1行 */
    .function-card h3 {
        font-size: 0.95rem !important;
        white-space: nowrap;
        overflow: hidden;
    }
    .function-card p { font-size: 0.88rem !important; }
    .function-card-note { font-size: 0.68rem !important; margin-left: 30px !important; }

    /* Single-case: タイトル・CTAタイトル */
    .case-detail-hero { padding: 20px !important; margin-bottom: 30px !important; }
    .case-detail-title { font-size: 1.25rem !important; }
    .case-detail-comment { font-size: 0.95rem !important; padding-left: 12px !important; }
    .case-detail-body { font-size: 0.95rem !important; margin-bottom: 40px !important; }
    .related-cases-section { padding: 50px 0 !important; }
    .related-cases-section .section-title { font-size: 1.4rem !important; }
    .cta-section { padding: 50px 0 !important; }
    .cta-section .section-title { font-size: 1.35rem !important; margin-bottom: 25px !important; }
    .cta-section .btn { min-width: 0 !important; width: 100%; padding: 16px 20px !important; font-size: 1rem !important; }
    .sliderboxtit { font-size: 0.9rem !important; }

    /* Corporate / Privacy / Security / Management: ホワイトカード余白 */
    .premium-contact-wrapper { padding: 24px 18px !important; }
    .privacy-content { font-size: 0.9rem !important; line-height: 1.75 !important; }
    .privacy-content h3 { font-size: 1.05rem !important; padding-left: 10px !important; margin-top: 30px !important; }
    .privacy-content h4 { font-size: 1rem !important; }

    /* Corporate table */
    .privacy-content .table-width td,
    .privacy-content table td { padding: 12px 10px !important; font-size: 0.88rem !important; }
    .privacy-content table td[width],
    .privacy-content .table-upper { width: 35% !important; font-size: 0.82rem !important; }

    /* News archive */
    .newslist .newscont { font-size: 0.95rem; line-height: 1.55; }
    .newslist .newsdate { font-size: 0.85rem; }
    .newslist .newscatain { font-size: 0.75rem; padding: 2px 10px; }

    /* News single */
    .newsdethd { font-size: 1.25rem; line-height: 1.5; }
    .newsdettxt { font-size: 0.95rem; line-height: 1.8; }

    /* FAQ accordion: 質問文を読みやすく */
    .faq-question { font-size: 0.92rem !important; line-height: 1.5; padding: 14px 14px 14px 16px !important; }
    .faq-answer p { font-size: 0.9rem; line-height: 1.7; }
    .faq-cat-nav { margin-bottom: 30px !important; }

    /* Contact form */
    .contact-form .form-label { font-size: 0.9rem; line-height: 1.4; }
    .checkbox-group label { font-size: 0.88rem; line-height: 1.5; }

    /* 「トップへ戻る」等の大型ボタン */
    .btn[style*="min-width: 250px"] { min-width: 0 !important; width: 100%; max-width: 320px; }
}
