/* ===== 変数 ===== */
:root {
  --green: #2d4a3e;
  --green-mid: #3d6b58;
  --green-light: #e8f0ec;
  --gold: #b8965a;
  --gold-light: #f0e6d4;
  --cream: #faf8f4;
  --cream-mid: #f0ebe1;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --white: #fff;
  --border: #ddd8cf;
  --header-h: 68px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(45,74,62,0.10);
  --ease: 0.3s ease;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  line-height: 1.5;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== ヘッダー ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,248,244,0.96);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--green);
}

.logo-star {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
}

.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
}
.logo-text small { font-size: 11px; opacity: 0.75; font-family: 'Noto Sans JP', sans-serif; }

/* ===== ナビ ===== */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
  letter-spacing: 0.03em;
}
.main-nav a:hover { color: var(--green); background: var(--green-light); }

.main-nav .nav-contact {
  background: var(--green);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
}
.main-nav .nav-contact:hover { background: var(--green-mid); color: var(--white); }

/* ===== ハンバーガー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; height: 1.5px;
  background: var(--green);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* CSS のみで木々・自然の雰囲気を表現 */
.hero-forest {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 110%, #1a3328 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 110%, #1e3d30 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 110%, #162b22 0%, transparent 50%),
    linear-gradient(175deg, #1a2e25 0%, #2d4a3e 40%, #3a5e4e 70%, #2a4438 100%);
}

/* 星のような光の点 */
.hero-forest::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 18%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 5%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 30%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 10%, rgba(184,150,90,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 8%, rgba(184,150,90,0.5) 0%, transparent 100%);
}

/* 霧・靄の表現 */
.hero-forest::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26,46,37,0.8) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 700px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-content h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: #9d7d47; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-mid); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  text-align: center;
  color: var(--green);
  margin-bottom: 56px;
  letter-spacing: 0.08em;
}

/* ===== コンセプト ===== */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.concept-text { }
.concept-text .eyebrow { margin-bottom: 16px; }
.concept-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--green);
  margin-bottom: 28px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.concept-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2.1;
}

.concept-deco {
  display: flex;
  justify-content: center;
  align-items: center;
}

.deco-frame {
  width: 280px;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--cream-mid);
}
.deco-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 1px;
}
.deco-inner {
  width: 160px;
  height: 160px;
  color: var(--green);
}
.deco-inner svg { width: 100%; height: 100%; }

/* スクロールイン */
.service-card, .concept-text, .concept-deco, .news-list li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.in-view,
.concept-text.in-view,
.concept-deco.in-view,
.news-list li.in-view { opacity: 1; transform: translateY(0); }

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.concept-deco { transition-delay: 0.15s; }
.news-list li:nth-child(2) { transition-delay: 0.1s; }

/* ===== サービス ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--green);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  text-align: left;
}

/* ===== ニュース ===== */
.news-list {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.news-list li {
  display: flex;
  gap: 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.news-list time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-family: 'Noto Serif JP', serif;
}
.news-list span { font-size: 14px; }

/* ===== 取引実績エリア ===== */
.areas-lead {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -36px;
  margin-bottom: 56px;
  letter-spacing: 0.05em;
}

.areas-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.area-item {
  padding: 52px 24px 44px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--cream);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--ease);
}
.area-item:last-child { border-right: none; }
.area-item:hover { background: var(--green-light); }
.area-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.area-item:hover::after { width: 48px; }
.area-item.in-view { opacity: 1; transform: translateY(0); }
.area-item:nth-child(2) { transition-delay: 0.1s; }
.area-item:nth-child(3) { transition-delay: 0.2s; }
.area-item:nth-child(4) { transition-delay: 0.3s; }

.area-pin {
  width: 22px; height: 22px;
  color: var(--gold);
  margin: 0 auto 20px;
}
.area-pin svg { width: 100%; height: 100%; }

.area-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.area-other .area-name {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.06em;
}

.area-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ===== コンセプト写真 ===== */
.concept-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(45,74,62,0.18);
}
.concept-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 46, 37, 0.12) 0%,
    transparent 50%
  );
  pointer-events: none;
}
.concept-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.9) saturate(0.85);
}

/* ===== 会社案内 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.9;
}
.company-table th {
  width: 110px;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
}
.company-table small { font-size: 12px; color: var(--text-muted); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; }

/* ===== お問い合わせ ===== */
.contact-lead {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-wrap iframe { display: block; }

/* ===== フッター ===== */
#site-footer {
  background: var(--green);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}
.footer-logo .logo-star { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.footer-logo .logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 28px;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
  letter-spacing: 0.05em;
}
.footer-nav a:hover { color: var(--white); }

.visit-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.visit-count {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  min-width: 56px;
  text-align: left;
}

.copyright { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; }

/* ===== ページトップ ===== */
.pagetop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 42px; height: 42px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(45,74,62,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 99;
}
.pagetop.visible { opacity: 1; pointer-events: auto; }
.pagetop:hover { transform: translateY(-3px); }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-showcase { grid-template-columns: repeat(2, 1fr); }
  .area-item { border-bottom: 1px solid var(--border); }
  .area-item:nth-child(2) { border-right: none; }
  .area-item:nth-child(3) { border-bottom: none; }
  .area-item:nth-child(4) { border-right: none; border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; align-items: start; }

  .concept-grid { grid-template-columns: 1fr; gap: 40px; }
  .concept-deco { display: flex; }
  .concept-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  :root { --header-h: 58px; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 20px;
    transform: translateY(-120%);
    transition: transform var(--ease);
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 24px; border-radius: 0; font-size: 15px; }
  .main-nav .nav-contact { margin: 8px 24px 0; border-radius: var(--radius); text-align: center; }

  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .section-title { margin-bottom: 36px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .service-card { padding: 24px 16px 20px; }

  .news-list li { flex-direction: column; gap: 4px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }

  .pagetop { bottom: 20px; right: 20px; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
}
