@charset "UTF-8";

/* =========================================
   Base Setup (Clear Eye Clinic)
   ========================================= */
:root {
    --bg-color: #ffffff;
    --text-main: #2c3e50;   /* ダークブルーグレー */
    --text-light: #95a5a6;  /* シルバーグレー */
    --accent: #3498db;      /* クリアブルー */
    --line-color: #ecf0f1;  /* 薄いグレーの線 */
    --font-en: 'Lato', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 2.0;
    letter-spacing: 0.08em;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1); }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
ul { list-style: none; }

/* 英語見出し */
.en {
    font-family: var(--font-en); font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase;
    display: block; color: var(--accent); margin-bottom: 1rem;
}

/* アニメーション */
.fade-up {
    opacity: 0; transform: translateY(40px); transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   Minimal Header (Hamburger Only)
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2rem 4%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #fff;
}

.logo {
    font-family: var(--font-jp);
    font-size: 1.4rem; font-weight: 500; letter-spacing: 0.1em;
}

/* ハンバーガーボタン */
.menu-btn {
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    gap: 8px;
    z-index: 1001;
}
.menu-btn span {
    display: block; height: 1px; background-color: #fff;
    transition: 0.4s;
}
.menu-btn span:nth-child(1) { width: 40px; }
.menu-btn span:nth-child(2) { width: 25px; }

.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 30px; background-color: var(--text-main); }
.menu-btn.active span:nth-child(2) { transform: rotate(-45deg) translate(2px, -1px); width: 30px; background-color: var(--text-main); }

/* 全画面ナビゲーション */
.overlay-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.overlay-nav.active { opacity: 1; pointer-events: auto; }

.overlay-nav ul { text-align: center; }
.overlay-nav li { margin: 2rem 0; overflow: hidden; }
.overlay-nav a {
    display: block; font-size: 2rem; font-weight: 300; color: var(--text-main);
    transform: translateY(100%); transition: 0.6s 0.2s;
    font-family: var(--font-en); letter-spacing: 0.1em;
}
.overlay-nav a span {
    display: block; font-size: 0.9rem; color: var(--text-light); margin-top: 5px; font-family: var(--font-jp);
}
.overlay-nav.active a { transform: translateY(0); }
.overlay-nav a:hover { color: var(--accent); }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -1;
    filter: brightness(0.95);
    transform: scale(1.1);
}
.hero-content {
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 4rem 6rem;
    border: 1px solid rgba(255,255,255,0.5);
}
.hero-title {
    font-size: 3rem; font-weight: 300; margin-bottom: 2rem;
    line-height: 1.4; color: var(--text-main);
}
.hero-sub {
    font-size: 1rem; color: var(--text-light); letter-spacing: 0.2em;
}

/* =========================================
   Layout & Components
   ========================================= */
.section { padding: 10rem 10%; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 6rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 300; letter-spacing: 0.1em; }

/* Grid Layout (Top Page) */
.grid-line {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-color);
    border-left: 1px solid var(--line-color);
}
.line-card {
    padding: 4rem 2rem;
    border-right: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
    text-align: center;
    transition: 0.4s;
    background: #fff;
}
.line-card:hover { background: #fafafa; }
.line-icon {
    font-size: 2.5rem; color: var(--accent); margin-bottom: 2rem; display: block; font-weight: 100;
}
.line-title { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 500; }
.line-desc { font-size: 0.9rem; color: var(--text-light); }

/* Image + Text (Minimal) */
.content-row {
    display: flex; align-items: center; margin-bottom: 10rem;
}
.content-row:nth-child(even) { flex-direction: row-reverse; }
.content-img {
    flex: 1.2; height: 500px;
    position: relative;
}
.content-img::after {
    content: ''; position: absolute; top: 20px; left: 20px;
    width: 100%; height: 100%; border: 1px solid var(--line-color);
    z-index: -1;
}
.content-text { flex: 1; padding: 0 4rem; }
.content-text h3 { font-size: 2rem; font-weight: 300; margin-bottom: 2rem; }
.content-text p { color: var(--text-light); margin-bottom: 2rem; }

/* Button */
.btn-simple {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-size: 0.9rem; letter-spacing: 0.1em;
    transition: 0.3s;
}
.btn-simple:hover { background: var(--text-main); color: #fff; }

/* =========================================
   Sub Pages
   ========================================= */
.page-header {
    height: 50vh;
    display: flex; align-items: flex-end;
    padding: 0 10% 4rem;
    position: relative;
    background: #f9f9f9;
}
.page-title {
    font-family: var(--font-en); font-size: 4rem; font-weight: 100; color: var(--accent);
    position: relative; z-index: 2;
}
.page-header-bg {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.5;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

/* Medical List (Updated for Static List) */
.medical-list { border-top: 1px solid var(--line-color); }
.medical-item {
    padding: 2.5rem 0; border-bottom: 1px solid var(--line-color);
}
.medical-head {
    display: flex; align-items: center; margin-bottom: 1rem;
}
.medical-name { font-size: 1.5rem; font-weight: 300; color: var(--text-main); }
.medical-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-left: 2rem; }

/* Access Info */
.info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    border-top: 1px solid var(--line-color); padding-top: 4rem;
}
.info-row { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-color); padding-bottom: 1.5rem; }
.info-label { width: 100px; color: var(--text-light); font-size: 0.9rem; }

/* Form */
.form-minimal { max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 3rem; position: relative; }
input, textarea, select {
    width: 100%; padding: 1rem 0; border: none; border-bottom: 1px solid var(--text-light);
    background: transparent; font-family: inherit; font-size: 1.1rem; color: var(--text-main);
    transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
label {
    position: absolute; top: 1rem; left: 0; color: var(--text-light);
    transition: 0.3s; pointer-events: none;
}
input:focus + label, input:not(:placeholder-shown) + label, textarea:focus + label, textarea:not(:placeholder-shown) + label {
    top: -1.2rem; font-size: 0.8rem; color: var(--accent);
}

/* Footer */
.footer {
    padding: 4rem 10%; border-top: 1px solid var(--line-color);
    display: flex; justify-content: space-between; align-items: flex-end;
}
.footer-logo { font-size: 1.2rem; font-weight: 500; }
.copyright { font-size: 0.8rem; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 6rem 5%; }
    .hero-content { padding: 2rem; width: 90%; }
    .hero-title { font-size: 2rem; }
    .grid-line { grid-template-columns: 1fr; border-left: none; }
    .line-card { border-left: 1px solid var(--line-color); }
    .content-row, .content-row:nth-child(even) { flex-direction: column; gap: 2rem; margin-bottom: 6rem; }
    .content-text { padding: 0; }
    .info-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer { flex-direction: column; align-items: flex-start; gap: 2rem; }
    
    .medical-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .medical-desc { margin-left: 0; }
}