/* ============================================
   武商事 公開サイト 共通スタイル
   設計: 横浜アルコ参考 (緑系・余白多め・モダン)
   ============================================ */

:root {
  --color-primary: #1d6b4f;
  --color-primary-hover: #155039;
  --color-accent: #d32f2f;
  --color-accent-hover: #b71c1c;

  --color-bg: #ffffff;
  --color-bg-soft: #f5f7f6;
  --color-bg-dark: #1f2937;
  --color-bg-darker: #111827;

  --color-text: #1f2937;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --max-w: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

  --font-jp: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }


/* ============================================
   サイトヘッダー
   ============================================ */
.site-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-header__brand { margin: 0; font-size: 20px; font-weight: 700; }
.site-header__brand a { color: var(--color-text); text-decoration: none; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; align-items: center;
}
.site-nav__item a {
  display: block; padding: 8px 14px;
  color: var(--color-text); font-size: 14px; font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.site-nav__item a:hover {
  color: var(--color-primary); background: var(--color-bg-soft); text-decoration: none;
}
.site-nav__item.is-active a { color: var(--color-primary); background: var(--color-bg-soft); }
.site-nav__cta a {
  display: block; padding: 8px 18px;
  background: var(--color-accent); color: white !important;
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  margin-left: 8px; transition: background 0.15s;
}
.site-nav__cta a:hover { background: var(--color-accent-hover); text-decoration: none; }

/* ハンバーガーボタン（デスクトップでは非表示） */
.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
}
.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px auto;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* オーバーレイ（モバイルでメニューを開いた時に背景を暗くする） */
.site-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 140;
}
.site-nav-overlay.is-open { opacity: 1; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { z-index: 200; }


/* ============================================
   メイン
   ============================================ */
.site-main { min-height: 60vh; }


/* ============================================
   ヒーロー (トップページ)
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1d6b4f 0%, #2d8268 100%);
  color: white;
  padding: 96px 24px 112px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner { max-width: 900px; margin: 0 auto; position: relative; }
.hero__copy {
  font-size: 40px; font-weight: 700; margin: 0 0 20px; line-height: 1.4;
  letter-spacing: 0.02em;
}
.hero__sub { font-size: 18px; opacity: 0.95; margin: 0 0 40px; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: white;
  padding: 18px 48px; border-radius: 999px;
  font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.hero__cta:hover {
  background: var(--color-accent-hover); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); text-decoration: none;
}


/* ============================================
   サブヒーロー (下層ページ共通)
   ============================================ */
.sub-hero {
  background: linear-gradient(135deg, #1d6b4f 0%, #2d8268 100%);
  color: white;
  padding: 64px 24px;
  text-align: center;
}
.sub-hero__title {
  font-size: 36px; font-weight: 700; margin: 0;
  letter-spacing: 0.04em;
}
.sub-hero__lead {
  font-size: 14px; opacity: 0.9; margin: 12px 0 0;
  letter-spacing: 0.1em; text-transform: uppercase;
}


/* ============================================
   セクション共通
   ============================================ */
.section { padding: 80px 24px; }
.section--soft { background: var(--color-bg-soft); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__title {
  font-size: 32px; text-align: center; margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.section__title::after {
  content: ""; display: block;
  width: 60px; height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0;
}
.section__lead {
  text-align: center; margin: 0 0 56px;
  color: var(--color-text-soft); font-size: 15px;
}


/* ============================================
   コンテンツセクション (下層ページ本文)
   ============================================ */
.content-section { padding: 64px 24px; }
.content-section__inner { max-width: 900px; margin: 0 auto; }
.content-section__title {
  font-size: 24px; margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-primary);
}
.content-section__subtitle {
  font-size: 18px; font-weight: 700; margin: 32px 0 12px;
  color: var(--color-primary);
}


/* ============================================
   お知らせプレビュー (トップ)
   ============================================ */
.news-preview {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.news-preview__item {
  display: flex; gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  text-decoration: none; color: var(--color-text);
  transition: background 0.15s;
}
.news-preview__item:last-child { border-bottom: none; }
.news-preview__item:hover { background: var(--color-bg-soft); text-decoration: none; }
.news-preview__date {
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; color: var(--color-text-muted); min-width: 110px;
}
.news-preview__title { flex: 1; font-weight: 500; font-size: 15px; }
.news-preview__more { text-align: center; margin-top: 32px; }
.news-preview__more a {
  display: inline-block; padding: 10px 24px;
  border: 1px solid var(--color-primary); border-radius: var(--radius);
  color: var(--color-primary); font-weight: 600; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.news-preview__more a:hover {
  background: var(--color-primary); color: white; text-decoration: none;
}


/* ============================================
   お知らせ一覧 (news/index.php)
   ============================================ */
.news-list { display: grid; gap: 12px; }
.news-list__item {
  display: flex; gap: 20px;
  padding: 20px 28px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--color-text);
  align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.news-list__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.news-list__date {
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--color-text-muted);
  font-size: 14px; min-width: 110px;
}
.news-list__title { flex: 1; font-weight: 500; }
.news-list--empty {
  background: white; border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 64px 24px; text-align: center;
  color: var(--color-text-muted);
}


/* ============================================
   お知らせ詳細 (news/article.php)
   ============================================ */
.news-article {
  background: white;
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.news-article__date {
  color: var(--color-text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; margin: 0 0 12px;
}
.news-article__title {
  font-size: 28px; margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-primary);
  line-height: 1.5;
}
.news-article__body {
  font-size: 16px; line-height: 2;
  white-space: pre-wrap;
}
.news-article__back {
  text-align: center; margin-top: 48px;
}
.news-article__back a {
  display: inline-block; padding: 10px 24px;
  border: 1px solid var(--color-primary); border-radius: var(--radius);
  color: var(--color-primary); font-weight: 500;
}
.news-article__back a:hover {
  background: var(--color-primary); color: white; text-decoration: none;
}


/* ============================================
   取扱品目グリッド (トップ)
   ============================================ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
  color: var(--color-text); text-decoration: none;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  text-decoration: none;
}
.product-card__image {
  aspect-ratio: 4/3; background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 13px;
}
.product-card__body {
  padding: 16px 20px; text-align: center;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.product-card__name { font-size: 18px; font-weight: 700; margin: 0; }


/* ============================================
   買取価格ページ (price.php)
   ============================================ */
.price-disclaimer {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px 24px;
  margin-bottom: 32px;
  font-size: 14px; color: #78350f;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.price-categories-nav {
  background: white;
  padding: 16px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.price-categories-nav__title {
  font-size: 13px; font-weight: 700; color: var(--color-text-muted);
  margin: 0 0 12px; letter-spacing: 0.05em;
}
.price-categories-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.price-categories-nav a {
  display: inline-block; padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px; color: var(--color-text);
  background: var(--color-bg-soft);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.price-categories-nav a:hover {
  background: var(--color-primary); color: white;
  border-color: var(--color-primary); text-decoration: none;
}

.price-category { margin-bottom: 56px; scroll-margin-top: 88px; }
.price-category__title {
  font-size: 22px; margin: 0 0 24px;
  padding: 14px 24px;
  background: var(--color-primary); color: white;
  border-radius: var(--radius);
}
.price-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.price-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-item__image {
  aspect-ratio: 4/3;
  background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.price-item__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.price-item__image-placeholder { color: var(--color-text-muted); font-size: 13px; }
.price-item__body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; }
.price-item__name { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.price-item__price {
  font-size: 22px; font-weight: 700;
  color: var(--color-accent); margin: 0 0 8px;
}
.price-item__note {
  font-size: 12px; color: var(--color-text-muted);
  margin: 0; line-height: 1.6;
}
.price-empty {
  background: white; border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 64px 24px; text-align: center;
  color: var(--color-text-muted);
}


/* ============================================
   会社情報テーブル (company.php)
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th,
.info-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px; vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: var(--color-bg-soft);
  font-weight: 600;
  width: 30%;
  color: var(--color-text);
}


/* ============================================
   買取フロー (flow.php)
   ============================================ */
.flow-steps { display: grid; gap: 16px; }
.flow-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; padding: 24px 28px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  align-items: start;
  box-shadow: var(--shadow-sm);
}
.flow-step__num {
  width: 64px; height: 64px;
  background: var(--color-primary);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.flow-step__body { padding-top: 8px; }
.flow-step__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.flow-step__desc {
  color: var(--color-text-soft); font-size: 14px; line-height: 1.7; margin: 0;
}


/* ============================================
   アクセス (access.php)
   ============================================ */
.access-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.access-info { font-size: 15px; }
.access-info dl { margin: 0; }
.access-info dt {
  font-weight: 700; color: var(--color-primary);
  font-size: 13px; letter-spacing: 0.05em;
  margin: 24px 0 4px;
}
.access-info dt:first-child { margin-top: 0; }
.access-info dd { margin: 0 0 8px; line-height: 1.7; }
.access-map {
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
}
.access-map iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ============================================
   強みセクション
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.feature { text-align: center; padding: 0 16px; }
.feature__icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: var(--color-primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
}
.feature__title { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--color-text); }
.feature__desc { color: var(--color-text-soft); font-size: 14px; line-height: 1.7; margin: 0; }


/* ============================================
   CTAバナー
   ============================================ */
.cta-banner {
  background: var(--color-bg-dark); color: white;
  padding: 64px 24px; text-align: center;
}
.cta-banner__title { font-size: 28px; margin: 0 0 8px; }
.cta-banner__sub { font-size: 16px; opacity: 0.85; margin: 0 0 32px; }
.cta-banner__buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.cta-banner .btn {
  padding: 16px 36px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s; display: inline-block;
}
.cta-banner .btn-primary { background: var(--color-accent); color: white; }
.cta-banner .btn-primary:hover { background: var(--color-accent-hover); text-decoration: none; }
.cta-banner .btn-secondary { background: white; color: var(--color-text); }
.cta-banner .btn-secondary:hover { background: var(--color-bg-soft); text-decoration: none; }


/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--color-bg-darker); color: white;
  padding: 56px 24px 24px;
}
.site-footer__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 48px; margin-bottom: 40px;
}
.site-footer__brand .site-footer__name { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.site-footer__brand p { margin: 0 0 4px; color: #cbd5e1; font-size: 14px; }
.site-footer__nav ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.site-footer__nav a {
  color: #cbd5e1; font-size: 14px;
  display: block; padding: 4px 0;
}
.site-footer__nav a:hover { color: white; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center; font-size: 13px;
  color: #94a3b8; margin: 0;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
}


/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 900px) {
  .site-header { padding: 12px 16px; }

  /* ヘッダは横並びを維持（ロゴ左 / ハンバーガー右） */
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* ハンバーガー表示 */
  .site-header__toggle { display: block; }

  /* ナビを右からスライドインするドロワーに */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    padding: 72px 0 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 150;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { transform: translateX(0); }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
  }
  .site-nav__item {
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav__item a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 0;
  }
  .site-nav__item.is-active a {
    background: var(--color-bg-soft);
    color: var(--color-primary);
  }
  .site-nav__cta {
    padding: 20px 24px 0;
    border-bottom: none;
  }
  .site-nav__cta a {
    margin: 0;
    padding: 14px 20px;
    text-align: center;
    border-radius: var(--radius);
  }

  .hero { padding: 64px 16px 80px; }
  .hero__copy { font-size: 28px; }
  .hero__sub { font-size: 16px; }

  .sub-hero { padding: 48px 16px; }
  .sub-hero__title { font-size: 28px; }

  .section { padding: 56px 24px; }
  .section__title { font-size: 26px; }
  .content-section { padding: 56px 24px; }

  .access-grid { grid-template-columns: 1fr; gap: 24px; }

  .news-article { padding: 32px 24px; }
  .news-article__title { font-size: 22px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero__copy { font-size: 24px; line-height: 1.5; }
  .hero__cta { padding: 14px 28px; font-size: 16px; }

  .sub-hero__title { font-size: 22px; }

  .news-preview__item,
  .news-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
  }
  .news-preview__date, .news-list__date { min-width: auto; }

  .section { padding: 48px 16px; }
  .section__title { font-size: 22px; }

  .cta-banner__title { font-size: 22px; }
  .cta-banner .btn { padding: 14px 24px; font-size: 15px; }

  .flow-step { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .flow-step__num { width: 48px; height: 48px; font-size: 20px; }

  .info-table th, .info-table td { padding: 12px 16px; font-size: 14px; }
  .info-table th { width: 35%; }
}
/* ============================================
   公開サイト 追加CSS: お問い合わせフォーム
   既存の assets/style.css の末尾に追加
   ============================================ */


/* ============================================
   フォーム共通スタイル
   ============================================ */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 15px;
}

.form-required {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 12px;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.form-optional {
  display: inline-block;
  background: var(--color-text-muted);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 12px;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  background: white;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d6b4f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.12);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.form-help {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 6px 0 0;
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 8px;
  border-left: 3px solid var(--color-accent);
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.form-errors__title {
  font-weight: 700;
  color: #b91c1c;
  margin: 0 0 12px;
}
.form-errors ul {
  margin: 0;
  padding-left: 20px;
  color: #991b1b;
  font-size: 14px;
}
.form-errors li {
  margin-bottom: 4px;
}


/* ============================================
   プライバシーポリシー同意
   ============================================ */

.privacy-box {
  background: var(--color-bg-soft);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.privacy-box p {
  margin: 0 0 8px;
}
.privacy-box p:last-child {
  margin-bottom: 0;
}
.privacy-box a {
  font-weight: 600;
  text-decoration: underline;
}

.form-consent {
  background: white;
  padding: 16px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.form-consent label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
}
.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}


/* ============================================
   送信ボタン
   ============================================ */

.form-submit {
  text-align: center;
  margin-top: 48px;
}

.form-btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.form-btn:hover {
  text-decoration: none;
}

.form-btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}
.form-btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
  color: white;
}

.form-btn-back {
  background: white;
  color: var(--color-text);
  border-color: var(--color-border);
}
.form-btn-back:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}


/* ============================================
   確認画面
   ============================================ */

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.confirm-table th,
.confirm-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  vertical-align: top;
}
.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
  border-bottom: none;
}
.confirm-table th {
  background: var(--color-bg-soft);
  font-weight: 600;
  width: 30%;
  color: var(--color-text);
}
.confirm-table__body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

.form-actions-double {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.form-actions-double .form-btn {
  min-width: 220px;
}


/* ============================================
   送信完了画面 / エラー画面
   ============================================ */

.finish-message {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.finish-message__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
}

.finish-message__icon--error {
  background: var(--color-accent);
}

.finish-message__title {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--color-text);
}

.finish-message p {
  color: var(--color-text-soft);
  margin: 0 0 8px;
  line-height: 1.8;
}


/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 600px) {
  .form-row {
    margin-bottom: 24px;
  }
  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* iOS のズーム防止のため 16px 維持 */
  }
  .form-btn {
    padding: 14px 32px;
    font-size: 15px;
  }
  .form-actions-double {
    flex-direction: column;
  }
  .form-actions-double .form-btn {
    width: 100%;
    min-width: auto;
  }
  .confirm-table th,
  .confirm-table td {
    padding: 14px 16px;
    font-size: 14px;
  }
  .confirm-table th {
    width: 35%;
  }
  .finish-message {
    padding: 32px 24px;
  }
  .finish-message__title {
    font-size: 20px;
  }
}


/* ============================================
   ヒーロー画像背景 (index.php)
   ============================================ */

.hero--with-image {
  background:
    linear-gradient(135deg, rgba(29, 107, 79, 0.55) 0%, rgba(20, 80, 60, 0.65) 100%),
    url('images/hero-recycle.jpg') center/cover no-repeat;
  background-color: #1d6b4f;
}

/* WebP対応ブラウザ */
@supports (background-image: url('images/hero-recycle.webp')) {
  .hero--with-image {
    background:
      linear-gradient(135deg, rgba(29, 107, 79, 0.55) 0%, rgba(20, 80, 60, 0.65) 100%),
      url('images/hero-recycle.webp') center/cover no-repeat;
  }
}

.hero__actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  padding: 8px 16px;
  border-left: 2px solid rgba(255,255,255,0.3);
  line-height: 1.3;
}
.hero__tel:hover {
  text-decoration: none;
  color: white;
}
.hero__tel-label {
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 0.1em;
}
.hero__tel-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.site-footer__hours {
  font-size: 13px !important;
  margin-top: 8px !important;
  opacity: 0.9;
}


/* ============================================
   会社グリッド (company.php)
   ============================================ */

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.company-grid__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.company-grid__image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================
   事業内容リスト (company.php)
   ============================================ */

.content-section--soft {
  background: var(--color-bg-soft);
}

.business-list {
  display: grid;
  gap: 32px;
}

.business-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-items: stretch;
}
.business-item:nth-child(even) {
  grid-template-columns: 1fr 320px;
}
.business-item:nth-child(even) .business-item__image {
  order: 2;
}
.business-item:nth-child(even) .business-item__body {
  order: 1;
}

.business-item__image {
  background: var(--color-bg-soft);
}
.business-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-item__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.business-item__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-primary);
}
.business-item__body p {
  color: var(--color-text-soft);
  line-height: 1.9;
}


/* ============================================
   代表挨拶 (company.php)
   ============================================ */.ceo-message {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
}
.ceo-message p {
  margin: 0 0 1.2em;
}
.ceo-message__sign {
  text-align: right;
  margin-top: 32px !important;
  font-weight: 600;
  color: var(--color-text);
}


/* ============================================
   事業紹介セクション (index.php、貿易事業)
   ============================================ */

.business-feature {
  display: block;
}
.business-feature__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
}
.business-feature__image {
  overflow: hidden;
}
.business-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.business-feature__body {
  padding: 64px 56px;
  background: var(--color-bg-dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.business-feature__label {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.business-feature__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.5;
}
.business-feature__desc {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
  margin: 0 0 28px;
}
.business-feature__link {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 28px;
  border: 1px solid white;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.business-feature__link:hover {
  background: white;
  color: var(--color-bg-dark);
  text-decoration: none;
}


/* ============================================
   レスポンシブ追記
   ============================================ */

@media (max-width: 900px) {
  .hero__actions {
    flex-direction: column;
    gap: 16px;
  }
  .hero__tel {
    border-left: none;
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 16px;
    padding-left: 0;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .business-item,
  .business-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .business-item:nth-child(even) .business-item__image,
  .business-item:nth-child(even) .business-item__body {
    order: unset;
  }
  .business-item__image {
    aspect-ratio: 16/9;
  }

  .business-feature__inner {
    grid-template-columns: 1fr;
  }
  .business-feature__image {
    aspect-ratio: 16/9;
  }
  .business-feature__body {
    padding: 40px 24px;
  }
  .business-feature__title {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .hero__tel-num {
    font-size: 20px;
  }
  .business-item__body {
    padding: 24px 20px;
  }
  .business-item__title {
    font-size: 18px;
  }
}


/* ============================================
   トップヒーロー: 自転車画像 (hero--bike)
   ============================================ */

.hero--bike {
  background:
    linear-gradient(135deg, rgba(20, 80, 60, 0.55) 0%, rgba(15, 60, 45, 0.65) 100%),
    url('images/hero-trade.jpg') center/cover no-repeat;
  background-color: #1d6b4f;
}

@supports (background-image: url('images/hero-trade.webp')) {
  .hero--bike {
    background:
      linear-gradient(135deg, rgba(20, 80, 60, 0.55) 0%, rgba(15, 60, 45, 0.65) 100%),
      url('images/hero-trade.webp') center/cover no-repeat;
  }
}


/* ============================================
   取扱品目 3カード版 (products--big)
   ============================================ */

.products--big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.products--big .product-card {
  position: relative;
  overflow: hidden;
}

.products--big .product-card__image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.products--big .product-card__image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.products--big .product-card__body {
  padding: 20px 24px;
  position: relative;
}

.products--big .product-card__name {
  font-size: 22px;
  font-weight: 700;
}

/* === 金属カード === */
.product-card--metal .product-card__image {
  background: linear-gradient(135deg, rgba(30,30,30,0.2), rgba(30,30,30,0.5)),
              url('images/hero-recycle.jpg') center/cover no-repeat;
}
@supports (background-image: url('images/hero-recycle.webp')) {
  .product-card--metal .product-card__image {
    background: linear-gradient(135deg, rgba(30,30,30,0.2), rgba(30,30,30,0.5)),
                url('images/hero-recycle.webp') center/cover no-repeat;
  }
}

/* === 自転車カード === */
.product-card--bike .product-card__image {
  background: linear-gradient(135deg, rgba(29, 107, 79, 0.15), rgba(29, 107, 79, 0.45)),
              url('images/hero-trade.jpg') center/cover no-repeat;
}
@supports (background-image: url('images/hero-trade.webp')) {
  .product-card--bike .product-card__image {
    background: linear-gradient(135deg, rgba(29, 107, 79, 0.15), rgba(29, 107, 79, 0.45)),
                url('images/hero-trade.webp') center/cover no-repeat;
  }
}

/* === その他カード === */
.product-card--other .product-card__image {
  background: linear-gradient(135deg, #2d2d2d, #1f1f1f);
}


/* ============================================
   レスポンシブ (3カード版)
   ============================================ */

@media (max-width: 900px) {
  .products--big {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .products--big .product-card__name {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .products--big {
    grid-template-columns: 1fr;
  }
  .products--big .product-card__image {
    aspect-ratio: 16/9;
  }
}
