/* =============================================
   Reset & Base
============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =============================================
   Design Tokens — カスタマイズはここを編集
   Customization: Edit variables in this block
============================================= */
:root {

  /* --- Brand Colors (ブランドカラー) ---
     メインカラーとサブカラーを変更するだけでサイト全体の配色が変わります。
     Change --color-primary and --color-secondary to restyle the entire site. */
  --color-primary: #FF3200;
  /* メインカラー  / Primary brand color   */
  --color-secondary: #FF8700;
  /* サブカラー    / Secondary brand color  */

  /* グラデーション（2色を使った自動グラデーション）
     Used on active nav, callout borders, section labels, etc. */
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-brand-h: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);

  /* アクセント（リンク色・強調色）
     Derived from brand primary — adjust if you need a different accent hue. */
  --accent: var(--color-primary);
  --accent-dim: rgba(255, 50, 0, 0.08);
  /* accent + 8% opacity background  */
  --accent-glow: rgba(255, 50, 0, 0.04);
  /* accent + 4% opacity (subtle)     */

  /* --- Background Colors (背景色) ---
     --bg: ページ背景 / --bg-subtle: フッター背景 / --bg-elevated: テーブルホバー */
  --bg: #f9f9f9;
  --bg-subtle: #f2f2f2;
  --bg-elevated: #f4f4f2;
  --surface: #e5e5e5;

  /* --- Borders (ボーダー) --- */
  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(0, 0, 0, 0.20);

  /* --- Text Colors (テキスト) --- */
  --text-primary: #111111;
  /* 見出し・強調テキスト                    */
  --text-secondary: #3a3a3a;
  /* 本文                                    */
  --text-muted: #848484;
  /* ラベル・補足                             */

  /* --- Typography (フォント) ---
     Google Fonts の読み込みは各 HTML の <head> で変更してください。 */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

  /* --- Logo (ロゴ画像) ---
     ロゴ画像ファイルのパスと表示サイズを変更できます。 */
  --logo-src: url('../img/logo.svg');
  /* ロゴ画像パス / Logo image path */
  --logo-width: 250px;
  /* 表示幅 (px)  / Display width   */
  --logo-height: 40px;
  /* 表示高 (px)  / Display height  */

  /* --- Spacing & Shape (スペーシング・角丸) --- */
  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 800px;
  /* コンテンツの最大幅 / Content max-width */
  --gutter: clamp(1.5rem, 5vw, 3rem);

  /* --- Motion (アニメーション速度) --- */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Base
============================================= */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================================
   Typography
============================================= */
h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

ul,
ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.4rem;
}

ol>li>ol>li {
  list-style-type: upper-roman;

  &>ol>li {
    list-style-type: lower-alpha;
  }
}

/* =============================================
   Header / Nav
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  /* ロゴ50px + 上下余白 / Adjust if logo height changes */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ---- Logo ---- */
/* ロゴは <img> タグで読み込みます。
   サイズ変更は --logo-width / --logo-height 変数または
   下記 .site-logo img の width/height 属性で行ってください。 */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity var(--transition);
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  width: var(--logo-width);
  /* = 175px  (実寸 350px の 50% 表示) */
  height: var(--logo-height);
  /* = 25px   (実寸 50px  の 50% 表示) */
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  opacity: 1;
}

.site-nav a:hover {
  color: var(--color-primary);
  background: var(--accent-dim);
}

/* アクティブページのナビゲーションアイテム
   Active nav item — gradient text + soft background */
.site-nav a.active {
  background: var(--accent-dim);
  background-clip: initial;
  font-weight: 600;

  /* グラデーションテキスト / Gradient text */
  background-image: var(--gradient-brand-h);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============================================
   Main Layout
============================================= */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 4rem;
}

/* =============================================
   Page Header
============================================= */
.page-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

/* =============================================
   Company Data Table
============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.data-table tr:first-child {
  border-top: 1px solid var(--border);
}

.data-table tr:hover {
  background: var(--bg-elevated);
}

.data-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: left;
  padding: 1.1rem 1.5rem 1.1rem 0;
  width: 8rem;
  vertical-align: top;
  white-space: nowrap;
}

.data-table td {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 1.1rem 0;
  line-height: 1.7;
}

.data-table td small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Map embed */
.map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0.95;
}

/* =============================================
   Legal / Privacy Sections
============================================= */
.content-section {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;

  /* グラデーションテキスト / Gradient label text */
  background: var(--gradient-brand-h);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.content-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content-section h3:first-of-type {
  margin-top: 0;
}

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;

  /* グラデーションの左ボーダー / Gradient left border */
  border-left: 3px solid transparent;
  background-image:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)),
    var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.price-item {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.price-item:last-child {
  border-bottom: none;
}

.price-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.price-value {
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   Footer
============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.footer-brand .addr {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-secondary);
  opacity: 1;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* =============================================
   Utilities
============================================= */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* =============================================
   Animations
============================================= */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header,
.data-table,
.content-section {
  animation: fade-in-up 0.5s ease both;
}

.content-section:nth-child(2) {
  animation-delay: 0.05s;
}

.content-section:nth-child(3) {
  animation-delay: 0.10s;
}

.content-section:nth-child(4) {
  animation-delay: 0.15s;
}

.content-section:nth-child(5) {
  animation-delay: 0.20s;
}

.content-section:nth-child(6) {
  animation-delay: 0.25s;
}

.content-section:nth-child(7) {
  animation-delay: 0.30s;
}

.content-section:nth-child(8) {
  animation-delay: 0.35s;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .site-nav {
    justify-content: center;
  }

  .data-table th {
    width: 6.5rem;
    font-size: 0.72rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .map-wrap {
    aspect-ratio: 4 / 3;
  }
}