/* ===== 株式会社ENN 基本スタイル ===== */
:root {
  --green: #3f7f47;       /* ロゴの緑(#4E8C55)を少し濃く */
  --green-dark: #24502b;
  --green-light: #eaf3eb;
  --sky: #2f7fc1;
  --sky-light: #eaf3fb;
  --ink: #252a27;
  --gray: #535957;       /* ロゴ文字のグレー */
  --muted: #5b6862;
  --line: #d9e2dc;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(18, 74, 35, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ----- 画像スロット（画像が無い間は仮枠を表示） ----- */
[data-img] {
  background-color: #dfe8e2;
  background-size: cover;
  background-position: center;
  position: relative;
}
[data-img].is-placeholder {
  background-image: repeating-linear-gradient(45deg, #dfe8e2 0 14px, #d4dfd8 14px 28px);
}
[data-img].is-placeholder::after {
  content: "画像：" attr(data-label);
  position: absolute; inset: auto 10px 10px auto;
  font-size: 12px; color: var(--green-dark);
  background: rgba(255,255,255,.85);
  padding: 2px 8px; border-radius: 6px;
}

/* ----- ヘッダー ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; color: var(--green-dark); }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav-cta { background: var(--green); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; transition: .25s; }

/* ----- ヒーロー ----- */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg.is-placeholder { background: linear-gradient(135deg, #3d7d4f, #2f7fc1); }
.hero-bg.is-placeholder::after { inset: auto 16px 16px auto; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,40,20,.78) 0%, rgba(10,40,20,.45) 55%, rgba(10,40,20,.15) 100%); }
.hero-content { position: relative; padding: 80px 0; }
.hero-kicker { letter-spacing: .25em; font-size: 13px; font-weight: 700; opacity: .9; margin-bottom: 14px; }
.hero-title {
  font-family: "Zen Old Mincho", serif; font-weight: 900;
  font-size: clamp(36px, 6.4vw, 68px); line-height: 1.3; letter-spacing: .04em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-lead { margin-top: 22px; font-size: clamp(15px, 1.8vw, 18px); max-width: 640px; opacity: .95; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: .2s; }
.btn-primary { background: #fff; color: var(--green-dark); }
.btn-primary:hover { background: var(--green-light); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ----- セクション共通 ----- */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, var(--sky-light), #f4f9f6); }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .22em; font-size: 13px; margin-bottom: 8px; }
.eyebrow-light { color: #bfe3c9; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.45; color: var(--green-dark); }

/* ----- 数字 ----- */
.stats-band { background: var(--green-dark); color: #fff; padding: 34px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stat-num { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.stat-num small { font-size: .5em; margin-left: 2px; }
.stat-label { font-size: 13px; opacity: .85; line-height: 1.6; }
.section-lead { margin-top: 10px; color: var(--muted); }

/* ----- 実績 ----- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.work-img { aspect-ratio: 16 / 10; background-color: #1d1f1e; }
.work-body { padding: 20px 22px 24px; }
.work-year { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.work h3 { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 2px 0 10px; }
.work-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.work-tags li { font-size: 12px; background: var(--green-light); color: var(--green-dark); padding: 1px 10px; border-radius: 999px; }
.work p:last-child { font-size: 14px; color: #3a4740; line-height: 1.75; }
.work strong { color: var(--green-dark); }

/* ----- 私たちについて ----- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { margin-bottom: 22px; }
.about-text p + p { margin-top: 12px; }
.about-text p { color: #34413a; }

/* ----- サービス ----- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-img { aspect-ratio: 16 / 9; }
.service-body { padding: 24px 24px 28px; position: relative; }
.service-no { position: absolute; top: -22px; right: 20px; font-size: 40px; font-weight: 900; color: var(--green); opacity: .9; text-shadow: 0 0 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff; }
.service h3 { font-size: 20px; color: var(--green-dark); margin-bottom: 8px; }
.service-what { font-size: 14px; font-weight: 700; color: var(--sky); margin-bottom: 10px; line-height: 1.6; }
.service p:last-child { font-size: 15px; color: #3a4740; }

/* ----- 強み ----- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strength { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; }
.strength-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; }
.strength-icon svg { width: 40px; height: 40px; }
.strength h3 { font-size: 18px; color: var(--green-dark); margin-bottom: 10px; }
.strength p { font-size: 15px; color: var(--muted); text-align: left; }

/* ----- 流れ ----- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow li { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: translateY(-50%) rotate(45deg); }
.flow-step { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--green); padding: 2px 12px; border-radius: 999px; margin-bottom: 12px; }
.flow h3 { font-size: 18px; color: var(--green-dark); margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--muted); }

/* ----- 会社概要 ----- */
.company-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.company-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; background: #fff; }
.company-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.company-table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.company-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.company-table th, .company-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 26%; color: var(--green-dark); font-weight: 700; background: var(--green-light); }
.company-table td.todo { color: #b4441b; }

/* ----- お問い合わせ ----- */
.contact { background: linear-gradient(135deg, var(--green-dark), var(--green) 60%, #2a7e8f); color: #fff; padding: 90px 0; text-align: center; }
.contact h2 { color: #fff; margin-bottom: 10px; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 360px); justify-content: center; gap: 20px; margin-top: 36px; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-label { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .1em; }
.contact-value { font-size: 24px; font-weight: 900; color: var(--green-dark); word-break: break-all; }
.contact-note { font-size: 13px; color: var(--muted); }

/* ----- フッター ----- */
.site-footer { background: #0e2f18; color: #cfe0d4; padding: 26px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 4px; }
.copy { opacity: .7; }

/* ----- フェードイン ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .services, .works { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
}

/* ===== スマホ ===== */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav a { width: 100%; padding: 15px 20px; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; text-align: center; }
  .nav.is-open { max-height: 420px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .services, .strengths, .flow { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .flow li::after { display: none; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 10px 14px; border-bottom: 0; }
  .company-table td { padding: 12px 14px 18px; }
  .contact-cards { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}
.mail-link { color: var(--green); text-decoration: underline; word-break: break-all; }
