@charset "UTF-8";

/* ==========================================================================
   はなまる整骨院 共通スタイル（全ページで最初に読み込む）
   - リセット / 基本設定
   - ヘッダー / ページ上部の見出し帯（ヒーロー）/ フッター
   - ボタン・画像の仮置き枠など、どのページでも使う部品
   ページ固有のデザインは各ページのCSS（first.css など）に書きます。
   ========================================================================== */

/* ---------- 色・サイズの変数（ここを変えると全ページに反映） ---------- */
:root {
    --orange: #ff9f43;       /* メインのオレンジ */
    --orange-dark: #d35400;  /* 文字用の濃いオレンジ */
    --orange-light: #fff5eb; /* 背景用の薄いオレンジ */
    --green: #2ecc71;        /* アクセントのグリーン */
    --green-dark: #27ae60;
    --text: #333333;
    --text-sub: #666666;
    --line: #dddddd;
    --bg: #fbfbfb;
    --content-width: 1000px;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* 共通の横幅（中央寄せ） */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff;
    border-bottom: 2px solid var(--text);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.header-nav {
    margin-left: auto;
}

.header-nav ul {
    display: flex;
    gap: 22px;
}

.header-nav a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav a:hover {
    color: var(--orange);
}

/* 今いるページ */
.header-nav a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.header-cta {
    display: inline-block;
    background-color: var(--green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.header-cta:hover {
    background-color: var(--green-dark);
}

/* ==========================================================================
   下層ページ上部の見出し帯（ヒーロー）
   ========================================================================== */
.page-hero {
    background: linear-gradient(135deg, #ffb366, var(--orange));
    color: #ffffff;
}

.page-hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 64px 20px;
}

.page-hero-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.9;
    margin-bottom: 6px;
}

.page-hero h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 15px;
    max-width: 640px;
}

/* ==========================================================================
   共通部品
   ========================================================================== */

/* 画像がまだ無いところに置くグレーの仮枠 */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    background-color: #d9d9d9;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* 緑のメインボタン */
.btn-green {
    display: inline-block;
    background-color: var(--green);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 40px;
    transition: background-color 0.2s;
}

.btn-green:hover {
    background-color: var(--green-dark);
}

/* オレンジのボタン */
.btn-orange {
    display: inline-block;
    background-color: var(--orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 40px;
    transition: background-color 0.2s;
}

.btn-orange:hover {
    background-color: var(--text);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    margin-top: 80px;
    background-color: var(--orange);
    color: #ffffff;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 36px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-info p {
    font-size: 14px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-nav a {
    font-size: 14px;
    font-weight: 700;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 12px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   タブレット・スマホ
   ========================================================================== */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 12px 16px;
    }

    .header-logo a {
        font-size: 20px;
    }

    /* ボタンは右上、メニューは2段目に回す */
    .header-cta {
        margin-left: auto;
    }

    .header-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .header-nav ul {
        justify-content: space-between;
        gap: 4px 12px;
        flex-wrap: wrap;
    }

    .header-nav a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .page-hero-inner {
        padding: 40px 16px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .page-hero p {
        font-size: 14px;
    }

    .btn-green,
    .btn-orange {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        text-align: center;
        padding: 14px 20px;
    }

    .footer-inner {
        flex-direction: column;
        padding: 28px 16px 16px;
    }
}

@media (max-width: 768px) {
    /* スマホではヘッダーを固定しない（画面が狭くなるため） */
    .site-header {
        position: static;
    }

    /* メニューは1行に収め、入りきらない時は横スクロール */
    .header-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: space-between;
        gap: 8px;
    }

    .header-nav a {
        font-size: clamp(11px, 3.1vw, 12px);
    }
}

@media (max-width: 420px) {
    .header-cta {
        font-size: 12px;
        padding: 8px 12px;
    }
}
