/* International Super Market Hiroo — blog
   Palette: 白磁 hakuji (paper) / 墨 sumi (ink) / 藍 ai (indigo) / 朱 shu (seal red) / 若竹 wakatake (bamboo) */
:root {
  --paper: #F5F6F3;
  --paper-2: #E9ECE7;
  --white: #FFFFFF;
  --ink: #22252B;
  --ink-soft: #4A5058;
  --mute: #5F656D;
  --line: #D5D9D2;
  --ai: #2B4C6F;
  --ai-dark: #1D3550;
  --shu: #BE3A2B;
  --take: #4F7A5C;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --w: 1180px;
  --w-narrow: 760px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.8; font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.lang-ja { line-height: 1.95; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .25em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; letter-spacing: .01em; }
.lang-ja h1, .lang-ja h2, .lang-ja h3 { word-break: auto-phrase; line-break: strict; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--ai) 22%, transparent); }

.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.wrap--form { max-width: calc(460px + var(--gutter) * 2); padding-block: clamp(40px, 8vw, 88px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50; border-radius: 2px; }
.skip:focus { top: 12px; }

/* ---------- Seal (hanko) ---------- */
.seal {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: var(--shu); color: var(--paper); font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1;
  border-radius: 3px; transform: rotate(-3deg);
}
.seal--small { width: 32px; height: 32px; font-size: 18px; }
.seal--stamp { width: 64px; height: 64px; font-size: 38px; margin-top: 28px; animation: stamp .55s cubic-bezier(.2, .9, .3, 1.15) .35s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.4) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-3deg); } }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__text { display: grid; line-height: 1.3; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; }
.brand__sub { font-size: .76rem; color: var(--mute); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px 22px; font-size: .92rem; flex-wrap: wrap; }
.nav a:not(.btn), .nav__link-btn { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav__link-btn:hover { border-bottom-color: currentColor; }
.nav__form { margin: 0; }
.nav__link-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.nav__user { color: var(--mute); }
.account { display: flex; align-items: center; gap: 8px 14px; font-size: .92rem; }
.account__chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.account__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ai); color: var(--paper); font-family: var(--serif); font-weight: 700; font-size: .95rem; }
.account__name { font-weight: 500; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__link { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.account__link:hover { border-bottom-color: currentColor; }
.account__form { margin: 0; }
.flash { padding-top: 20px; }
.langswitch { font-size: .84rem; border: 1px solid var(--line); padding: 3px 10px !important; border-radius: 2px; }
.langswitch:hover { border-color: var(--ink) !important; }
@media (max-width: 760px) {
  .site-header__in { gap: 10px; }
  .brand { order: 1; flex: 1 1 auto; }
  .account { order: 2; }
  .nav { order: 3; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 4px; scrollbar-width: none; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .brand__sub, .account__name { display: none; }
  .account__chip { padding: 3px; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; background: var(--ai); color: var(--paper); border: 1px solid var(--ai); text-decoration: none;
  padding: .72em 1.5em; font: 500 .95rem/1.4 var(--sans); letter-spacing: .04em; border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ai-dark); border-color: var(--ai-dark); }
.btn--ghost { background: transparent; color: var(--ai); }
.btn--ghost:hover { background: var(--ai); color: var(--paper); }
.btn--small { padding: .38em 1em; font-size: .86rem; }
.textlink { color: var(--ai); font-weight: 500; text-decoration-thickness: 1px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--ai); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.tag { display: inline-block; font-size: .78rem; color: var(--ai); border: 1px solid color-mix(in srgb, var(--ai) 45%, transparent); padding: 0 .7em; border-radius: 2px; text-decoration: none; line-height: 1.8; }
a.tag:hover { background: var(--ai); color: var(--paper); }
.tag--food { color: var(--take); border-color: color-mix(in srgb, var(--take) 55%, transparent); }

/* ---------- Hero (home) ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 80px); padding-block: clamp(40px, 8vw, 104px) clamp(36px, 6vw, 72px); align-items: start; }
.hero__mark { display: flex; flex-direction: column; align-items: center; padding-right: clamp(20px, 5vw, 64px); border-right: 1px solid var(--line); align-self: stretch; }
.hero__kanji { display: grid; justify-items: center; font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 11vw, 160px); line-height: 1.12; color: var(--ink); }
.hero__text { max-width: 640px; align-self: center; }
.hero__title { font-size: clamp(1.45rem, 3.2vw, 2.35rem); line-height: 1.5; margin-bottom: 1.1rem; }
.hero__lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 0; }
@media (max-width: 640px) {
  .hero__in { grid-template-columns: 1fr; gap: 20px; }
  .hero__mark { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .hero__kanji { grid-auto-flow: column; font-size: 3rem; line-height: 1; }
  .seal--stamp { margin-top: 0; width: 44px; height: 44px; font-size: 26px; }
}

/* ---------- Featured ---------- */
.featured { padding-block: clamp(32px, 5vw, 64px) 0; }
.featured__card { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.featured__media, .card__media { display: block; background: var(--paper-2); overflow: hidden; }
.featured__media { aspect-ratio: 16 / 10; }
.featured__media img, .card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__title { font-size: clamp(1.4rem, 2.6vw, 2.05rem); margin: .7rem 0 .9rem; }
.featured__title a, .card__title a { text-decoration: none; }
.featured__title a:hover, .card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.featured__excerpt { color: var(--ink-soft); }
@media (max-width: 860px) { .featured__card { grid-template-columns: 1fr; } }

/* ---------- Latest grid ---------- */
.latest { padding-block: clamp(40px, 6vw, 80px); }
.latest__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.latest__head h2 { font-size: 1.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.chips a { text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid transparent; padding: 2px 0; }
.chips a:hover { color: var(--ai); border-bottom-color: currentColor; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); }
@media (min-width: 900px) { .grid:not(.grid--3) > .card:nth-child(3n+2) { margin-top: 52px; } }
@media (max-width: 899px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid { grid-template-columns: 1fr; } }
.card__media { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.card__noimg { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--serif); font-weight: 700; font-size: 4rem; color: color-mix(in srgb, var(--ai) 22%, var(--paper-2)); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8rem; color: var(--mute); margin: 0 0 .5rem; }
.card__title { font-size: 1.14rem; margin-bottom: .5rem; }
.card__excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(36px, 6vw, 72px); font-size: .95rem; flex-wrap: wrap; }
.pager ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pager li a, .pager li span { display: grid; place-items: center; min-width: 40px; height: 40px; text-decoration: none; border: 1px solid transparent; border-radius: 2px; }
.pager li a:hover { border-color: var(--line); }
.pager li span[aria-current] { border-color: var(--ink); }
.pager__gap { color: var(--mute); display: grid; place-items: center; min-width: 24px; }
.pager__step { color: var(--ai); text-decoration: none; padding: 8px 4px; }
.pager__step:hover { text-decoration: underline; }

/* ---------- Page head / lists ---------- */
.page-head { padding-block: clamp(32px, 6vw, 72px) 0; }
.page-head__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.page-head__sub { font-size: .55em; color: var(--mute); font-weight: 500; margin-left: .6em; }
.page-head__intro { color: var(--ink-soft); max-width: 40em; margin-top: 1rem; }
.searchform { display: flex; gap: 10px; margin-top: 1.6rem; max-width: 560px; }
.searchform input { flex: 1; }
.empty { padding-block: clamp(48px, 10vw, 120px); text-align: center; }
.empty h1, .empty h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.empty__code { font-family: var(--serif); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; margin: 0 0 .2em; color: color-mix(in srgb, var(--ai) 28%, var(--paper)); font-weight: 700; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; font-size: .82rem; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin: 0 .7em; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Post ---------- */
.preview-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: .86rem; padding: 8px var(--gutter); }
.post__head { padding-top: clamp(28px, 5vw, 64px); }
.post__title { font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.45; margin: .8rem 0 1rem; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .86rem; color: var(--mute); margin: 0 0 1.4rem; }
.post__lead { font-family: var(--serif); font-size: 1.12rem; line-height: 1.9; color: var(--ink-soft); border-left: 2px solid var(--ai); padding-left: 1.1rem; margin: 0 0 clamp(24px, 4vw, 40px); }
.post__cover { margin: 0 auto clamp(28px, 5vw, 56px); }
.post__cover img { width: 100%; max-height: 640px; object-fit: cover; background: var(--paper-2); }
.toc { border-block: 1px solid var(--line); padding: 16px 0; margin-bottom: 2rem; font-size: .92rem; }
.toc__title { font-family: var(--serif); font-weight: 700; margin: 0 0 .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 3px 0; }
.toc__l3 { padding-left: 1.4em !important; font-size: .9em; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ai); text-decoration: underline; }

.prose { font-size: 1.04rem; }
.prose > * + * { margin-top: 1.5em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 2.6em; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.22rem; margin-top: 2em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.8em; }
.prose a { color: var(--ai); text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--ai); font-family: var(--serif); color: var(--ink-soft); }
.prose img { width: 100%; height: auto; margin-inline: auto; background: var(--paper-2); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .84rem; color: var(--mute); margin-top: .6em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55em .8em; text-align: left; }
.prose th { background: var(--paper-2); }

/* Ingredients (food posts) */
.ingredients { background: var(--paper-2); margin-top: clamp(48px, 8vw, 96px); padding-block: clamp(36px, 6vw, 72px); }
.ingredients h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.ingredients__lead { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.8rem; }
.ingredients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.product { display: grid; gap: 8px; height: 100%; padding: 12px 12px 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; text-align: center; transition: border-color .2s; }
.product:hover { border-color: var(--ai); }
.product__img { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--white); }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__img > span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: color-mix(in srgb, var(--ai) 25%, var(--white)); }
.product__name { font-family: var(--serif); font-weight: 700; font-size: .95rem; line-height: 1.5; }
.product__cta { font-size: .8rem; color: var(--ai); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: clamp(36px, 6vw, 64px); padding-block: 16px; border-block: 1px solid var(--line); font-size: .9rem; }
.share__label { font-family: var(--serif); font-weight: 700; }
.share a { color: var(--ai); }

/* Comments */
.comments { padding-block: clamp(36px, 6vw, 64px); }
.comments h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.comments__count { font-family: var(--sans); font-weight: 500; font-size: .75em; color: var(--mute); margin-left: .4em; }
.comments__empty { color: var(--mute); }
.comments__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment:last-child { border-bottom: 1px solid var(--line); }
.comment__head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 .4rem; font-size: .88rem; }
.comment__head time { color: var(--mute); font-size: .8rem; }
.comment__body { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.comment__del { margin: 0; }
.comments__login { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 8px; }
.form label { font-size: .9rem; font-weight: 500; margin-top: 8px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: .65em .8em;
}
textarea { resize: vertical; min-height: 7em; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ai); outline-offset: 1px; border-color: var(--ai); }
.form .btn { justify-self: start; margin-top: 12px; }
.form__hint { font-size: .8rem; color: var(--mute); margin: 0; }
.form__alt { margin-top: 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.notice { padding: 12px 16px; margin: 0 0 16px; border-left: 3px solid var(--take); background: color-mix(in srgb, var(--take) 10%, var(--paper)); font-size: .92rem; }
.notice--error { border-left-color: var(--shu); background: color-mix(in srgb, var(--shu) 8%, var(--paper)); }

.related { padding-bottom: clamp(48px, 8vw, 96px); }
.related h2 { font-size: 1.35rem; margin-bottom: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- About ---------- */
.about { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 96px); }
.about h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.about__station { color: var(--ink-soft); }
.about__list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 1.6rem 0; }
.about__list dt { font-family: var(--serif); font-weight: 700; }
.about__list dd { margin: 0; }
.about__map { margin: 1.6rem 0; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 5 / 3; }
.about__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .about__list { grid-template-columns: 1fr; gap: 2px; } .about__list dd { margin-bottom: 12px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--ai-dark); color: #E8EDF2; }
.site-footer::before {
  content: ""; display: block; height: 22px; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%232B4C6F' stroke-opacity='.45' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='19'/%3E%3Ccircle cx='20' cy='20' r='13'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3Ccircle cx='0' cy='10' r='19'/%3E%3Ccircle cx='0' cy='10' r='13'/%3E%3Ccircle cx='0' cy='10' r='7'/%3E%3Ccircle cx='40' cy='10' r='19'/%3E%3Ccircle cx='40' cy='10' r='13'/%3E%3Ccircle cx='40' cy='10' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 20px; border-bottom: 1px solid var(--ai-dark);
}
.site-footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 48px; padding-block: clamp(36px, 6vw, 64px) 28px; }
.site-footer__name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin: 14px 0 6px; }
.site-footer__tag { font-size: .88rem; color: #B9C6D3; max-width: 26em; }
.site-footer__nap { font-style: normal; font-size: .9rem; color: #D5DEE7; }
.site-footer__nap p { margin-bottom: .6em; }
.site-footer__links { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.site-footer a { color: #E8EDF2; text-decoration-color: rgba(232, 237, 242, .35); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer__copy { font-size: .78rem; color: #9FB0C1; padding-block: 0 28px; margin: 0 auto; }
@media (max-width: 800px) { .site-footer__in { grid-template-columns: 1fr; } }

/* ---------- Motion preferences & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal--stamp { animation: none; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .share, .comment-form, .comments__login, .comment__del, .ingredients__cta { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
