@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --accent:    #1a3a5c;
  --accent-lt: #2a5080;
  --text:      #1a1a1a;
  --text-sub:  #555555;
  --bg:        #ffffff;
  --bg-muted:  #f5f5f5;
  --border:    #e0e0e0;
  --radius:    6px;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:visited { color: var(--accent); }
a:hover { color: var(--accent-lt); }

img { max-width: 100%; height: auto; display: block; }

/* ===== EN Header ===== */
#en-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-shadow: 0 2px 8px rgba(26,58,92,0.08);
}

.en-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.en-logo a { color: inherit; }

.en-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.en-nav li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.en-nav li a:hover {
  background: var(--accent);
  color: #fff;
}
.en-nav li a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}

/* Language switch button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-muted);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  margin-left: 4px;
}
.lang-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* SP hamburger */
.en-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.en-hamburger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero (Vegas slider) ===== */
#en-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px) !important;
  height: calc(100dvh - 64px) !important;
}

/* Vegas wraps content children — center them inside the wrapper */
#en-slider .vegas-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.en-hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  width: 100%;
  pointer-events: none;
}
.en-hero-text h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.en-hero-text p {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===== Page Banner (inner pages) ===== */
.en-board {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.en-board img {
  display: none;
}
.en-board-overlay {
  display: none;
}
.en-board-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}
.en-board-text h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.en-board-text p {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin: 0;
  font-weight: 400;
}

/* ===== Card Grid (index) ===== */
.en-cards {
  max-width: 1100px;
  margin: 64px auto;
  padding: 0 24px;
}
.en-cards-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.en-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.en-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}
.en-card:hover {
  box-shadow: 0 8px 24px rgba(26,58,92,0.15);
  transform: translateY(-4px);
}
.en-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.en-card-body {
  padding: 20px 22px 24px;
  border-top: 3px solid var(--accent);
}
.en-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.en-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.en-card-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0 0 16px;
}
.en-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.en-card-link::after {
  content: '→';
  transition: transform 0.15s;
}
.en-card:hover .en-card-link::after {
  transform: translateX(4px);
}

/* ===== Content (inner pages) ===== */
.en-content {
  max-width: 900px;
  margin: 72px auto;
  padding: 0 48px; /* ← 側面余白を統一の基準値に */
}

/*
  PARC 整列の基準:
  en-content の padding(48px) が左端。
  内部の全要素は padding-left:0 → テキスト開始位置が1本の線に揃う。
  left border は使わず「下線 + 短いアクセントライン」で視覚的アクセントを出す。
*/

/* Section heading — 大きく・太く・flush left */
.en-section-title {
  font-size: clamp(1.875rem, 3.3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  padding-left: 0;          /* ← 左端を body-text に揃える */
  padding-bottom: 14px;
  margin: 72px 0 28px;
  letter-spacing: -0.01em;
  position: relative;
  border-bottom: 1px solid var(--border); /* 全幅下線 */
}
/* 短いアクセントライン（左揃え・コントラスト） */
.en-section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
}
.en-section-title:first-child { margin-top: 0; }

/* Sub-heading — 小文字 ALL CAPS ラベルで明確な3段階ヒエラルキー */
.en-sub-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 0;          /* ← 左端揃え */
  border-bottom: none;
  padding-bottom: 0;
  margin: 32px 0 10px;
}

/* Body text */
.en-body-text {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--text-sub);
  line-height: 1.9;
  margin: 0 0 24px;
  padding-left: 0;          /* ← 左端揃え */
}

/* Highlight box — 負のマージンで背景を en-content 端まで広げ、テキストは揃える */
.en-highlight {
  background: #eef2f7;
  border-top: 3px solid var(--accent);
  border-left: none;        /* ← left border 廃止 */
  border-radius: 0;
  padding: 22px 48px;       /* ← en-content の padding に合わせる */
  margin: 0 -48px 40px;     /* ← 負マージンで幅を親に合わせる */
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
}

/* Profile grid (company) */
.en-profile-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.en-profile-grid dt {
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.en-profile-grid dd {
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.en-profile-grid dt:last-of-type,
.en-profile-grid dd:last-of-type { border-bottom: none; }

/* ===== Store Card Grid (shopping page) ===== */
.en-store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.en-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}
.en-store-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  color: inherit;
}
.en-store-card-logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}
.en-store-card-logo img {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
}
.en-store-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
  text-align: center;
}
.en-store-card-highlight {
  font-size: 0.78rem;
  color: var(--text-sub);
  text-align: center;
  flex-grow: 1;
  margin: 0 0 18px;
  line-height: 1.5;
}
.en-store-card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Timeline (history) */
.en-timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}
.en-timeline li {
  position: relative;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  padding: 8px 0;
}
.en-timeline li::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.en-timeline li strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 12px;
}

/* Price table — 左端を見出し・本文と統一 */
.en-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 32px;
  font-size: 0.9rem;
}
.en-table th {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px 10px 0; /* ← 左端 0 で揃える */
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.en-table th:last-child {
  text-align: right;
  padding-right: 0;
}
.en-table td {
  padding: 12px 16px 12px 0; /* ← 左端 0 で揃える */
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.en-table td:last-child {
  text-align: right; /* ← 価格は右揃え */
  padding-right: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums; /* 価格の数字幅を揃える */
  white-space: nowrap;
}
.en-table tr:last-child td { border-bottom: none; }
/* zebra 削除 → 左端のずれが目立たなくなるのでシンプルに */

/* Circular image (汎用) */
.en-circle-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid var(--border);
}

/* ===== Processing step 2カラムレイアウト ===== */
.en-step {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.en-step:first-of-type { border-top: none; padding-top: 0; }
.en-step-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.en-step-body { min-width: 0; padding-top: 4px; }

/* Map */
.en-map iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--radius);
  margin-top: 16px;
}

/* CTA button */
.en-btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.en-btn,
.en-btn:link,
.en-btn:visited { color: #fff; }
.en-btn:hover,
.en-btn:focus { background: var(--accent-lt); color: #fff; transform: translateY(-1px); }
.en-btn-outline {
  display: inline-block;
  padding: 11px 28px;
  background: transparent;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--accent);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.en-btn-outline:hover { background: var(--accent); color: #fff; }

/* Form */
.en-form { max-width: 640px; margin: 0 auto; }
.en-form-group { margin-bottom: 22px; }
.en-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.en-form label .req {
  color: #c0392b;
  margin-left: 4px;
  font-size: 0.7rem;
}
.en-form input,
.en-form select,
.en-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  outline: none;
}
.en-form input:focus,
.en-form select:focus,
.en-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.en-form textarea { min-height: 140px; resize: vertical; }

/* ===== Footer ===== */
.en-footer {
  background: var(--accent);
  color: rgba(255,255,255,0.9);
  padding: 40px 40px 24px;
  margin-top: 80px;
}
.en-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.en-footer-brand { min-width: 200px; }
.en-footer-logo {
  display: block;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  width: 120px;
  margin-bottom: 14px;
}
.en-footer-logo img { width: 100%; }
.en-footer-addr {
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0.8;
}
.en-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex: 1;
}
.en-footer-nav li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.en-footer-nav li a:hover { color: #fff; }
.en-footer-copy {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.72rem;
  opacity: 0.6;
  text-align: center;
}

/* ===== Tablet (768px〜930px) ===== */
@media screen and (min-width: 768px) and (max-width: 930px) {
  .en-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .en-store-grid { grid-template-columns: repeat(2, 1fr); }
  .en-profile-grid { grid-template-columns: 140px 1fr; }
  .en-content { padding: 0 32px; }
}

/* ===== Responsive (SP ≤ 930px) ===== */
@media screen and (max-width: 930px) {
  #en-header { padding: 0 16px; }
  .en-nav { display: none; }
  .en-hamburger { display: flex; }

  .en-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--accent);
    padding: 16px 20px 24px;
    gap: 4px;
    z-index: 998;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  .en-nav.open li { width: 100%; }
  .en-nav.open li a { display: block; padding: 10px 0; font-size: 1rem; }
  .en-nav.open .lang-btn { margin-top: 8px; }

  #en-slider { height: calc(100svh - 64px); }
  .en-board { height: 160px; }

  .en-cards { margin: 36px auto; }
  .en-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .en-store-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .en-content { margin: 36px auto; padding: 0 20px; }
  .en-highlight { padding: 20px; margin: 0 0 32px; }
  .en-step { grid-template-columns: 1fr; gap: 20px 0; }
  .en-step-img { width: 140px; height: 140px; margin: 0 auto; }
  .en-profile-grid { grid-template-columns: 120px 1fr; }

  .en-footer { padding: 32px 20px 20px; }
  .en-footer-inner { flex-direction: column; gap: 24px; }
  .en-footer-nav { gap: 6px 14px; }

  .en-circle-img { width: 200px; height: 200px; }
}
