/* =========================================
   〇〇リフォーム工房 - スタイルシート
   参考サイトの方向性（明朝×ゴシック／暖色アース系／写真主役／余白）を
   オリジナルに再構成。丸コピーなし。
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #3a322a;          /* 文字（こげ茶） */
  --ink-soft: #6f655a;     /* 補助テキスト */
  --accent: #b07a3c;       /* オーカー／テラコッタ系アクセント */
  --accent-dark: #93632d;
  --paper: #f6f2ec;        /* 生成りの背景 */
  --paper-2: #efe8df;
  --dark: #2b2620;         /* 暗色帯 */
  --line: #e2d8cb;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.85;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* 明朝の見出し用 */
.mincho { font-family: 'Shippori Mincho', serif; }

/* セクション共通ヘッダ */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-en {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.8rem; letter-spacing: 0.28em; color: var(--accent);
  margin-bottom: 14px; text-transform: uppercase;
}
.sec-jp {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600;
  letter-spacing: 0.06em; line-height: 1.5; color: var(--ink);
}
.sec-note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.sec-head.light .sec-jp { color: var(--white); }
.sec-head.light .sec-note { color: rgba(255,255,255,0.72); }

/* ボタン（参考サイト踏襲のピル型） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; font-weight: 700; font-size: 0.98rem;
  padding: 16px 40px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-fill { background: var(--accent); color: var(--white); box-shadow: 0 8px 24px rgba(176,122,60,0.35); }
.btn-fill:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-line { border: 1.5px solid rgba(255,255,255,0.8); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--ink); }

/* =========================================
   ヘッダー（透過→スクロールで生成り）
   ========================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .3s ease, box-shadow .3s ease;
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1240px; margin: 0 auto; padding: 18px 28px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.brand-name {
  font-family: 'Shippori Mincho', serif; font-weight: 700;
  font-size: 1.2rem; letter-spacing: 0.08em; color: var(--white);
}
.brand-en { font-size: 0.62rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.75); }

.gnav { display: flex; gap: 26px; }
.gnav a {
  font-size: 0.86rem; letter-spacing: 0.05em; color: var(--white);
  position: relative; padding-bottom: 4px; transition: color .2s;
}
.gnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--white); transition: width .25s ease;
}
.gnav a:hover::after { width: 100%; }

.nav-contact {
  font-size: 0.84rem; font-weight: 700; color: var(--white);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 999px;
  padding: 9px 22px; transition: background .2s, color .2s;
}
.nav-contact:hover { background: var(--white); color: var(--ink); }

/* スクロール後 */
#header.scrolled { background: rgba(246,242,236,0.96); box-shadow: 0 2px 18px rgba(0,0,0,0.07); backdrop-filter: blur(6px); }
#header.scrolled .brand-name { color: var(--ink); }
#header.scrolled .brand-en { color: var(--ink-soft); }
#header.scrolled .gnav a { color: var(--ink); }
#header.scrolled .gnav a::after { background: var(--accent); }
#header.scrolled .nav-contact { color: var(--ink); border-color: var(--accent); }
#header.scrolled .nav-contact:hover { background: var(--accent); color: var(--white); }
#header.scrolled .nav-toggle span { background: var(--ink); }

/* ハンバーガー */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルドロワー */
.drawer {
  display: none; flex-direction: column;
  background: rgba(43,38,32,0.98); padding: 12px 28px 28px;
}
.drawer a { color: var(--white); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.drawer .drawer-cta { margin-top: 16px; border: none; background: var(--accent); border-radius: 999px; text-align: center; font-weight: 700; }

/* =========================================
   ヒーロー
   ========================================= */
#hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.04); animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(30,26,21,0.62) 0%, rgba(30,26,21,0.28) 55%, rgba(30,26,21,0.10) 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 28px; width: 100%; }
.hero-eyebrow {
  font-family: 'Shippori Mincho', serif; color: var(--white);
  font-size: 0.85rem; letter-spacing: 0.22em; margin-bottom: 26px;
  padding-left: 2px; border-left: 2px solid var(--accent); padding-left: 14px;
}
.hero-title {
  font-family: 'Shippori Mincho', serif; font-weight: 600;
  color: var(--white); letter-spacing: 0.14em; line-height: 1.5;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  word-break: keep-all; overflow-wrap: break-word;
}
.hero-title span { display: block; font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
.hero-lead { color: rgba(255,255,255,0.92); font-size: clamp(0.95rem, 2vw, 1.1rem); letter-spacing: 0.08em; margin-top: 28px; }

/* ヒーロー重なりティッカー */
.hero-ticker {
  position: absolute; z-index: 3; right: 28px; bottom: 0;
  transform: translateY(50%);
  display: flex; gap: 0; background: var(--white);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18); border-radius: 6px; overflow: hidden;
}
.ticker-item { padding: 22px 34px; text-align: center; border-right: 1px solid var(--line); }
.ticker-item:last-child { border-right: none; }
.ticker-num { display: block; font-family: 'Shippori Mincho', serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.ticker-num small { font-size: 0.9rem; }
.ticker-label { display: block; margin-top: 8px; font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* =========================================
   イントロ
   ========================================= */
#intro { padding: 130px 0 100px; background: var(--paper); }
.lead-en { font-family: 'Shippori Mincho', serif; font-size: 0.78rem; letter-spacing: 0.3em; color: var(--accent); text-align: center; margin-bottom: 18px; }
.lead-jp {
  font-family: 'Shippori Mincho', serif; font-weight: 600; text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: 0.06em; line-height: 1.7; color: var(--ink);
}
.lead-text { max-width: 720px; margin: 32px auto 0; text-align: center; color: var(--ink-soft); font-size: 0.96rem; }

.trouble-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 880px; margin: 56px auto 0;
}
.trouble-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 20px; font-size: 0.9rem; color: var(--ink); position: relative; padding-left: 42px;
}
.trouble-list li::before {
  content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 700;
}

/* =========================================
   施工事例
   ========================================= */
#works { padding: 100px 0; background: var(--paper-2); }
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.work { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 26px rgba(58,50,42,0.08); transition: transform .25s ease, box-shadow .25s ease; }
.work:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(58,50,42,0.14); }
.work-ba { display: grid; grid-template-columns: 1fr 1fr; }
.work-ba figure { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work-ba img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover .work-ba img { transform: scale(1.05); }
/* 施工写真プレースホルダ（写真は後で差し替え） */
.work-ba figure.ph { background: repeating-linear-gradient(135deg,#ece5da,#ece5da 14px,#e5ddd0 14px,#e5ddd0 28px); }
.work-ba figure.ph::before { content: "施工写真"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a99e8c; font-size: .8rem; letter-spacing: .12em; }
.work-ba figure:first-child img { filter: saturate(70%) brightness(90%); }
.work-ba figcaption {
  position: absolute; top: 12px; left: 12px; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--white); background: rgba(43,38,32,0.6);
  padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(3px);
}
.work-ba figcaption.after { background: rgba(176,122,60,0.9); }
.work-body { padding: 26px 28px 30px; }
.work-cat { font-size: 0.76rem; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.work-title { font-family: 'Shippori Mincho', serif; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); margin-bottom: 12px; line-height: 1.6; }
.work-desc { font-size: 0.88rem; color: var(--ink-soft); }

/* =========================================
   選ばれる理由（暗色帯）
   ========================================= */
#reasons { padding: 100px 0; background: var(--dark); color: var(--white); }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reason { border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 40px 30px; background: rgba(255,255,255,0.03); transition: background .25s, border-color .25s; }
.reason:hover { background: rgba(176,122,60,0.12); border-color: rgba(176,122,60,0.4); }
.reason-num { font-family: 'Shippori Mincho', serif; font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: 18px; }
.reason h3 { font-family: 'Shippori Mincho', serif; font-size: 1.18rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
.reason p { font-size: 0.88rem; color: rgba(255,255,255,0.72); }

/* =========================================
   料金の目安
   ========================================= */
#pricing { padding: 100px 0; background: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 34px 24px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.price:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(58,50,42,0.1); }
.price-cat { font-size: 0.92rem; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-amount { font-family: 'Shippori Mincho', serif; font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.price-amount small { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.price-note { margin-top: 14px; font-size: 0.78rem; color: var(--ink-soft); }
.price-caution { text-align: center; margin-top: 28px; font-size: 0.82rem; color: var(--ink-soft); }

/* =========================================
   施工の流れ（PC2列／スマホ1列）
   ========================================= */
#flow { padding: 100px 0; background: var(--paper-2); }
.flow-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; max-width: 940px; margin: 0 auto; }
.flow-step { display: flex; align-items: flex-start; gap: 20px; background: var(--white); border-radius: 8px; padding: 24px 26px; box-shadow: 0 4px 18px rgba(58,50,42,0.06); }
.step-num { flex-shrink: 0; font-family: 'Shippori Mincho', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); background: var(--accent); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.flow-step h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.flow-step p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }

/* =========================================
   お客様の声
   ========================================= */
#voices { padding: 100px 0; background: var(--paper); }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.voice { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 32px 28px; position: relative; }
.voice::before { content: '"'; position: absolute; top: 14px; right: 24px; font-family: 'Shippori Mincho', serif; font-size: 3.4rem; color: var(--accent); opacity: 0.18; line-height: 1; }
.voice-stars { color: #d99a3e; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 14px; }
.voice blockquote { font-size: 0.9rem; color: var(--ink); line-height: 1.9; margin-bottom: 18px; }
.voice figcaption { border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.voice figcaption span { display: block; font-weight: 400; font-size: 0.76rem; color: var(--ink-soft); margin-top: 3px; }

/* =========================================
   代表メッセージ
   ========================================= */
#about { padding: 100px 0; background: var(--paper-2); }
.about-inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.about-media { text-align: center; }
.about-media img { width: 100%; max-width: 360px; border-radius: 8px; margin: 0 auto; box-shadow: 0 16px 40px rgba(58,50,42,0.16); }
.about-name { margin-top: 18px; font-family: 'Shippori Mincho', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.about-name span { display: block; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
.about-text .sec-en { text-align: left; }
.about-head { font-family: 'Shippori Mincho', serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: 0.04em; line-height: 1.6; color: var(--ink); margin-bottom: 24px; }
.about-text p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }

/* =========================================
   会社案内・アクセス
   ========================================= */
#company { padding: 100px 0; background: var(--paper); }
.company-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table th { width: 110px; text-align: left; padding: 16px 0; font-size: 0.84rem; font-weight: 700; color: var(--accent); vertical-align: top; }
.info-table td { padding: 16px 0; font-size: 0.9rem; color: var(--ink); }
.map-ph { background: linear-gradient(135deg, #ded3c4, #cdbfac); border-radius: 8px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8a7a64; }
.map-ph svg { width: 42px; height: 42px; }
.map-ph p { font-size: 0.86rem; font-weight: 700; }
.map-ph span { font-size: 0.74rem; opacity: 0.8; }

/* =========================================
   お問い合わせ（CTA・写真背景）
   ========================================= */
#contact { position: relative; padding: 110px 0; overflow: hidden; text-align: center; }
.contact-media { position: absolute; inset: 0; z-index: 0; background: url('https://images.unsplash.com/photo-1556909172-54557c7e4fb7?w=1800&q=80') center/cover no-repeat; }
.contact-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(43,38,32,0.82), rgba(43,38,32,0.88)); }
.contact-inner { position: relative; z-index: 2; }
.sec-en.light { color: var(--accent); text-align: center; }
.contact-head { font-family: 'Shippori Mincho', serif; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: 0.06em; color: var(--white); margin: 14px 0 16px; }
.contact-lead { color: rgba(255,255,255,0.85); font-size: 0.98rem; margin-bottom: 40px; }
.contact-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact-note { margin-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* =========================================
   フッター
   ========================================= */
#footer { background: #211d18; color: rgba(255,255,255,0.65); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.footer-brand .brand-name { font-family: 'Shippori Mincho', serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; color: var(--white); margin-bottom: 14px; }
.footer-addr { font-size: 0.82rem; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 32px; justify-content: end; }
.footer-nav a { font-size: 0.84rem; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.copyright { text-align: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 980px) {
  .gnav, .nav-contact { display: none; }
  .nav-toggle { display: flex; }
  .drawer.open { display: flex; }
  .works-grid { grid-template-columns: 1fr; gap: 28px; }
  .company-inner, .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-inner { text-align: center; }
  .about-text .sec-en, .about-head { text-align: center; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { justify-content: start; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  #hero { min-height: 86vh; }
  .hero-ticker { right: 20px; left: 20px; }
  .ticker-item { flex: 1; padding: 16px 10px; }
  .ticker-num { font-size: 1.5rem; }
  .reasons-grid { grid-template-columns: 1fr; }
  .trouble-list { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  #intro { padding: 150px 0 80px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 14px 18px; }
  .hero-title span { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-ticker { transform: translateY(50%); }
  .ticker-num { font-size: 1.3rem; }
  .ticker-label { font-size: 0.66rem; }
  .price-grid { grid-template-columns: 1fr; }
  .work-body { padding: 22px 20px 24px; }
  .btn { width: 100%; padding: 15px 24px; }
  #intro { padding: 140px 0 70px; }
}
