/* =========================================================
    Base Tokens
    - 共通カラー/フォント/寸法の変数定義
   ========================================================= */
:root {
  --bg: #ffffff;
  --cream: #f4efe7;
  --olive: #6f7f63;
  --olive-2: #5f6f55;
  --brown: #6a4f3a;
  --brown-2: #44413c;
  --text: #2f2f2f;
  --muted: #757575;
  --accent: #f2c866;
  --header-h: 56px; /* desktop header height approximation */
  --ff-mincho: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

/* =========================================================
    Global Resets / Base
   ========================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--ff-mincho);
  line-height: 1.75;
}

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

/* =========================================================
    Layout Helpers
   ========================================================= */
.container { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.container.narrow { width: min(880px, calc(100% - 56px)); }

/* =========================================================
    Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff9;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e9e4dc;
}
.site-header .inner { padding: 10px 0; text-align: center; }
.brand { letter-spacing: .3em; color: #2d2b28; }

/* =========================================================
    Hero
   ========================================================= */
.hero { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-media {
  position: absolute; inset: 0;
  background: url('img/main.jpg') center/cover no-repeat, #26221e;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content {
  position: relative; z-index: 1; color: #fff; width: min(80%);
}
.hero .kicker { opacity: .9; margin: 0 0 6px; letter-spacing: .2em; }
.hero .logo-style {
  margin: 0; font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero .tagline { margin: 10px 0 22px; font-size: clamp(16px, 2vw, 22px); }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; padding: 40px 0 0; }

/* =========================================================
    Buttons
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap:.5em; text-decoration: none; cursor: pointer; border-radius: 3px; padding: 10px 18px; font-weight: 600; letter-spacing: .05em; transition: .2s ease; }
.btn-light {
  background: #fff;
  color: #2f2f2f;
  border: 1px solid #d6d0c6; /* ← 薄いグレー〜生成り */
  width: 172px;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn-ghost { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-ghost:hover { background: #fff; color: #222; }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-2); }
.btn-accent { background: var(--accent); color: #3a332d; border-radius: 6px; padding: 12px 22px; width: 40%;}
.btn-accent:hover { filter: brightness(.95); }

/* =========================================================
    Intro
   ========================================================= */
.intro { background: var(--cream); padding: 60px 0; color: #35322e; text-align: center; }
.intro p { margin: 0; font-size: 20px; font-weight: bold; }

/* =========================================================
    Section Headings
   ========================================================= */
.section { padding: clamp(90px, 20vw, 90px) 0; padding-top: 40px;}
.section-head { text-align: center; margin-bottom: 36px; }
.section-head.simple { margin-bottom: 24px; }
.section-head h2 {
  color: var(--olive-2);
  font-size: clamp(24px, 4.2vw, 50px);
  letter-spacing: .25em;
  margin: 0 0 10px;
}
.section-head .subtitle { color: var(--brown); opacity: .9; margin: 0; letter-spacing: .1em; font-size: 20px; font-weight: bold; font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;}
.section-head .lede { color: var(--muted); margin: 8px auto 0; max-width: 52ch; }

/* =========================================================
    Lineup Mosaic
   ========================================================= */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); }
.tile { min-height: 260px; }
.tile.photo { overflow: hidden; margin: 0;}
.tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.tile.card { background: #f3efe6; padding: 28px; display: grid; align-content: start; gap: 10px; border-radius: 2px; border: 1px solid #ece6db; }
.tile.card .en { color: var(--muted); font-size: .9rem; margin: 0; }
.tile.card h3 { margin: 0; font-size: 20px;}
.tile.card p { margin: 0 0 8px; }

/* =========================================================
    Kiln
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.kiln-photo { overflow: hidden;}
.kiln-text p { margin-top: 0; color: #4a4742; font-size: 18px;}

/* =========================================================
    CTA with Wave
   ========================================================= */
.cta { position: relative; background: var(--brown-2); color: #eee; padding-top: 64px; }
.cta .wave { position: absolute; top: -84px; left: 0; right: 0; height: 84px; overflow: hidden; pointer-events: none; background: var(--brown-2); }
.cta .wave svg { width: 100%; height: 100%; display: block; }
.cta .wave path { fill: var(--bg); stroke: none; }
.cta .cta-box { margin: 0 auto; padding: 26px 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta .cta-text { margin: 0; }

/* =========================================================
    Footer
   ========================================================= */
.site-footer { background: var(--brown-2); color: #e9e6e2; padding: 26px 0 56px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.footer-brand .brand-mark { font-size: 22px; margin-bottom: 8px; }
.footer-brand address { font-style: normal; color: #ddd7cf; opacity: .9; }
.footer-meta { text-align: right; }
.copyright { margin: 0; color: #cfc7bf; }

/* =========================================================
    Utilities
   ========================================================= */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; border: none; border-radius: 999px; background: #ffffff; color: #333; box-shadow: 0 10px 25px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-2px); }

/* =========================================================
    Responsive
   ========================================================= */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr; }
  /* Mobile-only reordering: show .d before .c */
  .mosaic > .a { order: 0; }
  .mosaic > .b { order: 1; }
  .mosaic > .d { order: 2; }
  .mosaic > .c { order: 3; }
  .mosaic > .e { order: 4; }
  .mosaic > .f { order: 5; }
  /* Footer: stack items on mobile */
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { text-align: left; }
  .cta .cta-box { flex-direction: column; align-items: stretch; }
  /* Hero responsiveness */
  .hero { min-height: 70svh; padding: 36px 0; }
  .hero-content { width: min(92%, 560px); }
  .hero-actions { flex-direction: column; gap: 12px; padding-top: 20px; }
  .hero-actions .btn { width: 100%; max-width: 200px; }
  /* CTA button responsiveness */
  .cta .btn-accent { width: 100%; max-width: 360px; }
}

/* =========================================================
    Desktop: Hero fills one viewport height
   ========================================================= */
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--header-h)); }
}
