/*
Theme Name: Tomita Zoen
Description: 株式会社冨田造園のためのオリジナルテーマ。シンプルで都会的なデザイン。スマホ対応。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tomita-zoen
*/

:root {
  --bg: #F2F1EC;
  --ink: #111311;
  --muted: #5B5F59;
  --body: #3C3F3B;
  --sub: #E6E5DE;
  --ph: #DCDBD3;
  --accent: #C6F04F;
  --pad: clamp(20px, 4vw, 56px);
  --jp: 'Zen Kaku Gothic New', sans-serif;
  --en: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #3D5A2E; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--ink); color: var(--bg); }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.en { font-family: var(--en); }

/* Placeholder / photo frame */
.ph { position: relative; overflow: hidden; background-color: var(--ph); background-image: repeating-linear-gradient(135deg, rgba(17,19,17,.06) 0 1px, transparent 1px 14px); border-radius: 4px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--en); font-size: 11px; letter-spacing: .16em; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; border: 1px solid var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 700; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.icon { width: 16px; height: 16px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,241,236,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.header-bar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.brand-kk { font-size: 13px; letter-spacing: .04em; margin-right: 2px; }
.brand-name { font-size: 22px; }
.brand-en { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: .2em; color: var(--muted); }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.gnav a.is-current { box-shadow: inset 0 -6px 0 var(--accent); }
.gnav .gnav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.menu-btn { display: none; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.menu-btn .i-close { display: none; }
.site-header.is-open .menu-btn .i-open { display: none; }
.site-header.is-open .menu-btn .i-close { display: block; }
.mnav { display: none; flex-direction: column; padding: 8px 20px 24px; border-top: 1px solid var(--ink); }
.site-header.is-open .mnav { display: flex; }
.mnav a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid rgba(17,19,17,.16); font-size: 18px; font-weight: 700; }
.mnav a span { font-family: var(--en); font-size: 12px; font-weight: 400; color: var(--muted); }
.mnav .mnav-cta { justify-content: center; min-height: 56px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 16px; }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 88px); }
.hero-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-family: var(--en); font-size: 12px; letter-spacing: .16em; color: var(--muted); margin-bottom: clamp(20px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-title { margin: 0; font-size: clamp(56px, 8.4vw, 136px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; }
.hl { background: var(--accent); padding: 0 .08em; }
.hero-photo { aspect-ratio: 1 / 1; }
.hero-photo img { object-position: 10% 50%; }
.hero-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 56px); padding: 28px 0; border-top: 1px solid var(--ink); }
.hero-foot p { margin: 0; font-size: 16px; line-height: 2; max-width: 34em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

/* Band */
.band { background: var(--ink); color: var(--accent); overflow: hidden; white-space: nowrap; font-family: var(--en); font-weight: 700; font-size: clamp(18px, 2.4vw, 32px); letter-spacing: .06em; padding: 18px 0; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 128px); }
.section.no-top { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-title { margin: 0; display: flex; align-items: baseline; gap: 16px; font-size: clamp(32px, 4vw, 56px); font-weight: 900; }
.sec-title .num, .sec-en { font-family: var(--en); font-size: 14px; font-weight: 500; letter-spacing: .16em; color: var(--muted); }
.sec-en { margin: 0; font-size: 12px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--ink); }
.service { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.service .en { font-size: 13px; color: var(--muted); }
.service h3 { margin: 0; font-size: 22px; font-weight: 700; }
.service p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--body); }

/* Area / customers / flow */
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.info-box { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--sub); border-radius: 6px; }
.info-k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.info-k::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.info-big { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; }
.info-note { margin: 0; font-size: 14px; line-height: 1.8; color: var(--body); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { padding: 8px 16px; background: var(--bg); border-radius: 999px; font-size: 15px; font-weight: 700; }
.flow { margin-top: clamp(56px, 7vw, 96px); }
.flow-head { margin-bottom: 24px; }
.flow-head h3 { margin: 0; font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); column-gap: 20px; }
.flow-list li { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 24px 0; border-top: 1px solid var(--ink); }
.flow-list .n { font-family: var(--en); font-size: 36px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.flow-list .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 700; }
.flow-list .free { padding: 2px 10px; border-radius: 999px; background: var(--accent); font-size: 13px; }
.flow-list .d { font-size: 14px; line-height: 1.8; color: var(--body); }

/* Works */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.work { display: flex; flex-direction: column; gap: 12px; }
.work .ph { aspect-ratio: 3 / 4; }
.work-no { position: absolute; left: 14px; top: 12px; z-index: 1; font-family: var(--en); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.work .ph img + .work-no, .work-no.on-photo { padding: 4px 8px; background: var(--bg); color: var(--ink); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.work-meta span:last-child { color: var(--muted); font-size: 13px; }

/* Message */
.message { background: var(--sub); border-block: 1px solid var(--ink); }
.message-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 6vw, 96px); align-items: start; }
.message-left { display: flex; flex-direction: column; gap: 24px; }
.portrait { aspect-ratio: 1 / 1; width: 100%; max-width: 400px; }
.message-body { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.message-lead { margin: 0; font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.6; }
.message-text { margin: 0; font-size: 16px; line-height: 2.1; color: var(--body); }
.message-goal { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.9; }
.message-goal .mark { box-shadow: inset 0 -.45em 0 var(--accent); }
.message-sign { margin: 0; font-size: 14px; font-weight: 500; }
.message-body .link-arrow { align-self: flex-start; }

/* Post rows (top page) */
.post-rows { border-top: 1px solid var(--ink); }
.post-row { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 24px; gap: 24px; align-items: center; min-height: 72px; padding: 12px 8px; border-bottom: 1px solid var(--ink); }
.post-row:hover { background: #E8E7E0; color: var(--ink); }
.post-row .date { font-family: var(--en); font-size: 13px; color: var(--muted); }
.post-row .ttl { font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; }

/* Recruit */
.recruit-box { background: var(--ink); color: var(--bg); border-radius: 6px; padding: clamp(28px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: end; }
.recruit-box .label { font-family: var(--en); font-size: 13px; letter-spacing: .16em; color: var(--accent); }
.recruit-box h2 { margin: 0; font-size: clamp(28px, 3.6vw, 52px); font-weight: 900; line-height: 1.4; }
.recruit-box p { margin: 0; font-size: 15px; line-height: 1.9; color: #C9CAC4; }
.recruit-left { display: flex; flex-direction: column; gap: 18px; }
.recruit-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 6px 14px; border: 1px solid var(--muted); border-radius: 999px; font-size: 13px; }
.recruit-box .btn-accent:hover { color: var(--ink); filter: brightness(1.05); }
.recruit-box .btn-tel { border-color: var(--bg); color: var(--bg); font-weight: 700; }
.recruit-box .btn-tel:hover { color: var(--accent); border-color: var(--accent); }

/* Contact / footer */
.contact { border-top: 1px solid var(--ink); }
.contact-inner { padding-block: clamp(56px, 9vw, 128px) 40px; }
.contact-label { margin: 0 0 16px; font-family: var(--en); font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.contact-big { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.contact-big .txt { font-size: clamp(40px, 7vw, 112px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.contact-circle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: clamp(56px, 7vw, 104px); height: clamp(56px, 7vw, 104px); border-radius: 999px; background: var(--accent); color: var(--ink); transition: transform .2s; }
.contact-big:hover .contact-circle { transform: translateX(6px); }
.company { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; padding: 36px 0 56px; }
.company > div { display: flex; flex-direction: column; gap: 8px; }
.company .k { font-size: 12px; color: var(--muted); }
.company .tel { font-family: var(--en); font-size: 24px; font-weight: 500; }
.company .note { font-size: 13px; line-height: 1.8; color: var(--muted); }
.company .v { font-size: 16px; line-height: 1.8; }
.site-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 12px; color: var(--muted); }
.site-foot .brand-foot { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: .08em; }

/* Mobile bottom bar */
.mbar { display: none; }

/* Blog pages */
.page-head { padding-block: clamp(32px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 clamp(24px, 4vw, 48px); padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.page-title-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.page-title { margin: 0; display: flex; align-items: baseline; gap: 16px; font-size: clamp(44px, 7vw, 112px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.page-title .num { font-family: var(--en); font-size: 14px; font-weight: 500; letter-spacing: .16em; color: var(--muted); }
.page-title-row p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--body); }

.latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(20px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }
.latest .ph { aspect-ratio: 16 / 10; }
.badge { position: absolute; left: 14px; top: 12px; z-index: 1; padding: 4px 10px; background: var(--accent); color: var(--ink); font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.latest-body { display: flex; flex-direction: column; gap: 16px; }
.latest-body h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 900; line-height: 1.3; }
.latest-body p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--body); }
.latest-body .link-arrow { align-self: flex-start; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--en); font-size: 14px; color: var(--muted); }
.cat { padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--jp); font-size: 12px; font-weight: 700; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 20px; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.card { display: flex; flex-direction: column; gap: 12px; }
.card .ph { aspect-ratio: 4 / 3; }
.card .date { font-family: var(--en); font-size: 13px; color: var(--muted); }
.card .ttl { font-size: 20px; font-weight: 700; line-height: 1.5; }
.pager { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.empty { padding: 48px 0; color: var(--body); }

/* Single / page */
.article { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(48px, 6vw, 88px); box-sizing: content-box; }
.article .meta { margin-bottom: 16px; }
.article-title { margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(36px, 6vw, 80px); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; }
.article-eyecatch { margin: 0 0 40px; }
.article-eyecatch img { width: 100%; border-radius: 4px; display: block; }
.entry { font-size: 17px; line-height: 2.1; }
.entry > * { margin-block: 0 1.6em; }
.entry h2 { font-size: 28px; line-height: 1.5; margin-top: 2em; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.entry h3 { font-size: 22px; line-height: 1.5; margin-top: 1.8em; }
.entry a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 2px; }
.entry img { border-radius: 4px; }
.entry figure { margin-inline: 0; }
.entry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--body); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 14px 12px; border-bottom: 1px solid rgba(17,19,17,.2); text-align: left; vertical-align: top; }
.entry th { width: 30%; font-weight: 700; }
.entry input[type=text], .entry input[type=email], .entry input[type=tel], .entry textarea, .entry select { width: 100%; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; font: inherit; font-size: 16px; }
.entry input[type=submit], .entry button[type=submit], .entry .wpcf7-submit { min-height: 56px; padding: 0 40px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.page-wide { max-width: 960px; }

.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink); }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--ink); }
.post-nav a.next { align-items: flex-end; text-align: right; padding: 24px 0 24px 24px; }
.post-nav .lbl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--en); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.post-nav .ttl { font-size: 18px; font-weight: 700; }
.post-nav .date { font-family: var(--en); font-size: 13px; color: var(--muted); }
.back { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Phone / tablet ---------- */
@media (max-width: 899px) {
  .gnav, .brand-en { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .btns { justify-content: stretch; }
  .btns .btn { flex: 1 1 140px; padding: 0 16px; }
  .service { padding: 24px 0 28px; }
  .work .ph { aspect-ratio: 16 / 10; }
  .post-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 16px; }
  .post-row .date { grid-column: 1 / -1; }
  .recruit-right { align-items: stretch; }
  .recruit-right .btn { text-align: center; }
  .mbar { position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(242,241,236,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--ink); }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px; }
  .mbar a.ink { background: var(--ink); color: var(--bg); }
  .entry th, .entry td { display: block; width: 100%; }
  .entry th { padding-bottom: 0; border-bottom: 0; }
}
