/* ===================================================
   ひばり堂パン店 - style.css
   昭和レトロ商店街のパン屋、をテーマにしたスタイル
=================================================== */

:root {
  --cream: #FBF3DF;
  --paper: #FFFBF2;
  --ink: #3B2A1F;
  --ink-soft: #5a4636;
  --red-deep: #C1443B;
  --red-deep-dark: #9C332C;
  --gold: #D9A441;
  --gold-soft: #E8DBBB;

  --font-label: 'DotGothic16', monospace;
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-body: 'Zen Maru Gothic', sans-serif;
  --font-serif: 'Shippori Mincho', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--red-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

p { margin: 0; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

main > section {
  padding: 108px 0;
}

/* ---------- 開店シャッター演出 ---------- */
.shutter {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      180deg,
      var(--red-deep) 0px, var(--red-deep) 22px,
      var(--red-deep-dark) 22px, var(--red-deep-dark) 26px
    );
  color: var(--paper);
  font-family: var(--font-label);
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: .12em;
  animation: shutter-open 1s ease-in .5s forwards;
}
.shutter span {
  padding: 10px 22px;
  background: rgba(59, 42, 31, .35);
  border-radius: 4px;
}
@keyframes shutter-open {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
.shutter.is-done { display: none; }

@media (prefers-reduced-motion: reduce) {
  .shutter { display: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
}
.shop-logo:hover { text-decoration: none; }
.shop-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: 1.1rem;
}

nav[aria-label] .nav-tags {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
}
.nav-tags a:hover {
  background: var(--gold-soft);
  text-decoration: none;
  color: var(--ink);
}
.nav-tags a[aria-current="page"] {
  background: var(--red-deep);
  color: var(--paper);
}

.stripe-band {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--red-deep) 0 14px,
    var(--gold) 14px 28px
  );
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 148px 0 96px;
  background:
    linear-gradient(180deg, rgba(59,42,31,.74), rgba(59,42,31,.55) 55%, rgba(59,42,31,.8)),
    url("../images/shop-interior.webp") center 32% / cover no-repeat;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: 18px;
}
.hero h1 { max-width: 720px; margin: 0 auto; color: var(--paper); }
.hero .accent { color: var(--gold); }
.hero .lead {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--paper);
  opacity: .92;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--red-deep);
  color: var(--paper);
  font-weight: 700;
  border: 2px solid var(--red-deep);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover {
  background: var(--red-deep-dark);
  border-color: var(--red-deep-dark);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn.outline {
  background: transparent;
  color: var(--red-deep);
}
.btn.outline:hover {
  background: var(--red-deep);
  color: var(--paper);
}

.hero .btn.outline {
  color: var(--paper);
  border-color: var(--paper);
}
.hero .btn.outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- セクション見出し ---------- */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--red-deep);
  font-size: .85rem;
  margin-bottom: 10px;
}
.divider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.divider-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 背景写真セクション ---------- */
.section-photo-bg {
  position: relative;
  background:
    linear-gradient(180deg, rgba(59,42,31,.82), rgba(59,42,31,.78)),
    url("../images/story-kodawari-bg.webp") center 30% / cover no-repeat;
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}
.section-photo-bg .kicker { color: var(--gold); }
.section-photo-bg .section-head h2 { color: var(--paper); }

/* ---------- グリッド ---------- */
.grid {
  display: grid;
  gap: 40px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- 値札風カード ---------- */
.price-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 20px;
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 6px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s ease;
}
.price-tag:hover { transform: rotate(0deg) scale(1.02); }
.price-tag::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.price-tag .thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin: 2px 0 8px;
}
.price-tag .name {
  font-weight: 700;
  font-size: 1.05rem;
}
.price-tag .desc {
  font-size: .88rem;
  color: var(--ink-soft);
  flex: 1;
}
.price-tag .price {
  align-self: flex-end;
  font-family: var(--font-label);
  font-size: 1.4rem;
  color: var(--red-deep);
}
.price-tag .price::before { content: "¥"; font-size: .8em; margin-right: 2px; }

/* ---------- 断面クローズアップ ---------- */
.closeup-photo {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.closeup-caption {
  margin-top: 14px;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}

.closeup-slider {
  max-width: 480px;
  margin: 0 auto;
}
.closeup-slides {
  position: relative;
  height: 280px;
}
.closeup-slides .closeup-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.closeup-slides .closeup-photo.is-active {
  opacity: 1;
  transform: translateX(0);
}
.closeup-slides .closeup-photo.is-leaving {
  opacity: 0;
  transform: translateX(-40px);
}
.closeup-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.closeup-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: .35;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
}
.closeup-dot.is-active {
  opacity: 1;
  background: var(--gold);
  transform: scale(1.25);
}

/* ---------- カード（ヒストリーなど） ---------- */
.card {
  padding: 24px 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}
.card .history-photo-wrap {
  position: relative;
  margin: -24px -22px 16px;
}
.card .history-photo {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
}
.card .history-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

/* ---------- ストーリー写真 ---------- */
.story-photo-wrap {
  position: relative;
}
.story-photo {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid var(--ink);
  border-radius: 10px;
  filter: sepia(.25) contrast(1.05);
}
.story-photo-wrap .hanko {
  position: absolute;
  right: -16px;
  bottom: -16px;
  background: var(--paper);
}

/* ---------- 印鑑風スタンプ ---------- */
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 3px solid var(--red-deep);
  border-radius: 50%;
  color: var(--red-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  transform: rotate(-6deg);
  writing-mode: vertical-rl;
}

/* ---------- お知らせ一覧 ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--gold-soft);
}
.post-list li:first-child { padding-top: 0; }
.post-list time {
  flex-shrink: 0;
  width: 64px;
  font-family: var(--font-label);
  color: var(--ink-soft);
  padding-top: 2px;
}
.post-list .tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  vertical-align: middle;
}
.post-list strong { display: inline-block; margin-top: 2px; }

/* ---------- ページタイトル帯 ---------- */
.page-title-band {
  position: relative;
  text-align: center;
  padding: 96px 24px 80px;
  background: var(--cream);
  border-bottom: 2px dashed var(--ink);
}
.page-title-band.has-photo {
  background-size: cover;
  background-position: center;
}
.page-title-band.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,42,31,.72), rgba(59,42,31,.68));
}
.page-title-band.has-photo .kicker,
.page-title-band.has-photo h1 {
  position: relative;
  z-index: 1;
}
.page-title-band.has-photo .kicker { color: var(--gold); }
.page-title-band.has-photo h1 { color: var(--paper); }

.page-title-band h1 {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title-band.pt-story   { background-image: url("../images/story-yamiichi.webp"); }
.page-title-band.pt-menu    { background-image: url("../images/menu-bread-bg.webp"); }
.page-title-band.pt-access  { background-image: url("../images/shop-exterior.webp"); }
.page-title-band.pt-blog    { background-image: url("../images/news-hero.webp"); }
.page-title-band.pt-contact { background-image: url("../images/contact-hero.webp"); }
.page-title-band.pt-gift    { background-image: url("../images/gift-wrapping.webp"); }

/* ---------- お問い合わせフォーム ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  display: grid;
  gap: 24px;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-row .required {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--red-deep);
  color: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  vertical-align: middle;
}
.form-row .optional {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  vertical-align: middle;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
.form-row textarea { resize: vertical; min-height: 150px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red-deep);
}
.form-note {
  font-size: .82rem;
  color: var(--ink-soft);
}
.contact-form .btn {
  justify-self: center;
  padding: 14px 40px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.form-success {
  text-align: center;
}
.form-success .hanko {
  margin: 0 auto 20px;
}
.form-success p + p { margin-top: 8px; }

.access-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid var(--ink);
  border-radius: 10px;
}

/* ---------- 木の板 & テーブル ---------- */
.board {
  background: var(--gold-soft);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 20px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(59, 42, 31, .2);
  font-size: .95rem;
}
.info-table td.thumb-cell { width: 72px; padding-right: 0; }
.info-table img.thumb-sm {
  width: 64px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.info-table th {
  width: 30%;
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ---------- よくある質問 ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 2px dashed var(--ink);
  padding: 18px 4px;
}
.faq-item:first-child {
  border-top: 2px dashed var(--ink);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 4px 32px 4px 40px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 1.4rem;
  color: var(--gold);
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item .faq-answer {
  margin: 12px 0 0 40px;
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0 16px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.shop-info .name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.site-footer .nav-tags a {
  color: var(--gold-soft);
}
.site-footer .nav-tags a:hover {
  background: rgba(255, 251, 242, .12);
  color: var(--paper);
}
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 251, 242, .1);
  color: var(--paper);
  transition: background .2s, color .2s;
}
.social-links a:hover {
  background: var(--gold-soft);
  color: var(--ink);
}
.social-links svg {
  width: 19px;
  height: 19px;
}

.copyright {
  text-align: center;
  margin-top: 32px;
  font-size: .8rem;
  color: rgba(255, 251, 242, .6);
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
}
