/*
Theme Name: Arimoto Recruit
Theme URI: https://arimoto-ganka.jp/recruit
Author: SaNC
Description: ありもと眼科クリニック 採用サイト オリジナルテーマ
Version: 1.0.0
*/

@charset "UTF-8";

/* ==========================================================================
   ARIMOTO EYE CLINIC — Recruit Site
   Responsive: 375px base / 768px tablet / 1024px+ desktop
   ========================================================================== */

/* =========================================
   1. Design Tokens
   ========================================= */
:root {
    --white: #FFFFFF;
    --off-white: #FAF7F2;
    --greige-light: #EDE7DD;
    --greige: #EAE3D8;
    --greige-dark: #DDD4C6;
    --greige-darker: #CCC0AF;

    --brown-deep: #6B5748;
    --brown-dark: #5C4633;
    --brown-mid: #7A6249;
    --brown-light: #9A8068;
    --brown-pale: #B8A090;

    --gold: #C4A680;
    --gold-light: #D9BE9E;
    --gold-pale: #EDD9BC;
    --gold-gradient: linear-gradient(135deg, #D9BE9E 0%, #C4A680 40%, #A8845A 100%);
    --gold-shimmer: linear-gradient(120deg,
            #C4A680 0%, #D9BE9E 30%, #EDD9BC 50%, #D9BE9E 70%, #C4A680 100%);

    --text-main: #3D2F22;
    --text-sub: #7A6B5E;
    --text-muted: #A89990;
    --text-light: #C9B8AB;

    --border: #E0D6CA;
    --border-light: #EDE7DF;
    --border-gold: rgba(196, 166, 128, 0.4);

    --shadow-xs: 0 1px 3px rgba(74, 59, 44, 0.05);
    --shadow-sm: 0 2px 8px rgba(74, 59, 44, 0.07);
    --shadow-md: 0 6px 20px rgba(74, 59, 44, 0.10);
    --shadow-lg: 0 16px 40px rgba(74, 59, 44, 0.13);
    --shadow-xl: 0 28px 60px rgba(74, 59, 44, 0.16);
    --shadow-gold: 0 8px 30px rgba(196, 166, 128, 0.28);
    --shadow-gold-lg: 0 20px 50px rgba(196, 166, 128, 0.35);

    /* Tailwind tokens */
    --color-base-white: #FFFFFF;
    --color-base-off-white: #FAF7F2;
    --color-base-beige: #EAE2D6;
    --color-gold: #C4A680;
    --color-brown-light: #8D7458;
    --color-brown-dark: #6B543E;
    --color-text-main: #333333;
    --color-text-sub: #76685B;
    --color-text-black: #222222;
    --color-border: #E8E0D5;

    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. Reset & Base
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    min-width: 375px;
}

body {
    font-family: 'Noto Serif JP', serif;
    background-color: var(--greige-light);
    color: var(--text-main);
    line-height: 2;
    letter-spacing: 0.06em;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 375px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
}

.font-en { font-family: 'Montserrat', sans-serif; }
.font-co { font-family: 'Cormorant Garamond', serif; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =========================================
   3. Animations
   ========================================= */
@keyframes blurInUp {
    0% { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes revealEye {
    0% { clip-path: inset(48% 0 48% 0); filter: blur(8px); transform: scale(1.05); }
    50% { filter: blur(2px); }
    100% { clip-path: inset(0% 0 0% 0); filter: blur(0); transform: scale(1); }
}
@keyframes shimmerMove {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.2; }
    100% { transform: translateY(-130px) scale(0.4) rotate(15deg); opacity: 0; }
}
@keyframes lineExpand {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes scrollLine {
    0% { transform: scale(1, 0); transform-origin: 0 0; }
    45% { transform: scale(1, 1); transform-origin: 0 0; }
    46% { transform: scale(1, 1); transform-origin: 0 100%; }
    100% { transform: scale(1, 0); transform-origin: 0 100%; }
}
@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(-45deg) translate(0, 0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: rotate(-45deg) translate(-8px, 8px); }
    100% { opacity: 0; }
}
@keyframes scrollFade {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes cursorBlinkPc {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-fade-up { animation: blurInUp 1.2s var(--ease-smooth) both; opacity: 0; }
.animate-fade-in { animation: blurInUp 1.6s var(--ease-smooth) both; }
.animate-reveal-eye { animation: revealEye 2.2s var(--ease-smooth) both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-900 { animation-delay: 0.9s; }

.js-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth); }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-reveal.delay-1 { transition-delay: 0.08s; }
.js-reveal.delay-2 { transition-delay: 0.18s; }
.js-reveal.delay-3 { transition-delay: 0.30s; }
.js-reveal.delay-4 { transition-delay: 0.44s; }

/* =========================================
   4. Header
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: all 0.45s var(--ease-out-quart);
    box-shadow: 0 1px 0 var(--color-border), var(--shadow-xs);
}
.header-top { border-bottom: 1px solid var(--color-border); transition: padding 0.35s ease; }
.site-header.is-scrolled { background-color: rgba(250, 247, 242, 0.95); box-shadow: var(--shadow-md); }
.site-header.is-scrolled .header-top { padding-top: 0.3rem; padding-bottom: 0.3rem; }
.site-header.is-scrolled .logo-img-wrap { width: 2.75rem; height: 2.75rem; }
.logo-container { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.75s ease; }
.logo-container:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 18px rgba(196, 166, 128, 0.32)); }
.logo-container img { transition: filter 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.logo-container .logo-text-wrap { white-space: nowrap; flex-shrink: 0; min-width: 0; }
nav a { position: relative; overflow: hidden; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 2px; background: var(--gold); border-radius: 2px 2px 0 0; transition: transform 0.3s var(--ease-out-quart); }
nav a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-border-beige { border-color: var(--color-border); }
.nav-item-border { border-color: var(--color-border); }
.nav-title { color: var(--color-brown-dark); font-weight: 500; transition: color 0.25s ease; }
.nav-subtitle { color: var(--color-gold); transition: color 0.25s ease; }

/* =========================================
   5. Hero
   ========================================= */
.hero-wrap { position: relative; overflow: visible; background: var(--greige-light); }
.hero-bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 20% 60%, rgba(234, 227, 216, 0.95) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 80% 20%, rgba(242, 237, 229, 0.5) 0%, transparent 60%); z-index: 1; pointer-events: none; }
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.particle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(196, 166, 128, 0.8) 0%, rgba(196, 166, 128, 0) 70%); animation: floatUp linear infinite; }
.particle:nth-child(1) { width: 5px; height: 5px; left: 8%; bottom: -8%; animation-duration: 9s; animation-delay: 0s; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 22%; bottom: -5%; animation-duration: 11s; animation-delay: 2s; }
.particle:nth-child(3) { width: 7px; height: 7px; left: 43%; bottom: -10%; animation-duration: 8s; animation-delay: 3.5s; }
.particle:nth-child(4) { width: 4px; height: 4px; left: 61%; bottom: -6%; animation-duration: 13s; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 3px; height: 3px; left: 76%; bottom: -4%; animation-duration: 7s; animation-delay: 1.8s; }
.particle:nth-child(6) { width: 6px; height: 6px; left: 87%; bottom: -9%; animation-duration: 10s; animation-delay: 4.2s; }
.hero-image-shape { border-radius: 0 0 80px 0; overflow: hidden; }
.hero-sp-img-block { position: relative; width: 100%; height: 55svh; min-height: 260px; max-height: 400px; overflow: hidden; flex-shrink: 0; }
.hero-sp-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-img-overlay { display: none; }
@media (max-width: 767px) {
    .hero-img-overlay { display: block; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(62, 48, 40, 0.15) 0%, rgba(62, 48, 40, 0.35) 60%, rgba(62, 48, 40, 0.55) 100%); pointer-events: none; z-index: 2; }
}
.hero-sp-catch-wrap { position: absolute; top: 1.25rem; left: 1.25rem; right: 110px; bottom: auto; z-index: 3; padding: 0; }
.opening-badge-sp { position: absolute; top: 1rem; right: 1rem; z-index: 4; width: 90px !important; height: 90px !important; bottom: auto !important; left: auto !important; animation: subtleFloat 4s ease-in-out infinite; }
.opening-badge { background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 140px; height: 140px; position: absolute; bottom: 15rem; left: -4rem; z-index: 20; animation: subtleFloat 4s ease-in-out infinite; transition: box-shadow 0.3s ease; }
.opening-badge:hover { box-shadow: var(--shadow-lg), 0 0 0 6px rgba(196, 166, 128, 0.15); }
.opening-badge .en-year { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 700; color: var(--brown-dark); line-height: 1; }
.hero-catch { line-height: 1.75; letter-spacing: 0.04em; color: var(--text-main); font-weight: 400; }
.hero-catch-pc { font-size: clamp(1.55rem, 3.2vw, 2.55rem); text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); }
.hero-catch-sp { font-size: clamp(1.1rem, 5.5vw, 1.4rem); color: #FFFFFF !important; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 2px 20px rgba(0, 0, 0, 0.35); line-height: 3.5; opacity: 0; transition: opacity 0.4s ease; }
.hero-catch-sp.tw-active { opacity: 1; }
#sp-typewriter .tw-line { display: block; }
#sp-typewriter .tw-cursor { display: inline-block; color: rgba(255, 255, 255, 0.85); animation: cursorBlink 0.8s ease-in-out infinite; margin-left: 1px; }
#sp-typewriter.tw-done .tw-cursor { animation: none; opacity: 0; transition: opacity 1.2s ease 0.6s; }
.recruit-info-card { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-left: 3px solid var(--brown-dark); border-radius: 0 16px 16px 0; box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.6); padding: 1.5rem; position: relative; overflow: hidden; transition: box-shadow 0.4s ease; }
@media (min-width: 768px) {
    .recruit-info-card { padding: 1.6rem 1.8rem; border-radius: 0 20px 20px 0; }
    .recruit-info-card:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.8); transform: translateX(3px); }
}
.recruit-info-label { font-family: 'Montserrat', sans-serif; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--brown-light); margin-bottom: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.recruit-info-label::before { content: ''; display: inline-block; width: 1.5rem; height: 1px; background: var(--gold); flex-shrink: 0; }
.recruit-info-body { font-size: 0.92rem; line-height: 2; color: var(--brown-dark); font-weight: 500; }
.hero-grid-inner { display: grid; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 768px) { .hero-grid-inner { grid-template-columns: repeat(12, 1fr); padding-bottom: 4rem; } }
.hero-text-col { padding-top: 1.5rem; }
@media (min-width: 768px) { .hero-text-col { grid-column: span 5; padding-top: 5rem; } }
.hero-img-col { grid-column: span 7; }
.hero-doctor-avatar-wrap { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.hero-doctor-avatar-inner { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(196, 166, 128, 0.4); flex-shrink: 0; }
p.hero-doctor-name { font-size: 0.78rem; color: var(--brown-dark); }

/* =========================================
   6. Philosophy
   ========================================= */
.philosophy-section-offset { margin-top: -80px; padding-top: 160px !important; padding-bottom: 100px; }
@media (min-width: 768px) { .philosophy-section-offset { margin-top: -120px; padding-top: 240px !important; } }
@media (max-width: 767px) { .philosophy-section-offset { margin-top: 0; padding-top: 3rem !important; padding-bottom: 2rem !important; } }

/* =========================================
   7. Section Labels
   ========================================= */
.section-en-label { font-family: 'Montserrat', sans-serif; font-size: 0.62rem; letter-spacing: 0.32em; color: var(--brown-light); font-weight: 600; display: flex; align-items: center; margin-bottom: 0.75rem; position: relative; padding-left: 2.75rem; }
.section-en-label::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2rem; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; animation: lineExpand 0.9s var(--ease-smooth) both; }

/* =========================================
   8. Doctor Section
   ========================================= */
.doctor-img-container { max-width: 100%; }
@media (max-width: 767px) { .doctor-img-container { max-width: 280px; margin: 0 auto 1.5rem; } }
.doctor-img-rounded { border-radius: 2rem; box-shadow: 0 20px 60px rgba(74, 59, 44, 0.14), 0 6px 20px rgba(196, 166, 128, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
@media (max-width: 767px) { .doctor-img-rounded { border-radius: 1.5rem; } }
.doctor-img-dreamy { transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.2s ease; filter: brightness(1.02) saturate(0.92); transform-origin: center top; }
.doctor-img-dreamy:hover { transform: scale(1.03); filter: brightness(1.05) saturate(0.96); }
.doctor-msg-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 1.75rem; box-shadow: 0 8px 32px rgba(74, 59, 44, 0.08); position: relative; }
@media (min-width: 768px) { .doctor-msg-card { padding: 2.5rem; border-radius: 20px; } }
.u-border-t-var-border { border-top: 1px solid var(--border); }

/* =========================================
   9. Job Cards
   ========================================= */
.job-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; position: relative; overflow: hidden; transition: border-color 0.4s ease, transform 0.4s var(--ease-smooth), box-shadow 0.4s ease; box-shadow: var(--shadow-xs); }
.job-card h4 { font-weight: 600; letter-spacing: 0.07em; }
@media (min-width: 768px) { .job-card { padding: 2.75rem; border-radius: 24px; } }
.job-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out-quart); border-radius: 24px 24px 0 0; }
.job-card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: var(--shadow-gold-lg); }
.job-card:hover::before { transform: scaleX(1); }
.job-badge-new { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.10em; padding: 0.3rem 1.2rem; border-radius: 50px; min-width: 72px; }
.job-badge-full { background: var(--gold-gradient); color: var(--white); box-shadow: 0 3px 10px rgba(196, 166, 128, 0.35); }
.job-badge-part { background: transparent; color: var(--brown-mid); border: 1.5px solid var(--gold); }
.job-badge-divider { color: var(--greige-darker); font-size: 0.85rem; }
.recruit-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; color: var(--text-main); }
.recruit-table th { color: var(--brown-dark); font-weight: 600; padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; font-size: 0.85rem; letter-spacing: 0.04em; position: relative; background: rgba(242, 237, 229, 0.5); padding-left: 1rem; }
.recruit-table th::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; background: var(--gold-gradient); border-radius: 0 3px 3px 0; }
.recruit-table td { padding: 0.75rem 0.75rem 1.25rem; border-bottom: 1px dashed var(--border); line-height: 1.85; color: var(--text-main); font-size: 0.85rem; }
.recruit-table td .u-text-brown-mid { font-size: 1.08em; font-weight: 700; color: var(--brown-dark); }
.recruit-table th, .recruit-table td { display: block; width: 100%; }
.recruit-table tr:last-child td { border-bottom: none; }
@media (min-width: 768px) {
    .recruit-table th, .recruit-table td { display: table-cell; width: auto; }
    .recruit-table th { background: transparent; padding: 1.4rem 1rem; border-bottom: 1px dashed var(--border); font-size: 0.88rem; font-weight: 500; width: 26%; vertical-align: top; }
    .recruit-table th::before { display: none; }
    .recruit-table td { padding: 1.4rem 1rem; font-size: 0.93rem; }
    .recruit-table tr { transition: background 0.2s ease; }
    .recruit-table tr:hover td, .recruit-table tr:hover th { background: rgba(242, 237, 229, 0.4); }
    .recruit-table tr:last-child td, .recruit-table tr:last-child th { border-bottom: none; }
}
.schedule-list { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0 0.6rem 0.75rem; border-left: 2px solid var(--border); margin: 0.5rem 0; font-size: 0.82rem; color: var(--text-sub); }
@media (min-width: 768px) { .schedule-list { gap: 0.45rem; padding: 0.75rem 0 0.75rem 1rem; font-size: 0.85rem; } }
.welfares-card { background-color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(196, 166, 128, 0.15); box-shadow: 0 2px 12px rgba(74, 59, 44, 0.04); transition: border-color 0.7s var(--ease-smooth), box-shadow 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.welfares-card:hover { border-color: rgba(196, 166, 128, 0.35); box-shadow: 0 8px 32px rgba(196, 166, 128, 0.16), 0 2px 8px rgba(74, 59, 44, 0.06); transform: translateY(-4px); }
.welfares-card .u-bg-gold { opacity: 0.55; transition: opacity 0.7s var(--ease-smooth); }
.welfares-card:hover .u-bg-gold { opacity: 1; }

/* =========================================
   10. Bonus & Apply
   ========================================= */
.req-bonus-block { background: linear-gradient(135deg, var(--greige) 0%, var(--greige-light) 100%); border: 1px solid rgba(196, 166, 128, 0.5); border-radius: 20px; padding: 2rem 1.25rem; box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.7); position: relative; overflow: hidden; }
@media (min-width: 768px) { .req-bonus-block { border-radius: 24px; padding: 3.5rem 2.5rem; } }
.req-bonus-icon { background: var(--gold-gradient); color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; padding: 0.45rem 1.4rem; border-radius: 50px; letter-spacing: 0.18em; box-shadow: 0 4px 12px rgba(196, 166, 128, 0.4); display: inline-block; position: relative; overflow: hidden; }
.req-bonus-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%); background-size: 200% 100%; animation: shimmerMove 2.5s ease-in-out infinite; }
.req-bonus-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 0.75rem; text-align: center; transition: border-color 0.4s ease, box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth); cursor: default; position: relative; overflow: hidden; }
@media (min-width: 768px) { .req-bonus-item { border-radius: 16px; padding: 1.75rem 1.25rem; } }
.req-bonus-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold-gradient); transform: scaleX(0); transition: transform 0.3s var(--ease-out-quart); }
.req-bonus-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.req-bonus-item:hover::after { transform: scaleX(1); }
.req-bonus-item--ort { background: linear-gradient(135deg, #F8F4E8 0%, #F3EDDF 100%); border-color: rgba(196, 166, 128, 0.4); }
.req-apply-block { background: var(--off-white); border-radius: 20px; padding: 2.5rem 1.25rem; text-align: center; position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
@media (min-width: 768px) { .req-apply-block { border-radius: 24px; padding: 4rem 2.5rem; } }
.hover-gold-text { position: relative; word-break: break-all; }
.hover-gold-text::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease-out-quart); }
.hover-gold-text:hover { color: var(--gold) !important; }
.hover-gold-text:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================
   11. Buttons
   ========================================= */
.btn-gold-shimmer { display: inline-block; background: var(--gold); background-image: var(--gold-shimmer); background-size: 300% 100%; background-position: 100% center; color: var(--white); padding: 0.85rem 2rem; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.18em; text-decoration: none; transition: background-position 0.8s ease, box-shadow 0.4s ease, transform 0.35s var(--ease-smooth); box-shadow: 0 4px 18px rgba(196, 166, 128, 0.35); position: relative; overflow: hidden; cursor: pointer; border: none; outline: none; white-space: nowrap; }
@media (min-width: 768px) { .btn-gold-shimmer { padding: 1rem 3rem; } }
.btn-gold-shimmer:hover { background-position: 0% center; box-shadow: 0 8px 28px rgba(196, 166, 128, 0.5); transform: translateY(-3px); }
.btn-brown { display: inline-block; background-color: var(--color-brown-dark); color: var(--color-base-white); text-align: center; transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-smooth); box-shadow: 0 1px 4px rgba(74, 59, 44, 0.10); text-decoration: none; position: relative; overflow: hidden; white-space: nowrap; }
.btn-brown:hover { background-color: var(--color-brown-light); transform: translateY(-1px); box-shadow: 0 3px 12px rgba(74, 59, 44, 0.15); }

/* =========================================
   12. Scroll Indicators
   ========================================= */
.scroll-indicator-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-label { font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.3em; color: var(--brown-light); writing-mode: vertical-rl; text-orientation: upright; animation: scrollFade 2.5s ease-in-out infinite; margin-top: 8px; margin-bottom: 8px; }
.scroll-line-wrap { position: relative; width: 1px; height: 80px; }
.scroll-line-wrap::after { content: ''; position: absolute; top: 0; left: 0; right: 0; margin: auto; width: 1px; height: 100%; background-color: var(--greige-dark); }
.scroll-line-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; margin: auto; width: 1px; height: 100%; background-color: var(--gold); z-index: 1; animation: scrollLine 2s ease-in-out infinite; }
.scroll-arrow-icon { position: relative; width: 10px; height: 10px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); transform: rotate(-45deg); animation: scrollArrow 2s ease-in-out infinite; }
.scroll-boundary-wrap { display: none; }
@media (min-width: 768px) {
    .scroll-boundary-wrap { display: flex; justify-content: center; position: relative; z-index: 10; margin-top: -80px; margin-bottom: 0; pointer-events: none; }
    .scroll-boundary-wrap a { pointer-events: auto; }
    .scroll-boundary-wrap .scroll-label { mix-blend-mode: multiply; color: var(--brown-light); writing-mode: vertical-rl; text-orientation: upright; margin-top: 8px; margin-bottom: 8px; }
    .scroll-boundary-wrap .scroll-line-wrap { height: 120px; }
}

/* =========================================
   13. Footer
   ========================================= */
footer { background: linear-gradient(160deg, #72584A 0%, #5C4638 50%, #4E3C2E 100%); position: relative; overflow: hidden; }
footer .u-opacity-75 { opacity: 0.92; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(196, 166, 128, 0.6), transparent); }

/* =========================================
   14. Section Padding
   ========================================= */
.section-padding { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 768px) { .section-padding { padding-top: 140px; padding-bottom: 140px; } }

/* =========================================
   15. Utility Classes
   ========================================= */
.u-text-main { color: var(--text-main); }
.u-text-sub { color: var(--text-sub); }
.u-text-muted { color: var(--text-muted); }
.u-text-gold { color: var(--gold); }
.u-text-brown-light { color: var(--brown-light); }
.u-text-brown-dark { color: var(--brown-dark); }
.u-text-brown-mid { color: var(--brown-mid); }
.u-text-white { color: var(--white); }
.u-bg-gold { background: var(--gold); }
.u-bg-white { background: var(--white); }
.u-bg-greige-light { background: var(--greige-light); }
.u-bg-off-white { background: var(--off-white); }
.u-bg-brown-deep { background: var(--brown-deep); }
.u-border-var-border { border-color: var(--border); }
.u-border-var-border-light { border-color: var(--border-light); }
.u-border-b-var-border { border-bottom: 1px solid var(--border); }
.u-border-b-var-border-light { border-bottom: 1px solid var(--border-light); }
.u-opacity-6 { opacity: 0.6; }
.u-opacity-75 { opacity: 0.75; }
.u-opacity-45 { opacity: 0.45; }
.u-bg-greige-section { background: var(--greige-light); border-color: var(--border-light); }
.u-apply-inner-card { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-sm); }
.u-apply-method-title { color: var(--brown-dark); border-color: var(--border); }
.u-apply-note-box { background: var(--off-white); border-color: var(--border-light); }
.u-ort-inner-card { background: rgba(255, 255, 255, 0.99); border-color: rgba(196, 166, 128, 0.35); box-shadow: var(--shadow-md), 0 0 0 1px rgba(196, 166, 128, 0.15); }
.u-ort-heading { color: var(--brown-dark); border-color: var(--border); }
.u-ort-note-box { background: var(--off-white); border-color: var(--brown-light); border-radius: 12px; }
.u-ort-special-text { color: var(--gold); position: relative; text-decoration: underline; text-decoration-color: rgba(196, 166, 128, 0.5); text-underline-offset: 3px; }
.u-requirements-card-header { border-color: var(--border); }
.u-hover-border-gold { border: 1.5px solid rgba(196, 166, 128, 0.4); box-shadow: var(--shadow-gold); transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.4s ease; }
.u-hover-border-gold:hover { border-color: var(--gold) !important; box-shadow: var(--shadow-gold-lg) !important; }
.u-hero-deco-large { background: radial-gradient(circle, rgba(196, 166, 128, 0.10) 0%, rgba(234, 227, 216, 0.06) 60%, transparent 100%); border: 1px solid rgba(196, 166, 128, 0.18); animation: subtleFloat 6s ease-in-out infinite; }
.u-hero-deco-small { background: radial-gradient(circle, rgba(196, 166, 128, 0.08) 0%, transparent 70%); border: 1px solid rgba(196, 166, 128, 0.12); animation: subtleFloat 8s ease-in-out infinite reverse; }
.u-welfares-card-base { background-color: rgba(255, 255, 255, 0.92); }
.u-footer-maps-btn { border-color: rgba(255, 255, 255, 0.35); color: var(--white); text-decoration: none; transition: background 0.3s ease, border-color 0.3s ease; }
.u-footer-maps-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.u-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); opacity: 0.5; }
.u-nav-link-reset { color: inherit; text-decoration: none; transition: opacity 0.25s ease; }
.u-nav-link-reset:hover { opacity: 0.8; }
.u-gold-link-reset { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.u-gold-link-reset:hover { color: var(--gold-light); }

/* =========================================
   16. Scrollbar
   ========================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--greige-light); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-light), var(--brown-light)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =========================================
   17. Focus & Accessibility
   ========================================= */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(196, 166, 128, 0.25); color: var(--brown-dark); }

/* =========================================
   略歴行アニメーション
   ========================================= */
.career-row { position: relative; overflow: hidden; border-radius: 8px; transition: background 0.45s var(--ease-smooth), padding-left 0.4s var(--ease-out-quart), box-shadow 0.45s var(--ease-smooth); }
.career-row::before { content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 2px; background: linear-gradient(180deg, transparent, var(--gold), transparent); transform: scaleY(0); transform-origin: center; transition: transform 0.5s var(--ease-out-quart); border-radius: 2px; }
.career-row::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 50%, rgba(196, 166, 128, 0.10) 0%, transparent 65%); opacity: 0; transition: opacity 0.5s var(--ease-smooth); pointer-events: none; }
@media (min-width: 768px) {
    .career-row:hover { background: rgba(255, 255, 255, 0.88); padding-left: 0.6rem; box-shadow: 0 2px 12px rgba(74, 59, 44, 0.06); }
    .career-row:hover::before { transform: scaleY(1); }
    .career-row:hover::after { opacity: 1; }
    .career-row:hover .career-year { color: var(--gold) !important; transition: color 0.4s var(--ease-smooth); }
}
@media (max-width: 767px) {
    .career-row:active { background: rgba(196, 166, 128, 0.06); padding-left: 0.5rem; }
    .career-row:active::before { transform: scaleY(0.8); }
    .career-row:active::after { opacity: 1; }
    .career-row:active .career-year { color: var(--gold) !important; transition: color 0.2s ease; }
}

/* =========================================
   院長メッセージ SP スクロールエリア
   ========================================= */
@media (max-width: 767px) {
    .doctor-message-scroll { max-height: 260px; overflow-y: auto; position: relative; scrollbar-width: thin; scrollbar-color: var(--brown-dark) transparent; padding: 1.25rem 1rem 1.25rem 1.1rem; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-light); border-left: 3px solid var(--brown-dark); border-radius: 12px; box-shadow: inset 0 2px 8px rgba(74, 59, 44, 0.04); font-size: 0.87rem !important; line-height: 2.1 !important; letter-spacing: 0.04em; text-align: left !important; color: var(--text-main); -webkit-overflow-scrolling: touch; }
    .doctor-message-scroll::-webkit-scrollbar { width: 3px; }
    .doctor-message-scroll::-webkit-scrollbar-track { background: transparent; }
    .doctor-message-scroll::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 4px; }
    .doctor-message-scroll-wrap { position: relative; }
    .doctor-message-scroll-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48px; background: linear-gradient(to bottom, transparent, rgba(242, 237, 229, 0.85)); border-radius: 0 0 12px 12px; pointer-events: none; z-index: 1; transition: opacity 0.3s ease; }
    .doctor-message-scroll-wrap.is-scrolled-end::after { opacity: 0; }
    .doctor-message-hint { display: flex; align-items: center; gap: 6px; margin-top: 0.5rem; font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.25em; color: var(--brown-light); opacity: 0.7; }
    .doctor-message-hint::before { content: ''; display: block; width: 1px; height: 16px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }
    .career-grid-wrap { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-light); border-radius: 14px; padding: 0.25rem 0.75rem; box-shadow: var(--shadow-xs); }
    .req-bonus-item { transition: transform 0.9s var(--ease-elastic), box-shadow 0.9s ease, border-color 0.9s ease, background 0.9s ease; }
    .req-bonus-item:active { transform: scale(0.94); box-shadow: var(--shadow-gold); border-color: var(--gold); background: rgba(196, 166, 128, 0.06); }
    .req-bonus-item:active::after { transform: scaleX(1); }
    .req-bonus-item--ort:active { background: rgba(196, 166, 128, 0.14); }
}
@media (min-width: 768px) {
    .doctor-message-scroll-wrap::after { display: none; }
    .doctor-message-hint { display: none; }
    .doctor-message-scroll { background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-light); border-left: 3px solid rgba(196, 166, 128, 0.55); border-radius: 14px; padding: 2rem 2rem 2rem 2.25rem; box-shadow: 0 2px 12px rgba(74, 59, 44, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8); position: relative; }
    .doctor-message-scroll p+p { padding-top: 1rem; border-top: 1px solid rgba(224, 214, 202, 0.5); }
    .doctor-message-scroll p:first-child { font-size: 1rem; font-weight: 500; color: var(--brown-dark); letter-spacing: 0.06em; }
    .doctor-message-scroll p { font-size: 0.92rem; line-height: 2.15; color: var(--text-main); letter-spacing: 0.05em; }
    .doctor-message-scroll::before { content: '\201C'; font-family: 'Cormorant Garamond', serif; font-size: 5rem; line-height: 1; color: var(--gold-pale); position: absolute; top: -0.5rem; right: 1.25rem; pointer-events: none; user-select: none; opacity: 0.6; }
}

/* =========================================
   PC タイプライター
   ========================================= */
#pc-typewriter { opacity: 0; transition: opacity 0.3s ease; min-height: 1em; }
#pc-typewriter.tw-pc-active { opacity: 1; }
#pc-typewriter .tw-pc-line { display: block; }
#pc-typewriter .tw-pc-cursor { display: inline-block; color: var(--gold); animation: cursorBlinkPc 0.75s ease-in-out infinite; font-weight: 300; margin-left: 2px; }
#pc-typewriter.tw-pc-done .tw-pc-cursor { animation: none; opacity: 0; transition: opacity 1s ease 0.5s; }
