/*
 * Sumine-sha — shared by the company site at / and the shop at /shop/.
 * Cool near-white ground, water-blue accent, hairlines and air.
 * Rounded gothic headings; calm sans body.
 */

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:root {
  --ink: #20262a;
  --sub: #68737b;
  --bg: #f8fafa;
  --card: #ffffff;
  --pale: #eef4f5;
  --line: #d9e2e4;
  --accent: #2f7f98;       /* links, tags, selected filters */
  --ink-deep: #16191b;      /* header and footer ground */
  --attention: #f5b40a;     /* in-cart state, cart badge */
  --attention-deep: #dea009;
  --used: #8a6d3b;          /* 中古 label */
  /* Illustration-only palette — for hand-drawn SVG art (e.g. hero__illus),
     never for UI chrome. The rest of the site stays one-accent. */
  --illus-teal: #2f7f98;
  --illus-coral: #e8735a;
  --illus-gold: #f5b40a;
  --illus-violet: #7c6fd6;
  --illus-green: #4fa77a;
  --new: #2f7f98;           /* 新品 label (same as accent) */
  --danger: #a3452f;        /* sold-out warnings in the cart */
  /* Headings. Named --serif for history; it is a rounded gothic now, which
     sits better on a company that builds systems than a literary mincho. */
  --serif: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  --container: 1080px;
}

/* Keep anchor targets clear of the sticky header. */
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 28px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-deep);
  color: #f2f5f5;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; max-width: var(--container); margin: 0 auto; padding: 0 28px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 25px; font-weight: 600; letter-spacing: 0.28em;
}
.nav__mark { display: block; width: 26px; height: 26px; }
.nav__right { display: flex; align-items: center; gap: 36px; }
.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__menu a {
  font-size: 17px; font-weight: 700; letter-spacing: 0.14em; color: #e8edee;
  transition: color 0.2s ease;
}
.nav__menu a:hover { color: #fff; }
.nav__toggle {
  display: none;
  background: none; border: none; margin: 0; padding: 4px;
  color: #e8edee; cursor: pointer;
}
.nav__toggle svg { display: block; width: 26px; height: 26px; }

/* ===== Hero ===== */
.hero { padding: 16px 0 4px; }
.hero__illus { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }
.hero__title {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 600; line-height: 1.7; letter-spacing: 0.08em;
}
.hero__lead { margin: 6px 0 0; font-size: 15px; letter-spacing: 0.1em; color: var(--sub); text-align: center; }

/* ===== Cart icon in the nav ===== */
.nav__cart { position: relative; display: inline-flex; align-items: center; color: #e8edee; transition: color 0.2s ease; }
.nav__cart:hover { color: #fff; }
.nav__cart svg { width: 30px; height: 30px; }
.nav__cart-count {
  position: absolute; top: -8px; right: -12px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--attention); color: var(--ink-deep);
  font-size: 13px; font-weight: 700; line-height: 19px; text-align: center;
  letter-spacing: 0;
}

/* ===== Sections ===== */
.section { padding: 84px 0 100px; }
#goods.section { padding-top: 40px; }
#work.section { padding-top: 16px; }
.section--pale { background: var(--pale); }
.head {
  margin: 0 0 52px;
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: 0.34em;
  display: flex; align-items: center; gap: 24px;
}
.head::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ===== Section head with trailing link ===== */
.head-row { display: flex; align-items: center; gap: 28px; margin-bottom: 52px; }
.head-row .head { margin-bottom: 0; flex: 1; }
.link-more {
  font-size: 14px; letter-spacing: 0.12em; color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.link-more:hover { border-color: var(--accent); }

/* ===== Filter chips ===== */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; }
.filter__chip {
  font: inherit; font-size: 14px; letter-spacing: 0.12em; color: var(--sub);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 20px; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter__chip:hover { color: var(--accent); border-color: var(--accent); }
.filter__chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ===== More button / empty note ===== */
.more { text-align: center; margin-top: 64px; }
.more__btn {
  font: inherit; font-size: 15px; letter-spacing: 0.24em;
  color: var(--ink); background: none;
  border: 1px solid var(--ink);
  padding: 13px 52px 13px 56px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.more__btn:hover { background: var(--ink); color: #fff; }
.items-empty { margin: 0; font-size: 15px; letter-spacing: 0.1em; color: var(--sub); }

/* ===== Goods grid ===== */
.items {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 36px;
}
.item__link { display: block; }
.item__frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.item__soldout {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(248, 250, 250, 0.72);
  font-size: 14px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--ink);
}
.item__link:hover .item__frame {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(32, 38, 42, 0.08);
}
.item__img { display: block; width: 100%; height: auto; }

.item__tags {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
}
.item__tag {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 2px 12px; border-radius: 999px;
}
.cond {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: #fff;
  padding: 3px 12px; border-radius: 999px;
}
.cond--used { background: var(--used); }
.cond--new { background: var(--new); }
.item__name {
  margin: 10px 0 2px;
  font-family: var(--serif);
  font-size: 17px; font-weight: 500; letter-spacing: 0.06em;
}
.item__price { margin: 0; font-size: 14px; letter-spacing: 0.1em; color: var(--sub); }

.item__add {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px;
  font: inherit; font-size: 14px; letter-spacing: 0.1em;
  color: var(--ink); background: none;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 24px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.item__add:hover { background: var(--ink); color: #fff; }

/* Cart icon inside the buttons (same bag as the header). */
.cart-btn-ic { width: 16px; height: 16px; flex: 0 0 auto; }

/* Cart button slot: action button plus inline remove. */
.cart-slot { display: flex; align-items: center; gap: 18px; }
.items .cart-slot { margin-top: 14px; }
#item-detail .cart-slot { margin-top: 40px; }
.cart-slot .item__add,
.cart-slot .detail__buy { margin-top: 0; }
.unadd {
  font: inherit; font-size: 13px; letter-spacing: 0.1em; color: var(--sub);
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 0 0 2px; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.unadd:hover { color: var(--ink); border-color: var(--ink); }

/* In-cart state: attention yellow with dark text. */
.item__add.is-in-cart,
.more__btn.is-in-cart {
  background: var(--attention);
  border-color: var(--attention);
  color: var(--ink);
  font-weight: 700;
}
.item__add.is-in-cart:hover,
.more__btn.is-in-cart:hover {
  background: var(--attention-deep);
  border-color: var(--attention-deep);
  color: var(--ink);
}
.more__btn.detail__buy { display: inline-flex; align-items: center; gap: 10px; }

/* ===== Cart page ===== */
.cartv { max-width: 640px; }
.cartv__row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cartv__row:first-child { border-top: 1px solid var(--line); }
.cartv__thumb img {
  display: block; width: 88px; height: 88px;
  border: 1px solid var(--line); border-radius: 4px;
}
.cartv__name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.04em; transition: color 0.2s ease; }
.cartv__name:hover { color: var(--accent); }
.cartv__price { margin: 4px 0 0; font-size: 14px; letter-spacing: 0.08em; color: var(--sub); }
.cartv__dead { margin: 4px 0 0; font-size: 14px; color: var(--danger); }
.cartv__remove {
  font: inherit; font-size: 13px; letter-spacing: 0.1em; color: var(--sub);
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 0 0 2px; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cartv__remove:hover { color: var(--ink); border-color: var(--ink); }
.cartv__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 4px;
  font-size: 15px; letter-spacing: 0.14em;
}
.cartv__sum { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.cartv__note { margin: 18px 0 0; font-size: 13px; letter-spacing: 0.08em; color: var(--sub); }
.cartv__back { margin: 28px 0 0; }

/* ===== Thanks page ===== */
.thanks__text {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 16px; line-height: 2.5; letter-spacing: 0.05em;
}
.thanks__back { margin: 0; }

/* ===== Breadcrumbs ===== */
.crumbs {
  margin: 0 0 22px;
  font-size: 15px; letter-spacing: 0.08em; color: var(--sub);
}
.crumbs a { color: var(--sub); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { margin: 0 8px; opacity: 0.6; }

/* ===== Item detail ===== */
.detail__back { margin: 0 0 40px; font-size: 14px; letter-spacing: 0.1em; }
.detail__back a { color: var(--sub); transition: color 0.2s ease; }
.detail__back a:hover { color: var(--accent); }
.detail { display: flex; gap: 64px; align-items: flex-start; }
.detail__media { flex: 0 0 44%; }
.detail__info { flex: 1; max-width: 480px; }
.detail__name {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: 0.06em;
}
.detail__price { margin: 0 0 28px; font-size: 17px; letter-spacing: 0.1em; }
.detail__desc {
  margin: 0 0 1.4em;
  font-family: var(--serif);
  font-size: 16px; line-height: 2.3; letter-spacing: 0.04em;
}
.detail__specs { margin: 32px 0 0; border-top: 1px solid var(--line); }
.detail__spec {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.detail__spec dt { font-size: 13px; letter-spacing: 0.16em; color: var(--sub); padding-top: 3px; }
.detail__spec dd { margin: 0; font-size: 15px; }
.detail__buy { display: inline-block; margin-top: 40px; }
.detail__state {
  margin: 40px 0 0;
  font-size: 16px; font-weight: 700; letter-spacing: 0.2em; color: var(--sub);
}
.detail__head { margin: 96px 0 36px; font-size: 21px; }
.detail__video {
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.detail__video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Round brand-icon buttons in a row (linktree-style icon strip). */
.lnk-list { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.lnk {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.lnk:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(32, 38, 42, 0.12);
}
.lnk__ic { width: 24px; height: 24px; }
.lnk--text {
  width: auto; padding: 0 22px; border-radius: 999px;
  font-size: 14px; letter-spacing: 0.1em;
}

/* Category tiles on the top page */
.items--cats .item__name {
  margin-top: 16px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.24em;
}

/* ===== Work: the three pillars on the 澄音舎 top page ===== */
.work .item__frame { margin-bottom: 20px; }
.work__name {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 19px; font-weight: 600; letter-spacing: 0.16em;
}
.work__list {
  margin: 12px 0 0;
  font-size: 15px; line-height: 1.9; color: var(--sub);
}
.career__list {
  margin: 12px 0 0; padding-left: 1.1em;
  font-size: 15px; line-height: 1.9; color: var(--sub);
}
.career__list li { margin: 0 0 8px; }
.topics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 8px;
}
.topic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 28px;
}
.work__link {
  display: inline-block; margin-top: 16px;
  font-size: 14px; letter-spacing: 0.12em; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.work__link:hover { border-color: var(--accent); }

/* ===== About ===== */
.about__desc {
  margin: 0 0 72px;
  font-family: var(--serif);
  font-size: 17px; line-height: 2.5; letter-spacing: 0.05em;
}

/* ===== Staff ===== */
.staff { display: flex; gap: 64px; align-items: flex-start; }
.staff__bio { flex: 1; max-width: 620px; }
.staff__name {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 20px; font-weight: 600; letter-spacing: 0.2em;
}
.staff__name-en {
  display: inline-block; margin-top: 6px;
  font-family: sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.12em; color: var(--sub);
}
.staff__bio p {
  margin: 0 0 2.2em;
  font-family: var(--serif);
  font-size: 16px; line-height: 2.5; letter-spacing: 0.05em;
}
.staff__bio p:last-child { margin-bottom: 0; }
.social-links { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  opacity: 1; transition: opacity 0.2s ease;
}
.social-link svg { width: 64px; height: 64px; }
.social-link--word { width: auto; height: auto; }
.social-link--word svg { width: auto; height: 40px; }
.social-link--logo {
  width: auto; height: auto;
  padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 20px;
}
.social-link--logo img { display: block; width: auto; height: 24px; }
.social-link:hover { opacity: 0.8; }

.staff__fav { margin: 0; border-top: 1px solid var(--line); }
.staff__fav-row {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.staff__fav-row dt {
  font-size: 13px; letter-spacing: 0.18em; color: var(--sub);
  padding-top: 3px;
}
.staff__fav-row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px; line-height: 2; letter-spacing: 0.04em;
}

/* ===== Contact ===== */
.form__note { margin: 0 0 32px; font-size: 14px; letter-spacing: 0.06em; color: var(--sub); }

/* ===== Footer (same ink as the header) ===== */
.foot { background: var(--ink-deep); color: #aeb8bc; padding: 56px 0 60px; }
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.foot__nav {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.1em;
}
.foot__nav a { color: #e8edee; transition: color 0.2s ease; }
.foot__nav a:hover { color: #fff; }
.foot__soon { color: #aeb8bc; font-weight: 400; }
.foot__brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; letter-spacing: 0.28em;
  color: #f2f5f5;
}
.foot__copy { margin: 0; font-size: 14px; letter-spacing: 0.1em; color: #7b858a; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .items { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .detail { flex-direction: column; gap: 36px; }
  .detail__media { flex-basis: auto; width: 100%; max-width: 440px; }
  .about__row { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
  .topics { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0 72px; }
  .head { font-size: 21px; margin-bottom: 36px; }
  .items { gap: 28px 16px; }
  .item__name { font-size: 16px; }
  /* .nav__inner never shrank: brand + 3 menu items at full size ran wider
     than the viewport, forcing the whole page to scroll horizontally. */
  .nav__inner { padding: 0 16px; }
  .nav__brand { font-size: 19px; gap: 6px; }
  .nav__mark { width: 22px; height: 22px; }
  .nav__right { gap: 14px; }
  .nav__toggle { display: inline-flex; }
  /* .nav (sticky) is the positioned ancestor .nav__menu anchors to, so it
     drops down as a full-width panel instead of squeezing into the bar. */
  .nav__menu {
    display: none;
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 16px 20px; font-size: 15px; }
}
@media (max-width: 480px) {
  .items { grid-template-columns: 1fr; }
}

/* ===== 特定商取引法に基づく表記 ===== */
.tokushoho__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tokushoho__table tr { border-top: 1px solid var(--line); }
.tokushoho__table tr:last-child { border-bottom: 1px solid var(--line); }
.tokushoho__table th, .tokushoho__table td { padding: 16px 12px; text-align: left; vertical-align: top; }
.tokushoho__table th { width: 220px; color: var(--sub); font-weight: 500; }
@media (max-width: 640px) {
  .tokushoho__table th, .tokushoho__table td { display: block; padding: 4px 0; width: auto; }
  .tokushoho__table tr { display: block; padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
