/*
 * 金山商事株式会社 サイトリニューアル
 * Design System: Environmental Green + Trust Blue + Gold Accent
 */

:root {
  --green-deep: #1B4332;      /* 深緑 - 信頼・環境 */
  --green-mid: #2D6A4F;
  --green-light: #52B788;
  --green-pale: #D8F3DC;
  --blue-deep: #1D3557;       /* 深青 - クリーン・企業 */
  --blue-mid: #457B9D;
  --blue-light: #A8DADC;
  --gold: #B08D57;            /* ゴールド - 品格 */
  --gold-light: #D4B87A;
  --crimson: #A63446;         /* アクセント */

  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #757575;
  --rule: #e2e2e2;
  --rule-soft: #f0f0f0;

  --paper-white: #ffffff;
  --paper-off: #F8F9FA;
  --shadow: rgba(0,0,0,0.08);
  --shadow-strong: rgba(0,0,0,0.15);

  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --display: 'Barlow', 'Segoe UI', sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-white);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-deep); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-light); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.5; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TOP-BAR & HEADER
   ============================================================ */
.top-bar {
  background: var(--green-deep);
  color: rgba(255,255,255,0.95);
  font-size: 12.5px;
  padding: 8px 0;
}
.top-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.top-bar-inner a { color: var(--gold-light); font-weight: 500; }
.top-bar-inner a:hover { color: #fff; }
.top-bar-links { display: flex; gap: 20px; }

.site-header {
  background: var(--paper-white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px var(--shadow);
}
.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  transition: opacity .15s;
}
.brand-logo-img:hover { opacity: 0.8; }
.brand-text .brand-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--green-deep);
  font-weight: 500;
  line-height: 1.2;
}
.brand-text .brand-en {
  font-family: var(--display);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .15em;
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 18px;
  color: var(--green-deep);
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s;
  padding: 4px 0;
}
.nav a:hover { color: var(--green-deep); }
.nav a.nav-cta {
  background: var(--crimson);
  color: #fff;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
}
.nav a.nav-cta:hover { background: #7a2532; color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 8px 20px var(--shadow-strong);
    border-top: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .site-header-inner { position: relative; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 80px 24px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/hero.jpg') center/cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero-kicker {
  font-family: var(--display);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: .3em;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.4;
}
.hero h1 .accent { color: var(--gold-light); }
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.btn-primary:hover { background: #7a2532; border-color: #7a2532; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-green { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn-green:hover { background: var(--green-mid); color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-off); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--display);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .3em;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-size: 30px;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: var(--ink-mute);
  padding: 14px 0;
  margin: 0;
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--green-deep); }

/* ============================================================
   MAIN SERVICE CARDS (3本柱)
   ============================================================ */
.service-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-3card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.service-3card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-strong);
  color: var(--ink);
}
.service-3card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-3card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
}
.service-3card-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 600;
  z-index: 2;
}
.service-3card-body { padding: 28px 24px; flex: 1; }
.service-3card-body h3 {
  font-size: 20px;
  color: var(--green-deep);
  margin-bottom: 12px;
  font-family: var(--serif);
}
.service-3card-body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 16px;
}
.service-3card-cta {
  color: var(--crimson);
  font-weight: 600;
  font-size: 13px;
}

/* ============================================================
   FEATURES (強み)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--green-deep);
  transition: all .25s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
  border-top-color: var(--gold);
}
.feature-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 16px;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ============================================================
   CTA-BAND (電話CTAバンド)
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--crimson) 0%, #7a2532 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-band .cta-inner { max-width: 900px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 16px; }
.cta-band p { font-size: 14.5px; color: rgba(255,255,255,0.95); margin-bottom: 32px; line-height: 1.9; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-tel {
  background: #fff;
  color: var(--crimson);
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cta-tel:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); color: var(--crimson); }
.cta-tel-icon { font-size: 30px; }
.cta-tel-num { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.cta-tel-hint { font-size: 11px; color: var(--ink-mute); }
.cta-form-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all .2s;
  font-weight: 600;
}
.cta-form-btn:hover { background: #fff; color: var(--crimson); transform: translateY(-2px); }

/* ============================================================
   AREA MAP
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.area-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: center;
  transition: all .2s;
}
.area-card:hover { border-color: var(--green-deep); transform: translateY(-2px); }
.area-card .area-pref {
  font-family: var(--serif);
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.area-card .area-detail { color: var(--ink-soft); font-size: 13px; }
.area-card .area-icon { font-size: 32px; margin-bottom: 8px; }

/* ============================================================
   PERMIT TABLE
   ============================================================ */
.permit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}
.permit-table thead { background: var(--green-deep); color: #fff; }
.permit-table th, .permit-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.permit-table thead th { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.permit-table tbody tr:hover { background: var(--paper-off); }
.permit-table tbody tr:last-child td { border-bottom: none; }
.permit-num { font-family: var(--display); color: var(--green-deep); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 880px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] {
  box-shadow: 0 4px 16px var(--shadow);
  border-color: var(--green-deep);
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--green-deep);
  font-size: 14.5px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  transition: background .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--paper-off); }
.faq-q::after {
  content: '+';
  margin-left: auto;
  font-size: 22px;
  color: var(--crimson);
  transition: transform .2s;
  line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}
.faq-a {
  padding: 4px 22px 22px 60px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  position: relative;
}
.faq-a-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: #fff;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  position: absolute;
  left: 22px;
  top: 2px;
}

/* ============================================================
   COMPANY INFO TABLE
   ============================================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.info-table th, .info-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: var(--paper-off);
  color: var(--green-deep);
  width: 200px;
  font-weight: 500;
  font-family: var(--serif);
  font-size: 14px;
}
.info-table td { color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   TIMELINE (沿革)
   ============================================================ */
.timeline {
  max-width: 780px;
  margin: 40px auto 0;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-deep);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--green-deep);
}
.timeline-date {
  font-family: var(--display);
  color: var(--crimson);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.timeline-content {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-panel {
  max-width: 720px;
  margin: 40px auto 0;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group .required { color: var(--crimson); font-size: 11px; margin-left: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-deep);
}

/* ============================================================
   SITUATIONS (シチュエーション)
   ============================================================ */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.situation-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .2s;
}
.situation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--shadow);
  border-left-color: var(--gold);
}
.situation-icon { font-size: 36px; margin-bottom: 12px; }
.situation-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.situation-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 12px;
}
.situation-card .example {
  padding: 12px 14px;
  background: var(--paper-off);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.situation-card .example strong { color: var(--green-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.9);
  padding: 56px 0 20px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-logo { max-height: 50px; width: auto; filter: brightness(1.5); margin-bottom: 16px; }
.footer-info { font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,0.75); }
.site-footer h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: color .15s;
}
.footer-list a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .service-3col { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section-title { font-size: 22px; }
  .form-panel { padding: 24px 20px; }
  .info-table th { width: auto; display: block; background: var(--paper-off); }
  .info-table td { display: block; padding-top: 8px; }
  .info-table tr { display: block; margin-bottom: 12px; }
  .top-bar-inner { flex-direction: column; gap: 4px; font-size: 11.5px; }
  .brand-text .brand-name { font-size: 15px; }
  .brand-text .brand-en { display: none; }
  .cta-tel-num { font-size: 20px; }
  .permit-table th, .permit-table td { padding: 10px 12px; font-size: 12.5px; }
}
