/* --------------------------------------------------
   Design Tokens (Updated to match sekai_concept_final)
-------------------------------------------------- */
:root {
    --bg:        #f4f7f2;
    --bg2:       #ecf0e8;
    --surface:   #e6ece0;
    --surface2:  #dce5d4;
    --ink:       #1a1e16;
    --ink-mid:   #404838;
    --ink-light: #6a7260;
    --ink-faint: #bec8b4;
    --gold:      #7a6a1a;
    --gold-dim:  #8a7a28;
    
    /* Branding Colors */
    --primary-green: #2a5430;
    --secondary-teal: #009fb7;
    --accent-gold: #8a7a28;
    
    --font-serif: 'Noto Serif JP', serif;
    --font-mincho: 'Shippori Mincho B1', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
}

/* --------------------------------------------------
   Base & Reset
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 2;
    background: var(--bg);
    overflow-x: hidden;
    font-weight: 300;
}

h1, h2, h3 {
    font-family: var(--font-mincho);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--ink);
}

/* --------------------------------------------------
   Visual Elements (Canvas & Background)
-------------------------------------------------- */
#visual-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Set to back */
    pointer-events: none;
}

#hero-resonance::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('images/forest-core.jpg');
    background-size: cover;
    background-position: center center;
    opacity: 0.56;
    filter: saturate(0.72) brightness(0.82);
    z-index: 1;
}

#hero-resonance::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(244, 247, 242, 0.42) 0%,
        transparent 18%,
        transparent 84%,
        rgba(244, 247, 242, 0.48) 100%
    );
    z-index: -1;
}

/* --------------------------------------------------
   Layout Components
-------------------------------------------------- */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

section {
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--ink-faint);
    scroll-margin-top: 80px;
}



section:last-of-type {
    border-bottom: none;
}

/* --------------------------------------------------
   Hero Section
-------------------------------------------------- */
#hero-resonance {
    min-height: 100vh;
    padding-top: 30px;
    align-items: flex-start;
}

#hero-resonance .container {
    position: relative;
    z-index: 5;
    transform: translateY(4vh);
}

.hero-title,
.hero-copy,
.hero-reflection {
    animation: fadeInHero 1.8s ease forwards;
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

.hero-sub-label {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: block;
    animation: fadeInHero 1.2s ease forwards;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    animation: dividerSlide 3s infinite;
}

@keyframes dividerSlide {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
}

/* --------------------------------------------------
   Header Navigation (Restored)
-------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    background: transparent;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3em;
    font-weight: 500;
}

.nav-link {
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.2em;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sns-icon {
    width: 28px;
    height: 28px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 0;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .header-social {
        gap: 0.4rem;
    }

    .sns-icon {
        width: 25px;
        height: 25px;
        font-size: 0.62rem;
    }
}

@media screen and (max-width: 480px) {
    .site-header {
        padding: 1.4rem 0;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .header-social {
        margin-left: auto;
    }
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

#hero-resonance .hero-title {
    margin-bottom: 3rem;
}

#hero-resonance .hero-title span {
    display: inline-block;
    white-space: nowrap;
}

.mobile-copy-line,
.mobile-phrase {
    display: inline;
}

.hero-copy,
.hero-reflection {
    color: var(--ink-mid);
    letter-spacing: 0.1em;
    line-height: 1.8;
}

#hero-copy {
    margin-top: 0.85rem;
}

.quick-entry {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    position: relative;
    margin-top: 4rem;
    animation: fadeIn 1.2s ease forwards;
    z-index: 10;
}


.btn-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.4s ease;

    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    min-width: 240px;
}

.btn-quick small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
    margin-top: 4px;
}
.btn-quick:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-quick.no-link {
    cursor: default;
    opacity: 0.8;
}

.btn-quick.no-link:hover {
    transform: none;
    box-shadow: none;
}

/* Light Background Variation */
.light-bg .btn-quick {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--ink-faint);
    color: var(--ink-mid) !important;
    text-shadow: none;
    backdrop-filter: blur(4px);
}

.light-bg .btn-quick:hover {
    background: var(--bg2);
    border-color: var(--gold-dim);
    color: var(--ink) !important;
}

.light-bg .btn-quick small {
    color: var(--ink-light);
}

@media screen and (max-width: 480px) {
    .quick-entry {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .btn-quick {
        width: 200px;
    }
}

/* --------------------------------------------------
   Time Rhythm Layer
-------------------------------------------------- */
#time-rhythm-layer {
    padding: var(--spacing-xl) 0;
}

.rhythm-layer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.rhythm-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid var(--ink-faint);
    background: rgba(255, 255, 255, 0.08); /* 背景とのコントラストを微調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* backdrop-filter: blur(5px); Safariバグ回避のため削除 */
    position: relative;
    overflow: hidden;
}

.rhythm-circle .circle-label {
    font-family: var(--font-mincho);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    transition: color 0.5s;
}

.rhythm-circle .circle-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--ink-light);
    text-transform: uppercase;
}

.rhythm-circle:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.1);
}

.rhythm-circle:hover .circle-label {
    color: var(--gold);
}

/* Responsive for Rhythm Layer */
@media screen and (max-width: 768px) {
    #visual-canvas {
        display: none !important; /* モバイルでは完全に隠す */
    }

    .rhythm-layer {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .rhythm-circle {
        width: 180px;
        height: 180px;
    }
}

/* --------------------------------------------------
   Diagnosis UI (Card)
-------------------------------------------------- */
.card-ui {
    background: var(--surface);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--ink-faint);
    box-shadow: none;
}

.btn-choice {
    background: var(--bg);
    border: 1px solid var(--ink-faint);
    color: var(--ink-mid);
}

.btn-choice:hover {
    background: var(--surface2);
    border-color: var(--gold-dim);
}

/* --------------------------------------------------
   Time Rhythm Layer (NEW)
-------------------------------------------------- */
.rhythm-nested {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.rhythm-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid var(--ink-faint);
    background: var(--bg2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    z-index: 1;
    isolation: isolate;
}

.rhythm-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
    opacity: 1; /* 写真を鮮明にするため1に */
}

/* Subtle Darkening Overlay for Text Readability - Enhanced */
.rhythm-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    /* 中央をより濃くし、文字を浮かび上がらせる */
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.rhythm-circle:hover {
    border-color: var(--gold-dim);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.rhythm-circle:hover::before {
    transform: scale(1.1);
}

/* Hover after removed */

.rhythm-circle.month::before { background-image: url('images/rhythm-month.jpg'); }
.rhythm-circle.week::before { background-image: url('images/rhythm-week.jpg'); }
.rhythm-circle.day::before { background-image: url('images/rhythm-day.jpg'); }

.rhythm-circle h3, 
.rhythm-circle .circle-label,
.rhythm-circle .circle-text {
    position: relative;
    z-index: 2;
    /* 影をより濃く、広めに適用して背景から分離 */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 5px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.rhythm-circle .circle-label {
    color: #ffffff !important;
}

.rhythm-circle .circle-text {
    color: rgba(255, 255, 255, 1) !important; /* 不透明度を最大に */
}

.rhythm-circle:hover .circle-label {
    color: var(--gold) !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 2px 10px rgba(0,0,0,0.5);
}

.rhythm-circle:hover {
    border-color: var(--gold-dim);
    background: var(--bg2);
    transform: scale(1.02);
}

.rhythm-circle h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.rhythm-circle p {
    font-size: 0.85rem;
    color: var(--ink-mid);
    line-height: 1.6;
}

.weekly-uta-invite {
    margin: 4.5rem auto 0;
    max-width: 520px;
    text-align: center;
}

.weekly-uta-invite p {
    margin-bottom: 1.4rem;
    color: var(--ink-mid);
    font-size: 0.95rem;
    line-height: 2;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------
   Kotoba Oracle (NEW)
-------------------------------------------------- */
.oracle-card-outer {
    perspective: 1000px;
    width: 100%;
}

.oracle-card {
    background: var(--surface);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--gold-dim);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oracle-pathway {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 2px 16px;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: white;
}

#oracle-message {
    font-family: var(--font-mincho);
    font-size: 1.4rem;
    color: var(--ink);
    margin: 2rem 0;
    line-height: 1.8;
    letter-spacing: 0.1em;
    border: none;
    padding: 0;
}

.oracle-work {
    font-size: 1rem;
    color: var(--ink-light);
    border-top: 1px solid var(--ink-faint);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
    font-style: normal;
    line-height: 1.6;
}

/* --------------------------------------------------
   Free Entry Section (NEW)
-------------------------------------------------- */
.entry-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.entry-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg2);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--ink-faint);
    text-align: center;
    transition: 0.4s ease;
    cursor: pointer;
}

.entry-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink-mid);
}

.entry-item p {
    font-size: 0.9rem;
    color: var(--ink-light);
}

.entry-item:hover {
    background: var(--surface);
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.symbol-image-section {
    min-height: auto;
    border-bottom: none;
    padding: var(--spacing-lg) 0;
}

.image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.image-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7); /* 薄いベール */
    z-index: 1;
}

.image-section .container {
    position: relative;
    z-index: 2;
}

.concept-content p + p {
    margin-top: 1.55rem;
}

.concept-content p:first-child {
    margin-bottom: 2rem;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 247, 242, 0.4); /* 背景に応じて微調整 */
    z-index: 1;
}

.symbol-image-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--ink-faint);
    background: var(--bg2);
}

.symbol-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.75) brightness(1.03);
}

/* --------------------------------------------------
   Weekly Ritual Section (NEW)
-------------------------------------------------- */
#weekly-ritual {
    background: var(--bg2);
    opacity: 0.95; /* わずかに質感を出す */
    border-bottom: 1px solid var(--ink-faint);
}

#weekly-ritual .container {
    max-width: 600px;
}

.weekly-drop blockquote {
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.weekly-drop blockquote::before,
.weekly-drop blockquote::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: var(--gold-dim);
    top: 50%;
}

.weekly-drop blockquote::before { left: 0; }
.weekly-drop blockquote::after { right: 0; }

/* --------------------------------------------------
   Services Section
-------------------------------------------------- */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-item {
    background: var(--surface);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--ink-faint);
    text-align: center;
    transition: 0.5s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--ink);
}

.service-item p {
    font-size: 0.85rem;
    color: var(--ink-light);
    letter-spacing: 0.05em;
}

.section-lead {
    margin: 0 auto;
    color: var(--ink-mid);
    text-align: center;
    line-height: 2;
    letter-spacing: 0.06em;
}

.service-domain-grid {
    align-items: stretch;
}

.service-domain {
    text-align: left;
    overflow: hidden;
}

.service-domain h3 {
    margin-top: 1rem;
}

.service-domain p {
    line-height: 1.9;
}

.service-number {
    display: block;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.service-gate-image {
    margin: calc(var(--spacing-lg) * -1) calc(var(--spacing-md) * -1) var(--spacing-md);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(190, 200, 180, 0.78);
    background: var(--bg2);
}

.service-gate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) brightness(0.98);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-domain:hover .service-gate-image img {
    transform: scale(1.03);
}

.service-tag-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-tag-list li {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(190, 200, 180, 0.65);
    color: var(--ink-mid);
    font-size: 0.92rem;
    line-height: 1.7;
}

.service-tag-list a {
    color: var(--gold);
    text-decoration: none;
}

.service-tag-list a:hover {
    color: var(--ink);
}

.service-tag-list small {
    display: inline-block;
    margin-left: 0.6rem;
    color: var(--ink-light);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

/* --------------------------------------------------
   Utaura Detail Page
-------------------------------------------------- */
.page-utaura section {
    min-height: auto;
}

.utaura-hero {
    min-height: 62vh;
    padding-top: 120px;
    position: relative;
    background:
        linear-gradient(rgba(244, 247, 242, 0.8), rgba(244, 247, 242, 0.96)),
        url('images/washi-light.jpg');
    background-size: cover;
    background-position: center;
}

.utaura-hero .container {
    position: relative;
    z-index: 2;
}

.utaura-hero .hero-title {
    text-shadow:
        0 1px 5px rgba(30, 34, 26, 0.34),
        0 3px 14px rgba(30, 34, 26, 0.24);
}

.utaura-hero .section-subtitle {
    text-shadow:
        0 1px 4px rgba(30, 34, 26, 0.18),
        0 2px 9px rgba(30, 34, 26, 0.12);
}

.name-reading-hero {
    background: var(--bg2);
    overflow: hidden;
    position: relative;
}

.name-reading-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(244, 247, 242, 0.78), rgba(244, 247, 242, 0.96));
    z-index: 1;
    pointer-events: none;
}

.name-reading-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    z-index: 0;
}

.utaura-container {
    max-width: 760px;
}

.page-utaura .utaura-section > .utaura-container > .section-title {
    color: var(--ink);
    font-weight: 500;
}

.detail-breath {
    width: min(320px, calc(100% - 48px));
    margin: 1.5rem auto;
}

.detail-breath img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.utaura-text,
.utaura-block,
.utaura-step {
    color: var(--ink-mid);
    line-height: 2.1;
    letter-spacing: 0.04em;
}

.utaura-text p + p,
.utaura-block p + p,
.utaura-step p + p {
    margin-top: 0.9rem;
}

.utaura-block,
.utaura-step {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(190, 200, 180, 0.72);
}

.utaura-block h3 {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.utaura-note {
    color: var(--ink-light);
    font-size: 0.86rem;
}

.external-form-note {
    display: block;
    margin-top: 0.8rem;
    color: var(--ink-light);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

.service-tag-list .external-form-note {
    margin-left: 0;
}

.mail-card .external-form-note {
    max-width: 32rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
    color: var(--ink-light);
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

.detail-back-link {
    width: 90%;
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 0 5rem;
    text-align: center;
}

.detail-back-link a {
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-mincho);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.detail-back-link a:hover {
    color: var(--ink);
}

/* --------------------------------------------------
   Information Pages
-------------------------------------------------- */
.info-container {
    max-width: 720px;
}

.policy-list > div {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(190, 200, 180, 0.65);
}

.policy-list > div:first-child {
    padding-top: 0;
}

.policy-list dt {
    margin-bottom: 0.75rem;
    color: var(--ink);
    font-family: var(--font-mincho);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.policy-list dd {
    color: var(--ink-mid);
    line-height: 2.05;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
}

.policy-list dd p + p {
    margin-top: 0.8rem;
}

.policy-list a {
    color: var(--gold);
    overflow-wrap: anywhere;
}

.policy-content .section-title {
    margin-top: 4.2rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 500;
}

.policy-content > p {
    line-height: 2.1;
}

.policy-content > p + p {
    margin-top: 1.25rem;
}

.policy-content > p + .section-title,
.policy-content > .policy-points + .section-title {
    margin-top: 4.2rem;
}

.policy-content .section-title + p {
    margin-top: 0;
}

.policy-points {
    margin-top: 1.2rem;
    margin-bottom: 0;
    padding-left: 1.4rem;
    color: var(--ink-mid);
    line-height: 2;
}

.contact-container {
    max-width: 640px;
    text-align: center;
}

.contact-action {
    margin: 3rem auto;
}

.contact-action .external-form-note {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-guidance {
    color: var(--ink-light);
    font-size: 0.9rem;
}

.name-reading-small-case {
    color: var(--ink-light);
}

.name-reading-small-case h3 {
    color: var(--ink-mid);
}

.name-reading-quote {
    margin: 1.8rem 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(138, 122, 40, 0.35);
    color: var(--ink-mid);
}

.name-reading-quote p + p {
    margin-top: 0.9rem;
}

/* --------------------------------------------------
   Thanks Page
-------------------------------------------------- */
.page-thanks section {
    min-height: auto;
}

.thanks-section {
    min-height: calc(100vh - 180px);
    padding-top: 180px;
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.thanks-container {
    max-width: 720px;
    text-align: center;
}

.thanks-title {
    width: min(900px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.75rem, 2.25vw, 2.05rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.thanks-title span {
    display: inline-block;
}

.thanks-text {
    margin-top: 2.2rem;
    color: var(--ink-mid);
    line-height: 2.1;
    letter-spacing: 0.04em;
}

.thanks-text p + p {
    margin-top: 1.2rem;
}

.thanks-closing {
    margin-top: 2.4rem;
    color: var(--gold);
    font-family: var(--font-mincho);
}

.thanks-link {
    margin-top: 2.8rem;
}

.utaura-poem {
    margin: 2rem 0;
    padding: 1.6rem 0 1.6rem 1.5rem;
    border-left: 1px solid rgba(138, 122, 40, 0.35);
    color: var(--gold);
    font-family: var(--font-mincho);
    line-height: 2.2;
}

.utaura-sub-link {
    margin-top: 0.8rem;
}

.testimonial-list {
    margin-top: 3.5rem;
}

.testimonial-voice {
    margin: 0;
    padding: 2.5rem 0 0 1.5rem;
    border-left: 1px solid rgba(138, 122, 40, 0.35);
    color: var(--ink-mid);
    line-height: 2.05;
    letter-spacing: 0.03em;
}

.testimonial-voice + .testimonial-voice {
    margin-top: 4.5rem;
}

.testimonial-voice h3 {
    margin-bottom: 1.4rem;
    font-size: 1.1rem;
}

.testimonial-voice p + p {
    margin-top: 0.9rem;
}

.testimonial-voice cite {
    display: block;
    margin-top: 1.4rem;
    color: var(--ink-light);
    font-style: normal;
    font-size: 0.88rem;
}

@media screen and (max-width: 767px) {
    :root {
        --ink-mid: #343c2e;
        --ink-light: #565f4e;
    }

    body {
        color: #252b21;
        font-weight: 400;
        line-break: strict;
        word-break: normal;
        overflow-wrap: normal;
    }

    main p,
    main li,
    main h1,
    main h2,
    main h3 {
        text-wrap: pretty;
    }

    main h1,
    main h2,
    main h3 {
        text-wrap: balance;
        word-break: normal;
        overflow-wrap: normal;
    }

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

    .mobile-phrase {
        display: inline-block;
        max-width: 100%;
    }

    .mobile-nowrap {
        white-space: nowrap;
    }

    .mobile-balanced-heading {
        font-size: clamp(0.95rem, 4.2vw, 1.15rem);
        letter-spacing: 0.02em;
    }

    .mobile-balanced-heading .mobile-copy-line,
    .page-name-reading .section-title .mobile-copy-line,
    .mobile-compact-pair .mobile-copy-line {
        white-space: nowrap;
    }

    .desktop-copy-space {
        display: none;
    }

    .desktop-break {
        display: none;
    }

    #hero-resonance .hero-title {
        font-size: clamp(1.75rem, 8.4vw, 2.35rem);
        line-height: 1.45;
        letter-spacing: 0.1em;
    }

    #hero-resonance .hero-copy {
        font-weight: 400;
        text-shadow: 0 2px 13px rgba(0, 0, 0, 0.32);
    }

    .utaura-hero {
        min-height: 54vh;
        padding-top: 112px;
    }

    .name-reading-hero-image {
        object-position: center center;
    }

    .page-utaura .utaura-section > .utaura-container {
        width: calc(100% - 40px);
        max-width: 760px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-info .utaura-hero .hero-title {
        font-size: clamp(1.45rem, 6.5vw, 2rem);
        line-height: 1.6;
    }

    .page-info .policy-content .section-title {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .detail-breath {
        width: 80%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .page-utaura .utaura-text,
    .page-utaura .utaura-block,
    .page-utaura .utaura-step {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .page-name-reading .utaura-section > .utaura-container > .section-title {
        font-size: 1.35rem;
        letter-spacing: 0.08em;
    }

    .page-name-reading .mobile-compact-pair {
        font-size: clamp(0.88rem, 4vw, 1rem);
        letter-spacing: 0.01em;
    }

    .utaura-text,
    .utaura-block,
    .utaura-step,
    .testimonial-voice,
    .thanks-text {
        line-height: 2;
        letter-spacing: 0.02em;
    }

    .thanks-section {
        min-height: calc(100vh - 160px);
        padding-top: 150px;
    }

    .thanks-title {
        width: min(520px, 88vw);
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        letter-spacing: 0.06em;
        white-space: normal;
        line-height: 1.7;
    }

    .testimonial-voice {
        padding-left: 1rem;
    }

    .external-form-note {
        color: #525b4a;
        font-weight: 400;
    }

    .mail-card .external-form-note {
        color: #525b4a;
        font-weight: 400;
    }

    .detail-back-link {
        padding: 0.5rem 0 4rem;
    }
}

/* --------------------------------------------------
   Entry Gates
-------------------------------------------------- */
.entry-gate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.entry-gate-card {
    display: block;
    min-height: 260px;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 1px solid var(--ink-faint);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: 0.5s ease;
}

.entry-gate-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
}

.entry-gate-label {
    display: block;
    margin-bottom: 1.2rem;
    color: var(--gold-dim);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
}

.entry-gate-card h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.entry-gate-card p {
    color: var(--ink-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.word-entry-section {
    background: var(--bg);
}

/* --------------------------------------------------
   Profile: Trust
-------------------------------------------------- */
.profile-layout {
    max-width: 600px;
    margin: 0 auto;
    color: var(--ink-mid);
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: 0.4s;
    background: var(--ink-mid);
    color: var(--bg);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
    opacity: 0.9;
}


.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-outline {
    display: inline-block;
    padding: 11px 31px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: 0.4s;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bg2);
    border-color: var(--gold);
}

/* Result Choices Layout */
.result-choices {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.result-time-entry {
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--ink-faint);
    max-width: 640px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.result-guidance {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--ink-mid);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}


.btn-choice {
    display: inline-block;
    padding: 1rem 1.8rem;
    border: 1px solid var(--ink-faint);
    background: var(--bg2);
    color: var(--ink-mid);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    text-align: center;
}

.btn-choice:hover {
    border-color: var(--gold);
    color: var(--ink);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
    .result-choices {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn-choice {
        width: 100%;
        max-width: 280px;
    }
}

/* --------------------------------------------------
   Animations
-------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease;
}

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


.hidden {
    display: none !important;
}

/* --------------------------------------------------
   Calendar Subpages (Shared)
-------------------------------------------------- */
.calendar-hero {
    padding-top: 100px;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ink-faint);
}

.calendar-message blockquote, .calendar-quote {
    margin: 3rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold-dim);
    font-size: 1.2rem;
    line-height: 2;
    color: var(--gold);
    font-style: italic;
}

.calendar-media .media-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--ink-faint);
}

.calendar-work {
    padding: var(--spacing-lg) 0;
}

.calendar-work-box {
    padding: 2.5rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--ink-faint);
    line-height: 2;
    color: var(--ink-mid);
}

.calendar-archive-nav {
    padding: 6rem 0;
    border-top: 1px solid var(--ink-faint);
    text-align: center;
}

/* --------------------------------------------------
   Calendar Archive Navigation (Whisper style)
-------------------------------------------------- */
.calendar-archive-nav.archive-whisper {
    min-height: auto;
    padding: 8rem 0 10rem;
    border: none;
    background: transparent;
}

.archive-link {
    font-family: var(--font-mincho);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--ink-light);
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
    opacity: 0.6;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.archive-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold-dim);
    opacity: 0.3;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(-50%);
}

.archive-link:hover {
    opacity: 1;
    letter-spacing: 0.4em;
    color: var(--gold-dim);
}

.archive-link:hover::after {
    width: 100%;
    opacity: 0.6;
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff; /* 白に変更 */
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    z-index: 5;
}

.scroll-indicator .arrow {
    display: block;
    margin-top: 8px;
    width: 1px;
    height: 40px;
    background: #ffffff; /* 矢印（ライン）も白に */
    margin-left: auto;
    margin-right: auto;
    animation: scrollLine 2s infinite;
}

.back-to-top {
    position: fixed;
    top: 20px;
    left: 5%;
    z-index: 1000;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--ink-light);
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: 0.3s;
}

.back-to-top:hover {
    opacity: 1;
    color: var(--ink);
}

/* Uta-uranai Specific */
.uta-text {
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    line-height: 2.5;
    letter-spacing: 0.2em;
    color: var(--ink);
    display: inline-block;
    text-align: left;
    margin: 2rem auto;
    padding: 2rem;
    border-top: 1px solid var(--gold-dim);
    border-bottom: 1px solid var(--gold-dim);
}

.uta-silence {
    height: 90px;
}

.uta-guidance {
    text-align: center;
    color: var(--ink-light);
    line-height: 2;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.carry-note {
    text-align: center;
    color: var(--ink-mid);
    line-height: 2.2;
    letter-spacing: 0.05em;
    font-size: 1.05rem;
}

.tuning-list {
    list-style: none;
    padding: 0;
    color: var(--ink-mid);
    line-height: 2.2;
}

.tuning-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.time-label {
    display: inline-block;
    min-width: 60px;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-right: 1.5rem;
    border-right: 1px solid var(--ink-faint);
    padding-right: 1rem;
}

/* Weekly uta page: quiet washi layout */
.weekly-uta-page {
    background:
        linear-gradient(rgba(255, 255, 255, 0.34), rgba(244, 247, 242, 0.72)),
        var(--bg);
}

.weekly-uta-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(26, 30, 22, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(26, 30, 22, 0.018) 1px, transparent 1px);
    background-size: 84px 84px, 42px 42px;
    opacity: 0.5;
    z-index: -1;
}

.weekly-uta-page section {
    min-height: auto;
    padding: 6.5rem 0;
}

.weekly-uta-container {
    max-width: 720px;
    text-align: center;
}

.weekly-uta-hero {
    min-height: 72vh;
    padding-top: 110px;
    background:
        linear-gradient(rgba(244, 247, 242, 0.82), rgba(244, 247, 242, 0.96)),
        url('images/washi-light.jpg');
    background-size: cover;
    background-position: center;
}

.weekly-kicker {
    margin-bottom: 1rem;
    color: var(--ink-light);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    font-family: var(--font-mincho);
}

.weekly-period {
    margin-top: 1rem;
    color: var(--gold-dim);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    font-family: var(--font-sans);
}

.weekly-lead {
    margin: 2.5rem auto 0;
    max-width: 520px;
    color: var(--ink-mid);
    font-size: 1.05rem;
    line-height: 2.2;
    letter-spacing: 0.08em;
}

.weekly-note {
    margin: 0 auto 5rem;
    padding: 2.4rem 1.8rem;
    border-top: 1px solid rgba(138, 122, 40, 0.28);
    border-bottom: 1px solid rgba(138, 122, 40, 0.22);
}

.weekly-note span {
    display: block;
    margin-bottom: 1.2rem;
    color: var(--gold-dim);
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    font-family: var(--font-sans);
}

.weekly-note p {
    margin: 0;
    color: var(--ink-mid);
    line-height: 2.2;
    letter-spacing: 0.08em;
}

.weekly-poem {
    margin-top: 2.6rem;
    margin-bottom: 2.6rem;
    padding: 3.5rem 3rem;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(190, 200, 180, 0.7);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(26, 30, 22, 0.035);
}

.weekly-reading {
    max-width: 620px;
    margin: 0 auto;
    padding-top: 1rem;
    color: var(--ink-mid);
    line-height: 2.25;
    letter-spacing: 0.06em;
}

.weekly-reading .section-title {
    margin-bottom: 2.2rem;
}

.weekly-reading p + p {
    margin-top: 1.4rem;
}

.weekly-signs {
    background: rgba(236, 240, 232, 0.62);
}

.weekly-signs .tuning-list {
    max-width: 620px;
    margin: 3rem auto 0;
}

.weekly-signs .tuning-list li {
    padding: 1.6rem 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(190, 200, 180, 0.72);
}

.weekly-signs .tuning-list li:last-child {
    border-bottom: 1px solid rgba(190, 200, 180, 0.72);
}

.weekly-note-link {
    padding: 5rem 0;
}

.weekly-note-link p {
    max-width: 560px;
    margin: 2rem auto 2rem;
    color: var(--ink-light);
    line-height: 2.1;
    letter-spacing: 0.06em;
}

.weekly-carry .carry-note {
    margin-bottom: 3rem;
}

.weekly-carry .quick-entry {
    margin-top: 3rem;
}

.weekly-carry .btn-quick {
    min-width: 220px;
}

@media screen and (max-width: 767px) {
    .weekly-uta-page section {
        padding: 4.8rem 0;
    }

    .weekly-uta-hero {
        min-height: 68vh;
        padding-top: 88px;
        background:
            linear-gradient(rgba(244, 247, 242, 0.68), rgba(244, 247, 242, 0.9)),
            url('images/washi-light.jpg');
        background-size: cover;
        background-position: center;
    }

    .weekly-uta-container {
        width: 86%;
    }

    .weekly-uta-page .hero-title {
        font-size: 2rem;
        line-height: 1.55;
        letter-spacing: 0.08em;
    }

    .weekly-lead {
        font-size: 0.98rem;
        line-height: 2;
    }

    .weekly-note {
        margin-bottom: 4rem;
        padding: 2rem 0.7rem;
    }

    .weekly-poem {
        width: 100%;
        padding: 2.8rem 1.5rem;
        font-size: 1.16rem;
        line-height: 2.55;
        letter-spacing: 0.12em;
    }

    .weekly-reading,
    .uta-guidance,
    .weekly-note-link p,
    .carry-note {
        text-align: left;
    }

    .weekly-note-link .btn-outline {
        max-width: 100%;
        line-height: 1.7;
    }

    .weekly-carry .quick-entry {
        gap: 1rem;
    }

    .weekly-carry .btn-quick {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }

    .uta-silence {
        height: 56px;
    }

    .weekly-signs .tuning-list li {
        display: block;
        text-align: left;
    }

    .weekly-signs .time-label {
        display: block;
        width: max-content;
        margin: 0 0 0.8rem;
        padding: 0 0 0.25rem;
        border-right: none;
        border-bottom: 1px solid var(--ink-faint);
    }
}
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--ink-faint);
}

.footer-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: 2rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--ink-light);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-copy {
    color: var(--ink-faint);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
@media screen and (min-width: 768px) {
    .rhythm-nested {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .rhythm-circle {
        width: 220px;
        height: 220px;
    }
    
    .entry-grid,
    .service-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    #core-services .service-domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------
   Services Page Components
-------------------------------------------------- */
.service {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 文字色に合わせて微調整 */
}

.service h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.service p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Highlight effect for recommended service */
.service.highlight {
  border: 1px solid var(--gold-dim);
  padding: 1rem;
  transform: scale(1.02);
  transition: all 0.6s ease;
  background: rgba(122, 106, 26, 0.03); /* 前回の背景色も残して質感を出す */
  border-radius: 8px; /* 角を少し丸める */
}


/* Personalized service highlighting based on diagnosis mode */
.mode-body #core-services .service-item:nth-child(1) {
  transform: scale(1.05);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 10;
  position: relative;
}

.mode-sense #core-services .service-item:nth-child(2) {
  transform: scale(1.05);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 10;
  position: relative;
}

.mode-mind #core-services .service-item:nth-child(3) {
  transform: scale(1.05);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 10;
  position: relative;
}

/* Silence Block for intentional pause */
.silence-block {
  height: 80px;
}




/* Oracle Deepen (Pathway from Oracle to Service) */
.oracle-deepen {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.oracle-deepen-lead {
    margin-bottom: 0.8rem;
    font-family: var(--font-mincho);
    line-height: 1.8;
}

.oracle-deepen-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--ink-mid);
}

/* Mail Course Cards */
.mail-courses-section {
    padding: 6rem 0;
    background-color: var(--bg2); /* 微かに色味を変えて区切りを意識 */
    scroll-margin-top: 60px; /* さらに上方に表示し、下方の内容を確保 */
}




.mail-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mail-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--ink-faint);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mail-card h3 {
    font-family: var(--font-mincho);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
    letter-spacing: 0.1em;
}

.mail-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--ink-mid);
}

.mail-card a {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(244, 247, 242, 0.78);
    color: var(--gold);
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(138, 122, 40, 0.45);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.mail-card a:hover {
    background: var(--surface);
    border-color: var(--gold-dim);
    color: var(--ink-mid);
}

.mail-free-note {
    display: block;
    margin-top: 0.75rem;
    color: var(--ink-light);
    font-size: 0.78rem;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------
   Layout Utilities (Appended per request)
-------------------------------------------------- */
/* 既存の .container への影響をなくすため、専用クラスを作成しました */
.flex-row {
  display: flex;
  flex-wrap: wrap;
}

.column {
  width: 100%;
}

@media (min-width: 768px) {
  .column {
    width: 50%;
  }
}

/* 画像は基本これでOK（PCでも崩れない） */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ▼スマホ専用 */
@media (max-width: 767px) {
  .flex-row {
    flex-direction: column;
  }

  .column {
    width: 100% !important;
  }

  .image-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  .image-section::before {
    background: rgba(255, 255, 255, 0.56);
  }

  #hero-resonance::before {
    opacity: 0.64;
    filter: saturate(0.78) brightness(0.86);
  }

  /* サービスページ専用のスマホ調整 */
  .page-services section {
    min-height: auto;
    padding: 1rem 0; /* セクション間のスペースを大幅に減らす */
  }

  .page-services .container {
    padding: 1rem 0; /* コンテナの余白も減らす */
  }

  .page-services .silence-block {
    height: 30px; /* セクション間の空間を詰める */
  }

  .page-services .service {
    margin: 1.5rem 0;
    padding-bottom: 1rem;
  }

  .page-services .service h3 {
    font-size: 1.4rem; /* さらに大きく */
    font-weight: 500;
  }

  .page-services .service p {
    font-size: 1.05rem; /* さらに大きく */
  }
}
