/*
Theme Name:  Construction Template
Theme URI:   https://example.com
Author:      Your Name
Author URI:  https://example.com
Description: 建設業向け WordPressテーマ（ACF対応）
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: construction-template
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #2a2a2a;
  background: #ffffff;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ===== VARIABLES ===== */
:root {
  --navy:   #1c2b3a;
  --navy2:  #253547;
  --accent: #c8a96e;
  --accent2:#a88848;
  --bg:     #f7f6f3;
  --bg2:    #eeecea;
  --white:  #ffffff;
  --text:   #2a2a2a;
  --mid:    #666;
  --light:  #999;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--navy);
  text-transform: uppercase;
  font-weight: 300;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav a {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--navy);
  padding: 0 20px;
  font-weight: 400;
  border-right: 1px solid rgba(0,0,0,0.1);
  line-height: 72px;
  transition: color .2s;
}
.site-nav a:first-child { border-left: 1px solid rgba(0,0,0,0.1); }
.site-nav a:hover { color: var(--accent2); }
.site-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  line-height: 1;
  border: none;
  margin-left: 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}
/* WPメニューのulリセット */
.site-nav ul { list-style: none; display: flex; align-items: center; }
.site-nav ul li a {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--navy);
  padding: 0 20px;
  font-weight: 400;
  border-right: 1px solid rgba(0,0,0,0.1);
  line-height: 72px;
  display: block;
  transition: color .2s;
}
.site-nav ul li:first-child a { border-left: 1px solid rgba(0,0,0,0.1); }
.site-nav ul li a:hover { color: var(--accent2); }
.site-nav ul li.menu-contact a {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  line-height: 1;
  border: none;
  margin-left: 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  mix-blend-mode: luminosity;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(28,43,58,0.5) 0%, rgba(28,43,58,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 80px;
  max-width: 780px;
}
.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: 4px;
}
.hero-title .en-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 300;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-line { width: 48px; height: 1px; background: var(--accent); margin-bottom: 32px; }
.hero-body {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 2.2;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  font-size: 12px; letter-spacing: 2px;
  color: var(--navy); background: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 32px; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .25s; display: inline-block;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: var(--navy); }
.btn-outline-white {
  font-size: 12px; letter-spacing: 2px;
  color: var(--white); background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  padding: 14px 32px; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .25s; display: inline-block;
}
.btn-outline-white:hover { border-color: var(--white); color: var(--white); }
.hero-scroll {
  position: absolute; bottom: 40px; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; letter-spacing: 3px;
  color: rgba(255,255,255,.5); text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, rgba(200,169,110,.8), transparent); }

/* ===== NEWS BAR ===== */
.news-bar {
  background: var(--navy);
  padding: 0 80px;
  display: flex; align-items: stretch;
  min-height: 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.news-label {
  background: var(--accent);
  display: flex; align-items: center;
  padding: 0 28px;
  font-size: 11px; letter-spacing: 3px;
  color: var(--navy); font-weight: 500;
  margin-right: 40px; flex-shrink: 0;
}
.news-list {
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 14px 0; flex: 1;
}
.news-item { display: flex; align-items: center; gap: 20px; }
.news-date { font-size: 12px; color: var(--accent); letter-spacing: 1px; flex-shrink: 0; }
.news-cat {
  font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 8px; flex-shrink: 0;
}
.news-text { font-size: 12px; color: rgba(255,255,255,.8); }
.news-more {
  margin-left: auto; align-self: center;
  font-size: 11px; letter-spacing: 2px;
  color: var(--accent); flex-shrink: 0; padding-left: 40px;
}
.news-more:hover { text-decoration: underline; }

/* ===== SECTION COMMON ===== */
.section { padding: 100px 80px; }
.sec-inner { max-width: 1000px; margin: 0 auto; }
.sec-head { margin-bottom: 64px; }
.sec-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300;
  color: var(--navy); letter-spacing: 2px;
  line-height: 1; margin-bottom: 12px; font-style: italic;
}
.sec-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; letter-spacing: 4px;
  color: var(--mid); font-weight: 300; margin-bottom: 20px;
}
.sec-rule { width: 40px; height: 1px; background: var(--accent); }
.sec-desc {
  font-size: 13px; line-height: 2.2; color: var(--mid);
  max-width: 560px; font-weight: 300; margin-top: 24px;
}

/* ===== ABOUT ===== */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main { width: 100%; height: 400px; overflow: hidden; background: #c5c0b5; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-deco {
  position: absolute; bottom: -20px; right: -20px;
  width: 200px; height: 200px;
  border: 1px solid var(--accent); z-index: -1;
}
.about-body { font-size: 13px; line-height: 2.4; color: var(--mid); margin: 24px 0 32px; }
.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 2px; color: var(--navy);
  font-weight: 400; transition: color .2s;
}
.text-link::after { content: '→'; color: var(--accent); }
.text-link:hover { color: var(--accent2); }

/* ===== SERVICES ===== */
.services-section { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.svc-item {
  background: var(--white); padding: 48px 36px;
  position: relative; overflow: hidden; transition: transform .25s;
}
.svc-item:hover { transform: translateY(-4px); }
.svc-item::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc-item:hover::after { transform: scaleX(1); }
.svc-num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: var(--bg2); line-height: 1; margin-bottom: 20px; }
.svc-title { font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 400; color: var(--navy); margin-bottom: 16px; letter-spacing: 1px; }
.svc-body { font-size: 12px; line-height: 2; color: var(--mid); }
.svc-arrow { display: block; margin-top: 24px; font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 2px; color: var(--accent); }

/* ===== WORKS ===== */
.works-section { background: var(--navy); }
.works-section .sec-en { color: var(--white); }
.works-section .sec-ja { color: rgba(255,255,255,.5); }
.works-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 3px; }
.work-card { position: relative; overflow: hidden; cursor: pointer; }
.work-card:first-child { grid-row: 1 / 3; }
.wc-img { width: 100%; height: 260px; overflow: hidden; background: #2a3a4a; transition: transform .4s; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; }
.work-card:first-child .wc-img { height: 523px; }
.work-card:hover .wc-img { transform: scale(1.04); }
.wc-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 24px 24px;
  background: linear-gradient(transparent, rgba(10,20,30,.85));
}
.wc-year { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 6px; }
.wc-name { font-size: 14px; color: var(--white); font-weight: 400; line-height: 1.5; }
.wc-tag { display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: 3px 10px; }
.works-more { margin-top: 40px; text-align: right; }
.works-more a { font-size: 12px; letter-spacing: 3px; color: var(--accent); }
.works-more a::after { content: ' →'; }
.works-more a:hover { text-decoration: underline; }

/* ===== REASON ===== */
.reason-section { background: var(--bg); }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bg2); border: 1px solid var(--bg2); }
.reason-item { background: var(--white); padding: 40px 28px; text-align: center; }
.r-num { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--accent); font-style: italic; line-height: 1; margin-bottom: 20px; }
.r-title { font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 400; color: var(--navy); margin-bottom: 14px; letter-spacing: 1px; }
.r-body { font-size: 12px; color: var(--mid); line-height: 2; font-weight: 300; }

/* ===== FLOW ===== */
.flow-section { background: var(--navy2); padding: 80px; }
.flow-section .sec-en { color: var(--white); font-size: 40px; }
.flow-section .sec-ja { color: rgba(255,255,255,.4); }
.flow-steps { display: flex; align-items: stretch; }
.flow-step { flex: 1; padding: 36px 24px; border-right: 1px solid rgba(255,255,255,.08); position: relative; }
.flow-step:last-child { border-right: none; }
.fs-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--accent); font-style: italic; line-height: 1; margin-bottom: 16px; }
.fs-title { font-family: 'Noto Serif JP', serif; font-size: 14px; font-weight: 400; color: var(--white); margin-bottom: 12px; letter-spacing: 1px; }
.fs-body { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.9; }
.fs-arrow { position: absolute; top: 36px; right: -8px; color: var(--accent); font-size: 18px; z-index: 1; }
.flow-step:last-child .fs-arrow { display: none; }

/* ===== CTA ===== */
.cta-section { background: var(--white); padding: 100px 80px; text-align: center; border-top: 1px solid rgba(0,0,0,.06); }
.cta-en { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-style: italic; font-weight: 300; color: var(--navy); margin-bottom: 8px; }
.cta-ja { font-family: 'Noto Serif JP', serif; font-size: 13px; letter-spacing: 4px; color: var(--mid); margin-bottom: 28px; font-weight: 300; }
.cta-line { width: 40px; height: 1px; background: var(--accent); margin: 0 auto 28px; }
.cta-body { font-size: 13px; color: var(--mid); line-height: 2.2; margin-bottom: 36px; font-weight: 300; }
.cta-tel { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 300; color: var(--navy); letter-spacing: 3px; margin-bottom: 8px; }
.cta-tel-note { font-size: 11px; color: var(--light); letter-spacing: 2px; margin-bottom: 36px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-navy { font-size: 12px; letter-spacing: 2.5px; color: var(--white); background: var(--navy); border: 1px solid var(--navy); padding: 16px 48px; cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: all .25s; display: inline-block; }
.btn-navy:hover { background: var(--navy2); color: var(--white); }
.btn-outline-navy { font-size: 12px; letter-spacing: 2.5px; color: var(--navy); background: transparent; border: 1px solid var(--navy); padding: 16px 48px; cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: all .25s; display: inline-block; }
.btn-outline-navy:hover { background: var(--bg); color: var(--navy); }

/* ===== FOOTER ===== */
.site-footer { background: #111820; padding: 64px 80px 32px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto 48px; }
.ft-logo { font-family: 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: 3px; color: var(--white); text-transform: uppercase; margin-bottom: 16px; }
.ft-addr { font-size: 11px; color: rgba(255,255,255,.4); line-height: 2; margin-bottom: 16px; }
.ft-tel { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--white); letter-spacing: 2px; }
.ft-col-title { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.4); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-links { list-style: none; }
.ft-links li { margin-bottom: 10px; }
.ft-links a { font-size: 12px; color: rgba(255,255,255,.5); transition: color .2s; }
.ft-links a:hover { color: var(--accent); }
.ft-copy { text-align: center; font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: 2px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06); max-width: 1000px; margin: 0 auto; }
/* フッターWPナビ */
.ft-nav ul { list-style: none; }
.ft-nav ul li { margin-bottom: 10px; }
.ft-nav ul li a { font-size: 12px; color: rgba(255,255,255,.5); transition: color .2s; }
.ft-nav ul li a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; height: 60px; }
  .site-nav ul li a { display: none; }
  .site-nav ul li.menu-contact a { display: inline-flex; margin-left: 0; }
  .section { padding: 64px 24px; }
  .flow-section { padding: 64px 24px; }
  .hero-content { padding: 0 24px 60px; }
  .hero-title { font-size: 36px; }
  .hero-title .en-large { font-size: 52px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-deco { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-row: auto; }
  .work-card:first-child .wc-img { height: 260px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { flex-direction: column; }
  .flow-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .flow-step:last-child { border-bottom: none; }
  .fs-arrow { display: none; }
  .cta-section { padding: 64px 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .site-footer { padding: 48px 24px 24px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .news-bar { padding: 0 24px; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
}
