/* ==========================================================================
   SONARIA — top page
   ========================================================================== */
.sp-only { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero::before { /* fine construction grid, like 方眼紙 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%); mask-image: linear-gradient(90deg, transparent 0, #000 55%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center; gap: 40px; padding-block: 72px 80px;
}
.hero__en {
  font-family: var(--font-en); font-weight: 600; font-size: 12.5px; letter-spacing: .24em; color: var(--orange);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero__en::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero__en span { color: var(--ink-3); }
.hero__title {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: clamp(36px, 5.2vw, 66px); line-height: 1.32; letter-spacing: .04em;
  font-feature-settings: "palt"; margin-top: 22px;
}
.hero__lead { margin-top: 26px; color: var(--ink-2); font-size: 15.5px; line-height: 2; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__cta .btn--outline { background: transparent; }
.hero__cta .btn--outline:hover { background: var(--navy); }
.hero__facts {
  display: flex; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.hero__facts > div { display: flex; gap: 10px; align-items: baseline; padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.hero__facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__facts dt { font-weight: 700; color: var(--navy); font-size: 12px; }
.hero__visual { position: relative; padding-right: 36px; } /* room for .hero__vertical */
.hero__photo { position: relative; max-width: 620px; margin-left: auto; margin-bottom: 52px; }
.hero__photo::before { /* flat offset accent block behind the frame */
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 44%; height: 52%; background: var(--orange);
}
.hero__photo img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 32 / 25; object-fit: cover;
  background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius);
}
.hero__photo figcaption { /* sits left of the accent block, outside the figure box */
  position: absolute; left: 0; top: 100%; max-width: 52%; margin-top: 12px;
  font-size: 11.5px; line-height: 1.6; color: var(--ink-3); letter-spacing: .04em;
}
.hero__vertical {
  position: absolute; right: calc(var(--gutter) - 8px); top: 64px;
  writing-mode: vertical-rl; font-family: var(--font-head); font-size: 13px; letter-spacing: .42em;
  color: var(--ink-3); padding-top: 18px; border-top: 2px solid var(--orange);
}
.hero__hazard { height: 6px; }

/* ---------- notice strip ---------- */
.home-notice { border-bottom: 1px solid var(--line); background: #fff; }
.home-notice__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-block: 12px; }
.home-notice__label { font: 600 12px var(--font-en); letter-spacing: .22em; color: #fff; background: var(--navy); padding: 5px 12px; border-radius: 2px; flex: none; }
.home-notice__item { display: flex; gap: 20px; align-items: baseline; flex: 1; min-width: 0; font-size: 14px; }
.home-notice__item time { font: 500 14px var(--font-en); color: var(--ink-3); flex: none; }
.home-notice__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-notice__item:hover span { text-decoration: underline; }
.home-notice__more { flex: none; font-size: 13px; }

/* ---------- stockpile ---------- */
.stock__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.stock__basics { border-top: 2px solid var(--navy); }
.stock__basics li {
  display: grid; grid-template-columns: 76px 170px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.stock__label { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); }
.stock__num { display: flex; align-items: baseline; gap: 4px; color: var(--navy); line-height: 1; }
.stock__per { font-size: 12px; color: var(--ink-3); margin-right: 8px; }
.stock__num b { font-size: 60px; font-weight: 500; color: var(--orange); letter-spacing: 0; }
.stock__unit { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.stock__text { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.stock__more { margin-top: 32px; }

.calc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.calc__head { background: var(--navy); color: #fff; padding: 18px 26px; }
.calc__en { font: 600 11px var(--font-en); letter-spacing: .24em; color: var(--yellow); }
.calc__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .06em; margin-top: 2px; font-feature-settings: "palt"; }
.calc__body { padding: 22px 26px 26px; }
.calc__field { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; margin: 0; padding: 0 0 18px; }
.calc__field + .calc__field { padding-top: 18px; border-top: 1px dashed var(--line); }
.calc__flabel { font-weight: 700; font-size: 14px; }
.calc__stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.calc__stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--paper); color: var(--navy); }
.calc__stepper button:hover { background: var(--paper-2); }
.calc__stepper .icon { width: 18px; height: 18px; }
.calc__stepper input {
  width: 52px; height: 44px; border: 0; text-align: right; font: 600 22px var(--font-en); color: var(--navy);
  -moz-appearance: textfield; appearance: textfield; background: #fff; padding: 0;
}
.calc__stepper input::-webkit-outer-spin-button, .calc__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__suffix { font-size: 13px; padding: 0 12px 0 4px; }
.calc__seg { display: flex; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.calc__seg label { position: relative; cursor: pointer; }
.calc__seg input { position: absolute; opacity: 0; inset: 0; }
.calc__seg span { display: block; padding: 10px 22px; font-weight: 700; font-size: 14px; color: var(--navy); transition: background-color .15s, color .15s; }
.calc__seg label + label span { border-left: 1px solid var(--navy); }
.calc__seg input:checked + span { background: var(--navy); color: #fff; }
.calc__seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -4px; }
.calc__result { margin-top: 6px; border-top: 2px solid var(--navy); }
.calc__result > div {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.calc__result dt { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.calc__result dd { line-height: 1.3; font-weight: 700; }
.calc__result b { font-size: 32px; font-weight: 600; color: var(--orange-dark); margin-right: 3px; letter-spacing: 0; }
.calc__result small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.calc__link a { font-size: 12.5px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.calc__note { font-size: 12px; color: var(--ink-3); margin-top: 14px; line-height: 1.75; }

/* ---------- category tiles (markup from the shop generator) ---------- */
.cat-tiles { gap: 20px; }
.cat-tile { height: 100%; }
.cat-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); border-bottom: 1px solid var(--line-2); transition: transform .4s ease; }
.cat-tile:hover img { transform: scale(1.03); }
.p-card__img img { object-fit: cover; } /* product photos fill the square frame */
.cat-tile .card__body { padding: 18px 22px 22px; position: relative; z-index: 1; background: #fff; }
.cat-tile .h-sec__en { font-size: 11px; }
.cat-tile .card__title { font-size: 17px; margin-top: 2px; }
.cat-tile .card__text { font-size: 13px; margin-top: 4px; }

/* ---------- products ---------- */
.home-new { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }

/* ---------- scenes ---------- */
.scene-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.scene { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scene__pic { background: var(--paper); border-radius: var(--radius); padding: 14px 10px; align-self: start; }
.scene__pic svg { width: 100%; height: auto; }
.scene__no { font-size: 13px; color: var(--orange); letter-spacing: .12em; }
.scene__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.5; letter-spacing: .04em; font-feature-settings: "palt"; }
.scene__text { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.85; }
.scene__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scene__links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; transition: border-color .2s, color .2s;
}
.scene__links a::after { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.scene__links a:hover { border-color: var(--navy); color: var(--orange-dark); }

/* ---------- philosophy ---------- */
.philosophy__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.philosophy__head { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 22px; position: sticky; top: 150px; }
.philosophy__head .h-sec__en { writing-mode: vertical-rl; letter-spacing: .3em; }
.philosophy__head .h-sec__en::before { width: 2px; height: 22px; }
.philosophy__title {
  writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: 34px; line-height: 1.75; letter-spacing: .16em; font-feature-settings: "palt"; height: 15em; max-height: 420px;
}
.philosophy__list { border-top: 1px solid var(--line); counter-reset: none; }
.philosophy__list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.philosophy__no { font-size: 40px; line-height: 1; color: var(--orange); letter-spacing: 0; }
.philosophy__list h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.5; letter-spacing: .05em; font-feature-settings: "palt"; }
.philosophy__list p:not(.philosophy__no) { color: var(--ink-2); margin-top: 10px; max-width: 38em; }

/* ---------- business band ---------- */
.biz { position: relative; }
.biz::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--navy) 12px 24px); }
.biz .h-sec__ja { color: #fff; }
.biz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.biz__panel {
  display: flex; flex-direction: column; padding: 34px 36px 30px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-lg);
  color: #fff; transition: background-color .2s, border-color .2s;
}
.biz__panel:hover { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.5); }
.biz__icon { width: 40px; height: 40px; color: var(--orange); }
.biz__en { font: 600 11.5px var(--font-en); letter-spacing: .22em; color: #9fb0c8; margin-top: 18px; }
.biz__title { font-family: var(--font-head); font-weight: 700; font-size: 23px; letter-spacing: .06em; margin-top: 2px; font-feature-settings: "palt"; }
.biz__list { margin-top: 16px; font-size: 14px; color: #d3dae5; }
.biz__list li { position: relative; padding-left: 18px; }
.biz__list li + li { margin-top: 6px; }
.biz__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 2px; background: var(--orange); }
.biz__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 14px; }
.biz__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.biz__panel:hover .biz__more .icon { transform: translateX(4px); }

/* ---------- news + contact ---------- */
.home-info { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.home-contact { border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 30px 28px; background: #fff; }
.home-contact__en { font: 600 12px var(--font-en); letter-spacing: .22em; color: var(--orange); }
.home-contact__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.6; letter-spacing: .04em; margin-top: 6px; font-feature-settings: "palt"; }
.home-contact__text { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.home-contact__tel { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--navy); font-size: 27px; font-weight: 600; }
.home-contact__tel .icon { width: 26px; height: 26px; }
.home-contact__hours { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.home-contact__faq { margin-top: 16px; font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__vertical { display: none; }
  .hero__visual { padding-right: 0; }
  .stock__grid { grid-template-columns: 1fr; gap: 40px; }
  .calc { max-width: 640px; }
  .scene { grid-template-columns: 100px minmax(0, 1fr); padding: 26px 22px; gap: 18px; }
  .philosophy__inner { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .philosophy__title { font-size: 28px; }
  .home-info { grid-template-columns: 1fr; gap: 48px; }
  .home-contact { max-width: 640px; }
}
@media (max-width: 860px) {
  .sp-only { display: inline; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 48px; }
  .hero__photo { max-width: 520px; margin-inline: auto; }
  .hero__photo::before { right: -8px; bottom: -8px; }
  .hero__photo img { padding: 6px; }
  .hero__lead { font-size: 14.5px; margin-top: 20px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 220px; }
  .hero__facts { margin-top: 26px; }
  .home-notice__inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 14px; }
  .home-notice__item { flex-basis: 100%; order: 3; flex-direction: column; gap: 2px; }
  .home-notice__item span { white-space: normal; }
  .home-notice__more { margin-left: auto; }
  .stock__basics li { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; padding: 20px 0; }
  .stock__text { grid-column: 1 / -1; }
  .stock__num b { font-size: 48px; }
  .scene-list { grid-template-columns: 1fr; }
  .home-new { margin-top: 56px; padding-top: 40px; }
  .philosophy__inner { grid-template-columns: 1fr; gap: 28px; }
  .philosophy__head { position: static; display: block; }
  .philosophy__head .h-sec__en { writing-mode: horizontal-tb; letter-spacing: .2em; }
  .philosophy__head .h-sec__en::before { width: 18px; height: 2px; }
  .philosophy__title { writing-mode: horizontal-tb; height: auto; max-height: none; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.5; letter-spacing: .06em; margin-top: 8px; }
  .philosophy__list li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  .philosophy__no { font-size: 28px; }
  .philosophy__list h3 { font-size: 18px; }
  .biz__grid { grid-template-columns: 1fr; }
  .biz__panel { padding: 28px 24px 24px; }
  .biz__title { font-size: 20px; }
}
@media (max-width: 480px) {
  .hero__facts { display: grid; gap: 6px; }
  .hero__facts > div { border-right: 0; margin-right: 0; padding-right: 0; }
  .calc__head, .calc__body { padding-inline: 18px; }
  .calc__result > div { grid-template-columns: 72px minmax(0, 1fr); }
  .calc__link { grid-column: 2; }
  .calc__seg span { padding: 10px 16px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tile .card__body { padding: 12px 12px 14px; }
  .cat-tile .h-sec__en { font-size: 9.5px; letter-spacing: .12em; gap: 6px; }
  .cat-tile .h-sec__en::before { width: 10px; }
  .cat-tile .card__title { font-size: 14.5px; }
  .cat-tile .card__text { display: none; }
  .scene { grid-template-columns: 1fr; }
  .scene__pic { width: 120px; padding: 10px 8px; }
  .home-contact { padding: 26px 20px; }
  .home-contact__tel { font-size: 24px; }
}
