/*
Theme Name: Reform Labo
Theme URI: https://reformlaboshop.com
Author: Perfect Fit Corporation
Description: 洋服お直し専門店 リフォームラボ（大井町）のカスタムテーマ。承認済みモックアップ準拠、軽量・プラグイン非依存。
Version: 1.0.0
Requires PHP: 7.4
License: proprietary
Text Domain: reform-labo
*/

:root {
  --ink: #1f2126;
  --ink-soft: #4c4f56;
  --bg: #ffffff;
  --wash: #f6f5f4;
  --line: #e4e3e1;
  --accent: #f7ed34;        /* ロゴ実色（RLサイトアイコン実測） */
  --accent-deep: #ddd11a;
  --on-accent: #1f2126;     /* 黄色地の上は必ず黒文字 */
  --gold-deep: #756d00;     /* 白地の上で使える濃イエロー系（小さめテキスト用） */
  --radius: 14px;
  --z-sticky: 10;
  font-size: 17px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.9; -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 28px; }

/* english serif accent */
.en {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600;
  letter-spacing: .16em; font-size: 1.02rem; color: var(--ink-soft);
  margin-bottom: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: 640px; margin: 0 auto; padding: 10px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.23rem; line-height: 1.3; letter-spacing: .02em; text-decoration: none; min-width: 0; } /* リフォームラボの幅 ≒ 下段PREMIUM ALTERATION SERVICEの幅 */
@media (max-width: 699px) {
  .head-in { padding-left: 14px; padding-right: 14px; } /* ロゴを左端・電話ボタンを右端に寄せる */
}
.logo img { height: 32px; width: auto; flex-shrink: 0; }
.logo > span { min-width: 0; }
.logo small { display: block; font-size: .56rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-tel .tel-full { display: none; }
@media (min-width: 700px) {
  .head-tel .tel-full { display: inline; }
  .head-tel .tel-short { display: none; }
}
.head-tel {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 10px 16px;
  border-radius: 999px; min-height: 44px; white-space: nowrap;
}
.head-tel:active { background: var(--accent-deep); }

/* ---------- hero ---------- */
.hero-img { width: 100%; height: min(64vw, 430px); object-fit: cover; }
.hero { padding-top: 40px; padding-bottom: 46px; }
h1 {
  font-size: clamp(1.15rem, 6.2vw, 2.4rem); /* 2行目12文字（実測: フォント1pxあたり行幅13.14px）がnowrapで収まる上限 */
  font-weight: 900; line-height: 1.42; letter-spacing: .01em; text-wrap: balance;
}
.stitch-word { position: relative; white-space: nowrap; }
.stitch-word svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 10px; overflow: visible; }
.stitch-word path { stroke: var(--accent); stroke-width: 3; fill: none; stroke-dasharray: 10 7; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .stitch-word path { stroke-dashoffset: 520; animation: sew 1.1s cubic-bezier(.22,1,.36,1) .3s forwards; }
  @keyframes sew { to { stroke-dashoffset: 0; } }
}
.hero p.lead { margin-top: 18px; font-size: 1.02rem; color: var(--ink-soft); max-width: 34em; }
.hero-note { font-size: .86rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.hero-cta { margin-top: 26px; display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 20px; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 1.05rem; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-deep); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
/* CTAホバー: 控えめなリフト（ホバー可能デバイスのみ・reduced-motion尊重） */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .head-tel { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(31,33,38,.14); }
  .btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(31,33,38,.12); }
  .btn-primary:hover { background: var(--accent-deep); }
  .head-tel:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(31,33,38,.14); }
}
/* スクロールリビール（front-page.php のJSが .reveal を付与。JS無効時は非表示にならない）
   transitionは .is-in 側にのみ置く: .reveal付与時のフェードアウトを防ぐ */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease-out, transform .55s ease-out; }
.chips { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700; padding: 8px 15px; }

/* ---------- sections ---------- */
section { padding: 52px 0; }
section.alt { background: var(--wash); }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.45; letter-spacing: .04em; text-wrap: balance; }
.stitch { width: 46px; height: 0; margin: 14px 0 26px; border-bottom: 3px dashed var(--accent); }
.sec-note { color: var(--ink-soft); font-size: .95rem; margin-top: -14px; margin-bottom: 26px; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc > div { background: #fff; border-radius: var(--radius); padding: 22px 14px; text-align: center; }
.svc .ico {
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.svc svg { stroke: var(--accent); }
.svc b { font-size: .98rem; font-weight: 700; display: block; line-height: 1.5; }
.svc small { color: var(--ink-soft); font-size: .8rem; line-height: 1.6; display: block; margin-top: 4px; }
section.alt .svc > div { box-shadow: 0 1px 3px rgba(31,33,38,.05); }

/* ---------- price ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 6px; text-align: left; font-size: 1rem; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:first-child { border-top: 1px solid var(--line); }
td.price { text-align: right; font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
td.price small { font-weight: 700; font-size: .78rem; color: var(--ink-soft); }
.price-note { font-size: .88rem; color: var(--ink-soft); margin-top: 16px; }
.price-group { margin-top: 34px; }
.price-group h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.price-toggle {
  margin-top: 26px; width: 100%; cursor: pointer; font-family: inherit; background: #fff;
}
.price-toggle svg { transition: transform .25s; }
.price-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
#price-more[hidden] { display: none; }

/* ---------- flow ---------- */
.flow { display: grid; gap: 14px; counter-reset: step; }
.flow li { list-style: none; background: #fff; border-radius: var(--radius); padding: 20px 20px 20px 68px; position: relative; box-shadow: 0 1px 3px rgba(31,33,38,.05); }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.flow b { display: block; font-size: 1.08rem; }
.flow p { color: var(--ink-soft); font-size: .93rem; margin-top: 4px; }

/* ---------- designer quote band ---------- */
.quote-band {
  position: relative; background: var(--ink) url(images/workshop.jpg) center/cover no-repeat;
  color: #fff; padding: 60px 0; text-align: center;
}
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(31,33,38,.86); }
.quote-band .wrap { position: relative; }
.quote-band .q-en {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  font-size: 1.45rem; line-height: 1.7; text-wrap: balance; max-width: 24em; margin: 0 auto;
}
.quote-band .q-jp { margin: 18px auto 0; font-size: .98rem; line-height: 2; color: rgba(255,255,255,.85); max-width: 28em; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-family: "Cormorant Garamond", serif; font-weight: 600; letter-spacing: .18em; font-size: .95rem; color: var(--accent); }

/* ---------- voices ---------- */
.voice { display: grid; gap: 14px; }
.voice figure { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 3px rgba(31,33,38,.05); }
.voice .stars { color: var(--accent-deep); font-size: 1.05rem; letter-spacing: .14em; line-height: 1; margin-bottom: 12px; }
.voice blockquote { font-size: .98rem; }
.voice blockquote.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.voice-more {
  background: none; border: none; padding: 0; margin-top: 10px; cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--gold-deep); text-decoration: underline;
}
.voice figcaption { margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--gold-deep); }

/* ---------- shop info ---------- */
.info-tbl tbody tr { border: none; }
.info-tbl th { width: 6.5em; color: var(--ink-soft); font-weight: 700; vertical-align: top; font-size: .95rem; }
.info-tbl th, .info-tbl td { padding: 12px 6px; }
.info-tbl ul { list-style: none; display: grid; gap: 10px; }
.shop-photo { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 24px; }
.map-embed { margin-top: 20px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius); display: block; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .92rem; font-weight: 700; color: var(--gold-deep); }

/* ---------- form ---------- */
form.contact-form { display: grid; gap: 18px; }
.contact-form label { font-weight: 700; font-size: .95rem; display: grid; gap: 7px; }
.contact-form label em { font-style: normal; color: var(--gold-deep); font-size: .78rem; margin-left: 6px; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1.02rem; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 14px; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-deep); }
.file-hint { font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.file-ui {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px;
}
.file-ui:focus-within { border-color: var(--gold-deep); }
.file-ui input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn {
  background: var(--wash); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 16px; font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.file-name { font-weight: 500; font-size: .9rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-field { display: grid; gap: 7px; font-weight: 700; font-size: .95rem; }
.photo-rows { display: grid; gap: 10px; }
.file-add {
  justify-self: start; cursor: pointer; font-family: inherit;
  background: #fff; border: 2px dashed var(--line); border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: .92rem; color: var(--ink-soft);
}
.file-add:hover, .file-add:focus-visible { border-color: var(--gold-deep); color: var(--ink); }
.contact-form button.btn { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; font-weight: 700; font-size: .95rem; }
.form-notice.ok { background: #eef7ee; border: 1px solid #bfdec0; }
.form-notice.ng { background: #fdf0ef; border: 1px solid #ecc8c5; }

/* ---------- footer / bar ---------- */
.site-footer { padding: 34px 0 30px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.site-footer a { color: inherit; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--gold-deep); }
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.bar a { display: grid; justify-items: center; gap: 3px; padding: 10px 4px 12px; text-decoration: none; font-size: .78rem; font-weight: 700; min-height: 60px; }
.bar a svg { stroke: var(--ink); }
.bar a.tel { color: var(--gold-deep); }
.bar a.tel svg { stroke: var(--gold-deep); }
.bar a + a { border-left: 1px solid var(--line); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

/* ---------- blog ---------- */
.page-head { padding-top: 44px; }
.post-list { display: grid; gap: 14px; padding: 30px 0 52px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.post-card time { font-size: .8rem; font-weight: 700; color: var(--gold-deep); }
.post-card h2, .post-card h3 { font-size: 1.1rem; margin-top: 4px; }
.post-card a { text-decoration: none; }
.post-card a:hover h2, .post-card a:hover h3 { text-decoration: underline; }
.post-card .excerpt { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 52px; font-weight: 700; }
.pagination .page-numbers { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); }

article.single { padding: 44px 0 52px; }
article.single .meta { font-size: .85rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 18px; }
article.single h1 { font-size: 1.6rem; line-height: 1.5; margin-bottom: 6px; }
.entry-content { margin-top: 26px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.3rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.15rem; margin-top: 1.6em; }
.entry-content img { border-radius: 10px; }
.entry-content a { color: var(--gold-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 1em; color: var(--ink-soft); }
.post-nav { display: grid; gap: 10px; padding-bottom: 52px; font-size: .92rem; font-weight: 700; }
.post-nav a { text-decoration: none; color: var(--gold-deep); }

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .hero-cta { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .hero-img { border-radius: 0 0 24px 24px; }
}
/* PC: ヒーローを左テキスト・右写真の2カラムに */
@media (min-width: 1000px) {
  .hero-zone {
    display: grid; grid-template-columns: 11fr 10fr; gap: 56px; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 56px 28px 64px;
  }
  .hero-img { order: 2; height: 440px; border-radius: 24px; }
  .hero-zone .hero { max-width: none; margin: 0; padding: 0; }
  .hero-zone h1 { font-size: min(2.25rem, 3.4vw); } /* 2カラム時の左カラム幅（1000pxで465px→1123px以降517px）に12文字が収まる上限 */

  /* PC: ヒーロー以下のセクションも拡幅（640pxの縦一列はスマホ専用のまま。
     Royの赤枠指摘 2026-07-07: ヒーローだけ2カラム化して以降が細い帯のままだった） */
  .head-in, footer .wrap { max-width: 1100px; }
  #service .wrap, #price .wrap, #flow .wrap, #voice .wrap, #access .wrap { max-width: 1100px; }
  section { padding: 72px 0; }
  h2 { font-size: 1.7rem; }
  .svc { gap: 16px; }
  .svc div { padding: 30px 18px; }
  #price table { max-width: 720px; }
  .price-toggle { max-width: 720px; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .voice { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  #access .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  #access .en, #access h2, #access .stitch, #access .shop-photo { grid-column: 1 / -1; }
  #access .shop-photo { max-height: 420px; object-fit: cover; }
  .map-embed { margin-top: 12px; }
  .map-embed iframe { height: 340px; }
  #contact .wrap { max-width: 760px; }
}
