/* 熨斗（のし）の受付と見本（2026-10-21）。商品ページの「のし（無料）」欄 */

/* ---- 熨斗の見本（台紙の画像＋名前） ---- */
.noshi-paper {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 800;
  background: #fff center / 100% 100% no-repeat;
  border: 1px solid #ddd5c6;
  overflow: hidden;
  color: #141414;
}
.noshi-paper__names {
  position: absolute;
  left: 50%;
  width: 0;
}
.noshi-paper__col {
  position: absolute;
  top: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0;
  font-family: "GyubeeNoshiKaisho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-feature-settings: "vert" 1;
}
.noshi-paper[hidden] {
  display: none;
}
.noshi-paper--printed {
  background: #faf6ef;
}
/* 名入れ不可の絵柄の熨斗：木箱に掛けた写真（240×270px）。引き伸ばさないよう元の大きさまで */
.noshi-paper--photo {
  aspect-ratio: 240 / 270;
  max-width: 240px;
  margin: 0 auto;
  background-color: #f3ede4;
}
.noshi-paper__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5em;
  text-align: center;
  font-size: 14px;
  color: #6b6255;
}

/* ---- 商品ページ：のし（無料） ---- */
.page-detail .section-orderform form dl.noshi-v2 dd .noshi-v2__native {
  margin-top: 1rem;
}
.noshi-v2--ready .noshi-v2__native {
  display: none;
}
.noshi-v2__fallback-note {
  font-size: 12px;
  color: #6b6255;
}
.noshi-v2--ready .noshi-v2__fallback-note {
  display: none;
}
.noshi-v2__ui {
  display: none;
}
.noshi-v2--ready .noshi-v2__ui {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 2.4rem;
  align-items: start;
}
.noshi-v2__steps {
  display: grid;
  gap: 2.4rem;
  min-width: 0;
}
.noshi-v2__step[hidden] {
  display: none !important;
}
.page-detail .section-orderform form dl.noshi-v2 dd .noshi-v2__step .title-small {
  margin-bottom: 0.8rem;
}
.noshi-v2__step .title-small .noshi-v2__no {
  color: #ad1617;
  margin-right: 0.4em;
}
.noshi-v2__aside {
  position: sticky;
  /* サイトの固定ヘッダーの下に止める（高さは noshi_form.js が --noshi-sticky-top に入れる） */
  top: var(--noshi-sticky-top, 1.2rem);
  display: grid;
  gap: 1rem;
  min-width: 0;
}
@media (max-width: 750px) {
  /* スマホは1列。見本は名前の欄のすぐ下（入力した結果をその場で見られる位置）に置く */
  .noshi-v2--ready .noshi-v2__ui {
    grid-template-columns: 1fr;
  }
  .noshi-v2__aside {
    position: static;
  }
}
.noshi-v2__summary {
  font-size: 13px;
  line-height: 170%;
  background: #f9f8f2;
  border: 1px solid #e3ddcd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.noshi-v2__heart {
  font-size: 12px;
  color: #ad1617;
  margin-bottom: 1rem;
}

/* 用途・表書きの選択（丸い札） */
.noshi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.noshi-chip {
  position: relative;
  display: inline-block;
}
.noshi-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.noshi-chip > span {
  display: inline-block;
  border: 1px solid #c9c2b4;
  background: #f9f8f2;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.noshi-chip input:checked + span {
  border-color: #ad1617;
  background: #fbeeee;
  color: #ad1617;
  font-weight: 600;
}
.noshi-chip input:focus-visible + span {
  outline: 2px solid #ad1617;
  outline-offset: 2px;
}
.noshi-chip--off > span {
  border-style: dashed;
}
.noshi-v2__hint {
  font-size: 12px;
  line-height: 170%;
  color: #6b6255;
  margin-top: 0.6rem;
}

/* 名前の入れ方（絵の札） */
.noshi-lays {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.noshi-lay {
  position: relative;
  display: block;
}
.noshi-lay input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.noshi-lay__card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid #c9c2b4;
  background: #f9f8f2;
  border-radius: 10px;
  padding: 0.8rem;
  min-height: 6.4rem;
  cursor: pointer;
}
.noshi-lay input:checked + .noshi-lay__card {
  border-color: #ad1617;
  background: #fbeeee;
}
.noshi-lay input:focus-visible + .noshi-lay__card {
  outline: 2px solid #ad1617;
  outline-offset: 2px;
}
.noshi-lay__card b {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}
.noshi-lay__card small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #6b6255;
}
.noshi-lay svg {
  width: 44px;
  height: 44px;
}
.noshi-ico__paper {
  fill: #fff;
  stroke: #c9c2b4;
}
.noshi-ico__mizu {
  stroke: #d23a3a;
  stroke-width: 1.4;
}
.noshi-ico__ink {
  fill: #141414;
}

/* 名前の欄 */
.noshi-fields {
  display: grid;
  gap: 1rem;
}
.noshi-field label {
  display: block;
  font-size: 12px;
  color: #6b6255;
}
.noshi-field label input {
  margin-top: 0.3rem;
}
.noshi-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}
.noshi-list {
  display: grid;
  gap: 0.6rem;
}
.noshi-list__row {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr) 3.2em;
  gap: 0.6rem;
  align-items: center;
}
.noshi-list__ord {
  font-size: 11px;
  line-height: 1.25;
  color: #6b6255;
  text-align: center;
}
.page-detail .section-orderform form dl.noshi-v2 dd input[type=text] {
  /* 指で押しやすい高さ（狭い画面でも 40px 以上）。16px はスマホで入力時に拡大されない大きさ */
  min-height: max(4.4rem, 40px);
  font-size: 16px;
}
.noshi-x {
  border: 1px solid #c9c2b4;
  background: #fff;
  border-radius: 8px;
  height: 3.6rem;
  cursor: pointer;
}
.noshi-link {
  border: none;
  background: none;
  padding: 0.4rem 0;
  color: #ad1617;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  justify-self: start;
}
.noshi-hint {
  font-size: 12px;
  line-height: 170%;
  color: #6b6255;
}

/* その場の知らせ */
.noshi-checks {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.noshi-checks:empty {
  display: none;
}
.noshi-check {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 165%;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}
.noshi-check .noshi-link {
  margin-left: auto;
  white-space: nowrap;
}
.noshi-check--ng {
  background: #fbeeee;
  color: #ad1617;
}
.noshi-check--warn {
  background: #fdf3e2;
  color: #8a5300;
}
.noshi-check--info {
  background: #f1efe9;
  color: #514a3f;
}
