/* 基本設定 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --lime: #C8F135; --navy: #0E1A2B; --coral: #FF5F4B;
  --text: #0E1A2B; --muted: #4A5568; --border: rgba(14,26,43,0.12);
  --ff: 'Zen Kaku Gothic New', sans-serif; --mono: 'DM Mono', monospace;
}
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; /* ←これを追加（ヘッダーの高さ＋余白分） */
}

body { font-family: var(--ff); background: #F8FEF2; color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ナビゲーション */
nav { position: sticky; top: 0; z-index: 100; background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 60px; }
.nav-logo { font-family: var(--mono); font-size: 1.1rem; font-weight: 500; color: var(--lime); text-decoration: none; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.84rem; transition: color .2s; }
.nav-links a:hover { color: var(--lime); }
.nav-cta { background: var(--lime); color: var(--navy); border: none; border-radius: 30px; padding: 8px 20px; font-size: 0.84rem; font-weight: 700; cursor: pointer; font-family: var(--ff); text-decoration: none; transition: opacity .15s, transform .15s; }
.nav-cta:hover { opacity: .85; transform: scale(1.03); }

/* ヒーローセクション */
.hero { background: var(--navy); padding: 80px 2rem 60px; text-align: center; position: relative; overflow: hidden; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,241,53,0.12); border: 1px solid rgba(200,241,53,0.3); color: var(--lime); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; padding: 5px 16px; border-radius: 20px; margin-bottom: 1.5rem; font-family: var(--mono); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 1.25rem; }
.hero-sub { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 650px; margin: 0 auto; line-height: 1.8; }

/* コンテンツ幅・見出し */
.sw { padding: 80px 2rem; max-width: 920px; margin: 0 auto; }
.slabel { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.15em; color: var(--coral); font-weight: 500; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; line-height: 1.3; margin-bottom: 1.5rem; }

/* 戻るボタン */
.back-link-wrapper { text-align: center; margin: 40px 0; }
.back-link { display: inline-block; background: #fff; border: 2px solid var(--navy); color: var(--navy); padding: 12px 30px; border-radius: 30px; font-weight: 700; text-decoration: none; transition: all 0.2s; font-size: 0.95rem; }
.back-link:hover { background: var(--navy); color: #fff; }

/* フォームセクション */
.fsec { background: #EAF4E0; padding: 80px 2rem; color: var(--text); border-top: 1px solid var(--border); }
.fin { max-width: 760px; margin: 0 auto; background: #fff; padding: 3rem 2.5rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.fin-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.5rem; text-align: center; }
.fin-title span { font-family: var(--mono); font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.fin-desc { font-size: 0.95rem; color: var(--text); margin-bottom: 2rem; line-height: 1.8; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 2rem; }

.f-group { margin-bottom: 1.8rem; }
.f-label { display: block; font-weight: 700; margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--text); }
.f-label span { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 8px; }
.f-req { color: #d32f2f; margin-left: 6px; font-weight: bold; }
.f-policy { font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 2rem; }
.f-policy a { color: var(--text); text-decoration: underline; }

.f-group input:not([type="checkbox"]):not([type="radio"]), .f-group textarea {
  width: 100%; background: #fafafa; border: 1px solid #ccc; border-radius: 4px; padding: 14px; color: var(--text); font-family: inherit; font-size: 1rem; transition: all 0.2s;
}
.f-group input:focus, .f-group textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 2px rgba(14,26,43,0.1); }

.subbtn { width: 100%; max-width: 320px; display: block; margin: 0 auto; background: var(--navy); color: #fff; border: none; border-radius: 4px; padding: 18px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; letter-spacing: 0.05em; }
.subbtn:hover { opacity: 0.85; }

/* フッター */
footer { background: #070d16; padding: 3rem 2rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.8; }

/* アコーディオン（プルダウン）スタイル */
.service-accordion { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.service-accordion details { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.service-accordion details[open] { border-color: var(--navy); box-shadow: 0 4px 15px rgba(14,26,43,0.05); }
.service-accordion summary { padding: 1.25rem 1.5rem; font-size: 1.15rem; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background 0.2s; }
.service-accordion summary::-webkit-details-marker { display: none; /* Safari等のデフォルトの三角マークを消す */ }
.service-accordion summary:hover { background: #fafafa; }
.service-accordion summary::after { content: '+'; font-size: 1.5rem; color: var(--navy); font-family: var(--mono); transition: transform 0.3s; font-weight: 400; }
.service-accordion details[open] summary::after { content: '−'; transform: rotate(180deg); color: var(--coral); }

.detail-content { padding: 0 1.5rem 1.5rem; font-size: 0.95rem; color: var(--muted); line-height: 1.7; border-top: 1px dashed #eee; margin-top: 0.5rem; padding-top: 1.5rem; }
.detail-tag { display: inline-block; font-size: 0.75rem; background: #F8FEF2; color: var(--muted); padding: 4px 12px; border-radius: 20px; font-weight: bold; border: 1px solid var(--border); margin-bottom: 10px; }
.detail-btn { display: inline-block; margin-top: 1rem; color: var(--navy); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--lime); font-size: 0.9rem; padding-bottom: 2px; transition: opacity 0.2s; }
.detail-btn:hover { opacity: 0.7; }

/* =========================================
   スマートフォン用レイアウト調整 (横幅768px以下)
   ========================================= */
@media (max-width: 768px) {
  /* ヘッダーの左右の余白を少し狭めてスペースを確保 */
  nav { 
    padding: 0 1rem; 
  }
  
  /* スマホでは文字リンク（事業内容・代表挨拶など）を非表示にする */
  .nav-links { 
    display: none; 
  }
  
  /* お問い合わせボタンを少し小さくして、画面内に綺麗に収める */
  .nav-cta { 
    padding: 6px 14px; 
    font-size: 0.75rem; 
  }
  
  /* メインのヒーロー部分の余白もスマホ向けに少しスッキリさせる */
  .hero {
    padding: 60px 1.5rem 40px;
  }
}
