/* --- 変数定義 --- */
:root {
    --color-primary: #6BBF8A; /* やわらかい緑 */
    --color-primary-dark: #58a073;
    --color-accent: #F5A623; /* アクセントオレンジ */
    --color-accent-hover: #e09214;
    --color-bg: #FFF9F0; /* オフホワイト背景 */
    --color-text: #333333; /* 濃いグレー */
    --color-white: #ffffff;
    --color-gray-light: #f4f4f4;

    --font-main: 'Noto Sans JP', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-soft: 0 4px 15px rgba(107, 191, 138, 0.15);
    --shadow-hover: 0 8px 25px rgba(107, 191, 138, 0.25);
}

/* --- リセット & 基本設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ユーティリティ --- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); font-weight: bold; }
.text-primary { color: var(--color-primary); font-weight: bold; }

/* フェードインアニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

/* --- ヘッダー --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PCナビゲーション */
.pc-nav {
    display: none;
}

/* ハンバーガーメニュー */
.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1002;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}
/* ハンバーガー展開時 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-bg);
    padding: 80px 20px;
    transition: 0.4s;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-nav.active {
    right: 0;
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* オーバーレイ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.overlay.active {
    display: block;
}
.mobile-nav ul li {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--color-primary);
}
.mobile-nav ul li a {
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
}

@media (min-width: 768px) {
    .hamburger { display: none; }
    .mobile-nav { display: none; }
    .pc-nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .pc-nav a {
        font-weight: 500;
        font-size: 0.95rem;
    }
    .pc-nav a:hover {
        color: var(--color-primary);
    }
    .header-cta {
        display: flex;
        gap: 10px;
    }
}

/* --- メインビジュアル --- */
#hero {
    background: linear-gradient(135deg, rgba(107, 191, 138, 0.2) 0%, rgba(255, 249, 240, 1) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* CSS図形による装飾 (背景) */
#hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(107, 191, 138, 0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0;
}
.hero-illustration {
    max-width: 400px;
    margin: 20px auto 30px;
    position: relative;
}
.hero-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(107, 191, 138, 0.2));
}

/* 装飾パーツ共通 */
.deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* 大きな半透明の丸 - 左上 */
.deco-circle1 {
    width: 120px;
    height: 120px;
    background: rgba(107, 191, 138, 0.15);
    top: -20px;
    left: -30px;
    animation: decoFloat1 4s ease-in-out infinite;
}

/* 中くらいの丸 - 右下 */
.deco-circle2 {
    width: 80px;
    height: 80px;
    background: rgba(245, 166, 35, 0.15);
    bottom: 10px;
    right: -10px;
    animation: decoFloat2 5s ease-in-out infinite;
}

/* 小さなドット1 */
.deco-dot1 {
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    opacity: 0.4;
    top: 15%;
    right: 5%;
    animation: decoFloat3 3.5s ease-in-out infinite;
}

/* 小さなドット2 */
.deco-dot2 {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    opacity: 0.5;
    bottom: 25%;
    left: -5%;
    animation: decoFloat1 4.5s ease-in-out infinite 0.5s;
}

/* 小さなドット3 */
.deco-dot3 {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    opacity: 0.35;
    top: 60%;
    right: -8%;
    animation: decoFloat2 3s ease-in-out infinite 1s;
}

/* リング（輪） */
.deco-ring {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 3px solid rgba(107, 191, 138, 0.25);
    top: -5%;
    right: 15%;
    animation: decoSpin 8s linear infinite, decoFloat3 4s ease-in-out infinite;
}

/* 十字マーク */
.deco-cross {
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 0;
    bottom: 15%;
    left: 5%;
    animation: decoFloat2 3.8s ease-in-out infinite 0.3s, decoSpin 12s linear infinite reverse;
}
.deco-cross::before,
.deco-cross::after {
    content: '';
    position: absolute;
    background: rgba(245, 166, 35, 0.35);
    border-radius: 2px;
}
.deco-cross::before {
    width: 100%;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.deco-cross::after {
    width: 4px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

@keyframes decoFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -12px); }
}
@keyframes decoFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6px, -10px); }
}
@keyframes decoFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, 10px); }
}
@keyframes decoSpin {
    0% { rotate: 0deg; }
    100% { rotate: 360deg; }
}

.hero-sub {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: bold;
}
.hero-title {
    font-size: 1.7rem;
    margin-bottom: 20px;
    line-height: 1.4;
}
.hero-desc {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    #hero {
        padding: 100px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
    }
    .hero-content {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
        max-width: 1100px;
    }
    .hero-text-area {
        flex: 1;
    }
    .hero-illustration {
        flex: 1;
        margin: 0;
    }
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1.1rem; }
}

/* --- お知らせティッカー --- */
#news-ticker {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 0;
    text-align: center;
}
.ticker-wrap {
    position: relative;
    height: 1.5em;
    overflow: hidden;
}
.ticker-item {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(100%);
    animation: tickerFade 15s infinite;
}
.ticker-item:nth-child(1) { animation-delay: 0s; }
.ticker-item:nth-child(2) { animation-delay: 3s; }
.ticker-item:nth-child(3) { animation-delay: 6s; }
.ticker-item:nth-child(4) { animation-delay: 9s; }
.ticker-item:nth-child(5) { animation-delay: 12s; }

@keyframes tickerFade {
    0%   { opacity: 0; transform: translateY(100%); }
    5%   { opacity: 1; transform: translateY(0); }
    20%  { opacity: 1; transform: translateY(0); }
    25%  { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* --- 共通セクションスタイル --- */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
/* 手書き風アンダーライン */
.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background-color: rgba(245, 166, 35, 0.4); /* オレンジ半透明 */
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 3px;
    transform: rotate(-1deg);
}

/* --- お悩みセクション --- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.problem-card {
    background: var(--color-white);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.problem-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.problem-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .problem-card { padding: 30px 20px; }
    .problem-img { width: 180px; height: 180px; }
    .problem-card p { font-size: 1rem; }
}

/* --- 施術内容 --- */
.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.service-header {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}
.service-body {
    padding: 20px;
}
.service-body p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
}

@media (min-width: 768px) {
    .services-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .service-card { margin-bottom: 0; }
}

/* --- 選ばれる理由 --- */
.reason-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.reason-item {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
}
.reason-item:hover {
    border-color: var(--color-primary);
}
.reason-num {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--color-accent);
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.reason-title {
    margin-top: 10px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

@media (min-width: 768px) {
    .reason-list {
        flex-direction: row;
    }
    .reason-item { flex: 1; }
}

/* --- 予約・カレンダー --- */
#booking .container {
    width: 100%;
    padding: 0;
}
.booking-box {
    background: var(--color-white);
    border-radius: 0;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.booking-box .section-title {
    left: auto;
    transform: none;
}
.calendar-wrapper {
    width: 100%;
    height: 500px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}
.calendar-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}
@media (min-width: 768px) {
    #booking .container { width: 90%; padding: 0 20px; }
    .booking-box { padding: 40px; border-radius: var(--radius-lg); }
    .booking-actions { flex-direction: row; }
}

/* --- 料金表 --- */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 10px;
}
.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.price-table th {
    background-color: rgba(107, 191, 138, 0.1);
    color: var(--color-primary-dark);
    width: 60%;
}
.price-table td {
    font-weight: bold;
    text-align: right;
}
.price-table tr:last-child th, .price-table tr:last-child td {
    border-bottom: none;
}
.price-note {
    font-size: 0.8rem;
    color: #777;
    text-align: right;
}

/* --- 院長紹介 --- */
.staff-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.staff-img-wrapper {
    width: 220px;
    height: 220px;
    background-color: #fff;
    border: 5px solid var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.staff-img-wrapper svg {
    width: 100%;
    height: 100%;
}
.staff-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.staff-qual {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .staff-card { flex-direction: row; text-align: left; }
    .staff-info { flex: 1; }
}

/* --- アクセス --- */
.access-map {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
}
.access-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* --- フッター --- */
footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}
.footer-cta {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- フローティングCTA (SPのみ) --- */
#floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    z-index: 999;
}
#floating-cta a {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.float-tel { background: var(--color-primary); color: white; }
.float-line { background: var(--color-accent); color: white; }

@media (min-width: 768px) {
    #floating-cta { display: none; }
}

/* --- SVG Icon Utility --- */
.icon-inline {
    width: 20px;
    height: 20px;
    fill: currentColor;
}