@charset "UTF-8";

/*
  プロパティを書く順番
  1. 配置      position, top, right, bottom, left, z-index
  2. 並べ方    display, visibility, grid-template-columns, flex-direction, flex-wrap, justify-content, align-items, gap
  3. 大きさ    flex, width, min-width, max-width, height, aspect-ratio, object-fit
  4. 余白      margin, padding
  5. 枠・背景  border, border-radius, background-color, box-shadow, overflow, clip-path, opacity
  6. 文字      color, font-family, font-size, font-weight, line-height, text-align, text-decoration, word-break, list-style
  7. 動き      transition
*/

:root {
    --bg: #F6F1E7;       /* 背景(生成り) */
    --surface: #FFFBF3;  /* カードや帯の背景 */
    --line: #E3D8C6;     /* 区切り線 */
    --text: #3B2A1E;     /* 文字(焦げ茶) */
    --muted: #6B5646;    /* 説明文 */
    --accent: #A8461A;   /* 差し色(オレンジ) */
    --image: #EADFCC;    /* 写真の仮の箱 */
}

html {
    font-size: 100%;
    scroll-behavior: smooth;  /* ページ内リンクで、するっとスクロールする */
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;  /* 動きを減らす設定の人には、すぐ移動する */
    }
}

@media (max-width: 767px) {
    html {
        font-size: 87.5%;  /* スマホでは全部が少し小さくなる */
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;  /* 中身が短いページでも、フッターを画面の下に置く */
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

ul {
    list-style: none;
}

h1,
.header-logo {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo a {
    color: inherit;  /* リンクの青ではなく、ヘッダーの文字色にする */
    text-decoration: none;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.header {
    position: relative;
    background-color: var(--text);  /* フッターと同じ焦げ茶 */
    color: var(--bg);               /* 中の文字は生成り色 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
}

.hamburger-button {
    display: none;
    color: inherit;  /* ボタンの文字色を親(ヘッダー)に合わせる */
    font-size: 1.75rem;
}

.hamburger-menu-list-group {
    display: flex;
    gap: 24px;
}

.hamburger-menu-list-group a {
    color: var(--bg);
    text-decoration: none;
}

@media (max-width: 767px) {
    .hamburger-button {
        display: block;
    }
    .hamburger-menu {
        position: absolute;
        top: 100%;
        left: 0%;
        visibility: hidden;  /* 閉じているときは見えず、押せない */
        width: 100%;
        border-bottom: 1px solid var(--line);
        background-color: var(--surface);
        clip-path: inset(0 0 100% 0);  /* 下から 100% 切り取って、高さ 0 に見せる */
        transition: clip-path 0.3s ease, visibility 0.3s;  /* 0.3 秒かけて変わる */
    }
    .hamburger-menu.is-open {
        visibility: visible;
        clip-path: inset(0);  /* 切り取りをなくして、全部見せる */
    }
    .hamburger-menu-list-group {
        flex-direction: column;
        gap: 0;
    }
    .hamburger-menu-list-group a {
        display: block;
        padding: 14px 24px;
        color: var(--text);  /* 開いたメニューはクリーム色の背景なので焦げ茶に戻す */
    }
}

.main {
    flex: 1;  /* ヘッダーとフッターの残りを、main が全部うめる */
}

@media (prefers-reduced-motion: reduce) {
    .hamburger-menu {
        transition: none;  /* 動きを減らす設定の人には、すぐ開く */
    }
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 15px 24px 72px;  /* 上・左右・下 */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 420px;
}

.hero-image {
    flex: 1 1 360px;
    min-width: 0;  /* 画像の元の幅(1200px)に引っぱられて、はみ出さないように */
    max-width: 560px;  /* 縦並びになったとき、大きくなりすぎないように */
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 auto;  /* 縦並びのときは真ん中に置く */
    object-fit: cover;
    border-radius: 24px;
    background-color: var(--image);
}

.hero-lead {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
}

.hero-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);  /* 画像と横並びの幅(900px 前後)でも1行に収まる大きさ */
    font-weight: 700;
    line-height: 1.4;
}

.hero-desc {
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    background-color: var(--accent);
    color: #fff;
}

.button-outline {
    border: 2px solid var(--text);
    color: var(--text);
}

.can {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: var(--surface);
}

.section-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 15px 24px 30px;  /* 上・左右・下 */
}

.section-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    text-align: center;
}

.can-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));  /* 260px 以上の列を作り、余った幅はカードを広げて埋める */
    gap: 24px;
}

.can-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 16px;
    background-color: var(--bg);
}

.can-number {
    color: var(--accent);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.can-title {
    font-size: 1.25rem;
}

.can-text {
    color: var(--muted);
    font-size: 0.9375rem;
}

.works-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.works-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 400px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(59, 42, 30, 0.10);  /* 焦げ茶のうすい影でカードを浮かせる */
    overflow: hidden;  /* 中の画像の角もカードに合わせて丸くする */
}

.works-images {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: var(--image);
}

.works-shot {
    flex: 1 1 0;  /* 実行前と実行後を同じ幅にする */
    min-width: 0;
}

.works-shot img {
    display: block;
    width: 100%;
    height: auto;  /* HTML の height 属性のままだと縦に伸びる */
    aspect-ratio: 4 / 3;
    object-fit: contain;  /* 画像の形がちがっても切らずに枠の中へ収める */
    border-radius: 8px;
    background-color: #fff;
}

.works-shot figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.works-arrow {
    flex: none;
    color: var(--accent);
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .works-images {
        gap: 6px;
        padding: 14px 12px;  /* スマホでは余白を減らして写真を少しでも大きく */
    }
    .works-arrow {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .works-images {
        flex-direction: column;  /* 狭いスマホでは、実行前と実行後を縦に並べて大きく見せる */
        gap: 4px;
        padding: 16px;
    }
    .works-shot {
        width: 100%;
    }
    .works-arrow {
        transform: rotate(90deg);  /* → を ↓ に向ける */
    }
}

.works-head {
    padding: 20px 28px;
}

.works-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 28px 24px;
}

.works-title {
    font-size: 1.25rem;
}

.works-text {
    color: var(--muted);
    font-size: 0.9375rem;
}

.works-tags {
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
}

.print {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: var(--surface);
}

.print-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.print-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.print-image {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background-color: var(--image);
    color: var(--muted);
    font-size: 0.875rem;
}

.print-title {
    font-size: 1.0625rem;
}

.print-more {
    text-align: center;
}

.contact {
    border-top: 1px solid var(--line);
    background-color: var(--surface);
}

.contact .section-inner {
    align-items: center;  /* 中身を真ん中にそろえる */
    gap: 20px;
}

.contact-text {
    color: var(--muted);
    text-align: center;
    word-break: auto-phrase;  /* 文節の切れ目で折り返す(「ら。」だけが次の行に残らない) */
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer {
    background-color: var(--text);
    color: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px;
    font-size: 0.8125rem;
}

.footer-logo {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

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

.footer-links a {
    color: var(--bg);
}

.policy-title {
    font-size: clamp(1.5rem, 4vw, 2rem);  /* h2 の見出しと同じ大きさ */
}

.policy-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 760px;  /* 文章のページは横幅をせまくして読みやすく */
    margin: 0 auto;
}

.policy-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-heading {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
}

.policy-item p {
    color: var(--muted);
    font-size: 0.9375rem;
}

.policy-date {
    color: var(--muted);
    font-size: 0.875rem;
    text-align: right;
}

.page-top {
    position: fixed;  /* スクロールしても画面の右下に固定 */
    right: 20px;
    bottom: 20px;
    z-index: 10;
    display: flex;
    visibility: hidden;  /* 最初は見えず、押せない */
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59, 42, 30, 0.20);
    opacity: 0;  /* 透明にしておく */
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: opacity 0.3s, visibility 0.3s;  /* ふわっと出て、ふわっと消える */
}

.page-top.is-show {
    visibility: visible;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .page-top {
        transition: none;
    }
}
