/* ===========================
   株式会社EPC コーポレートサイト
   style.css
   =========================== */

:root {
  --yellow: #FCF18D;
  --grey: #E8853D;
  --footer-grey: #aaa;
  --grey-dark: #555;
  --mid: #888;
  --text: #444;
  --text-dark: #333;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--yellow);
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--grey-dark); font-size: 13px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-dark); border-bottom-color: var(--grey); }
.hamburger-btn { display: none; }
.nav-links-mobile { display: none; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--yellow);
  padding: 48px 40px 40px;
  border-bottom: 2px solid #e8d800;
}
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header .section-tag { margin-bottom: 10px; }
.page-header h1 {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 34px; font-weight: 800; color: var(--text-dark); line-height: 1.3;
}

/* ===== SECTION BASE ===== */
.page-content { padding: 60px 40px; }
.content-inner { max-width: var(--max-width); margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--yellow); color: var(--grey-dark);
  border-radius: 50px; padding: 4px 14px; font-size: 12px; font-weight: 700;
  margin-bottom: 12px; border: 1.5px solid #ccc;
}
.section-title {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 30px; font-weight: 800; margin-bottom: 10px; line-height: 1.4; color: var(--text-dark);
}
.section-sub { color: var(--mid); font-size: 15px; margin-bottom: 40px; }

/* ===== HOME HERO スライドショー ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 画像未設定時はプレースホルダーとして色だけ表示 */
.slide:not(:has(img[src=""])) { background-size: cover; background-position: center; }

/* 暗幕オーバーレイ */
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

/* テキスト */
.hero-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 60px;
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto; left: 0; right: 0;
}
.hero-title {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 52px; font-weight: 800; line-height: 1.35;
  margin-bottom: 20px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-title span {
  background: transparent;
  color: var(--yellow);
  padding: 0;
  border-radius: 0;
}
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.92);
  line-height: 1.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* インジケーター */
.slide-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ===== STATS ===== */
.stats { background: var(--grey); padding: 32px 40px; }
.stats-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-num { font-family: 'M PLUS 1p', sans-serif; font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.stat-unit { font-size: 18px; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 13px; margin-top: 4px; }

/* ===== BUSINESS ===== */
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.biz-card-wrap {
  position: relative;
  display: block;
}
.biz-card {
  background: var(--yellow);
  border-radius: 16px; padding: 28px 24px;
  border: 2px solid #ccc;
  position: relative; z-index: 1;
}
.biz-card:hover { transform: none; box-shadow: none; border-color: #ccc; }
.biz-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.biz-icon img { width: 48px; height: 48px; object-fit: contain; }
.biz-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.biz-card p { font-size: 13px; color: #777; line-height: 1.8; }
.biz-detail {
  margin-top: 12px; font-size: 13px; color: #666;
  background: rgba(255,255,255,0.65); border-radius: 8px; padding: 10px 14px; line-height: 1.8;
}
.biz-detail a { color: #888; text-decoration: underline; }
.store-name { font-weight: 700; color: #444; margin-bottom: 2px; }
.store-addr { font-size: 12px; color: #777; }
.store-hours { font-size: 12px; color: #555; font-weight: 700; margin-top: 3px; }
.store-map iframe { display: block; }

/* ===== ABOUT ===== */
.about-table { width: 100%; border-collapse: collapse; font-size: 14px; max-width: 720px; }
.about-table tr { border-bottom: 1px solid #eee; }
.about-table tr:last-child { border-bottom: none; }
.about-table th {
  text-align: left; padding: 14px 20px 14px 0; color: #999;
  font-weight: 500; min-width: 130px; vertical-align: top; white-space: nowrap;
}
.about-table td { padding: 14px 0; color: var(--text-dark); font-weight: 500; }
.tbd { color: #bbb; font-size: 13px; font-weight: 400; }

/* ===== RECRUIT ===== */
.recruit-intro {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 2px solid #ccc; margin-bottom: 24px;
}
.recruit-intro p { color: #666; font-size: 15px; line-height: 1.9; }
.recruit-cta-box {
  background: var(--yellow); border-radius: var(--radius); padding: 32px;
  border: 2px solid #ccc; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.recruit-cta-box h3 {
  font-family: 'M PLUS 1p', sans-serif; font-size: 20px;
  font-weight: 700; color: var(--text-dark); margin-bottom: 6px;
}
.recruit-cta-box p { font-size: 14px; color: var(--mid); }
.recruit-btn-link {
  display: inline-block; background: var(--grey); color: #fff;
  border-radius: 50px; padding: 12px 28px; font-size: 14px; font-weight: 700;
  white-space: nowrap; transition: opacity 0.15s, transform 0.15s;
}
.recruit-btn-link:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== CONTACT FORM ===== */
.contact-notice {
  background: var(--yellow); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 32px; font-size: 14px;
  border-left: 4px solid var(--grey); line-height: 1.8;
}
.contact-notice strong { color: var(--text-dark); }
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--text-dark);
}
.required {
  background: var(--grey); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 4px;
  padding: 2px 6px; margin-left: 6px; vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #ddd; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  background: #fafafa; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--grey); background: #fff; }
.form-group textarea { height: 160px; resize: vertical; }
.form-agree { margin-top: 8px; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dark); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.checkbox-label a { color: var(--grey); text-decoration: underline; }
.form-error-msg {
  background: #fff0f0; border: 1.5px solid #ffaaaa;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; color: #c00; margin-bottom: 16px;
}
.form-submit {
  background: var(--grey); color: #fff; border: none;
  border-radius: 50px; padding: 14px 48px;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.form-submit:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== THANKS PAGE ===== */
.thanks-box {
  background: var(--yellow); border-radius: var(--radius);
  padding: 56px 48px; text-align: center; max-width: 600px;
  border: 2px solid #ddd;
}
.thanks-icon { font-size: 56px; margin-bottom: 20px; }
.thanks-box h2 {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px;
}
.thanks-box p { font-size: 15px; color: #555; line-height: 1.9; margin-bottom: 12px; }
.thanks-box strong { color: var(--text-dark); }
.thanks-note { font-size: 13px; color: #888; }
.thanks-btn {
  display: inline-block; margin-top: 28px;
  background: var(--grey); color: #fff;
  border-radius: 50px; padding: 12px 36px;
  font-size: 14px; font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}
.thanks-btn:hover { opacity: 0.85; transform: translateY(-2px); }
  background: var(--yellow); border-radius: var(--radius); padding: 48px;
  border: 2px solid #ccc; text-align: center;
}
.contact-box p { color: #666; font-size: 15px; margin-bottom: 28px; line-height: 1.9; }
.contact-ec-link {
  display: inline-block; background: var(--grey); color: #fff;
  border-radius: 50px; padding: 16px 48px; font-size: 16px; font-weight: 700;
  transition: opacity 0.15s, transform 0.15s; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.contact-ec-link:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== PRIVACY ===== */
.privacy-box {
  background: #fafafa; border-radius: var(--radius); padding: 36px;
  border: 1.5px solid #eee; max-width: 800px;
}
.privacy-box p { font-size: 14px; color: #777; line-height: 1.9; margin-bottom: 20px; }
.privacy-box p:last-child { margin-bottom: 0; }
.privacy-box strong { color: var(--text-dark); display: block; margin-bottom: 4px; }

/* ===== FOOTER ===== */
footer { background: var(--footer-grey); color: rgba(255,255,255,0.9); padding: 36px 40px; text-align: center; }
.footer-logo { font-family: 'M PLUS 1p', sans-serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 24px; list-style: none; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-license { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .business-grid { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 24px; height: 32px; background: none; border: none; cursor: pointer;
    padding: 0;
  }
  .hamburger-btn span {
    display: block; width: 100%; height: 3px;
    background: #8a6a20; border-radius: 2px;
    transition: all 0.25s;
  }
  .hamburger-btn.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .hamburger-btn.active span:nth-child(2) { opacity: 0; }
  .hamburger-btn.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .nav-links-mobile {
    display: none;
    list-style: none;
    background: #fff;
    border-top: 1px solid #e8d9b0;
    padding: 8px 20px 16px;
  }
  .nav-links-mobile.open { display: block; }
  .nav-links-mobile li { border-bottom: 1px solid #f0e8d0; }
  .nav-links-mobile li:last-child { border-bottom: none; }
  .nav-links-mobile a {
    display: block; padding: 14px 4px;
    color: var(--grey-dark, #555); text-decoration: none; font-size: 15px;
  }
  .nav-links-mobile a.active { color: var(--gold, #C8A050); font-weight: 700; }

  .page-header { padding: 18px 20px !important; }
  .page-header h1 { font-size: 20px !important; }
  .page-content { padding: 40px 20px; }
  .hero-slider { height: 420px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 32px; }
  .stats { padding: 24px 20px; }
  .recruit-cta-box { flex-direction: column; align-items: flex-start; }
  .contact-box { padding: 32px 20px; }
  footer { padding: 28px 20px; }
}
/* ===== GLOBAL WHITE×GOLD THEME ===== */
:root {
  --gold: #C8A050;
  --gold-dark: #8a6a20;
  --gold-border: #d4b060;
  --gold-light: #e8d9b0;
  --cream: #fffdf5;
  --cream-dark: #fdf5dc;
  --text: #333;
  --text-mid: #555;
  --text-gold: #7a6840;
}

body { background: #fff; color: var(--text); }

/* NAV */
nav {
  background: #fff !important;
  border-bottom: 1px solid var(--gold-light) !important;
  box-shadow: 0 2px 12px rgba(200,160,50,0.08) !important;
}
.nav-logo { color: var(--gold-dark) !important; }
.nav-links a { color: var(--text-mid) !important; }
.nav-links a:hover,
.nav-links a.active { color: var(--gold) !important; border-bottom-color: var(--gold) !important; }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #f5e8c0 0%, #fffdf5 60%, #f5e8c0 100%) !important;
  border-bottom: 2px solid var(--gold-border) !important;
  padding: 48px 40px 40px !important;
}
.page-header h1 {
  font-family: 'M PLUS 1p', sans-serif;
  color: var(--gold-dark) !important;
  font-size: 34px !important; font-weight: 800;
}
.section-sub { color: var(--text-gold) !important; }

/* BIZ CARDS */
.biz-card {
  background: linear-gradient(160deg, var(--cream), var(--cream-dark)) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 16px !important;
}
.biz-card-wrap::before { display: none; }
.biz-card:hover { border-color: var(--gold-border) !important; transform: none !important; box-shadow: none !important; }
.biz-card h3 { color: var(--gold-dark) !important; }
.biz-detail {
  background: rgba(255,255,255,0.7) !important;
  border-radius: 6px;
}

/* ABOUT TABLE */
.about-table th { color: var(--text-gold) !important; }
.about-table td { color: var(--text) !important; }
.about-table tr { border-bottom: 1px solid var(--gold-light) !important; }

/* RECRUIT */
#recruit, .recruit-intro, .recruit-cta-box {
  background: linear-gradient(160deg, var(--cream), var(--cream-dark)) !important;
  border: 1px solid var(--gold-border) !important;
}
.recruit-cta-box h3 { color: var(--gold-dark) !important; }
.recruit-btn-link {
  background: var(--gold) !important;
  color: #fff !important;
}
.recruit-btn-link:hover { background: var(--gold-dark) !important; }

/* CONTACT */
.contact-box {
  background: linear-gradient(160deg, var(--cream), var(--cream-dark)) !important;
  border: 1px solid var(--gold-border) !important;
}
.contact-ec-link {
  background: var(--gold) !important;
  color: #fff !important;
}
.contact-notice {
  background: var(--cream) !important;
  border-left: 4px solid var(--gold) !important;
}
.contact-icon { background: var(--cream) !important; border: 1.5px solid var(--gold-border) !important; }
.required { background: var(--gold) !important; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold) !important; }
.form-submit { background: var(--gold) !important; color: #fff !important; }
.form-submit:hover { background: var(--gold-dark) !important; }
.form-submit:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* THANKS PAGE */
.thanks-box {
  background: linear-gradient(160deg, var(--cream), var(--cream-dark)) !important;
  border: 1px solid var(--gold-border) !important;
}
.thanks-box h2 { color: var(--gold-dark) !important; }
.thanks-btn { background: var(--gold) !important; color: #fff !important; }

/* PRIVACY */
.privacy-box {
  background: var(--cream) !important;
  border: 1px solid var(--gold-light) !important;
}

/* SECTION TITLE */
.section-title { color: var(--gold-dark) !important; }
.section-tag {
  background: var(--cream) !important;
  color: var(--gold-dark) !important;
  border: 1.5px solid var(--gold-border) !important;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #f5e8c0, #ede0a8) !important;
  border-top: 1px solid var(--gold-border) !important;
  color: #5a4a20 !important;
}
.footer-logo { color: var(--gold-dark) !important; }
.footer-links a { color: var(--text-gold) !important; }
.footer-links a:hover { color: var(--gold) !important; }
.footer-license, .footer-copy { color: #9a8860 !important; }

/* ===== FINAL MOBILE OVERRIDE (最優先で確実に上書き) ===== */
@media (max-width: 750px) {
  .page-header h1 { font-size: 20px !important; line-height: 1.3 !important; margin: 0 !important; }
  .page-header {
    padding: 14px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-header-inner { padding: 0 !important; max-width: 100% !important; }
}

/* ページ外部からのアンカージャンプ時にナビ高さ分オフセット */
#about-section, #message-section, #contact-section, #growth-section {
  scroll-margin-top: 80px;
}
