/* --- 変数・基本設定 --- */
:root {
    --color-text-main: #444;
    --color-teal: #4A9B9B;
    --color-teal-light: #E8F4F3;
    --color-blue: #2B6B9A;
    --color-green: #5BB898;
    --color-pink: #2B6B9A;
    /* アクセントをロゴの青に統一 */
    --color-sand: #B8DCD4;
    --color-bg-gray: #f7fafa;
    --bg-color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--color-text-main);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--color-teal);
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

/* 共通コンテナ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通 */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

.section-bg-gray {
    background-color: var(--color-bg-gray);
}

.section-bg-teal {
    background-color: var(--color-teal-light);
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-teal);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
}

.section-title span {
    border-bottom: 3px solid var(--color-sand);
    padding-bottom: 5px;
}

/* 葉っぱアイコン（CSSのみで描画） */
.leaf-deco {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--color-teal);
    border-radius: 50% 0 50% 0;
    margin-right: 10px;
    vertical-align: middle;
}

/* ボタン */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(43, 107, 154, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f5580 0%, #3a8585 100%);
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- ヘッダー --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999999 !important;
}

main {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000001 !important;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-teal);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span {
    background-color: var(--color-teal);
}

.hamburger.active span:nth-child(1) {
    background-color: var(--color-teal);
}

/* お問い合わせ吹き出し */
.nav-contact {
    position: relative;
}

.nav-contact-bubble {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(43, 107, 154, 0.3);
}

.nav-contact-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-blue);
}

/* モバイル対応：ヘッダー */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    nav#nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff !important;
        background: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1000000 !important;
        padding-top: 100px;
        display: block;
        transition: transform 0.4s ease, opacity 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        will-change: transform, opacity;
    }

    nav#nav-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    nav ul {
        flex-direction: column;
        padding: 40px;
        gap: 35px;
        text-align: right;
    }

    nav ul li a {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--color-teal);
        display: block;
    }

    .nav-contact-bubble {
        display: none;
    }

    /* ハンバーガーアニメーション */
    .hamburger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

/* --- フッター --- */
footer {
    background-color: #fff;
    color: #444;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.75rem;
    border-top: 1px solid #eee;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

/* スマホ用固定フッター */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    display: none;
}

@media (max-width: 768px) {
    .fixed-footer {
        display: block;
    }

    section:last-of-type {
        margin-bottom: 60px;
        /* 固定フッター分の余白 */
    }
}

.fixed-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.btn-mail {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
}

/* --- FAQ --- */
/* FAQアコーディオン (全ページで必要か不明だがよく使われるので共通に) */
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--color-teal);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--color-bg-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-sand);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* --- 汎用タイポグラフィ (記事・ポリシー等) --- */
main h1 {
    text-align: center;
    color: var(--color-teal);
    margin-bottom: 50px;
    font-size: 2.2rem;
}

/* --- 共通ページヒーロー --- */
.page-hero {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff !important;
    text-align: center;
}

.page-hero p {
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 0;
    opacity: 0.9;
    text-align: center;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }
}

main h2 {
    font-size: 1.3rem;
    color: var(--color-blue);
    border-bottom: 2px solid var(--color-sand);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

main p {
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 768px) {
    main h1 {
        font-size: 1.8rem;
    }
}