@charset "UTF-8";

/* =========================================================
   base.css - 全ページ共通
   body / header / footer / .inner / 共通ボタン / セクション見出し
   ========================================================= */

/* ===== ベース ===== */

/*
    背景色は html に置く。body に置くと z-index: -1 で背面に敷いた
    固定要素を覆ってしまうため。overscroll-behavior も同じ理由で外さない。
*/
html {
    background-color: #fffcf6;
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    color: #3b2a1a;
    font-family: "Zen Kaku Gothic Antique", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    /* 和文の字面が詰まって見えるのを避ける */
    font-feature-settings: "palt";
}

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

a {
    color: inherit;
    transition: opacity 0.3s ease, color 0.3s ease;
}

@media (any-hover: hover) {
    a:hover {
        opacity: 0.7;
    }
}

/* ===== レイアウト幅 ===== */

/* 通常セクション（Figma: 1440 中 1038px） */
.inner {
    width: 90%;
    max-width: 1038px;
    margin-inline: auto;
}

/* お知らせなど狭いブロック（Figma: 720px） */
.inner__small {
    width: 90%;
    max-width: 720px;
    margin-inline: auto;
}

/* ===== 表示切替ユーティリティ ===== */

/* PC で非表示・SP で表示 */
.pc-none {
    display: none;
}

/* ===== ヘッダー ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 92px;
    background-color: rgba(255, 252, 248, 0.92);
    transition: box-shadow 0.3s ease;
}

/* スクロールして写真の上に乗ったとき、境目が分かるよう影だけ足す */
.header.is-scrolled {
    box-shadow: 0 2px 12px rgba(59, 42, 26, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 61px 0 40px;
}

.header__logo {
    width: 224px;
    flex-shrink: 0;
}

.header__nav {
    margin-left: auto;
}

.header__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__link {
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

/* 現在地のナビ。下層ページでは該当リンクに付け替える */
.header__link.is-current {
    color: #97735a;
}

/* ハンバーガー（SP のみ。PC では .pc-none で隠す） */
.header__hamburger {
    position: relative;
    z-index: 110;
    width: 32px;
    height: 24px;
    margin-left: auto;
}

.header__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b2a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__bar:nth-child(1) {
    top: 0;
}

.header__bar:nth-child(2) {
    top: 11px;
}

.header__bar:nth-child(3) {
    top: 22px;
}

/* 開いている間は上下のバーを × に、中央は消す */
.header__hamburger.is-active .header__bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.header__hamburger.is-active .header__bar:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active .header__bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================================
   背景の帯（ゆるやかな弧）
   -----------------------------------------------------
   Figma では 3078 x 1275px の巨大な楕円を 3 枚重ねて
   「ベージュ → 薄緑 → ベースカラー」と繋いでいる。
   HTML では高さがコンテンツ依存になるので、楕円そのものではなく
   帯の上端に「横半径 50% / 縦半径 74px」の角丸を付けて同じ弧を作る。
   前の帯を 74px ぶん食い込ませることで、弧の外側に前の帯の色が覗く。
   ========================================================= */

.band {
    position: relative;
    margin-top: -74px;
    padding-top: 74px;
    border-top-left-radius: 50% 74px;
    border-top-right-radius: 50% 74px;
}

.band--beige {
    background-color: #f5e9d9;
}

.band--green {
    background-color: #dee3da;
}

.band--base {
    background-color: #fffcf6;
}

/* ===== 下層ページのタイトル帯 ===== */

/*
    ヘッダー直下に敷く写真つきのページタイトル。下層ページ全部で使う。
    写真は不透明度 30% なので、地の #fffcf6 が透けて淡いトーンになる。
*/
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 368px;
    margin-top: 92px;
    overflow: hidden;
}

.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-hero__title {
    position: relative;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.45;
    text-align: center;
    /* 写真に重なっても沈まないよう、デザインどおり影を落とす */
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

/* ===== 共通ボタン ===== */

.button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 57px;
    border-radius: 10px;
    background-color: #5a6b4a;
    color: #fffcf6;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

/* 右端の「>」。Figma では 6.4px の正方形を 45deg 回した二辺 */
.button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #fffcf6;
    border-right: 1px solid #fffcf6;
    transform: translateY(-50%) rotate(45deg);
}

/* お問い合わせ帯（.contact-cta）用。全ページ共通。少し大きいピル型 */
.button--pill {
    width: 252px;
    height: 58px;
    border-radius: 50px;
    font-size: 17px;
}

@media (any-hover: hover) {
    .button:hover {
        opacity: 1;
        background-color: #6d7f5b;
    }
}

/* ===== 共通セクション見出し ===== */

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title--left {
    align-items: flex-start;
    text-align: left;
}

.section-title__en {
    color: #b8976a;
    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

.section-title__ja {
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-size: 30px;
    line-height: 1.5;
}

/* ===== 全ページ共通のお問い合わせ帯 ===== */

/*
    TOP も下層も同じデザイン（Figma: 1440 x 472 の contact フレーム）。
    以前は TOP だけ .contact として別デザインで組んでいたが、TOP に統一指示が出たので
    全ページこれを使う。
    上の余白だけページごとに違うので、margin-top は各ページの CSS で指定する
    （TOP はアクセスの padding-bottom が余白を持っているので指定なし）。
*/
.contact-cta {
    padding: 40px 0 42px;
    background-color: #fff2e0;
}

.contact-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-cta .section-title__ja {
    font-size: 40px;
}

.contact-cta__catch {
    margin-top: 71px;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.45;
    text-align: center;
}

.contact-cta__text {
    margin-top: 11px;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

/* 左が電話、右がフォーム。ラベルはそれぞれの下に置く */
.contact-cta__ways {
    display: flex;
    align-items: center;
    gap: 170px;
    margin-top: 42px;
}

.contact-cta__way {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-cta__tel {
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1.3;
    letter-spacing: 2.16px;
}

.contact-cta__label {
    margin-top: 12px;
    color: #6b4226;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

/* ===== 概要の定義リスト ===== */

/*
    施工事例詳細の「施工概要」と会社概要ページで同じ組み。
    ラベル列 227px + 値、行間 70px（行高 29px + 余白 41px）。
    見出しと表の間隔だけページごとに違うので、
    .spec / .spec__list の margin-top は各ページの CSS で指定する。
*/
.spec__heading {
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.45;
    text-align: center;
}

.spec__list {
    width: fit-content;
    max-width: 90%;
    margin-inline: auto;
}

.spec__row {
    display: flex;
}

.spec__row + .spec__row {
    margin-top: 41px;
}

.spec__term {
    flex: 0 0 227px;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

.spec__desc {
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* ===== ページ送り ===== */

/*
    イベント情報と施工事例で同じデザインなので base.css に置く。
    上の余白だけページごとに違うので、margin-top は各ページの CSS で指定する。
*/
.pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    background-color: #5a6b4a;
    color: #fffcf6;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
}

/*
    デザイン上は現在地も他のページも同じ見た目。
    区別は aria-current に任せ、見た目は変えない。
*/
.pagination__ellipsis {
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    /* body の palt が効くと中黒が詰まって Figma の 60px にならないので戻す */
    font-feature-settings: normal;
}

@media (any-hover: hover) {
    a.pagination__item:hover {
        opacity: 1;
        background-color: #6d7f5b;
    }
}

/* ===== フッター ===== */

.footer {
    background-color: #5a6b4a;
    color: #fffcf6;
}

.footer__inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 194px;
    padding: 0 70px;
}

.footer__logo {
    display: block;
    width: 196px;
    margin-left: 32px;
}

.footer__address {
    margin-top: 12px;
    font-size: 16px;
    white-space: nowrap;
}

.footer__nav {
    margin-left: auto;
    /* コピーライトの分だけ視覚的に上へ寄せる */
    margin-bottom: 34px;
}

.footer__list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__link {
    font-size: 16px;
    white-space: nowrap;
}

.footer__copy {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
}

/*
    下層ページ用のフッター。TOP と並びが違う（TEL が増え、ナビが右寄り）。
    ★ Figma 上で TOP と下層でフッターのデザインが食い違っているため、
      いまは指定どおり出し分けている。どちらかに統一する場合はここを消す。
*/
.footer--detail .footer__inner {
    gap: 74px;
}

.footer--detail .footer__logo {
    margin-left: 0;
}

.footer--detail .footer__address {
    margin-top: 0;
}

.footer__tel {
    margin-top: 8px;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.footer--detail .footer__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.footer--detail .footer__nav {
    margin: 0;
}

.footer--detail .footer__copy {
    position: static;
    transform: none;
}

/* =========================================================
   SP（768px 以下）
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    /* PC で非表示・SP で表示 */
    .pc-none {
        display: block;
    }

    /* SP で非表示 */
    .sp-none {
        display: none;
    }

    .inner,
    .inner__small {
        width: 88%;
    }

    /* --- 背景の帯 --- */

    /* 画面が狭いと 74px の弧は張り出しすぎるので浅くする */
    .band {
        margin-top: -24px;
        padding-top: 24px;
        border-top-left-radius: 50% 24px;
        border-top-right-radius: 50% 24px;
    }

    /* --- 下層ページのタイトル帯 --- */

    .page-hero {
        height: 200px;
        margin-top: 64px;
    }

    .page-hero__title {
        font-size: 26px;
    }

    /* --- ヘッダー --- */

    .header {
        height: 64px;
    }

    .header__inner {
        padding: 0 20px;
    }

    .header__logo {
        width: 160px;
    }

    /*
        SP ではナビを画面全体のドロワーにする。
        display: none ではなく visibility で出し入れするのは、
        閉じている間もフォーカス移動を止めつつアニメーションさせたいため。
    */
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 105;
        width: 100%;
        height: 100dvh;
        padding-top: 64px;
        background-color: #fffcf6;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header__nav.is-open {
        visibility: visible;
        opacity: 1;
    }

    .header__list {
        flex-direction: column;
        gap: 28px;
        padding: 40px 0;
    }

    .header__link {
        font-size: 17px;
    }

    /* --- 共通ボタン --- */

    .button {
        width: 200px;
        height: 52px;
    }

    .button--pill {
        width: 230px;
        height: 54px;
        font-size: 15px;
    }

    /* --- 共通セクション見出し --- */

    .section-title__ja {
        font-size: 24px;
    }

    /* --- 下層ページ共通のお問い合わせ帯 --- */

    .contact-cta {
        padding: 56px 0;
    }

    .contact-cta .section-title__ja {
        font-size: 26px;
    }

    .contact-cta__catch {
        margin-top: 40px;
        font-size: 18px;
    }

    .contact-cta__text {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.8;
    }

    /* 横並びだと収まらないので縦に積む */
    .contact-cta__ways {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .contact-cta__tel {
        font-size: 32px;
    }

    .contact-cta__label {
        margin-top: 8px;
        font-size: 15px;
    }

    /* --- 概要の定義リスト --- */

    .spec__heading {
        font-size: 22px;
    }

    .spec__list {
        width: 88%;
        max-width: none;
    }

    /* ラベル列を 227px 取ると値が入らないので、SP はラベルを上に積む */
    .spec__row {
        flex-direction: column;
    }

    .spec__row + .spec__row {
        margin-top: 24px;
    }

    .spec__term {
        flex: 0 0 auto;
        font-size: 15px;
    }

    .spec__desc {
        margin-top: 4px;
        font-size: 16px;
    }

    /* --- ページ送り --- */

    .pagination__item {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .pagination__ellipsis {
        font-size: 16px;
    }

    /* --- フッター --- */

    .footer__inner {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 48px 20px 24px;
    }

    .footer__logo {
        width: 170px;
        margin-left: 0;
    }

    .footer__address {
        font-size: 14px;
        text-align: center;
    }

    .footer__nav {
        margin: 32px 0 0;
    }

    .footer__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .footer__link {
        font-size: 14px;
    }

    .footer__copy {
        position: static;
        transform: none;
        margin-top: 32px;
        font-size: 11px;
        text-align: center;
    }

    /* 下層ページ用フッターも SP では TOP と同じ縦積みに揃える */
    .footer--detail .footer__inner {
        gap: 0;
    }

    /* PC 側で address の margin を殺しているので、SP ではブロックごと空ける */
    .footer--detail .footer__contact {
        margin-top: 12px;
        text-align: center;
    }

    .footer--detail .footer__meta {
        margin: 32px 0 0;
        gap: 32px;
    }

    .footer--detail .footer__copy {
        margin-top: 0;
    }

    .footer__tel {
        font-size: 14px;
    }
}

/* =========================================================
   アニメーション抑制
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    a,
    .header__nav,
    .header__bar,
    .button,
    .pagination__item {
        transition: none;
    }
}
