/* スマホで「1テーマ＝1画面」に収めるための共通ルール（2026-10-08） */

/* ---- ロゴ ---- */
.hw-logo { display: block; height: 30px; width: auto; flex: none; }
.hw-brand { display: flex !important; align-items: center !important; gap: 10px !important; }
.hw-brand-text { display: flex; flex-direction: column; gap: 3px; }
.hw-brand-text > span:last-child { line-height: 1; }
.hw-tagline { letter-spacing: .04em !important; }

/* ---- 横スワイプのカード列（PCでは普通の横並び） ---- */
.swipe { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
.swipe-hint { display: none; }
.swipe-dots { display: none; }

/* ---- 部品（トップページほか） ---- */
.more { display: inline-block; margin-top: 18px; font-size: 14px; border-bottom: 1px solid var(--color-accent); padding-bottom: 3px; }
.more:hover { text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.hero-img { aspect-ratio: 4/3; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); margin-top: 22px; }
.hero-stats > div { background: var(--color-bg); padding: 12px 14px; }
.hs-l { font-size: 11px; letter-spacing: .1em; color: var(--color-neutral-600); margin-bottom: 4px; white-space: nowrap; }
.hs-v { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; color: var(--color-accent-800); white-space: nowrap; }
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles4 figure { margin: 0; }
.tiles4 figcaption { font-family: 'Shippori Mincho', serif; font-size: 15.5px; line-height: 1.5; margin-top: 8px; word-break: keep-all; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks li { font-size: 14.5px; padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.fs { width: clamp(150px, 20vw, 240px); margin: 0; flex: none; }
.fs .plate { aspect-ratio: 4/3; }
.fs figcaption { font-size: 12px; color: var(--color-neutral-700); margin-top: 6px; }
.svc-card { background: var(--color-bg); border: 1px solid var(--color-divider); }
.svc-card .card-b { padding: 16px 18px 18px; }
.svc-card .card-n { font-size: 11.5px; letter-spacing: .1em; color: var(--color-accent-700); margin-bottom: 6px; }
.svc-card h3 { font-size: 18.5px; line-height: 1.55; margin-bottom: 6px; }
.svc-card p { font-size: 14px; color: var(--color-neutral-700); line-height: 1.85; }
.plan { border: 1px solid var(--color-divider); padding: 22px 20px; display: flex; flex-direction: column; position: relative; background: var(--color-bg); }
.plan-rec { border-color: var(--color-accent); }
.plan-badge { position: absolute; top: -10px; left: 18px; background: var(--color-bg); padding: 0 8px; font-size: 11px; letter-spacing: .14em; color: var(--color-accent-700); }
.plan-name { font-family: 'Shippori Mincho', serif; font-size: 19px; letter-spacing: .06em; }
.plan-for { font-size: 12.5px; color: var(--color-neutral-700); margin: 2px 0 12px !important; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.pp-v { font-family: 'Cormorant Garamond', serif; font-size: 38px; line-height: 1; color: var(--color-accent-800); }
.pp-u { font-size: 12.5px; color: var(--color-neutral-700); }
.pp-was { width: 100%; font-size: 12px; color: var(--color-neutral-600); }
.plan-list { list-style: none; padding: 12px 0 0; margin: 12px 0 16px; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.plan-list li { font-size: 13.5px; padding-left: 14px; position: relative; }
.plan-list li::before { content: "・"; position: absolute; left: -2px; color: var(--color-accent); }
.plan-sample { display: block; text-align: center; font-size: 13px; padding: 10px 0 0; color: var(--color-accent-700); }
.mon-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px,4vw,48px); align-items: center; }
.flow-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(18px,4vw,44px); align-items: center; }
.steps6 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); }
.steps6 li { background: var(--color-bg); padding: 12px 10px; font-family: 'Shippori Mincho', serif; font-size: 14.5px; line-height: 1.45; word-break: keep-all; min-height: 84px; }
.steps6 b { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 22px; color: var(--color-accent-500); line-height: 1.1; margin-bottom: 4px; }
.faq { border-top: 1px solid var(--color-divider); }
.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary { display: flex; gap: 12px; align-items: baseline; padding: 16px 0; font-family: 'Shippori Mincho', serif; font-size: 16px; }
.faq summary span { color: var(--color-accent); font-family: 'Cormorant Garamond', serif; flex: none; }
.faq details p { font-size: 14.5px; color: var(--color-neutral-800); padding: 0 0 16px 24px; }

/* ---- 下層ページ共通の部品 ---- */
.phero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
.phero-img { aspect-ratio: 4/3; }
.mon-note { display: block; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--color-accent-300); background: color-mix(in srgb, var(--color-accent-100) 60%, transparent); color: var(--color-text); font-size: 13px; line-height: 1.75; }
.mon-note:hover { text-decoration: none; border-color: var(--color-accent); }
.mon-note b { display: block; font-weight: 500; color: var(--color-accent-800); font-size: 13.5px; }
.mon-note .mon-more { display: block; margin-top: 4px; color: var(--color-accent-700); font-size: 12.5px; }
.ctbl { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; background: var(--color-bg); }
.ctbl th, .ctbl td { border-bottom: 1px solid var(--color-divider); padding: 10px 8px; text-align: left; vertical-align: top; font-weight: 400; }
.ctbl thead th { font-family: 'Shippori Mincho', serif; font-size: 14px; color: var(--color-accent-800); border-bottom: 1px solid var(--color-accent-300); word-break: keep-all; }
.ctbl tbody th { color: var(--color-neutral-700); font-size: 12.5px; white-space: nowrap; word-break: keep-all; }
.ctbl small { display: block; font-size: 11px; color: var(--color-neutral-600); line-height: 1.5; }
.ctbl b { font-weight: 500; color: var(--color-accent-800); }
.ctbl tr.mon td, .ctbl tr.mon th { color: var(--color-accent-700); background: color-mix(in srgb, var(--color-accent-100) 50%, transparent); }
.ctbl-2 td:last-child { background: color-mix(in srgb, var(--color-accent-100) 40%, transparent); }
.ctbl-sm th, .ctbl-sm td { padding: 8px 6px; }
.ctbl-sm td { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--color-accent-800); line-height: 1.2; }
.ctbl-sm td small { font-family: inherit; font-family: "Noto Serif JP", serif; }
.acc { margin-top: 16px; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.acc summary { padding: 14px 0; font-size: 14px; color: var(--color-accent-700); }
.acc summary::after { content: " ＋"; }
.acc[open] summary::after { content: " －"; }
.dots { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.dots li { font-size: 13.5px; line-height: 1.7; padding-left: 14px; position: relative; color: var(--color-neutral-800); }
.dots li::before { content: "・"; position: absolute; left: -2px; color: var(--color-accent); }
.acc .dots { padding-bottom: 14px; }
.plan-thumb { display: block; aspect-ratio: 924/540; margin: -2px 0 14px; overflow: hidden; }

/* 制作見本：スマホ画面の横並び */
.phones { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; }
.phone { flex: 0 0 auto; width: 170px; scroll-snap-align: start; color: inherit; }
.phone:hover { text-decoration: none; }
.phone-f { display: block; border-radius: 26px; padding: 6px; background: #1d1d1f; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.phone-f img { display: block; width: 100%; height: auto; aspect-ratio: 750/1624; border-radius: 20px; background: #f3f1ec; }
.phone-l { display: block; text-align: center; font-size: 12.5px; margin-top: 6px; }
.pages3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); margin-top: 18px; }
.pages3 a { background: var(--color-bg); padding: 10px 8px; text-align: center; color: var(--color-text); font-size: 12.5px; }
.pages3 a:hover { text-decoration: none; background: var(--color-accent-100); }
.pages3 b { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 30px; color: var(--color-accent-800); margin-right: 2px; }
.pages3 span { display: block; font-size: 11.5px; color: var(--color-neutral-600); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-h { font-size: 15.5px; margin-bottom: 4px; color: var(--color-accent-800); }
.checks-col { flex-direction: column; gap: 4px; margin-top: 4px; }
.checks-col li { font-size: 14px; }
.story p { font-size: 15px; color: var(--color-neutral-800); line-height: 1.95; margin-bottom: 10px; max-width: 36em; }
.acc .story { padding-bottom: 6px; }
.person { display: grid; grid-template-columns: clamp(110px,16vw,170px) 1fr; gap: 18px; align-items: center; }
.person > .plate { aspect-ratio: 3/4; }

.bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.bubbles p { font-size: 13.5px; line-height: 1.6; padding: 8px 14px; border: 1px solid var(--color-accent-300); border-radius: 18px 18px 18px 4px; background: var(--color-bg); }
.inq-side { display: flex; flex-direction: column; gap: 16px; }
.qr-box { display: flex; gap: 14px; align-items: center; }

.col-card .card-b > div:first-child { margin-bottom: 8px !important; gap: 10px !important; }
.col-card .card-b > div:first-child span { font-size: 24px !important; }
.col-card .card-b h2 { font-size: 18.5px !important; margin: 0 !important; }
.col-card .card-b p { font-size: 14px !important; line-height: 1.85 !important; color: var(--color-neutral-800); }

.page-catch { word-break: keep-all; overflow-wrap: anywhere; font-family: 'Shippori Mincho', serif; font-size: clamp(17px,1.8vw,21px) !important; line-height: 1.6 !important; color: var(--color-accent-800); margin-bottom: 10px !important; }

/* ---- 縦ラインの流れ ---- */
.vline { list-style: none; margin: 0; padding: 0; position: relative; }
.vline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 2px; background: linear-gradient(var(--color-accent-300), var(--color-accent-200)); }
.vline > li { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr) clamp(96px,22vw,200px); gap: 14px; align-items: start; padding-bottom: 26px; }
.vl-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-accent-500); display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--color-accent-800); }
.vl-time { font-size: 11.5px; letter-spacing: .08em; color: var(--color-accent-700); margin: 6px 0 2px; }
.vl-body h3 { font-size: 18px; line-height: 1.5; margin-bottom: 4px; }
.vl-body p { font-size: 14px; color: var(--color-neutral-700); line-height: 1.8; }
.vl-img { aspect-ratio: 4/3; margin-top: 4px; }
.vline.vl-sm::before { left: 13px; top: 14px; bottom: 22px; }
.vline.vl-sm > li { grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding-bottom: 12px; }
.vl-sm .vl-dot { width: 28px; height: 28px; font-size: 15px; }
.vl-sm .vl-body h3 { font-size: 16px; margin: 1px 0 0; line-height: 1.4; }
.vl-sm .vl-body p { font-size: 12.5px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .vline > li.fx .vl-dot { transform: scale(.6); transition: transform .6s cubic-bezier(.34,1.56,.64,1) .15s; }
  .vline > li.fx-in .vl-dot { transform: scale(1); }
}

/* ---- フッター（コンパクト） ---- */
.ft-in { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px,4vw,44px) 22px; font-size: 12.5px; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.ft-brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); }
.ft-brand:hover { text-decoration: none; }
.ft-brand img { height: 26px; width: auto; }
.ft-brand b { display: block; font-family: 'Shippori Mincho', serif; font-weight: 400; font-size: 18px; letter-spacing: .12em; line-height: 1.3; }
.ft-brand small { display: block; font-size: 11px; color: var(--color-neutral-600); letter-spacing: .04em; line-height: 1.4; }
.ft-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-contact a { padding: 5px 12px; border: 1px solid var(--color-divider); border-radius: 999px; color: var(--color-neutral-800); font-size: 12px; background: var(--color-bg); }
.ft-contact a:first-child { border-color: var(--color-accent-300); color: var(--color-accent-800); }
.ft-contact a:hover { text-decoration: none; border-color: var(--color-accent); }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-divider); }
.ft-links a { color: var(--color-neutral-800); font-size: 12.5px; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--color-neutral-600); font-size: 11px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ft-legal a { color: var(--color-neutral-600); }

/* ---- 写真つき小カード ---- */
.pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { overflow: hidden; border-radius: 2px; background: var(--color-surface); }

@media (max-width: 880px) {
  /* ヘッダー：ロゴ＋名前を横並びにして低く */
  header > div > a:first-child.hw-brand { flex-direction: row !important; align-items: center !important; }
  .hw-tagline { font-size: 10px !important; letter-spacing: .06em !important; }
  .hw-logo { height: 26px; }
  header > div { padding-top: 9px !important; padding-bottom: 9px !important; }

  /* セクションの上下余白を詰める */
  main section > div[style*="max-width"] { padding-top: 34px !important; padding-bottom: 34px !important; }

  /* 読みやすい文字組み：両端揃えをやめ、行間を少し詰める */
  main p { line-height: 1.85 !important; }
  main p[style*="justify"] { text-align: left !important; }
  main h2 { margin-bottom: 12px !important; }

  /* 横スワイプ */
  .swipe {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(16px, 4vw, 44px)); padding: 2px clamp(16px, 4vw, 44px) 6px;
    scroll-padding: 0 clamp(16px, 4vw, 44px); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .swipe.swipe-sm > * { flex-basis: 70%; }
  .swipe-hint { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--color-neutral-600); margin-top: 4px; text-align: right; }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-200); }
  .swipe-dots i.on { background: var(--color-accent-700); }

  /* トップページの部品（スマホ） */
  .hero-grid, .mon-grid, .flow-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-img { order: -1; aspect-ratio: 16/9; }
  .hero-stats > div { padding: 10px 10px; }
  .hs-l { font-size: 10.5px; letter-spacing: .04em; }
  .tiles4 { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .tiles4 figcaption { font-size: 14.5px; margin-top: 6px; }
  .steps6 li { min-height: 0; padding: 10px 8px; font-size: 13.5px; }
  .mon-grid > .plate { aspect-ratio: 16/9 !important; }
  .phero { grid-template-columns: 1fr; gap: 16px; }
  .phero-img { order: -1; aspect-ratio: 2/1; }
  .ctbl { font-size: 12.5px; }
  .ctbl th, .ctbl td { padding: 8px 5px; }
  .ctbl thead th { font-size: 12.5px; }
  .ctbl tbody th { font-size: 11.5px; white-space: normal; }
  .phones { margin: 0 calc(-1 * clamp(16px, 4vw, 44px)); padding: 4px clamp(16px, 4vw, 44px) 8px; scroll-padding: 0 clamp(16px, 4vw, 44px); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { width: 140px; }
  .two { grid-template-columns: 1fr; gap: 14px; }
  /* よくある質問：閉じた状態の行を低く */
  main details > summary[style] { padding-top: 13px !important; padding-bottom: 13px !important; font-size: 15px !important; gap: 10px !important; }
  main details > p[style] { padding-left: 22px !important; font-size: 14px !important; }
  .faq summary { padding: 13px 0; font-size: 15px; }
  .phero > .inq-side { order: -1; gap: 0; }
  .inq-side .phero-img { aspect-ratio: 2/1; min-height: 0; overflow: hidden; }
  .plan-thumb { margin-bottom: 10px; }
  .plan { padding: 18px 16px; }
  .plan-list { margin: 10px 0 12px; padding-top: 10px; }

  /* PCだけで見せるもの・スマホだけで見せるもの */
  .pc-only { display: none !important; }
}
@media (min-width: 881px) {
  .sp-only { display: none !important; }
}

/* ===== はみ出し・ガタつき防止（2026-10-08） ===== */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ===== メニュー：いま開いているページ ===== */
.hw-nav > a[aria-current="page"] { color: var(--color-accent-800) !important; }
@media (max-width: 880px) {
  .hw-nav > a[aria-current="page"] { background: color-mix(in srgb, var(--color-surface) 70%, var(--color-neutral-200, #e8e6e1)); border-left: 2px solid var(--color-accent-400) !important; padding-left: 12px !important; font-weight: 500; color: var(--color-accent-800) !important; }
  .hw-nav > a:not(.btn)::after { content: "›"; float: right; color: var(--color-neutral-500, #999); }
}

/* ===== 動き（控えめ） ===== */
@keyframes fx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  /* 最初の画面：読み込み時にふわっと */
  main > section:first-of-type .hero-grid > div:first-child > *,
  main > section:first-of-type .phero > div:first-child > * { animation: fx-rise .9s cubic-bezier(.22,1,.36,1) both; }
  main > section:first-of-type .hero-grid > div:first-child > :nth-child(2), main > section:first-of-type .phero > div:first-child > :nth-child(2) { animation-delay: .08s; }
  main > section:first-of-type .hero-grid > div:first-child > :nth-child(3), main > section:first-of-type .phero > div:first-child > :nth-child(3) { animation-delay: .16s; }
  main > section:first-of-type .hero-grid > div:first-child > :nth-child(4), main > section:first-of-type .phero > div:first-child > :nth-child(4) { animation-delay: .24s; }
  main > section:first-of-type .hero-grid > div:first-child > :nth-child(n+5), main > section:first-of-type .phero > div:first-child > :nth-child(n+5) { animation-delay: .32s; }
  .hero-img img, .phero-img img { animation: fx-zoom 1.6s cubic-bezier(.22,1,.36,1) both; }

  /* スクロールで出てくる（JSが .fx を付ける） */
  .fx { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--fx-d, 0s); }
  .fx.fx-in { opacity: 1; transform: none; }
  .plate.fx { transform: translateY(18px) scale(.985); }
  .plate.fx.fx-in { transform: none; }

  /* さわったときの小さな動き */
  .btn { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(30,60,40,.45); }
  .btn:active { transform: translateY(0); }
  .svc-card, .plan, .tiles4 figure, .phone, .pages3 a { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
  .svc-card:hover, .plan:hover, .phone:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -18px rgba(30,60,40,.35); }
  .plate img.pic { transition: transform 1s cubic-bezier(.22,1,.36,1); }
  .svc-card:hover .plate img.pic, .tiles4 figure:hover img.pic, .plan-thumb:hover img.pic { transform: scale(1.04); }
  .more { transition: color .2s ease, letter-spacing .3s ease; }
  .more:hover { letter-spacing: .04em; }
  .hw-logo { transition: transform .5s cubic-bezier(.22,1,.36,1); }
  .hw-brand:hover .hw-logo { transform: rotate(-6deg) scale(1.06); }
  .swipe-dots i { transition: width .3s ease, background-color .3s ease; }
  .swipe-dots i.on { width: 16px; border-radius: 3px; }
  header { transition: box-shadow .3s ease; }
  html.hw-scrolled header { box-shadow: 0 6px 18px -14px rgba(0,0,0,.35); }
}
