@charset "UTF-8";

/* =========================================
   Base Setup (Forest Dental)
   ========================================= */
:root {
    --bg-color: #fcfcf7;    /* アイボリー */
    --primary: #88a096;     /* セージグリーン（くすみ緑） */
    --primary-light: #e6ebe9;
    --accent: #d4a373;      /* 木目のベージュ */
    --text-main: #555555;   /* グレー（黒を使わない） */
    --font-base: 'Zen Maru Gothic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-base);
    line-height: 2.0;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
ul { list-style: none; }

/* ふわっと出現アニメーション */
.fade-in {
    opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   Floating Header (カプセル型ナビ)
   ========================================= */
.header {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px; /* 丸いカプセル型 */
    padding: 0.8rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(136, 160, 150, 0.15);
}

.logo {
    font-size: 1.2rem; font-weight: 700; color: var(--primary);
    display: flex; align-items: center; gap: 0.5rem;
}
.logo::before {
    content: '♣'; /* 木のアイコン代わり */
    font-size: 1.4rem; color: var(--accent);
}

.nav ul { display: flex; gap: 2rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-main); position: relative; }
.nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--accent); transition: 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.btn-reserve-header {
    background: var(--primary); color: #fff !important;
    padding: 0.6rem 1.5rem; border-radius: 30px; font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(136, 160, 150, 0.3);
}
.btn-reserve-header:hover { background: var(--accent); transform: translateY(-2px); }

.hamburger { display: none; }

/* =========================================
   Hero Section (Split & Round)
   ========================================= */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px; /* ヘッダー分 */
}
.hero-text {
    flex: 1; padding-right: 3rem; z-index: 2;
}
.hero-title {
    font-size: 2.5rem; font-weight: 700; color: var(--primary);
    margin-bottom: 1.5rem; line-height: 1.4;
}
.hero-msg { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-main); }

.hero-img-wrap {
    flex: 1.2; height: 80%; position: relative;
}
.hero-img {
    width: 100%; height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* 有機的な丸み（Blob） */
    overflow: hidden;
    animation: morph 10s ease-in-out infinite;
    box-shadow: 20px 20px 0 var(--primary-light);
}
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* =========================================
   Wave Sections
   ========================================= */
/* 波型区切り線の共通クラス */
.wave-top {
    width: 100%; height: 50px; background: var(--primary-light);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin-bottom: -1px; /* 隙間対策 */
}
.wave-bottom {
    width: 100%; height: 50px; background: var(--primary-light);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    margin-top: -1px;
}

.section-bg {
    background-color: var(--primary-light);
    padding: 5rem 5%;
}

.section { padding: 6rem 5%; }
.container { max-width: 900px; margin: 0 auto; }

.section-title {
    text-align: center; margin-bottom: 3rem;
}
.section-title span {
    display: block; color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em;
}
.section-title h2 {
    font-size: 1.8rem; color: var(--primary); margin-top: 0.5rem;
}

/* Cards (Rounded) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.feature-card {
    background: #fff; padding: 2rem; border-radius: 20px; text-align: center;
    transition: 0.3s; border: 2px solid transparent;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.feature-icon {
    width: 80px; height: 80px; background: var(--primary-light);
    border-radius: 50%; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary);
}

/* Buttons */
.btn-round {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 1rem 3rem; border-radius: 50px; margin-top: 2rem;
    font-weight: 700; transition: 0.3s;
}
.btn-round:hover { background: var(--primary); transform: scale(1.05); }

/* =========================================
   Sub Pages
   ========================================= */
.page-header {
    height: 40vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    position: relative;
    border-radius: 0 0 50px 50px; /* 下だけ丸く */
    margin-bottom: 5rem;
    padding-top: 60px;
}
.page-title { font-size: 2rem; color: var(--primary); font-weight: 700; }

/* Timeline (Flow) */
.flow-list { position: relative; padding-left: 2rem; border-left: 3px solid var(--primary-light); }
.flow-item { margin-bottom: 3rem; position: relative; }
.flow-item::before {
    content: ''; position: absolute; left: -2.6rem; top: 0;
    width: 20px; height: 20px; background: var(--accent); border-radius: 50%;
    border: 4px solid #fff;
}
.flow-num { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.flow-title { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary); }

/* Staff */
.staff-card {
    display: flex; gap: 2rem; background: #fff; padding: 2rem;
    border-radius: 30px; align-items: center; margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.staff-img { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }

/* Access */
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.info-table th, .info-table td { padding: 1rem; border-bottom: 1px solid #eee; text-align: left; }
.info-table th { color: var(--primary); font-weight: 700; width: 30%; }

/* Form */
.form-soft {
    background: var(--primary-light); padding: 3rem; border-radius: 30px;
}
input, textarea, select {
    width: 100%; padding: 1rem; border: none; border-radius: 15px;
    margin-bottom: 1.5rem; background: #fff; font-family: inherit;
}
.btn-submit {
    width: 100%; padding: 1.2rem; background: var(--primary); color: #fff;
    border: none; border-radius: 50px; font-weight: 700; cursor: pointer;
}

/* Footer */
.footer {
    background: var(--primary); color: #fff; padding: 4rem 5% 2rem;
    text-align: center; border-radius: 50px 50px 0 0; margin-top: 5rem;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; display: inline-block; }

/* Responsive */
@media (max-width: 768px) {
    .header { width: 95%; padding: 0.8rem 1.5rem; top: 10px; }
    .nav { display: none; }
    .hamburger { display: block; width: 25px; height: 20px; position: relative; }
    .hamburger span { position: absolute; width: 100%; height: 2px; background: var(--primary); }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { bottom: 0; }
    
    .hero { flex-direction: column-reverse; height: auto; padding: 6rem 5% 4rem; text-align: center; }
    .hero-text { padding-right: 0; }
    .hero-img-wrap { width: 100%; height: 300px; margin-bottom: 2rem; }
    
    .staff-card { flex-direction: column; text-align: center; }
}