/* =========================================
   Base & Reset
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Variables (Alternate Draft B)
   ========================================= */
:root {
    --bg-main: #FAFAF8; 
    --bg-alt: #EFEBE5;
    --text-primary: #2C2927; /* Darker, higher contrast */
    --text-muted: #665F5A;    /* Darker muted text */
    
    /* Adjusted for better contrast while keeping the calm tone */
    --accent-business: #4C7373; /* 落ち着いたブルーグリーン (Darkened) */
    --accent-parenting: #B36842; /* 温かいオレンジ (Darkened) */
    --accent-student: #5C7596;   /* くすみブルー (Darkened) */
    --accent-teacher: #796A87;   /* 優しいくすみラベンダー (Darkened) */
    --accent-rina: #667A99;      /* 情熱を秘めたブルーグレー */
    --accent-tsubasa: #8C7B96;   /* 静かな孤独のパープル */
    
    --radius-round: 30px;
    --radius-card: 16px;
    --font-alt: 'Zen Kaku Gothic New', sans-serif;
    
    /* Variable for Theme Support */
    --bg-card: #FFFFFF;
    --border-color: #EEEEEE;
    --shadow-rgb: 0, 0, 0;

    /* Surface Colors */
    --surface-1: #FFFFFF;
    --surface-2: #F7F7F5;
    --surface-3: #EEEEEC;

    /* Foundations Section */
    --text-secondary: #666666;
}

[data-theme="warm"] {
    --bg-main: #FFFDFB;
    --bg-alt: #F8F2EC;
    --text-primary: #382D24; /* Darker */
    --text-muted: #6E5F54;   /* Darker */
    
    --accent-business: #68825D; /* Sage Green (Darkened) */
    --accent-parenting: #AA7345; /* Warm Clay (Darkened) */
    --accent-student: #5E778A;  /* Slate Blue (Darkened) */
    --accent-teacher: #997575;  /* Dusty Rose (Darkened) */
    
    --radius-round: 40px;
    --radius-card: 20px;
    
    --bg-card: #FFFFFF;
    --border-color: #F2EAE4;
    --shadow-rgb: 130, 110, 100;
}

body {
    font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-box { padding: 100px 0; }
.alt-bg { background-color: var(--bg-alt); }

/* Header */
.header-minimal {
    padding: 24px 0;
    position: absolute;
    width: 100%;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-business);
    letter-spacing: 0.05em;
}
.nav a {
    margin-left: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav a:hover { color: var(--text-primary); }

/* Global Navigation (Desktop) */
.global-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.global-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
}
.global-nav a:hover, .global-nav a.active { color: var(--accent-business); }

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1000;
}
.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(250, 250, 248, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
}
body.menu-open .overlay-menu { opacity: 1; pointer-events: auto; }
.overlay-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}
.overlay-menu a[href*="business"] { color: var(--accent-business); }
.overlay-menu a[href*="parenting"] { color: var(--accent-parenting); }
.overlay-menu a[href*="parenting"] { color: var(--accent-parenting); }
.overlay-menu a[href*="student"] { color: var(--accent-student); }
.overlay-menu a[href*="teacher"] { color: var(--accent-teacher); }



/* Hero Magazine-style */
.hero-mag {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F7F6 100%);
}
.hero-mag .container {
    max-width: 960px;
}
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}
.hero-text-area { width: 100%; max-width: 800px; }
.eyecatch {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-business);
    border: 1px solid var(--accent-business);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.main-copy {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
    word-break: keep-all;
    overflow-wrap: anywhere;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    /* Gradient text styling - matched with Adler Hub theme colors */
    background: linear-gradient(135deg, #68825D 0%, #8C7B96 33%, #997575 66%, #5E778A 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 12s ease infinite;
}
.sub-copy {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Voices Section */
.section-header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.section-header .title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    font-weight: 600;
    /* Gradient text styling - matched with Adler Hub theme colors */
    background: linear-gradient(135deg, #68825D 0%, #8C7B96 33%, #997575 66%, #5E778A 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 12s ease infinite;
}
.section-header .desc { color: var(--text-muted); }

.voice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.voice-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.voice-card:hover { 
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(var(--shadow-rgb), 0.06);
}

.voice-bubble {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--border-color);
}

.voice-card:nth-child(1) .voice-bubble { border-color: var(--accent-business); }
.voice-card:nth-child(2) .voice-bubble { border-color: var(--accent-parenting); }
.voice-card:nth-child(3) .voice-bubble { border-color: var(--accent-student); }
.voice-card:nth-child(4) .voice-bubble { border-color: var(--accent-teacher); }

.voice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    background: #F0F0F0;
}
.business { color: var(--accent-business); background: rgba(113, 154, 154, 0.1); }
.parenting { color: var(--accent-parenting); background: rgba(209, 163, 132, 0.1); }
.student { color: var(--accent-student); background: rgba(148, 168, 192, 0.1); }
.teacher { color: var(--accent-teacher); background: rgba(176, 168, 185, 0.1); }
.solution-hint { font-size: 0.85rem; color: var(--text-muted); }

/* Columns */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
}
.card-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.bg-business { background-color: var(--accent-business); opacity: 0.15;}
.bg-parenting { background-color: var(--accent-parenting); opacity: 0.15;}
.bg-student { background-color: var(--accent-student); opacity: 0.15;}
.bg-teacher { background-color: var(--accent-teacher); opacity: 0.15;}

.card-body { padding: 24px; }
.card-body h4 { font-size: 1.1rem; margin: 12px 0 8px; line-height: 1.5; }
.card-body .excerpt { font-size: 0.9rem; color: var(--text-muted); }

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--accent-business);
    color: var(--accent-business);
    background: transparent;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: center;
}
.btn-outline:hover {
    background: var(--accent-business);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(var(--shadow-rgb), 0.15);
    transform: translateY(-2px);
}
.btn-business { border-color: var(--accent-business); color: var(--accent-business); }
.btn-business:hover { background: var(--accent-business); color: #fff !important; }
.btn-parenting { border-color: var(--accent-parenting); color: var(--accent-parenting); }
.btn-parenting:hover { background: var(--accent-parenting); color: #fff !important; }
.btn-student { border-color: var(--accent-student); color: var(--accent-student); }
.btn-student:hover { background: var(--accent-student); color: #fff !important; }
.btn-teacher { border-color: var(--accent-teacher); color: var(--accent-teacher); }
.btn-teacher:hover { background: var(--accent-teacher); color: #fff !important; }

/* Pillar Pages General */
.page-header {
    padding: 140px 0 80px;
    text-align: center;
}
.page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    font-weight: 600;
    /* Gradient text styling - matched with Adler Hub theme colors */
    background: linear-gradient(135deg, #68825D 0%, #8C7B96 33%, #997575 66%, #5E778A 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 12s ease infinite;
}
.content-box {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
    margin-bottom: 40px;
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.intro-grid .content-box {
    margin-bottom: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.intro-grid .content-box p:last-child {
    margin-bottom: 0;
    flex-grow: 1;
}
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-grid .content-box {
        margin-bottom: 24px;
    }
}

/* Character Selection Cards (Common) */
.char-select-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-card);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.char-select-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--shadow-rgb), 0.08);
}

.char-select-card .char-label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 2px 12px;
    border-radius: 50px;
    background: #f5f5f5;
}

.char-select-card .char-img-container {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-alt);
    border: 3px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-select-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.char-select-card:hover .char-img-container {
    transform: scale(1.05);
}

.char-select-card h4 {
    margin: 8px 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.char-select-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Character Themes for Selection Cards */
.char-select-card[data-theme="business"]:hover { border-color: var(--accent-business); }
.char-select-card[data-theme="business"]:hover .char-label { color: var(--accent-business); background: rgba(113, 154, 154, 0.1); }
.char-select-card[data-theme="business"]:hover .char-img-container { border-color: var(--accent-business); }

.char-select-card[data-theme="parenting"]:hover { border-color: var(--accent-parenting); }
.char-select-card[data-theme="parenting"]:hover .char-label { color: var(--accent-parenting); background: rgba(179, 104, 66, 0.1); }
.char-select-card[data-theme="parenting"]:hover .char-img-container { border-color: var(--accent-parenting); }

.char-select-card[data-theme="student"]:hover { border-color: var(--accent-student); }
.char-select-card[data-theme="student"]:hover .char-label { color: var(--accent-student); background: rgba(92, 117, 150, 0.1); }
.char-select-card[data-theme="student"]:hover .char-img-container { border-color: var(--accent-student); }

.char-select-card[data-theme="teacher"]:hover { border-color: var(--accent-teacher); }
.char-select-card[data-theme="teacher"]:hover .char-label { color: var(--accent-teacher); background: rgba(121, 106, 135, 0.1); }
.char-select-card[data-theme="teacher"]:hover .char-img-container { border-color: var(--accent-teacher); }

@media (max-width: 600px) {
    .char-select-card .char-img-container {
        width: 100px;
        height: 100px;
    }
}

/* Counselor Letter (Intro replacement) */
.counselor-letter {
    max-width: 640px;
    margin: 0 auto;
    background: #fdfdfc;
    border-radius: 8px;
    padding: 50px 50px 60px;
    position: relative;
    box-shadow: 0 12px 32px rgba(113, 154, 154, 0.08);
    border: 1px solid #f0f0f0;
}
/* Airmail-style theme border at the top */
.counselor-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        var(--accent-parenting),
        var(--accent-parenting) 15px,
        transparent 15px,
        transparent 30px,
        var(--accent-business) 30px,
        var(--accent-business) 45px,
        transparent 45px,
        transparent 60px
    );
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.counselor-letter p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}
.counselor-letter p:last-child {
    margin-bottom: 0;
}

.content-box h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    font-weight: 600;
}
.content-box h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 24px;
    border-radius: 4px;
}
/* Theme Overrides for content-box marker & labels */
.theme-business .content-box h3, .theme-business .page-title, .theme-business .content-box h3::before, .theme-business .tag.business { color: var(--accent-business); background-color: var(--accent-business); }
.theme-parenting .content-box h3, .theme-parenting .page-title, .theme-parenting .content-box h3::before, .theme-parenting .tag.parenting { color: var(--accent-parenting); background-color: var(--accent-parenting); }
.theme-student .content-box h3, .theme-student .page-title, .theme-student .content-box h3::before, .theme-student .tag.student { color: var(--accent-student); background-color: var(--accent-student); }
.theme-teacher .content-box h3, .theme-teacher .page-title, .theme-teacher .content-box h3::before, .theme-teacher .tag.teacher { color: var(--accent-teacher); background-color: var(--accent-teacher); }

.theme-business .tag.business, .theme-parenting .tag.parenting, .theme-student .tag.student, .theme-teacher .tag.teacher { background-color: rgba(var(--shadow-rgb), 0.05); border: 1px solid currentColor; }
.theme-business .content-box h3, .theme-parenting .content-box h3, .theme-student .content-box h3, .theme-teacher .content-box h3 { background-color: transparent; }
.theme-business .page-title, .theme-parenting .page-title, .theme-student .page-title, .theme-teacher .page-title { background-color: transparent; }

/* Article Template */
.article-header {
    padding: 140px 0 60px;
    background: var(--bg-main);
    text-align: center;
}
.article-meta {
    margin-bottom: 24px;
}
.article-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-main {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
}

.article-sub {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.article-body {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 60px;
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
    margin: -40px auto 80px;
    max-width: 800px;
}
.article-body p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.article-body h2 {
    font-size: 1.5rem;
    color: var(--accent-business); /* Default */
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--shadow-rgb), 0.1);
    transition: color 0.3s ease;
}
/* Chapter Theme Overrides for h2 and border */
.theme-business .article-body h2 { color: var(--accent-business); border-bottom-color: rgba(76, 115, 115, 0.2); }
.theme-parenting .article-body h2 { color: var(--accent-parenting); border-bottom-color: rgba(179, 104, 66, 0.2); }
.theme-student .article-body h2 { color: var(--accent-student); border-bottom-color: rgba(92, 117, 150, 0.2); }
.theme-teacher .article-body h2 { color: var(--accent-teacher); border-bottom-color: rgba(121, 106, 135, 0.2); }
.dialogue-box {
    background: var(--bg-alt);
    border-radius: var(--radius-card);
    padding: 32px 40px;
    margin: 40px 0;
    position: relative;
    text-align: center;
}
.dialogue-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-primary);
}

.footer-alt {
    margin-top: 80px;
    padding: 80px 0;
    text-align: center;
    background: var(--bg-card);
}
.footer-alt .footer-logo { color: var(--accent-business); margin-bottom: 16px; }
.footer-copy { color: var(--text-muted); margin-bottom: 24px; }
.copyright { font-size: 0.8rem; color: #AAA; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    /* Header Mobile Adjustments */
    .header-inner { flex-direction: row; justify-content: space-between; align-items: center; }
    .global-nav { display: none; }
    .hamburger { display: flex; }
    .nav { display: none; }
    
    /* Hero */
    .hero-mag { padding: 130px 0 60px; }
    .hero-grid { flex-direction: column; text-align: center; }
    .main-copy { font-size: 1.6rem; margin-bottom: 16px; }
    .sub-copy { font-size: 0.9rem; line-height: 1.6; }
    
    /* Sections General */
    .section-box { padding: 60px 0; }
    .section-header { margin-bottom: 30px; text-align: center; }
    .section-header .title { font-size: 1.3rem; }
    .section-header .desc { font-size: 0.85rem; line-height: 1.6; }
    
    /* Voices */
    .voice-list { grid-template-columns: 1fr; gap: 16px; }
    .voice-card { padding: 24px 20px; }
    .voice-bubble { font-size: 1rem; padding-left: 12px; margin-bottom: 16px; line-height: 1.6; }
    .voice-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    /* Columns */
    .article-grid { grid-template-columns: 1fr; gap: 24px; }
    .card-thumb { height: 160px; }
    .card-body { padding: 20px; }
    .card-body h4 { font-size: 1rem; }
    
    /* Pillar Pages General */
    .page-header { padding: 100px 0 40px; }
    .page-title { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.5; }
    .content-box { padding: 24px 20px; margin-bottom: 24px; }
    .content-box h3 { font-size: 1.15rem; margin-bottom: 12px; gap: 8px; }
    .content-box h3::before { width: 6px; height: 18px; }
    
    /* Article Pages */
    .article-header { padding: 100px 0 40px; }
    .article-title { font-size: 1.25rem; }
    .article-main { font-size: 1.4rem; }
    .article-sub { font-size: 0.95rem; }
    .article-body { padding: 16px 16px; margin-top: -16px; }
    .article-body p { font-size: 0.95rem; margin-bottom: 16px; }
    .article-body h2 { font-size: 1.25rem; margin: 32px 0 16px; padding-bottom: 8px; }
    
    .dialogue-box { padding: 24px 16px; margin: 32px 0; }
    .dialogue-box p { font-size: 1.1rem; }
    
    
    /* Footer */
    .footer-alt { padding: 50px 0 30px; }

    /* Novel UI & Chat UI Full-bleed on mobile portrait */
    @media (orientation: portrait) {
        #radio-novel-container,
        #novel-game-container,
        .chat-container-wrapper {
            width: 100vw !important;
            margin-left: calc(50% - 50vw) !important;
            margin-right: calc(50% - 50vw) !important;
            max-width: none !important;
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
        }
    }
}

/* =========================================
   Counselors Page Specific
   ========================================= */
.counselor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 960px; margin: 0 auto; }
.counselor-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 32px; box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.04); display: flex; flex-direction: column; gap: 16px; }
.counselor-header { display: flex; align-items: center; gap: 20px; }
.counselor-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; flex-shrink: 0; }
.counselor-info { display: flex; flex-direction: column; gap: 2px; }
.counselor-info h2 { font-size: 1.3rem; margin-bottom: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.counselor-info h2 .romaji { font-size: 0.85rem; font-weight: normal; white-space: nowrap; color: var(--text-muted); }
.counselor-info .role { font-size: 0.85rem; font-weight: 700; }
.counselor-body p { font-size: 1rem; line-height: 1.8; color: var(--text-primary); }
.counselor-approach { background: var(--bg-main); padding: 20px; border-radius: 8px; margin-top: 16px; }
.counselor-approach h4 { font-size: 0.95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.counselor-approach p { font-size: 0.9rem; margin-bottom: 0; color: var(--text-muted); }

.counselor-business .counselor-icon { background: var(--accent-business); }
.counselor-business .role, .counselor-business .counselor-approach h4 { color: var(--accent-business); }
.counselor-parenting .counselor-icon { background: var(--accent-parenting); }
.counselor-parenting .role, .counselor-parenting .counselor-approach h4 { color: var(--accent-parenting); }
.counselor-student .counselor-icon { background: var(--accent-student); }
.counselor-student .role, .counselor-student .counselor-approach h4 { color: var(--accent-student); }
.counselor-teacher .counselor-icon { background: var(--accent-teacher); }
.counselor-teacher .role, .counselor-teacher .counselor-approach h4 { color: var(--accent-teacher); }

.counselor-action { margin-top: 24px; text-align: center; }
.counselor-action .btn-outline { padding: 12px 32px; font-size: 0.95rem; }

/* =========================================
   Simulation Page Specific
   ========================================= */
.chat-container-wrapper { height: 600px; border: 2px solid var(--border-color); border-radius: 12px; margin: 32px 0; overflow: hidden; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.05); display: flex; flex-direction: column; }
.chat-container { flex: 1; display: flex; flex-direction: column; height: 100%; border-radius: inherit; }

@media (max-width: 768px) {
    /* Counselors Mobile Override */
    .counselor-grid { grid-template-columns: 1fr; }
    .counselor-card { padding: 24px 20px; }
}

/* ==========================================================================
   Roadmap List Component (intro.html)
   ========================================================================== */
.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-chapter {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 32px 0 12px;
    padding-left: 8px;
    border-left: 4px solid var(--border-color);
}
.roadmap-chapter:first-child { margin-top: 0; }

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    background: #fff !important;
}

.roadmap-item.active {
    border: none !important;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

.roadmap-item.active:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
/* border-color will be set by specific theme hover */
}

/* Theme variations for active items */
.roadmap-item.theme-business { background: #fff !important; border: none !important; }
.roadmap-item.theme-business:hover { background: #fff !important; }
.roadmap-item.theme-business .roadmap-num { background: var(--accent-business); color: #fff;}
.roadmap-item.theme-business .roadmap-cat { color: var(--accent-business); }

.roadmap-item.theme-student { background: #fff !important; border: none !important; }
.roadmap-item.theme-student:hover { background: #fff !important; }
.roadmap-item.theme-student .roadmap-num { background: var(--accent-student); color: #fff;}
.roadmap-item.theme-student .roadmap-cat { color: var(--accent-student); }

.roadmap-item.theme-parenting { background: #fff !important; border: none !important; }
.roadmap-item.theme-parenting:hover { background: #fff !important; }
.roadmap-item.theme-parenting .roadmap-num { background: var(--accent-parenting); color: #fff;}
.roadmap-item.theme-parenting .roadmap-cat { color: var(--accent-parenting); }

.roadmap-item.theme-teacher { background: #fff !important; border: none !important; }
.roadmap-item.theme-teacher:hover { background: #fff !important; }
.roadmap-item.theme-teacher .roadmap-num { background: var(--accent-teacher); color: #fff;}
.roadmap-item.theme-teacher .roadmap-cat { color: var(--accent-teacher); }


.roadmap-item.coming-soon {
    border: 1px dashed var(--border-color);
    background: var(--surface-2);
    opacity: 0.6;
    color: var(--text-main);
}
.roadmap-item.coming-soon .roadmap-num {
    background: var(--surface-3);
    color: var(--text-muted);
}
.roadmap-item.coming-soon .roadmap-cat {
    color: var(--text-muted);
}

.roadmap-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.roadmap-content {
    flex-grow: 1;
}

.roadmap-cat {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.roadmap-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0;
    color: var(--text-main);
}

.roadmap-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.badge-soon {
    background: var(--text-muted);
    color: #fff;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.70rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .roadmap-item { padding: 12px; gap: 12px; }
    .roadmap-num { width: 32px; height: 32px; font-size: 1rem; }
    .roadmap-title { font-size: 1.05rem; }
}
/* ==========================================================================
   Consultation (Public Room) Specific Styles
   ========================================================================== */
.task-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.task-work { background: rgba(76, 115, 115, 0.1); color: var(--accent-business); border: 1px solid rgba(76, 115, 115, 0.2); }
.task-social { background: rgba(92, 117, 150, 0.1); color: var(--accent-student); border: 1px solid rgba(92, 117, 150, 0.2); }
.task-love { background: rgba(179, 104, 66, 0.1); color: var(--accent-parenting); border: 1px solid rgba(179, 104, 66, 0.2); }

.consultation-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.task-section {
    margin-bottom: 80px;
}

.consultation-item {
    display: flex;
    background: var(--surface-1);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.consultation-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}

.consultation-thumb {
    width: 240px;
    background-color: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.consultation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s;
}

.consultation-item:hover .consultation-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.consultation-info {
    padding: 32px;
    text-align: left;
}

.consultation-ep {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.consultation-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
}

.consultation-title .article-main {
    display: block;
    font-size: 1.25rem; /* 記事ヘッダーの 1.8rem からカード用に調整 */
    line-height: 1.5;
    margin-bottom: 8px;
    color: inherit;
}

.consultation-title .article-sub {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
}

/* テーマ別のホバーカラー設定 */
.task-section-work .consultation-item:hover .consultation-title .article-main { color: var(--accent-business); }
.task-section-social .consultation-item:hover .consultation-title .article-main { color: var(--accent-student); }
.task-section-love .consultation-item:hover .consultation-title .article-main { color: var(--accent-parenting); }

.consultation-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.consultation-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-business);
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-link::after {
    content: '→';
    transition: transform 0.3s;
}

.consultation-item:hover .read-more-link::after {
    transform: translateX(4px);
}

/* Status: Coming Soon */
.consultation-item.is-pending {
    opacity: 0.7;
    pointer-events: none;
    cursor: default;
}
.consultation-item.is-pending .consultation-thumb {
    filter: grayscale(1);
    background: #ccc;
}
.status-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

@media (max-width: 768px) {
    .consultation-item { flex-direction: column; }
    .consultation-thumb { width: 100%; height: 180px; }
    .consultation-info { padding: 24px; }
    .consultation-title .article-main { font-size: 1.1rem; }
    .consultation-title .article-sub { font-size: 0.85rem; }
}


/* 関連記事セクション定義 (Related Consultations) */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.related-category {
    flex-shrink: 0;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}

.related-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.related-main {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.related-item:hover {
    background: #fff;
    border-color: var(--border-color);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* テーマ別のホバーカラー設定 (関連記事用) */
.theme-business .related-item:hover .related-main { color: var(--accent-business); }
.theme-student .related-item:hover .related-main { color: var(--accent-student); }
.theme-parenting .related-item:hover .related-main { color: var(--accent-parenting); }

@media (max-width: 768px) {
    .related-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .related-item:hover {
        transform: translateY(-4px);
    }
}

/* 過去の相談アーカイブ (Past Episodes) */
.past-archives {
}

.past-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.past-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid var(--border-color);
    text-align: left;
}

.past-item:hover {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transform: translateX(4px);
}

.past-item-ep {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
}

.past-item-content {
    flex-grow: 1;
}

.past-item-title {
    font-size: 1rem;
    font-weight: 500;
}

.past-item:hover .past-item-title {
    color: var(--accent-business); /* Default */
}

/* Theme individual colors for past hover */
.task-section-work .past-item:hover .past-item-title { color: var(--accent-business); }
.task-section-social .past-item:hover .past-item-title { color: var(--accent-student); }
.task-section-love .past-item:hover .past-item-title { color: var(--accent-parenting); }
/* ==========================================================================
   Filter Tabs (Archive Page)
   ========================================================================== */
.filter-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-business);
    color: #fff;
    border-color: var(--accent-business);
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.1);
}

/* Category-specific active states */
.tab-btn.active[data-target="social"] { background: var(--accent-student); border-color: var(--accent-student); }
.tab-btn.active[data-target="work"] { background: var(--accent-business); border-color: var(--accent-business); }
.tab-btn.active[data-target="love"] { background: var(--accent-parenting); border-color: var(--accent-parenting); }

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.4s ease forwards;
}

.past-item-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.past-main {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
}

.past-sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-1);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--surface-2);
    border-color: var(--text-muted);
}

.page-btn.active {
    background: var(--accent-business);
    color: #fff;
    border-color: var(--accent-business);
}

.page-dots {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: default;
    user-select: none;
}

/* Category-specific active states for pagination (synced with tabs) */
[data-active-task="social"] .page-btn.active { background: var(--accent-student); border-color: var(--accent-student); }
[data-active-task="work"] .page-btn.active { background: var(--accent-business); border-color: var(--accent-business); }
[data-active-task="love"] .page-btn.active { background: var(--accent-parenting); border-color: var(--accent-parenting); }

/* ==========================================================================
   Character Avatar & Icon Zoom Styles
   ========================================================================== */
.char-icon-zoom {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.char-icon-zoom img, .ng-character img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.char-icon-zoom img {
    position: absolute;
    width: auto !important;
    max-width: none !important;
    height: 250% !important; /* Slightly more zoom for better face focus */
    top: 5px; /* Adjust top position to align head */
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ng-character img {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    transition: transform 0.4s ease-out;
}

.zoom-md img {
    height: 180% !important; /* Medium zoom for selection cards */
    top: 2px !important;
}

/* Character Specific Vertical Alignment */
.zoom-mariko { margin-top: -12px !important; }
.zoom-aya { margin-top: -10px !important; }
.zoom-yui { margin-top: -5px !important; }
.zoom-asuka { margin-top: -8px !important; }
.zoom-teacher { margin-top: -10px !important; transform: translateX(-50%) scaleX(-1) !important; }
.zoom-counselor { margin-top: -10px !important; }

/* Existing class for Intro Page icon */
.current-avatar-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 2px solid var(--accent-business);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Existing class for Article Badge icon */
.badge-img-wrapper {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .current-avatar-wrapper {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    /* Filter Container Mobile adjustment: force single row with horizontal scroll */
    .filter-container {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        scrollbar-width: none;
    }
    .filter-container::-webkit-scrollbar { display: none; }
    .tab-btn { flex-shrink: 0 !important; }
}

/* ==========================================================================
   Sitemap Specific Styles
   ========================================================================== */
.sitemap-card {
    background: var(--surface-1);
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.03);
    border: 1px solid var(--border-color);
}

.sitemap-list, .sitemap-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list > li {
    margin-bottom: 32px;
}

.sitemap-list > li:last-child {
    margin-bottom: 0;
}

.sitemap-list a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.sitemap-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-business);
    border-radius: 50%;
    flex-shrink: 0;
}

.sitemap-list a:hover {
    color: var(--accent-business);
    transform: translateX(4px);
}

.sitemap-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sitemap-list strong::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-business);
    border-radius: 50%;
    flex-shrink: 0;
}

.sitemap-list ul {
    margin-top: 12px;
    margin-left: 28px;
    padding-left: 20px;
    border-left: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-list ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.sitemap-list ul li a::before {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    opacity: 0.5;
}

.sitemap-list ul li a:hover {
    color: var(--accent-business);
}

@media (max-width: 768px) {
    .sitemap-card {
        padding: 40px 24px;
    }
    .sitemap-list a, .sitemap-list strong {
        font-size: 1rem;
    }
    .sitemap-list ul {
        margin-left: 12px;
        padding-left: 16px;
    }
}

/* Gradient animation for main-copy */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* ==========================================================================
   Bibliography Page (参考文献) - Simple List Style
   ========================================================================== */
.bibliography-container {
    margin: 0 auto;
}

.simple-biblio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.simple-biblio-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.simple-biblio-item:hover {
    background-color: rgba(var(--shadow-rgb), 0.02);
}

.biblio-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biblio-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.biblio-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

.biblio-intro {
    margin-bottom: 40px;
}

.biblio-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
}

@media (max-width: 600px) {
    .simple-biblio-item {
        padding: 12px 0;
    }

    .biblio-title {
        font-size: 1rem;
    }

    .biblio-details {
        font-size: 0.85rem;
    }
}

/* =========================================
   Foundations Section
   ========================================= */
.foundations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.foundation-card {
    background: white;
    border-radius: 12px;
    padding: 28px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.foundation-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.foundation-card:nth-child(1) {
    grid-column: 1 / 3;
}

.foundation-card:nth-child(2) {
    grid-column: 3 / 5;
}

.foundation-card:nth-child(3) {
    grid-column: 5 / 7;
}

.foundation-card:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 2;
}

.foundation-card:nth-child(5) {
    grid-column: 4 / 7;
    grid-row: 2;
}

.foundation-number {
    display: block;
    font-size: 1.15rem;
    font-weight: 300;
    color: #d0d0d0;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: none;
    width: auto;
    height: auto;
}

.foundation-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.foundation-en {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.foundation-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.foundation-content {
    width: 100%;
}

@media (max-width: 768px) {
    .foundations-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }

    .foundation-card:nth-child(1) {
        grid-column: 1 / 3;
    }

    .foundation-card:nth-child(2) {
        grid-column: 3 / 5;
    }

    .foundation-card:nth-child(3) {
        grid-column: 5 / 7;
    }

    .foundation-card:nth-child(4) {
        grid-column: 1 / 4;
        grid-row: 2;
    }

    .foundation-card:nth-child(5) {
        grid-column: 4 / 7;
        grid-row: 2;
    }

    .foundation-card {
        padding: 20px 16px;
    }

    .foundation-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .foundation-card h4 {
        font-size: 13px;
    }

    .foundation-card p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .foundations-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .foundation-card {
        grid-column: auto !important;
        grid-row: auto !important;
        padding: 16px 12px;
    }

    .foundation-number {
        width: 40px;
        height: auto;
        font-size: 16px;
        margin-bottom: 0;
    }

    .foundation-card h4 {
        font-size: 12px;
    }

    .foundation-card p {
        font-size: 11px;
    }
}
