/* ============================================================
   東邦紙エミタメ  スタイルシート
   ============================================================ */

:root {
  --brand:      #0f5e8a;
  --brand-dark: #0a4463;
  --accent:     #e8963a;
  --ink:        #1c2530;
  --body:       #4a5560;
  --line:       #e6e9ee;
  --bg:         #ffffff;
  --bg-tint:    #f4f7fa;
  --card:       #ffffff;
  --shadow:     0 10px 30px rgba(16, 42, 67, .08);
  --radius:     16px;
  --max:        1120px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

/* ダークモード */
body.dark {
  --brand:   #4ea8da;
  --ink:     #eef2f6;
  --body:    #b6c0cc;
  --line:    #2a3644;
  --bg:      #0e151d;
  --bg-tint: #131c26;
  --card:    #17212c;
  --shadow:  0 10px 30px rgba(0, 0, 0, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.container { width: 90%; max-width: var(--max); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 94, 138, .35); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--full { width: 100%; }

/* ===== ヘッダー ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 18px 0; transition: all .35s var(--ease);
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--ink); letter-spacing: .5px;
}
.logo span { font-family: "Noto Sans JP"; font-size: .95rem; color: var(--brand); margin-left: 4px; }
.header:not(.scrolled) .logo,
.header:not(.scrolled) .nav__link { color: #fff; }
.header:not(.scrolled) .logo span { color: #ffe; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 500; font-size: .95rem; position: relative; color: var(--ink); transition: color .2s; }
.nav__link:not(.nav__link--btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__link:not(.nav__link--btn):hover::after { width: 100%; }
.nav__link--btn {
  background: var(--accent); color: #fff !important; padding: 10px 22px; border-radius: 999px;
}
.nav__link--btn:hover { filter: brightness(1.08); }

.header__tools { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  background: none; border: none; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.header:not(.scrolled) .hamburger span { background: #fff; }

/* ===== ヒーロー ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #0a4463 0%, #0f5e8a 55%, #1a7bb0 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(232,150,58,.35), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.12), transparent 45%);
}
.hero__inner { padding: 120px 0 60px; }
.hero__eyebrow { font-family: "Poppins"; letter-spacing: 3px; font-size: .85rem; opacity: .85; margin-bottom: 20px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.25; margin-bottom: 26px; }
.hero__lead { font-size: 1.1rem; line-height: 2; opacity: .95; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: "Poppins"; font-size: .72rem; letter-spacing: 2px; color: #fff; opacity: .8;
}
.hero__scroll::before {
  content: ""; display: block; width: 1px; height: 40px; background: #fff; margin: 0 auto 8px;
  animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== 統計 ===== */
.stats { background: var(--brand-dark); padding: 54px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: #fff; }
.stat__num { font-family: "Poppins"; font-size: 3rem; font-weight: 700; }
.stat__unit { font-size: 1.2rem; margin-left: 4px; }
.stat__label { font-size: .9rem; opacity: .8; margin-top: 6px; }

/* ===== セクション共通 ===== */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; margin-bottom: 60px; }
.section__eyebrow { font-family: "Poppins"; letter-spacing: 3px; font-size: .8rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; color: var(--ink); line-height: 1.4; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__imgbox {
  aspect-ratio: 4/3; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 6rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: var(--shadow);
}
.about__body .section__title { text-align: left; margin-bottom: 20px; }
.about__text { margin-bottom: 24px; }
.about__list { list-style: none; }
.about__list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .7rem;
}

/* ===== カード ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--bg-tint); margin-bottom: 20px;
}
.card h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 12px; }

/* ===== 実績 ===== */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work__img { aspect-ratio: 3/4; transition: transform .5s var(--ease); }
.work__img--1 { background: linear-gradient(135deg,#e8963a,#c76b1f); }
.work__img--2 { background: linear-gradient(135deg,#0f5e8a,#0a4463); }
.work__img--3 { background: linear-gradient(135deg,#5aa9c7,#2b7a9e); }
.work__img--4 { background: linear-gradient(135deg,#8a9ba8,#5c6b78); }
.work:hover .work__img { transform: scale(1.08); }
.work figcaption { padding: 14px 16px; background: var(--card); font-size: .9rem; color: var(--ink); font-weight: 500; }

/* ===== お客様の声 ===== */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.voice {
  background: var(--card); border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line);
  position: relative;
}
.voice::before { content: "“"; font-family: "Poppins"; font-size: 4rem; color: var(--accent); line-height: 1; opacity: .4; }
.voice p { margin: -12px 0 18px; color: var(--ink); }
.voice cite { font-style: normal; font-size: .85rem; color: var(--brand); font-weight: 600; }

/* ===== お問い合わせ ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__info .section__title { text-align: left; margin-bottom: 20px; }
.contact__lead { margin-bottom: 28px; }
.contact__meta { list-style: none; display: grid; gap: 14px; }
.contact__meta li { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact__meta strong { display: block; font-size: .78rem; color: var(--brand); letter-spacing: 1px; margin-bottom: 2px; }

.form { background: var(--card); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form__row { margin-bottom: 22px; }
.form__row label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 8px; font-size: .92rem; }
.form__row label span { background: var(--accent); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: .95rem; transition: border .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form__row.invalid input, .form__row.invalid textarea { border-color: #e05252; }
.form__error { display: block; color: #e05252; font-size: .8rem; margin-top: 6px; min-height: 1em; }
.form__note { font-size: .8rem; color: var(--body); margin-top: 14px; text-align: center; }
.form.sent { text-align: center; }

/* ===== フッター ===== */
.footer { background: var(--ink); color: #cdd6df; padding: 60px 0 24px; }
body:not(.dark) .footer { background: #101c27; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo--footer { color: #fff; }
.footer__desc { font-size: .88rem; opacity: .7; margin-top: 8px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__nav a { font-size: .9rem; opacity: .8; transition: opacity .2s; }
.footer__nav a:hover { opacity: 1; }
.footer__copy { text-align: center; font-size: .82rem; opacity: .55; margin-top: 24px; }

/* ===== トップへ戻る ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none; font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(20px); transition: all .3s var(--ease); z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== スクロールアニメーション ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .voices { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--bg); flex-direction: column; justify-content: center; gap: 26px;
    box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .35s var(--ease); z-index: 105;
  }
  .nav.open { right: 0; }
  .nav__link { color: var(--ink) !important; font-size: 1.05rem; }
  .hamburger { display: flex; z-index: 106; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--ink); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }
  .cards, .voices, .works { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .form { padding: 28px 22px; }
}
