/* atelier Sunka 公式サイト 共通スタイル
   色・フォントは CLAUDE.md の「4. デザイン」に合わせる。
   見せ方はデザイン案（写真を大きく、余白を広く）に合わせる。 */

:root {
  --white: #FFFFFF;
  --gray-bg: #F3F3F1;
  --tan-bg: #EFE6DA;
  --tan-link: #5C3D2A;
  --indigo: #34465A;
  --red: #DF3821;
  --text: #151311;
  --text-sub: #33302C;
  --line: #E4E4E1;
  --max: 1200px;
  --header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 2;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); transition: opacity .2s; }
a:hover { opacity: .72; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--text); padding: 8px 16px; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- 見出し（英字ラベル＋日本語） ---------- */
.label { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--indigo); }
.sec-head { text-align: center; padding: 0 24px; }
.sec-head .label { margin-bottom: 10px; }
.sec-head h2 { font-size: 22px; letter-spacing: .16em; line-height: 1.8; }
.sec-lead { margin-top: 18px; font-size: 13px; color: var(--text-sub); }

/* ---------- ボタン ---------- */
.btn-main {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 44px;
  background: var(--indigo); color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
}
.btn-red {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 44px;
  background: var(--red); color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
}
.btn-line {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 40px;
  border: 1px solid var(--indigo); color: var(--indigo); text-decoration: none;
  font-size: 13px; letter-spacing: .14em;
}
.btn-row { text-align: center; margin-top: 64px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-underline-offset: 6px; }

/* 写真がまだない枠 */
.ph {
  width: 100%; height: 100%; min-height: 160px; background: var(--tan-bg); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center; padding: 16px; font-size: 12px; text-align: center;
}

/* ---------- ヘッダー（写真の上では透明、スクロールで白い帯に） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: background .4s, border-color .4s, color .4s;
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: var(--white); }
.has-hero .site-header.is-solid { background: rgba(255,255,255,.96); border-bottom-color: var(--line); color: var(--text); }
.header-in {
  max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 36px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px;
}
.header-in .brand { justify-self: start; }
.header-in .menu-btn { justify-self: end; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-size: 15px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.has-hero .site-header:not(.is-solid) .brand span,
.has-hero .site-header:not(.is-solid) .nav-link { text-shadow: 0 1px 8px rgba(20,14,8,.45); }
.nav { display: flex; align-items: center; gap: 8px 36px; font-size: 13px; letter-spacing: .14em; }
.nav-link { color: inherit; text-decoration: none; white-space: nowrap; }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.btn-store {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  background: var(--red); color: var(--white); text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; white-space: nowrap;
}
.menu-btn {
  display: inline-flex; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  color: inherit; cursor: pointer; align-items: center; justify-content: center;
}
.menu-panel {
  position: absolute; top: 100%; right: 0; width: min(340px, 100%); background: var(--white); color: var(--text);
  padding: 8px 24px 24px; box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: .14em;
}
.has-hero .site-header.menu-open { background: var(--white); color: var(--text); }

/* ---------- 写真の上に文字をのせる共通の形 ---------- */
.photo-section { position: relative; overflow: hidden; color: var(--white); }
.photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-shade { position: absolute; inset: 0; background: rgba(28,20,12,.42); }
.photo-section h2, .photo-section p, .photo-section a { text-shadow: 0 1px 10px rgba(20,14,8,.45); }

/* ---------- 1. ファーストビュー ---------- */
.hero { position: relative; height: min(100vh, 860px); min-height: 560px; overflow: hidden; background: #6d6458; color: var(--white); }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 2s ease, transform 8s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,20,12,.38) 0%, rgba(28,20,12,0) 22%),
    linear-gradient(to top, rgba(28,20,12,.55) 0%, rgba(28,20,12,.15) 40%, rgba(28,20,12,0) 60%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 96px; padding: 0 24px; text-align: center; text-shadow: 0 1px 12px rgba(20,14,8,.55); }
.hero-brand { margin-bottom: 14px; font-size: 12px; letter-spacing: .24em; opacity: .92; }
.hero h1 { margin-bottom: 18px; font-size: 30px; font-weight: 900; letter-spacing: .24em; line-height: 1.8; }
.hero-sub { font-size: 13px; letter-spacing: .16em; opacity: .94; }
.hero-line { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 44px; background: rgba(255,255,255,.75); }
.js .hero-copy { animation: hero-in 1.6s ease-out .4s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 2分割（写真｜余白） ---------- */
.split { display: flex; flex-wrap: wrap; }
.split-photo { flex: 1 1 480px; min-height: 580px; position: relative; overflow: hidden; }
.split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-photo .ph { position: absolute; inset: 0; }
.split-body {
  flex: 1 1 480px; min-height: 580px; background: var(--gray-bg);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px 9%;
}
.split-title { margin-bottom: 10px; font-size: 22px; font-weight: 700; letter-spacing: .2em; color: var(--indigo); }
.split-body .label { margin-bottom: 6px; }
.split-body h2:not(.split-title) { margin-bottom: 20px; font-size: 22px; letter-spacing: .16em; }
.split-body p:not(.label) { margin-bottom: 36px; font-size: 14px; color: var(--text-sub); }
.split-body .split-text { color: var(--indigo); font-weight: 500; }

/* ---------- ABOUT（白い背景に中央寄せ） ---------- */
.about { background: var(--white); padding: 140px 24px; text-align: center; }
.about-inner { max-width: 680px; margin: 0 auto; }
.about .label { margin-bottom: 10px; }
.about h2 { margin-bottom: 44px; font-size: 22px; letter-spacing: .16em; line-height: 1.9; }
.about p:not(.label) { font-size: 14px; line-height: 2.4; color: var(--text-sub); }
.about p + p { margin-top: 1.4em; }
.about .text-link { margin-top: 40px; }

/* ---------- 4. SCENE ---------- */
.scene-grid { display: flex; flex-wrap: wrap; }
.scene-item { flex: 1 1 460px; position: relative; height: 620px; overflow: hidden; color: var(--white); }
.scene-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,20,12,.62) 0%, rgba(28,20,12,.22) 45%, rgba(28,20,12,0) 70%); }
.scene-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 9% 56px; text-shadow: 0 1px 10px rgba(20,14,8,.55); }
.scene-text h2 { margin-bottom: 14px; font-size: 22px; letter-spacing: .16em; }
.scene-text p { font-size: 14px; }

/* ---------- 5. CONCEPT ---------- */
.concept { background: var(--gray-bg); padding: 120px 0; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 56px; }
.concept-photo { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 28px; }
.concept-photo img { width: 100%; height: 100%; object-fit: cover; }
.concept-no { font-size: 26px; font-weight: 900; color: var(--red); line-height: 1; }
.concept-item h3 { margin: 14px 0 12px; font-size: 18px; letter-spacing: .14em; }
.concept-item p:not(.concept-no) { font-size: 14px; color: var(--text-sub); }

/* ---------- 6. 写真帯 ---------- */
.band { height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.band-text {
  position: relative; background: var(--indigo); color: var(--white); text-shadow: none !important;
  padding: 28px 44px; font-size: 24px; font-weight: 700; letter-spacing: .16em; line-height: 1.7;
}

/* ---------- 7. PRODUCT（横スライダー） ---------- */
.product { padding: 120px 0 110px; }
.product .sec-head { margin-bottom: 56px; }
.product-slider { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.product-track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.product-track::-webkit-scrollbar { display: none; }
.product-card { flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--gray-bg); }
.product-card h3 { margin-top: 18px; font-size: 14px; letter-spacing: .08em; }
.product-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.product-arrow {
  width: 48px; height: 48px; border: 0; background: var(--indigo); color: var(--white);
  font-size: 20px; cursor: pointer; font-family: inherit;
}
.product-arrow:hover { opacity: .72; }

/* ---------- 8. 購入前に知りたいこと（トップのカード） ---------- */
.guide-top { padding: 120px 0; }
.guide-top .sec-head { margin-bottom: 56px; }
.concept .sec-head { margin-bottom: 64px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.guide-card { background: var(--tan-bg); padding: 44px 36px; display: flex; flex-direction: column; }
.guide-card h3 { margin-bottom: 16px; font-size: 16px; letter-spacing: .14em; }
.guide-card p { flex-grow: 1; margin-bottom: 24px; font-size: 13px; color: var(--text-sub); }
.guide-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--tan-link); }

/* ---------- 9. Instagram ---------- */
.insta .sec-head { padding-bottom: 48px; }
.insta .btn-line { margin-top: 28px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.insta-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; text-decoration: none; }
.insta-grid a:hover { opacity: 1; }  /* Instagram の画像は効果をつけず、そのまま表示 */
.insta-grid img { width: 100%; height: 100%; object-fit: cover; }
.insta-grid .ph { min-height: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--gray-bg); border-top: 4px solid var(--indigo); padding: 64px 32px 32px; }
.footer-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.footer-brand img { height: 96px; width: auto; }
.footer-brand span { font-size: 14px; font-weight: 500; letter-spacing: .2em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 13px; letter-spacing: .1em; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-bottom { max-width: var(--max); margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .12em; color: #45413B; }
.footer-bottom a { color: var(--text); text-decoration: none; }

/* ---------- 購入前に知りたいこと（guide.html） ---------- */
.page-hero { position: relative; height: 440px; overflow: hidden; color: var(--white); }
.page-hero-copy { position: absolute; left: 0; right: 0; bottom: 72px; text-align: center; padding: 0 24px; text-shadow: 0 1px 12px rgba(20,14,8,.55); }
.page-hero .label { margin-bottom: 8px; color: rgba(255,255,255,.88); }
.page-hero h1 { font-size: 26px; letter-spacing: .2em; line-height: 1.6; }

.toc {
  position: sticky; top: var(--header-h); z-index: 40; background: var(--gray-bg);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0 56px; padding: 0 24px;
  font-size: 13px; letter-spacing: .14em;
}
.toc a { display: inline-flex; align-items: center; min-height: 52px; color: var(--text-sub); text-decoration: none; border-bottom: 2px solid transparent; }
.toc a[aria-current="true"] { color: var(--text); font-weight: 500; border-bottom-color: var(--indigo); }
[data-toc-page] [id] { scroll-margin-top: calc(var(--header-h) + 76px); }

.crumb { max-width: var(--max); margin: 0 auto; padding: 20px 32px 0; font-size: 12px; color: var(--text-sub); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 10px; }
.crumb li + li::before { content: "›"; margin-right: 10px; }
.crumb a { color: var(--text-sub); }

.g-sec { max-width: var(--max); margin: 0 auto; padding: 120px 32px 40px; }
.g-sec:last-child { padding-bottom: 120px; }  /* ページ最後の項目の下に余白 */
.g-two { display: flex; flex-wrap: wrap; gap: 64px; }
.g-intro { flex: 1 1 300px; align-self: flex-start; position: sticky; top: calc(var(--header-h) + 92px); }
.g-intro .label { margin-bottom: 6px; }
.g-intro h2 { margin-bottom: 24px; font-size: 22px; letter-spacing: .16em; }
.g-intro p:not(.label) { font-size: 14px; color: var(--text-sub); }
.g-main { flex: 2 1 560px; min-width: 0; }
.g-main > h3 { margin-bottom: 12px; font-size: 17px; letter-spacing: .14em; }
.g-main > h3:not(:first-child) { margin-top: 48px; }
.g-main > p { font-size: 14px; color: var(--text-sub); }
.g-lead { margin-bottom: 8px; }
.g-box { margin: 40px 0; padding: 22px 26px; background: var(--gray-bg); }
.g-box h3 { margin-bottom: 6px; font-size: 15px; letter-spacing: .12em; }
.g-box p { font-size: 13px; color: var(--text-sub); }
.g-link { margin-top: 16px; }
.g-link a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; }
.g-main .size-range { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.g-band { height: 360px; overflow: hidden; margin-top: 80px; }
.g-band img { width: 100%; height: 100%; object-fit: cover; }
#wrapping { margin-top: 100px; }

/* 手順（イラスト＋本文を横に並べる。洗い方・サイズ共通） */
.wash-steps { margin-top: 28px; display: flex; flex-direction: column; }
.wash-step { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.wash-fig { position: relative; }
.wash-fig img { width: 100%; height: auto; display: block; }
/* サイズの測り方：STEP の文字がイラストにかからないよう、上に余白をとる */
.size-steps .wash-fig { background: var(--tan-bg); padding-top: 34px; }
.wash-no {
  position: absolute; top: 0; left: 0; padding: 10px 12px 8px; background: var(--tan-bg);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--red); line-height: 1;
}
.wash-step h4 { margin-bottom: 10px; font-size: 15px; letter-spacing: .08em; line-height: 1.7; }
.wash-body p { font-size: 13px; line-height: 2; color: var(--text-sub); }
.wash-body .wash-note { margin-top: 14px; padding: 12px 16px; background: var(--gray-bg); font-size: 12px; }

/* ---------- 動き（スクロールでふわっと・写真が寄る） ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .15s; }
.js .reveal.d2 { transition-delay: .3s; }
/* 見出しを1行ずつ下から浮き出す（ABOUT のひと言） */
.lines .line { display: block; overflow: hidden; }
.js .lines .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.6s cubic-bezier(.25,.5,.25,1) .1s; }
.js .lines .line:nth-child(2) > span { transition-delay: .5s; }
.js .is-visible .lines .line > span { transform: none; }
.zoom { transform-origin: center; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .lines .line > span { transform: none; transition: none; }
  .js .hero-copy { animation: none; }
  .hero-slide { transition: none; transform: none; }
  .zoom { transform: none !important; }
  .product-track { scroll-behavior: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .wrap { padding: 0 20px; }
  .header-in { padding: 0 16px; gap: 8px; }
  .brand img { height: 38px; }
  .brand span { display: none; }
  .header-in { display: flex; justify-content: space-between; }
  .nav { gap: 4px; margin-left: auto; }
  .nav-link { display: none; }
  .btn-store { min-height: 40px; padding: 0 14px; font-size: 11px; }

  .hero { height: 620px; min-height: 0; }
  .hero h1 { font-size: 22px; }
  .hero-copy { bottom: 80px; }
  .hero-brand { font-size: 11px; letter-spacing: .14em; }

  .split-photo, .split-body { flex-basis: 100%; min-height: 340px; }
  .split-body { padding: 56px 24px; }

  .about { padding: 96px 20px; }
  .about h2 { font-size: 19px; margin-bottom: 32px; }
  .about p:not(.label) { text-align: left; line-height: 2.1; }
  .about .text-link { font-size: 12px; }

  .scene-item { flex-basis: 100%; height: 460px; }
  .scene-text { padding: 0 20px 36px; }
  .scene-text h2 { font-size: 19px; }
  .scene-text p { font-size: 13px; }

  .concept { padding: 88px 0; }
  .concept-grid { gap: 48px; }

  .band { height: 400px; }
  .band-text { font-size: 18px; letter-spacing: .12em; padding: 20px 24px; }

  .product { padding: 88px 0 80px; }
  .product .sec-head { margin-bottom: 40px; }
  .product .sec-head h2 { font-size: 18px; }
  .product-slider { padding: 0 20px; }
  .product-track { gap: 16px; }
  .product-card { flex-basis: 78%; }
  .btn-row { margin-top: 48px; }

  .guide-top { padding: 88px 0; }
  .guide-top .sec-head { margin-bottom: 40px; }
  .concept .sec-head { margin-bottom: 44px; }
  .concept .sec-head h2 { font-size: 18px; }
  .guide-card { padding: 36px 28px; }

  .insta-grid { grid-template-columns: repeat(3, 1fr); }

  .site-footer { padding: 48px 20px 28px; }
  .footer-brand img { height: 72px; }

  .page-hero { height: 320px; }
  .page-hero-copy { bottom: 48px; }
  .page-hero h1 { font-size: 21px; letter-spacing: .14em; }
  .toc { gap: 0 28px; }
  .crumb { padding: 16px 20px 0; }
  .g-sec { padding: 80px 20px 32px; }
  .g-sec:last-child { padding-bottom: 80px; }
  .g-two { gap: 32px; }
  .g-intro { position: static; flex-basis: 100%; }
  .g-main { flex-basis: 100%; }
  .g-band { height: 240px; margin-top: 56px; }
  #wrapping { margin-top: 64px; }

  .wash-step { grid-template-columns: 128px 1fr; gap: 14px; padding: 22px 0; }
  .wash-no { padding: 6px 7px 5px; font-size: 10px; letter-spacing: .12em; }
  .size-steps .wash-fig { padding-top: 22px; }
  .wash-step h4 { font-size: 14px; letter-spacing: .04em; margin-bottom: 6px; }
  .wash-body p { font-size: 13px; line-height: 1.85; }
  .wash-body .wash-note { font-size: 12px; margin-top: 8px; padding: 10px 12px; }
}
