/* ================================================
   大﨑クリニック - 共通スタイルシート
   Green & Modern Warmth
   ================================================ */

:root {
    --primary:       #228b22;
    --primary-dark:  #196619;
    --primary-light: #3da63d;
    --bg-soft:       #f0f7f0;
    --bg-warm:       #fffde7;
    --text:          #2c2c2c;
    --text-light:    #5a5a5a;
    --white:         #ffffff;
    --gray-light:    #f5f5f5;
    --border:        #ddd;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:     0 5px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 10px 36px rgba(0,0,0,0.13);
    --radius:        8px;
    --radius-lg:     14px;
    --transition:    0.28s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial,
                 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.75;
    background: var(--white);
    font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); }

/* ---- Container ---- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   HEADER
   ================================================ */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

/* ---- Logo ---- */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 52px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.68rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
}

/* ---- Nav ---- */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 8px 13px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.current::after {
    transform: scaleX(1);
}

.nav-notice-btn {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 20px;
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
    margin-left: 6px;
    transition: background var(--transition) !important;
}

.nav-notice-btn:hover {
    background: var(--primary-dark) !important;
}

.nav-notice-btn::after { display: none !important; }

/* ---- Hamburger ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   PAGE TITLE BANNER
   ================================================ */
.page-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 28px 0;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.page-title::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.page-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    position: relative;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34,139,34,0.28);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ================================================
   CARDS (汎用)
   ================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-head {
    background: var(--primary);
    color: var(--white);
    padding: 14px 20px;
}

.card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card-body p { flex-grow: 1; line-height: 1.8; }

.card-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-body a:hover { text-decoration: underline; }

/* ================================================
   PDF INFO SECTION
   ================================================ */
.pdf-info {
    background: var(--gray-light);
    padding: 22px 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 40px 0;
}

.pdf-info-text h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.pdf-info-text p { font-size: 0.9rem; color: var(--text-light); }

/* ================================================
   SECTION HEADINGS
   ================================================ */
.section-title {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ================================================
   TABLES (共通)
   ================================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.info-table th {
    background: var(--bg-soft);
    padding: 13px 16px;
    text-align: center;
    border: 1px solid var(--border);
    width: 22%;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.92rem;
}

.info-table td {
    padding: 13px 16px;
    border: 1px solid var(--border);
    vertical-align: middle;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.88);
    padding: 52px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.footer-col address {
    font-style: normal;
    line-height: 2;
    margin-bottom: 10px;
}

.footer-col p { line-height: 1.85; font-size: 0.88rem; }

.footer-col a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { font-size: 0.88rem; }

.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.42);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body { font-size: 14px; }

    .container { padding: 0 16px; }

    /* モバイルナビ */
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        inset: 0;
        background: var(--white);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .main-nav.open { transform: translateX(0); }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 320px;
    }

    .main-nav li { width: 100%; }

    .main-nav a {
        padding: 17px 24px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-notice-btn {
        margin: 16px 24px 0;
        text-align: center;
        border-radius: var(--radius) !important;
    }

    .main-nav a::after { display: none; }

    /* ページタイトル */
    .page-title h2 { font-size: 1.4rem; }

    /* フッター */
    footer { margin-top: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* PDF */
    .pdf-info { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 480px) {
    .logo-name { font-size: 1.25rem; }
}
