/* ============================================================
   EC PARK コーポレートサイト CSS
   モバイルファースト / アイコン素材不使用（テキスト・線・記号のみで表現）
   ============================================================ */

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- デザイントークン ---------- */
:root {
  --c-white: #ffffff;
  --c-bg-soft: #f7f7f4;
  --c-black: #111111;
  --c-text: #1a1a1a;
  --c-text-sub: #666666;
  --c-yellow: #ffd400;
  --c-yellow-deep: #e6bf00;
  --c-border: #e5e5e0;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --container: 1120px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img, a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- 共通見出し ---------- */
.section-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.section-head {
  margin-bottom: 40px;
}

.section-desc {
  margin-top: 16px;
  color: var(--c-text-sub);
  font-size: 14.5px;
  line-height: 1.9;
}

section { padding: 72px 0; }

.bg-soft { background: var(--c-bg-soft); }
.bg-black { background: var(--c-black); color: var(--c-white); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--c-black);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-primary {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-yellow); }

.btn-outline {
  background: transparent;
  color: var(--c-black);
}
.btn-outline:hover { background: var(--c-black); color: var(--c-white); }

.btn-arrow::after {
  content: "→";
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.site-logo img {
  height: 32px;
  width: auto;
}
/* ロゴ画像が未設定の間はテキストロゴで代替表示 */
.site-logo .logo-text span { color: var(--c-yellow-deep); }

.nav-pc {
  display: none;
  align-items: center;
  gap: 36px;
}
.nav-pc ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-pc ul a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav-pc ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-yellow);
  transition: width .25s ease;
}
.nav-pc ul a:hover::after,
.nav-pc ul a.is-active::after { width: 100%; }

/* ハンバーガーメニュー（アイコン素材不使用：線のみで構成） */
.hamburger {
  position: relative;
  width: 30px;
  height: 22px;
  z-index: 1100;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--c-black);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 340px;
  height: 100%;
  background: var(--c-white);
  box-shadow: -8px 0 30px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1050;
  padding: 100px 32px 40px;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }

.nav-mobile ul { display: flex; flex-direction: column; gap: 28px; }
.nav-mobile a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-block;
}
.nav-mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1040;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
   ヒーロー（TOP）
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 64px;
  background: var(--c-white);
}
.hero__inner { text-align: left; }
.hero__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text-sub);
  margin-bottom: 24px;
}
.hero__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.hero__title .accent {
  background: linear-gradient(transparent 65%, var(--c-yellow) 65%);
}
.hero__lead {
  margin-top: 24px;
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 2;
  max-width: 46em;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__visual {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-sub);
  font-size: 13px;
  letter-spacing: 0.08em;
}
/* 画像未設定時のプレースホルダー表示用（差し替え後は使用されません） */
.hero__visual:has(> span:only-child) {
  aspect-ratio: 16/9;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   About / Message
   ============================================================ */
.about__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.02em;
}
.about__text strong {
  font-weight: 700;
  background: linear-gradient(transparent 68%, var(--c-yellow) 68%);
}

/* ============================================================
   展開ブランド一覧（横に流れるロゴ帯／テキスト無し）
   ============================================================ */
.brand-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brand-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 56px;
  animation: brand-marquee-scroll 32s linear infinite;
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 72px;
}

.brand-marquee__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .25s ease, opacity .25s ease;
}
.brand-marquee__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-marquee__placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

@keyframes brand-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track { animation: none; }
}

/* ============================================================
   メディア・法人問い合わせ CTA
   ============================================================ */
.media-cta {
  padding: 56px 0;
}
.media-cta__inner {
  border: 1px solid var(--c-border);
  padding: 40px 24px;
  text-align: left;
}
.media-cta__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
}
.media-cta__desc {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--c-text-sub);
  line-height: 1.9;
}
.media-cta__actions { margin-top: 24px; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 64px 0 28px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-logo span { color: var(--c-yellow); }
.footer-logo img { height: 30px; width: auto; }
.footer-tagline {
  margin-top: 14px;
  font-size: 12.5px;
  color: #b3b3b3;
  line-height: 1.9;
  max-width: 28em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { font-size: 13.5px; color: #d9d9d9; }
.footer-nav a:hover { color: var(--c-yellow); }
.footer-heading {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #808080;
  margin-bottom: 16px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11.5px;
  color: #808080;
  letter-spacing: 0.03em;
}

/* ============================================================
   下層ページ共通（Page Hero）
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  border-bottom: 1px solid var(--c-border);
}
.page-hero__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-text-sub);
  margin-bottom: 14px;
  display: block;
}
.page-hero__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.page-hero__lead {
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.9;
  max-width: 42em;
}
.breadcrumb {
  margin-top: 20px;
  font-size: 12px;
  color: var(--c-text-sub);
}
.breadcrumb a:hover { color: var(--c-black); }

.pc-only { display: none; }
@media (min-width: 860px) { .pc-only { display: inline; } }

/* ============================================================
   COMPANY ページ
   ============================================================ */
.company-message {
  font-size: 19px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.03em;
}
.company-message span {
  background: linear-gradient(transparent 68%, var(--c-yellow) 68%);
}

.company-table {
  margin-top: 8px;
}
.company-table tr {
  border-top: 1px solid var(--c-border);
}
.company-table tr:last-child { border-bottom: 1px solid var(--c-border); }
.company-table th, .company-table td {
  text-align: left;
  padding: 18px 0;
  font-size: 14px;
  vertical-align: top;
}
.company-table th {
  width: 130px;
  font-weight: 700;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding-right: 20px;
}
.company-table td { color: var(--c-text); line-height: 1.9; }

.business-list {
  display: flex;
  flex-direction: column;
}
.business-item {
  border-top: 1px solid var(--c-border);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}
.business-item:last-child { border-bottom: 1px solid var(--c-border); }
.business-item__num { font-size: 13px; font-weight: 700; color: var(--c-yellow-deep); }
.business-item__title { font-size: 16px; font-weight: 700; }
.business-item__desc { margin-top: 8px; font-size: 13.5px; color: var(--c-text-sub); line-height: 1.9; }

/* ============================================================
   CONTACT ページ / フォーム
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info__block + .contact-info__block { margin-top: 32px; }
.contact-info__title { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.contact-info__desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.9;
}
.contact-info__value { margin-top: 10px; font-size: 14px; }

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group .required {
  color: var(--c-yellow-deep);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--c-yellow-deep);
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-group .optional {
  color: var(--c-text-sub);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--c-border);
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-size: 14.5px;
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-black);
}
.form-group textarea { resize: vertical; min-height: 150px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--c-border);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.radio-option:has(input:checked) {
  border-color: var(--c-black);
  background: var(--c-bg-soft);
}
.radio-option input { accent-color: var(--c-black); width: 16px; height: 16px; }

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.8;
}
.checkbox-line input { margin-top: 4px; accent-color: var(--c-black); }
.checkbox-line a { text-decoration: underline; color: var(--c-text); }

.form-error {
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #c0392b;
}
.form-group.has-error .form-error { display: block; }

.form-submit-area { margin-top: 8px; }
.form-submit-area .btn { width: 100%; justify-content: center; }
.form-submit-area .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.form-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

#formSuccess, #formNetworkError {
  display: none;
  border: 1px solid var(--c-border);
  padding: 32px 24px;
  text-align: center;
}
#formSuccess.is-visible, #formNetworkError.is-visible { display: block; }
#formSuccess__title { font-size: 17px; font-weight: 700; }
#formSuccess__desc, #formNetworkError__desc {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--c-text-sub);
  line-height: 1.9;
}
#formNetworkError { border-color: #c0392b; }

/* ============================================================
   トップに戻るボタン
   ============================================================ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  background: var(--c-black);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 900;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--c-yellow); color: var(--c-black); }

/* ============================================================
   レスポンシブ：タブレット以上
   ============================================================ */
@media (min-width: 860px) {
  .nav-pc { display: flex; }
  .hamburger, .nav-mobile, .nav-overlay { display: none; }

  body { font-size: 15.5px; }

  .hero__title { font-size: 46px; }
  .hero__lead { font-size: 16px; }
  .hero__visual { margin-top: 64px; }

  .section-title { font-size: 32px; }

  .about__text { font-size: 22px; }

  .brand-marquee__item { width: 180px; height: 88px; }

  .business-item { grid-template-columns: 70px 1fr; }

  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-nav-group { display: flex; gap: 64px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .contact-layout { grid-template-columns: 340px 1fr; gap: 64px; }

  .page-hero__title { font-size: 36px; }

  .company-message { font-size: 24px; }
}

@media (min-width: 1080px) {
  .hero__title { font-size: 52px; }
}
