/* ==================================================
 WONDERGROUP EDITORIAL STYLE
 index.php から共通化。全ページで同じ見た目にするための土台。
 1) ed-*   … 雑誌風の共通パーツ（セクション・見出し・リスト）
 2) wg-hero … 全ページ共通のヒーロー（写真＋LIVEカード）
 ページ側の <style> はここに寄せていく。
================================================== */

/* ==================================================
   EDITORIAL (ed-*) — 雑誌風。装飾を削り、余白と書体で見せる。
   グラデーション・影・角丸は使わない。
================================================== */

:root {
  --ed-ink: #1c1714;
  --ed-body: #5f564c;
  --ed-faint: #9a9086;
  --ed-paper: #fbf8f3;
  --ed-line: #e3dbd0;
  --ed-gold: #9c7a34;
  --ed-serif: 'Noto Serif JP', serif;
}

.ed-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* 27インチなどの広い画面では 1180px だと左右が空きすぎるため、
   1600px 以上で本文の幅を広げる。1440px 以下は従来どおり。
   ヘッダー・フッターの .container-premium も style.css で揃える。 */
@media (min-width: 1600px) {
  .ed-wrap {
    width: min(1520px, calc(100% - 64px));
  }
}

.ed-eyebrow {
  margin: 0 0 26px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--ed-faint);
}

/* ---------- HERO ---------- */

.ed-hero {
  padding-top: 74px;
  background: var(--ed-paper);
  border-bottom: 1px solid var(--ed-line);
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.ed-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(32px, 5vw, 68px) 72px max(16px, calc((100vw - 1180px) / 2));
}

.ed-hero-title {
  margin: 0 0 30px;
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.44;
  letter-spacing: .01em;
  color: var(--ed-ink);
}

.ed-hero-lead {
  margin: 0 0 42px;
  max-width: 31em;
  font-size: .93rem;
  line-height: 2.05;
  color: var(--ed-body);
}

.ed-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 44px;
  border-top: 1px solid var(--ed-line);
}

.ed-facts>div {
  padding: 20px 18px 0 0;
  border-right: 1px solid var(--ed-line);
}

.ed-facts>div+div {
  padding-left: 22px;
}

.ed-facts>div:last-child {
  border-right: none;
}

.ed-facts dt {
  margin-bottom: 10px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  color: var(--ed-faint);
}

.ed-facts dd {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-facts em {
  font-style: normal;
  font-size: 1.85rem;
  letter-spacing: .01em;
}

.ed-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 40px;
  border-radius: 2px;
  background: var(--ed-ink);
  color: #fdfbf7;
  font-size: .89rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: none;
  transition: background .25s ease;
}

.ed-btn:hover {
  background: #3b312a;
  color: #fdfbf7;
}

.ed-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ed-ink);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--ed-ink);
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease;
}

.ed-link:hover {
  color: var(--ed-gold);
  border-color: var(--ed-gold);
}

/* button 要素にリンク／ボタン装飾を付ける場合、UA既定のborder・fontを打ち消す。 */
button.ed-btn,
button.ed-link {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.ed-link {
  padding: 0 0 5px;
  border-bottom: 1px solid var(--ed-ink);
  background: none;
}

button.ed-btn:disabled,
button.ed-link:disabled {
  cursor: default;
  opacity: .55;
}

/* 写真は列の高さいっぱいに敷く。右端（スマホ・モデル）を基準に寄せるので、
   切り取られるのは左側の装飾（桜・ボトル）だけ。 */
.ed-hero-figure {
  position: relative;
}

.ed-hero-figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

/* ---------- 事実の帯（旧マーキーの置き換え） ---------- */

.ed-strip {
  background: #fff;
  border-bottom: 1px solid var(--ed-line);
}

.ed-strip-inner {
  display: flex;
  flex-wrap: wrap;
}

.ed-strip span {
  flex: 1 1 auto;
  padding: 21px 10px;
  text-align: center;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .11em;
  color: var(--ed-body);
}

.ed-strip span+span {
  border-left: 1px solid var(--ed-line);
}

/* ---------- SECTION ---------- */

.ed-section {
  padding: clamp(64px, 8vw, 108px) 0;
  background: #fff;
}

.ed-head {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 70px);
}

.ed-title {
  margin: 0 0 24px;
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1.52;
  color: var(--ed-ink);
}

.ed-lead {
  margin: 0;
  max-width: 44em;
  font-size: .91rem;
  line-height: 2.05;
  color: var(--ed-body);
}

.ed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
}

.ed-list li {
  padding: 34px 34px 8px;
  border-right: 1px solid var(--ed-line);
}

.ed-list li:first-child {
  padding-left: 0;
}

.ed-list li:last-child {
  padding-right: 0;
  border-right: none;
}

.ed-num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--ed-serif);
  font-size: .84rem;
  letter-spacing: .15em;
  color: var(--ed-gold);
}

.ed-list h3 {
  margin: 0 0 14px;
  font-family: var(--ed-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-list p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.95;
  color: var(--ed-body);
}

.ed-note {
  margin: clamp(38px, 5vw, 60px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ed-line);
  font-size: .77rem;
  letter-spacing: .04em;
  color: var(--ed-faint);
}

.ed-section-paper {
  background: var(--ed-paper);
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}

/* ---------- 見出し＋内容の2カラム ---------- */

.ed-split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: start;
}

.ed-split .ed-head {
  margin-bottom: 0;
}

.ed-split .ed-actions {
  margin-top: 36px;
}

/* ---------- 流れ（縦並びの番号リスト） ---------- */

.ed-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-steps li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 25px 0;
  border-top: 1px solid var(--ed-line);
}

.ed-steps li:last-child {
  border-bottom: 1px solid var(--ed-line);
}

.ed-steps .ed-num {
  margin: 4px 0 0;
}

.ed-steps h3 {
  margin: 0 0 10px;
  font-family: var(--ed-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-steps p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.95;
  color: var(--ed-body);
}

/* ---------- 濃色セクション ---------- */

.ed-dark {
  padding: clamp(64px, 8vw, 108px) 0;
  background: var(--ed-ink);
}

.ed-dark .ed-title {
  color: #f7f2e9;
}

.ed-dark .ed-lead {
  color: rgba(240, 232, 219, .74);
}

.ed-dark .ed-eyebrow {
  color: rgba(240, 232, 219, .45);
}

.ed-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-checks li {
  padding: 24px 0;
  border-top: 1px solid rgba(240, 232, 219, .16);
}

.ed-checks li:last-child {
  border-bottom: 1px solid rgba(240, 232, 219, .16);
}

.ed-checks h3 {
  margin: 0 0 9px;
  font-family: var(--ed-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #f7f2e9;
}

.ed-checks p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.9;
  color: rgba(240, 232, 219, .66);
}

.ed-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 78px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(240, 232, 219, .16);
}

.ed-metrics li {
  padding: 30px 26px 0 0;
  border-right: 1px solid rgba(240, 232, 219, .16);
}

.ed-metrics li+li {
  padding-left: 26px;
}

.ed-metrics li:last-child {
  padding-right: 0;
  border-right: none;
}

.ed-metrics b {
  display: block;
  margin-bottom: 12px;
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: 1.95rem;
  letter-spacing: .01em;
  color: #f7f2e9;
}

.ed-metrics span {
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(240, 232, 219, .6);
}

/* ---------- 図版 ---------- */

.ed-figure {
  margin: 0;
}

.ed-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ed-paper);
}

.ed-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ed-line);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ed-faint);
}

.ed-list-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ed-list-4 li {
  padding: 34px 26px 8px;
}

.ed-list-4 li:first-child {
  padding-left: 0;
}

.ed-list-4 li:last-child {
  padding-right: 0;
}

/* ---------- 登録の締め ---------- */

.ed-cta {
  padding: clamp(64px, 8vw, 104px) 0;
  background: #fff;
}

.ed-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 60px) 0;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
  text-align: center;
}

.ed-cta-inner .ed-title {
  margin-bottom: 22px;
}

.ed-cta-inner .ed-lead {
  margin: 0 auto 20px;
}

.ed-cta-points {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  letter-spacing: .07em;
  color: var(--ed-faint);
}

.ed-cta-inner .ed-actions {
  justify-content: center;
}

/* ---------- 採用 ---------- */

.ed-recruit {
  padding: clamp(52px, 6vw, 84px) 0;
  background: var(--ed-paper);
  border-top: 1px solid var(--ed-line);
}

.ed-recruit-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.ed-recruit .ed-title {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

.ed-recruit .ed-lead {
  font-size: .87rem;
}

/* ---------- 本文（規約・法務ページ） ---------- */

.ed-prose {
  max-width: 46em;
  font-size: .87rem;
  line-height: 2.1;
  color: var(--ed-body);
}

.ed-prose h2 {
  margin: clamp(44px, 5vw, 64px) 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--ed-line);
  font-family: var(--ed-serif);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ed-ink);
}

.ed-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ed-prose h3 {
  margin: 34px 0 14px;
  font-family: var(--ed-serif);
  font-size: .97rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-prose p {
  margin: 0 0 18px;
}

.ed-prose ol,
.ed-prose ul {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.ed-prose li {
  margin-bottom: 8px;
}

.ed-prose a {
  color: var(--ed-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 表 ---------- */

.ed-table-wrap {
  overflow-x: auto;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ed-line);
  font-size: .85rem;
  line-height: 1.9;
}

.ed-table th,
.ed-table td {
  padding: 22px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ed-line);
}

.ed-table th {
  width: 30%;
  min-width: 170px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ed-ink);
  background: var(--ed-paper);
}

.ed-table td {
  color: var(--ed-body);
}

/* 見出し行を持つ表。ラベル列だけを広くしない。 */
.ed-table-cols th {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.ed-table-cols tbody th {
  font-family: var(--ed-serif);
  letter-spacing: .1em;
  background: none;
}

.ed-table-wrap+.ed-prose {
  margin-top: clamp(44px, 5vw, 64px);
}

/* ---------- 定義リスト（会社概要など） ---------- */

.ed-dl {
  margin: 0;
  border-top: 1px solid var(--ed-line);
}

.ed-dl>div {
  display: grid;
  grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-dl dt {
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ed-faint);
}

.ed-dl dd {
  margin: 0;
  font-size: .87rem;
  line-height: 1.95;
  color: var(--ed-body);
}

/* ---------- カード（枠線だけのグリッド） ---------- */

.ed-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
}

.ed-cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-cards>li,
.ed-card {
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
}

.ed-section-paper .ed-cards>li,
.ed-section-paper .ed-card {
  background: var(--ed-paper);
}

.ed-cards h3,
.ed-card h3 {
  margin: 0 0 14px;
  font-family: var(--ed-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-cards p,
.ed-card p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.95;
  color: var(--ed-body);
}

.ed-cards p+p,
.ed-card p+p {
  margin-top: 14px;
}

/* ---------- 画像＋本文 ---------- */

.ed-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.ed-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ed-media-flip img,
.ed-media-flip .ed-map {
  order: 2;
}

.ed-media+.ed-media {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ed-line);
}

/* ---------- 地図 ---------- */

.ed-map {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ed-line);
  background: var(--ed-paper);
}

.ed-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 動画埋め込み ---------- */

.ed-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ed-line);
  background: var(--ed-ink);
}

.ed-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ ---------- */

.ed-faq {
  border-top: 1px solid var(--ed-line);
}

.ed-faq details {
  border-bottom: 1px solid var(--ed-line);
}

.ed-faq summary {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 40px 26px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: var(--ed-serif);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-faq summary::-webkit-details-marker {
  display: none;
}

.ed-faq summary::after {
  content: '+';
  position: absolute;
  top: 24px;
  right: 0;
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ed-gold);
}

.ed-faq details[open] summary::after {
  content: '−';
}

.ed-faq summary>span:first-child,
.ed-faq-q {
  flex: none;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ed-gold);
}

.ed-faq-body {
  padding: 0 40px 30px 0;
  font-size: .85rem;
  line-height: 2;
  color: var(--ed-body);
}

.ed-faq-body p {
  margin: 0 0 14px;
}

.ed-faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- お知らせ・記事の一覧 ---------- */

.ed-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
}

.ed-rows>li {
  border-bottom: 1px solid var(--ed-line);
}

.ed-rows a,
.ed-row {
  display: grid;
  grid-template-columns: 120px 130px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  text-decoration: none;
  color: inherit;
}

.ed-rows a:hover .ed-row-title {
  color: var(--ed-gold);
}

.ed-row-date {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ed-faint);
}

.ed-row-tag {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--ed-gold);
}

.ed-row-title {
  font-family: var(--ed-serif);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ed-ink);
}

/* ---------- タグ ---------- */

.ed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-tags li,
.ed-tag {
  padding: 7px 14px;
  border: 1px solid var(--ed-line);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--ed-body);
}

/* ---------- 言語切替（免税ページ） ---------- */

.ed-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.ed-lang {
  padding: 9px 18px;
  border: 1px solid var(--ed-line);
  background: none;
  font-family: inherit;
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--ed-body);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}

.ed-lang.active {
  border-color: var(--ed-ink);
  background: var(--ed-ink);
  color: #fff;
}

.ed-lang-cards button.ed-card {
  width: 100%;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ed-lang-cards button.ed-card.active strong {
  color: var(--ed-gold);
}

.ed-lang-cards .ed-card strong {
  display: block;
  font-family: var(--ed-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-lang-cards .ed-card small {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  line-height: 1.9;
  color: var(--ed-body);
}

/* ---------- 引用・声 ---------- */

.ed-quote {
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--ed-gold);
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 2;
  color: var(--ed-ink);
}

.ed-quote footer {
  margin-top: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ed-faint);
}

/* ---------- フォーム ---------- */

.ed-form {
  max-width: 720px;
  border-top: 1px solid var(--ed-line);
}

/* ボット対策の隠しフィールド。人には見せない。 */
/* Turnstile のウィジェット。キー未設定のときは出力されない。 */
.cf-turnstile {
  margin-bottom: 26px;
}

.ed-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ed-field {
  padding: 26px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-field>label,
.ed-label {
  display: block;
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ed-ink);
}

.ed-req {
  margin-left: 8px;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ed-gold);
}

.ed-input,
.ed-form input[type=text],
.ed-form input[type=email],
.ed-form input[type=tel],
.ed-form input[type=url],
.ed-form input[type=number],
.ed-form input[type=date],
.ed-form input[type=password],
.ed-form select,
.ed-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ed-ink);
  appearance: none;
}

.ed-form textarea {
  min-height: 160px;
  resize: vertical;
}

.ed-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ed-body) 50%), linear-gradient(135deg, var(--ed-body) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.ed-input:focus,
.ed-form input:focus,
.ed-form select:focus,
.ed-form textarea:focus {
  outline: none;
  border-color: var(--ed-ink);
}

.ed-help {
  margin: 10px 0 0;
  font-size: .74rem;
  line-height: 1.85;
  color: var(--ed-faint);
}

/* 罫線がつながるよう、横方向だけに余白をとる。 */
.ed-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: clamp(24px, 4vw, 48px);
}

.ed-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-choice {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--ed-body);
  cursor: pointer;
}

.ed-choice input {
  flex: none;
  margin: 0;
  accent-color: var(--ed-ink);
}

.ed-form .ed-actions {
  margin-top: 36px;
}

.ed-opt {
  margin-left: 8px;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ed-faint);
}

/* ---------- 長いフォームの章分け ---------- */

.ed-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ed-fieldset+.ed-fieldset {
  margin-top: clamp(46px, 6vw, 72px);
}

.ed-fieldset-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ed-ink);
}

.ed-fieldset-num {
  flex: none;
  font-family: var(--ed-serif);
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--ed-gold);
}

.ed-fieldset-head h3 {
  margin: 0 0 6px;
  font-family: var(--ed-serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ed-ink);
}

.ed-fieldset-head p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.85;
  color: var(--ed-faint);
}

.ed-fieldset>.ed-alert {
  margin: 26px 0 0;
}

/* 職歴のように、同じ項目を繰り返し追加できるブロック。 */
.ed-repeat {
  padding-top: 22px;
}

.ed-repeat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.ed-repeat-head strong {
  font-family: var(--ed-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ed-gold);
}

/* 文字数カウンターはJSが生成する。 */
.ed-count {
  display: block;
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ed-faint);
}

.ed-count.is-short {
  color: var(--ed-gold);
}

.ed-count.is-ok {
  color: #4a6b3f;
}

/* ---------- ファイル選択 ---------- */

.ed-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.ed-file {
  display: block;
  padding: 24px 18px;
  border: 1px dashed var(--ed-line);
  background: var(--ed-paper);
  text-align: center;
  cursor: pointer;
  transition: border-color .25s ease;
}

.ed-file:hover {
  border-color: var(--ed-ink);
}

/* 見た目を作り替えるため、input本体は隠してlabel全体を当たり判定にする。 */
.ed-file input[type=file] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ed-file b {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ed-ink);
}

.ed-file small {
  display: block;
  margin-top: 7px;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ed-faint);
}

.ed-file-name {
  display: block;
  margin-top: 12px;
  font-size: .74rem;
  line-height: 1.7;
  color: var(--ed-gold);
  word-break: break-all;
}

/* ---------- 通知 ---------- */

.ed-alert {
  margin: 0 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--ed-line);
  border-left: 2px solid var(--ed-gold);
  background: var(--ed-paper);
  font-size: .85rem;
  line-height: 1.9;
  color: var(--ed-body);
}

.ed-alert-error {
  border-left-color: #a3352b;
}

.ed-alert ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
}

.ed-alert-success {
  border-left-color: #4a6b3f;
}

/* ---------- モーダル（会員登録完了など） ---------- */

.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 23, 20, .72);
}

.ed-modal.is-show {
  display: flex;
}

.ed-modal-box {
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--ed-line);
  background: #fff;
  text-align: center;
}

.ed-modal-box h2 {
  margin: 0 0 16px;
  font-family: var(--ed-serif);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ed-ink);
}

.ed-modal-box p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.95;
  color: var(--ed-body);
}

.ed-modal-box .ed-actions {
  justify-content: center;
}

/* 会員番号は「表示」を押すまで隠す。 */
.ed-code {
  display: none;
  margin: 28px 0;
  padding: 26px 22px;
  border: 1px solid var(--ed-line);
  background: var(--ed-paper);
}

.ed-code.is-show {
  display: block;
}

.ed-code-label {
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--ed-faint);
}

.ed-code-value {
  display: block;
  margin-top: 12px;
  font-family: var(--ed-serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ed-ink);
}

.ed-code img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 24px auto 0;
  border: 1px solid var(--ed-line);
}

/* ---------- 横の見出し欄（規約ページなど） ---------- */

.ed-side {
  position: sticky;
  top: 98px;
}

.ed-sidelinks {
  margin-top: 32px;
  border-top: 1px solid var(--ed-line);
}

.ed-sidelinks a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--ed-line);
  font-size: .82rem;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--ed-body);
}

.ed-sidelinks a:hover {
  color: var(--ed-gold);
}

.ed-sidelinks a[aria-current="page"] {
  font-weight: 500;
  color: var(--ed-ink);
}

/* ---------- ページ内リンク ---------- */

.ed-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}

.ed-anchors li+li {
  border-left: 1px solid var(--ed-line);
}

.ed-anchors a {
  display: block;
  padding: 16px 24px;
  font-size: .79rem;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--ed-body);
}

.ed-anchors a:hover {
  color: var(--ed-gold);
}

/* ---------- 社内向け画面（スタッフポータル・管理画面） ---------- */

/* 開閉できるパネル。details/summary をそのまま使う。 */
.ed-panel {
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}

.ed-panel+.ed-panel {
  border-top: none;
}

.ed-panel>summary {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
}

.ed-panel>summary::-webkit-details-marker {
  display: none;
}

.ed-panel>summary::after {
  content: '+';
  flex: none;
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  color: var(--ed-gold);
}

.ed-panel[open]>summary::after {
  content: '−';
}

.ed-panel-title {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ed-ink);
}

.ed-panel-lead {
  margin: 10px 0 0;
  font-size: .8rem;
  line-height: 1.9;
  color: var(--ed-faint);
}

.ed-panel-body {
  padding: 0 0 42px;
}

/* 進捗バー */
.ed-progress {
  margin: 0;
}

.ed-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ed-progress-head span:first-child {
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--ed-faint);
}

.ed-progress-value {
  font-family: var(--ed-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-progress-track {
  height: 3px;
  background: var(--ed-line);
}

.ed-progress-bar {
  height: 100%;
  background: var(--ed-ink);
}

/* 状態ラベル */
.ed-pill {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--ed-line);
  font-size: .7rem;
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--ed-body);
}

.ed-pill-ok {
  border-color: #4a6b3f;
  color: #4a6b3f;
}

.ed-pill-wait {
  border-color: var(--ed-gold);
  color: var(--ed-gold);
}

.ed-pill-todo {
  border-color: var(--ed-ink);
  color: var(--ed-ink);
}

.ed-pill-bad {
  border-color: #a3352b;
  color: #a3352b;
}

/* 書類カード。1件ずつ罫線で区切る。 */
.ed-docs {
  border-top: 1px solid var(--ed-line);
}

.ed-doc {
  padding: 34px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-doc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.ed-doc-title {
  margin: 12px 0 0;
  font-family: var(--ed-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ed-ink);
}

.ed-doc-text {
  margin: 12px 0 0;
  font-size: .84rem;
  line-height: 1.95;
  color: var(--ed-body);
}

.ed-doc-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
}

.ed-doc-body {
  margin-top: 26px;
}

/* 申請履歴の一覧 */
.ed-history {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
}

.ed-history li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ed-line);
  font-size: .82rem;
  line-height: 1.9;
  color: var(--ed-body);
}

.ed-history strong {
  display: block;
  font-family: var(--ed-serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ed-ink);
}

/* 年・月・日を分けて選ぶ行 */
.ed-date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* 2択の切替ボタン。activeの付け外しはJS側が行う。 */
.ed-seg {
  display: flex;
  border: 1px solid var(--ed-line);
}

.ed-seg button {
  flex: 1;
  padding: 15px 12px;
  border: 0;
  background: #fff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ed-faint);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.ed-seg button+button {
  border-left: 1px solid var(--ed-line);
}

.ed-seg button.active {
  background: var(--ed-ink);
  color: #fff;
}

/* 計算結果の読み上げ欄。JSがinnerHTMLを書き換える。 */
.ed-readout {
  padding: 22px 20px;
  border: 1px solid var(--ed-line);
  background: var(--ed-paper);
  font-size: .84rem;
  line-height: 2;
  color: var(--ed-body);
}

.ed-readout strong {
  color: var(--ed-ink);
}

/* QRカメラの表示枠 */
.ed-qr {
  margin-top: 18px;
  border: 1px solid var(--ed-line);
  background: var(--ed-paper);
}

.ed-qr video,
.ed-qr canvas,
.ed-qr img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* ---------- 集計表示（管理ダッシュボード） ---------- */

/* 横棒グラフ。--w に割合を渡す。 */
.ed-bars {
  display: grid;
  gap: 1px;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
}

.ed-bars button {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  border: 0;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease;
}

.ed-bars button:hover {
  background: var(--ed-paper);
}

.ed-bars b {
  font-family: var(--ed-serif);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ed-ink);
}

.ed-bars i {
  display: block;
  height: 3px;
  background: var(--ed-line);
}

.ed-bars i span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: var(--ed-gold);
}

.ed-bars em {
  font-size: .78rem;
  font-style: normal;
  letter-spacing: .06em;
  text-align: right;
  color: var(--ed-body);
}

/* 切替タブ。activeの付け外しはJS側が行う。 */
.ed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.ed-tabs button {
  padding: 10px 16px;
  border: 1px solid var(--ed-line);
  background: #fff;
  font-family: inherit;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ed-body);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

.ed-tabs button.active {
  border-color: var(--ed-ink);
  color: var(--ed-ink);
}

.ed-tabpanel {
  display: none;
}

.ed-tabpanel.active {
  display: block;
}

/* 名前＋補足と数値を左右に並べる一覧。 */
.ed-rowlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
}

.ed-rowlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-rowlist strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-rowlist small {
  display: block;
  margin-top: 5px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ed-faint);
}

.ed-rowlist span {
  font-family: var(--ed-serif);
  font-size: .92rem;
  white-space: nowrap;
  color: var(--ed-body);
}

.ed-num-plus {
  color: #4a6b3f;
}

.ed-num-minus {
  color: #a3352b;
}

/* 検索窓と送信ボタンを横並びにする。 */
.ed-search {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.ed-search .ed-input {
  flex: 1;
}

.ed-search .ed-btn {
  flex: none;
}

@media (max-width: 991.98px) {

  .ed-cards,
  .ed-cards-2 {
    grid-template-columns: 1fr;
  }

  .ed-media {
    grid-template-columns: 1fr;
  }

  .ed-media-flip img,
  .ed-media-flip .ed-map {
    order: 0;
  }

  .ed-dl>div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ed-rows a,
  .ed-row {
    grid-template-columns: auto auto;
    gap: 8px 20px;
  }

  .ed-row-title {
    grid-column: 1 / -1;
  }

  .ed-table th,
  .ed-table td {
    padding: 18px 16px;
  }

  .ed-anchors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-anchors li+li {
    border-left: none;
  }

  .ed-anchors li {
    border-bottom: 1px solid var(--ed-line);
  }

  .ed-side {
    position: static;
  }

  .ed-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ed-hero-copy {
    padding: 58px 16px 62px;
  }

  /* 縦積みでは横幅が足りるので、写真は切り抜かず比率のまま出す */
  .ed-hero-figure {
    position: static;
  }

  .ed-hero-figure img {
    position: static;
    height: auto;
  }

  .ed-list,
  .ed-list-4 {
    grid-template-columns: 1fr;
  }

  .ed-list li,
  .ed-list-4 li {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--ed-line);
  }

  .ed-list li:last-child,
  .ed-list-4 li:last-child {
    border-bottom: none;
  }

  .ed-split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ed-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-metrics li,
  .ed-metrics li+li {
    padding: 26px 18px 0 0;
    border-right: 1px solid rgba(240, 232, 219, .16);
  }

  .ed-metrics li:nth-child(2n) {
    padding-right: 0;
    padding-left: 18px;
    border-right: none;
  }
}

@media (max-width: 575.98px) {
  .ed-facts {
    grid-template-columns: 1fr;
  }

  .ed-facts>div,
  .ed-facts>div+div {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--ed-line);
  }

  .ed-facts>div:last-child {
    border-bottom: none;
  }

  .ed-actions {
    gap: 22px;
  }

  .ed-btn {
    width: 100%;
  }

  .ed-steps li {
    grid-template-columns: 1fr;
  }

  .ed-steps .ed-num {
    margin: 0 0 14px;
  }

  .ed-metrics {
    grid-template-columns: 1fr;
  }

  .ed-metrics li,
  .ed-metrics li+li,
  .ed-metrics li:nth-child(2n) {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid rgba(240, 232, 219, .16);
  }

  .ed-metrics li:last-child {
    border-bottom: none;
  }

  .ed-cta-points {
    gap: 14px;
  }

  .ed-recruit .ed-actions {
    width: 100%;
  }
}

/* ==================================================
 WONDERGROUP NEW HERO
 右側の写真 + LIVEカードをHTML/CSSで分離。
 assets/images/hero/hero-model.webp
 assets/images/hero/hero-live-thumb.webp
================================================== */

.wg-hero {
  padding-top: 74px;
  overflow: hidden;
  background:
    radial-gradient(circle at 46% 48%, rgba(205, 174, 128, .10), transparent 34%),
    linear-gradient(90deg, #fbf7f1 0%, #fbf7f1 49%, #f4e9dc 49%, #f4e9dc 100%);
  border-bottom: 1px solid #e6ddd3;
}

/* 画面幅いっぱいに広げる。max-width を付けると 27インチ以上で
   左右に何もない帯が残るため、上限は設けない。 */
.wg-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 760px;
}

.wg-hero__copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 左の余白に上限を付ける。余白だけ 100vw に比例して増え続けると
     本文の幅が数文字分まで潰れるため。1440〜1786px は見出しの
     font-size がまだ拡大中なので、余白は 60px で止める。 */
  padding:
    clamp(66px, 7vw, 104px) clamp(30px, 4vw, 72px) clamp(66px, 7vw, 104px) clamp(32px, calc((100vw - 1440px) / 2 + 48px), 60px);
  background: linear-gradient(90deg, #fbf8f3 0%, #fbf8f3 86%, rgba(251, 248, 243, .86) 100%);
}

.wg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 28px;
  color: #b49260;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
}

.wg-hero__eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: #cdb487;
}

.wg-hero__title {
  margin: 0 0 32px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.55rem, 4.3vw, 4.8rem);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: .015em;
  color: #171411;
}

.wg-hero__lead {
  max-width: 35em;
  margin: 0 0 34px;
  color: #655e57;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 2.05;
}

.wg-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 640px);
  margin: 0 0 34px;
  padding: 0;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(207, 190, 165, .58);
  border-radius: 12px;
  overflow: hidden;
}

.wg-hero__fact {
  min-width: 0;
  padding: 22px 24px 20px;
}

.wg-hero__fact+.wg-hero__fact {
  border-left: 1px solid rgba(207, 190, 165, .58);
}

.wg-hero__fact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #a2865c;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.wg-hero__fact-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #c5a56f;
}

.wg-hero__fact-value {
  margin: 0;
  color: #191512;
  font-family: "Noto Serif JP", serif;
  font-size: .92rem;
  line-height: 1.1;
}

.wg-hero__fact-value strong {
  font-size: clamp(2rem, 2.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -.03em;
}

.wg-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100%, 640px);
}

.wg-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  min-width: 260px;
  padding: 0 26px;
  border-radius: 7px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .91rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.wg-hero__btn:hover {
  transform: translateY(-2px);
}

.wg-hero__btn--dark {
  background: #181714;
  border: 1px solid #181714;
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 23, 20, .12);
}

.wg-hero__btn--dark:hover {
  background: #332f2a;
  border-color: #332f2a;
  color: #fff;
}

.wg-hero__btn--light {
  background: rgba(255, 255, 255, .30);
  border: 1px solid #d8c5a6;
  color: #251f1a;
}

.wg-hero__btn--light:hover {
  background: #f4ebdf;
  color: #251f1a;
}

.wg-hero__arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.wg-hero__visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 760px;
}

/* 1920px を超えると見出しの font-size は上限に達して増えないので、
   ここからは左の余白を広げても本文が潰れない。 */
@media (min-width: 1921px) {
  .wg-hero__copy {
    padding-left: clamp(60px, 4vw, 140px);
  }
}

.wg-hero__photo-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #dcbf9f;
  border-radius: 48% 0 0 48% / 52% 0 0 52%;
}

.wg-hero__photo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(249, 243, 235, .16), transparent 22%),
    linear-gradient(180deg, rgba(91, 51, 22, .02), rgba(61, 35, 17, .08));
}

.wg-hero__photo-shell::after {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 18px;
  width: 100%;
  border-left: 1px solid rgba(181, 142, 83, .55);
  border-radius: 48% 0 0 48% / 52% 0 0 52%;
  pointer-events: none;
  z-index: 3;
}

.wg-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 43% center;
}

.wg-live {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 3vw, 56px);
  top: 50%;
  width: clamp(210px, 15.2vw, 282px);
  transform: translateY(-21%);
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 24px;
  background: rgba(226, 199, 166, .78);
  box-shadow: 0 22px 50px rgba(72, 42, 19, .20);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.wg-live__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.wg-live__head-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wg-live__badge,
.wg-live__viewers,
.wg-live__tax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 9px;
  border-radius: 9px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

.wg-live__badge {
  background: #ff3155;
  color: #fff;
}

.wg-live__viewers {
  gap: 5px;
  background: rgba(94, 72, 52, .26);
  color: #fff;
}

.wg-live__tax {
  background: rgba(255, 255, 255, .78);
  color: #57483b;
}

.wg-live__thumb {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #d8b693;
}

.wg-live__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  object-position: 50% 28%;
}

.wg-live__sale {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .30);
}

.wg-live__comments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.wg-live__comment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #483c32;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .64rem;
  line-height: 1.2;
  white-space: nowrap;
}

.wg-live__avatar {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #f3d6b3 0 20%, transparent 21%),
    radial-gradient(circle at 50% 70%, #8a5f45 0 32%, transparent 33%),
    linear-gradient(135deg, #6c432d, #cf9f71);
}

.wg-live__foot {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wg-live__input {
  flex: 1;
  min-width: 0;
  height: 37px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(84, 67, 54, .78);
  font-family: "Noto Sans JP", sans-serif;
  font-size: .65rem;
}

.wg-live__icons {
  display: flex;
  gap: 6px;
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 1199.98px) {
  .wg-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .wg-hero__copy {
    padding: 70px max(24px, calc((100vw - 960px) / 2)) 52px;
  }

  .wg-hero__visual {
    min-height: 690px;
  }

  .wg-hero__photo-shell {
    border-radius: 18% 0 0 0 / 18% 0 0 0;
  }

  .wg-hero__photo-shell::after {
    border-radius: 18% 0 0 0 / 18% 0 0 0;
  }

  .wg-hero__photo {
    object-position: 40% 43%;
  }

  .wg-live {
    right: 5%;
    top: 47%;
    transform: translateY(-10%);
    width: 250px;
  }
}

@media (max-width: 767.98px) {
  .wg-hero {
    padding-top: 64px;
  }

  .wg-hero__copy {
    padding: 54px 18px 38px;
  }

  .wg-hero__title {
    font-size: clamp(2rem, 10.2vw, 3.6rem);
    margin-bottom: 24px;
  }

  .wg-hero__lead {
    margin-bottom: 28px;
    font-size: .88rem;
    line-height: 1.95;
  }

  .wg-hero__facts {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .wg-hero__fact {
    padding: 17px 18px;
  }

  .wg-hero__fact+.wg-hero__fact {
    border-left: 0;
    border-top: 1px solid rgba(207, 190, 165, .58);
  }

  .wg-hero__fact-value strong {
    font-size: 2.35rem;
  }

  .wg-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wg-hero__btn {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .wg-hero__visual {
    min-height: 560px;
  }

  .wg-hero__photo-shell {
    left: 0;
    border-radius: 90px 0 0 0;
  }

  .wg-hero__photo-shell::after {
    left: 8px;
    border-radius: 90px 0 0 0;
  }

  .wg-hero__photo {
    object-position: 37% 45%;
  }

  .wg-live {
    right: 12px;
    top: auto;
    bottom: 18px;
    width: min(218px, 58vw);
    transform: none;
    padding: 10px;
    border-radius: 19px;
  }

  .wg-live__thumb img {
    aspect-ratio: 1.55 / 1;
  }

  .wg-live__comment:nth-child(n+4) {
    display: none;
  }
}

/* ==================================================
 日本語の折り返し調整
 最終行に1〜2文字だけ落ちる「ぶら下がり」を防ぐ。

 word-break: auto-phrase が文節単位で折り返すため、
 「スキンケア・コスメ・美容商」／「品」のような分断がなくなる。
 text-wrap: pretty は auto-phrase 未対応ブラウザ向けの控え。

 text-wrap: balance は各行の長さを揃えるので最終行に1文字だけ
 残らないが、<br> を含む要素では無効になる。逆に auto-phrase は
 <br> があっても効くが balance を打ち消す。そのため見出しは
 :has(br) で振り分け、<br> 無しは balance、<br> 有りは
 auto-phrase を使う。
================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
dt,
dd,
th,
td,
label,
figcaption,
blockquote,
.wg-hero__title,
.wg-hero__lead,
.ed-title,
.ed-eyebrow,
.ed-lead,
.ed-note {
  word-break: auto-phrase;
  text-wrap: pretty;
  line-break: strict;
  overflow-wrap: break-word;
}

/* <br> を含まない見出しは balance を使う。auto-phrase を打ち消す
   ため、word-break は normal に戻す。 */
h1:not(:has(br)),
h2:not(:has(br)),
h3:not(:has(br)),
h4:not(:has(br)),
h5:not(:has(br)),
h6:not(:has(br)),
.ed-title:not(:has(br)),
.wg-hero__title:not(:has(br)) {
  word-break: normal;
  text-wrap: balance;
}

/* フッター下部のリンク列。「スタッフログイ／ン」のように
   リンク名が途中で折れないようにする。 */
footer a {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 見出し上のラベル（STORE、¥10,000 など）。字送りが広いため
   4列表示では「¥10,00／0」のように末尾1文字が落ちる。 */
.ed-num {
  white-space: nowrap;
}

/* 4列の比較表。狭い画面で1セルが数文字幅になるのを防ぎ、
   親の .ed-table-wrap 側で横スクロールさせる。 */
@media (max-width: 767.98px) {
  .ed-table-cols {
    min-width: 620px;
  }

  .ed-table-cols td:last-child {
    min-width: 15em;
  }
}
