/* ==========================================================
   ページごとのレイアウト ＋ スマホ対応
   ========================================================== */

/* ---------- iPhone（ノッチ・ホームバー） ---------- */
.container { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.tel { font-variant-numeric: tabular-nums; letter-spacing: .06em; }

/* ---------- トップ ---------- */
.hero { background: linear-gradient(180deg, var(--peel) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero-copy .en { font-size: .85rem; color: var(--orange-deep); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 900; margin: 10px 0 18px; letter-spacing: .02em; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: var(--ink-soft); max-width: 34em; font-size: 1.02rem; }
.hero-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 24px; }
.hero-photo { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.hero-photo .sun {
  position: absolute; width: 78%; aspect-ratio: 1; right: -14%; top: 6%; border-radius: 50%;
  background: radial-gradient(circle, var(--peel-2) 0 34%, transparent 35%), repeating-conic-gradient(var(--orange) 0 40deg, var(--peel-2) 40deg 45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo .sun { animation: turn 80s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}
.hero-photo img { position: relative; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: -8px; bottom: 18px; background: #fff; padding: 6px 16px 8px; border-radius: 999px; box-shadow: var(--shadow); font-size: 1.3rem; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.point { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--orange); }
.point .en { font-size: .78rem; color: var(--orange-deep); }
.point h2 { font-size: 1.25rem; }
.point p { color: var(--ink-soft); font-size: .95rem; }

.story-teaser { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.wide-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-teaser-text { display: grid; gap: 14px; justify-items: start; }
.story-teaser-text .en { font-size: .82rem; color: var(--orange-deep); }
.story-teaser-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.story-teaser-text p { color: var(--ink-soft); }

.shop-teaser { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.shop-photo { margin: 0; max-width: 360px; justify-self: center; width: 100%; }
.shop-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.info { display: grid; margin: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.info div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.info dt { color: var(--peel-2); font-size: .88rem; }
.info dd { margin: 0; }
.info.light { border-top-color: var(--line); margin-top: 18px; width: 100%; }
.info.light div { border-bottom-color: var(--line); }
.info.light dt { color: var(--ink-soft); }
.section.sea .tbd { color: #d5e6e7; }
.btn.ghost.light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost.light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 下層ページ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.prose { display: grid; gap: 14px; justify-items: start; }
.prose .en { font-size: .82rem; color: var(--orange-deep); }
.section.sea .prose .en { color: var(--peel-2); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prose h3 { font-size: 1.1rem; margin-top: 10px; }
.prose p { color: var(--ink-soft); }
.section.sea .prose p { color: #d5e6e7; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li { background: var(--peel); border-radius: 16px; padding: 14px 18px; font-size: .93rem; color: var(--ink-soft); }
.tips b { display: block; color: var(--label); font-family: var(--display); font-size: 1rem; }

.gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.gallery .g1 { grid-row: span 2; aspect-ratio: 2 / 3; }
.gallery .g2, .gallery .g3 { aspect-ratio: 1; }

.tall-photo { margin: 0; }
.tall-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gift figure { margin: 0; max-width: 380px; justify-self: center; width: 100%; }
.gift figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--peel-2); }
.timeline li { position: relative; padding-left: 40px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 4px solid var(--peel); }
.timeline .when { font-family: var(--display); font-weight: 700; color: var(--orange-deep); font-size: .9rem; }
.timeline h3 { font-size: 1.15rem; }
.timeline p:not(.when) { color: var(--ink-soft); }

.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.member { background: var(--peel); border-radius: 18px; padding: 20px; display: grid; gap: 4px; align-content: start; }
.member h3 { font-size: 1rem; }
.member p { font-size: .85rem; color: var(--ink-soft); }
.member.accent { background: var(--orange); }
.member.accent h3, .member.accent p { color: #fff; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.way h3 { font-size: 1.15rem; }
.way p { color: var(--ink-soft); font-size: .93rem; }
.way .btn { margin-top: auto; padding: 12px 22px; font-size: .92rem; }
.tel.big { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--label); }

.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: fs; display: grid; gap: 14px; }
.flow-steps li { counter-increment: fs; position: relative; padding: 18px 20px 18px 72px; background: var(--peel); border-radius: 18px; }
.flow-steps li::before { content: counter(fs); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--latin); font-size: 1.1rem; }
.flow-steps h3 { font-size: 1.05rem; }
.flow-steps p { color: var(--ink-soft); font-size: .93rem; }

.faq { margin: 0; display: grid; border-top: 1px solid var(--line); }
.faq div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; color: var(--label); }
.faq dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.table-title { font-size: 1.05rem; margin-bottom: 8px; }
.spec.sign { border: 2px solid var(--label); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.spec.sign th, .spec.sign td { padding: 12px 16px; }
.spec.sign tr:last-child th, .spec.sign tr:last-child td { border-bottom: 0; }

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; line-height: 1.9; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 28px 44px; }
  .hero-photo { max-width: 260px; grid-row: 1; }
  .hero-photo .sun { width: 70%; right: -12%; }
  .hero-photo figcaption { font-size: 1.1rem; left: -4px; }
  .hero h1 { font-size: clamp(1.8rem, 8.2vw, 2.4rem); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .story-teaser, .shop-teaser, .split { grid-template-columns: 1fr; }
  .shop-photo { max-width: 280px; }
  .tall-photo { max-width: 420px; justify-self: center; width: 100%; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product .body { padding: 12px 12px 14px; gap: 6px; }
  .product h3 { font-size: .95rem; }
  .product .desc { font-size: .8rem; }
  .product .price { font-size: 1.1rem; }
  .product .price.none { font-size: .78rem; line-height: 1.5; }
  .product .btn { padding: 10px 8px; font-size: .8rem; letter-spacing: 0; min-height: 44px; }
  .ways { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .faq div, .info div { grid-template-columns: 1fr; gap: 2px; }
  .spec th { width: 38%; }
  .spec th, .spec td { padding: 12px 6px; }
  .btn { padding: 14px 22px; min-height: 48px; }
  .page-hero::after { width: 180px; height: 180px; right: -60px; top: -60px; }
  .flow-steps li { padding: 16px 16px 16px 64px; }
  .flow-steps li::before { left: 16px; }
}
@media (max-width: 370px) {
  .products { grid-template-columns: 1fr; }
}

.nw { display: inline-block; }
.product .badge { align-self: flex-start; }

[hidden] { display: none !important; }
@media (max-width: 760px) { .member.accent { grid-column: span 2; } }

/* ---------- 店舗写真（横長） ---------- */
.shop-teaser { grid-template-columns: 1fr 1fr; }
.shop-photo { max-width: none; }
.shop-photo img { aspect-ratio: 4 / 3; }
.land-photo { margin: 0; }
.land-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inside figure { margin: 0; display: grid; gap: 8px; }
.inside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.inside figcaption { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .shop-teaser { grid-template-columns: 1fr; }
  .shop-photo { max-width: none; grid-row: 1; }
  .inside { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- ご注文方法（電話注文の期間） ----------
   オンラインショップURLが空のあいだは html[data-order="phone"]。URLが入ると "online" に切り替わる */
html[data-order="online"] .only-phone { display: none !important; }
html:not([data-order="online"]) .only-online { display: none !important; }
.product .tel-note { font-size: .8rem; color: var(--ink-soft); text-align: center; font-variant-numeric: tabular-nums; }

.order-notice { background: #fff; border: 2px solid var(--orange); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.order-notice .kicker { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.order-notice h2 { margin-top: 10px; font-size: clamp(1.25rem, 3.2vw, 1.6rem); }
.order-notice .lead-text { margin-top: 10px; color: var(--ink-soft); }
.order-notice .flow-steps { margin-top: 20px; grid-template-columns: repeat(4, 1fr); }
.order-notice .flow-steps li { padding: 64px 16px 16px; }
.order-notice .flow-steps li::before { top: 16px; left: 16px; }
.order-notice .call { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.order-notice .call .tel.big { margin: 0; font-size: 1.7rem; }
.order-notice .call small { color: var(--ink-soft); font-size: .85rem; }
.order-notice .aside { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 960px) { .order-notice .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .order-notice .flow-steps { grid-template-columns: 1fr; }
  .order-notice .flow-steps li { padding: 14px 14px 14px 62px; }
  .order-notice .call .btn { width: 100%; justify-content: center; }
}
.inside .wide { grid-column: 1 / -1; }
.inside .wide img { aspect-ratio: 1301 / 1050; max-height: 640px; }
.law { margin-top: 12px; }

/* 商品が3つのとき：パソコンは中央にそろえ、スマホ（2列）では最後の1つを中央に置く */
@media (min-width: 761px) {
  .products { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; }
}
@media (max-width: 760px) and (min-width: 371px) {
  .products .product:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
