/* ==========================================================
   MEGALOPPERS - style.css
   Design tokens
   Color   : Black #0E0E0E / Ink #1B1A18 / Orange #FF5A1F / OrangeDeep #D6430A
             Paper #FFFFFF / Mist #F6F5F2 / Slate #5A5852
   Type    : Oswald (display / en-accent), Noto Sans JP (body / headings)
   Layout  : left-aligned hero, 1120px container, quiet grid below a bold hero
========================================================== */

:root{
  --black: #0e0e0e;
  --ink: #1b1a18;
  --orange: #ff5a1f;
  --orange-deep: #d6430a;
  --paper: #ffffff;
  --mist: #f6f5f2;
  --mist-2: #efede8;
  --slate: #5a5852;
  --slate-light: #8b887f;
  --line: #e4e1d9;

  --font-en: 'Oswald', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  --container-w: 1120px;
  --header-h: 76px;

  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }

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

.sp-only{ display: none; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Headings ---------- */
.ja-heading{
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
  color: var(--black);
}
.eyebrow-en{
  font-family: var(--font-en);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--orange);
  margin: 0 0 8px;
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head.center{
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.with-link{ align-items: center; }
.link-more{
  flex: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-more:hover{ color: var(--orange); border-color: var(--orange); }
.arrow{ display: inline-block; margin-left: 4px; transition: transform .2s var(--ease); }
a:hover .arrow, button:hover .arrow{ transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--orange);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--orange-deep); }
.btn-outline-light{
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--paper);
}
.btn-outline-light:hover{ background: rgba(255,255,255,.12); border-color: var(--paper); }
.btn-outline-dark{
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline-dark:hover{ background: var(--black); color: var(--paper); }
.btn-block{ width: 100%; }
.btn-small{ padding: 10px 22px; font-size: .85rem; }

/* ==========================================================
   HEADER
========================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(14,14,14,0);
  z-index: 500;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid{
  background: rgba(14,14,14,.96);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo{
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--paper);
}
.gnav{ flex: 1; display: flex; justify-content: center; }
.gnav ul{ display: flex; gap: 26px; }
.gnav a{
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  position: relative;
  padding: 6px 2px;
}
.gnav a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transition: right .25s var(--ease);
}
.gnav a:hover{ color: var(--paper); }
.gnav a:hover::after{ right: 0; }

.header-cta{ flex: none; }

.nav-toggle{
  display: none;
  flex: none;
  width: 32px; height: 24px;
  background: none; border: none; padding: 0;
  position: relative;
  z-index: 600;
}
.nav-toggle span{
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--paper);
  transition: transform .25s var(--ease), opacity .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 2px; }
.nav-toggle span:nth-child(2){ top: 11px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top: 11px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top: 11px; transform: rotate(-45deg); }

/* ==========================================================
   HERO
========================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg{ position: absolute; inset: 0; }
.hero-bg img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: 78% 50%;
  opacity: .85;
}
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 32%, rgba(10,10,10,.35) 58%, rgba(10,10,10,.15) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%);
}
.hero-inner{
  position: relative;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px 120px;
}
.hero-eyebrow{
  font-family: var(--font-en);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--orange);
  margin: 0 0 20px;
}
.hero-title{
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--paper);
  margin: 0 0 24px;
}
.hero-lead{
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin: 0 0 40px;
  line-height: 1.9;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================
   NEWS
========================================================== */
.news-section{
  background: var(--black);
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.news-section .section-head{ margin-bottom: 0; }
.news-section .ja-heading{ color: var(--paper); font-size: 1rem; letter-spacing: .08em; white-space: nowrap; }
.news-list{
  display: flex;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  padding-top: 20px;
  scrollbar-width: none;
}
.news-list::-webkit-scrollbar{ display: none; }
.news-item{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  max-width: 360px;
}
.news-thumb{
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb .news-thumb-fallback{ width: 22px; height: 22px; opacity: .6; }
.news-body{ display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.news-meta{ display: flex; align-items: baseline; gap: 10px; }
.news-date{ font-family: var(--font-en); font-size: .8rem; color: var(--slate-light); }
.news-tag{
  font-size: .7rem;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.news-text{
  margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}

/* ==========================================================
   Generic section spacing
========================================================== */
section{ padding: 88px 0; }
.pain-section{ background: var(--mist); }
.why-section{ background: var(--paper); }
.services-section{ background: var(--mist); }
.pricing-section{ background: var(--paper); }
.flow-section{ background: var(--mist); }

/* ==========================================================
   ESTIMATE SIMULATOR（かんたん見積もりシミュレーター）
========================================================== */
.estimate-section{ background: var(--paper); }
.estimate-box{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.estimate-form{
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.estimate-form .form-row label{ font-weight: 700; margin-bottom: 4px; }
.estimate-form select,
.estimate-form input[type="number"]{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 2px;
  font-size: .9rem;
  color: var(--ink);
}
.estimate-hint{ font-size: .75rem; color: var(--slate-light); margin: 4px 0 0; }
.estimate-options{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.form-row label.est-check,
.est-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}
.est-check input{ width: 16px; height: 16px; margin-top: 2px; accent-color: var(--orange); flex: none; }

.estimate-result{
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--black);
  color: var(--paper);
  padding: 36px 28px;
  text-align: center;
}
.estimate-result-label{ font-size: .8rem; color: rgba(255,255,255,.7); margin: 0 0 12px; }
.estimate-result-amount{
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 16px;
}
.estimate-result-amount .price-unit{ font-size: 1rem; color: rgba(255,255,255,.7); font-family: var(--font-jp); }
.estimate-result-note{
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0 0 24px;
}
.faq-section{ background: var(--paper); }
.contact-section{ background: var(--mist); }

/* ==========================================================
   PAIN CARDS
========================================================== */
.pain-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 28px;
  text-align: center;
}
.pain-icon{ width: 48px; height: 48px; margin: 0 auto 24px; }
.pain-title{
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
  line-height: 1.6;
}
.pain-text{
  font-size: .85rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================
   WHY
========================================================== */
.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-card{ text-align: center; }
.why-icon{
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  padding: 16px;
  background: var(--mist);
  border-radius: 50%;
}
.why-title{
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.why-text{
  font-size: .85rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================
   SERVICES
========================================================== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover{
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14,14,14,.08);
}
.service-icon{ width: 36px; height: 36px; margin-bottom: 20px; }
.service-title{
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.service-text{
  font-size: .85rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================
   PRICING
========================================================== */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 36px 28px;
  background: var(--paper);
}
.price-card.is-popular{
  border: 2px solid var(--orange);
  position: relative;
  box-shadow: 0 16px 32px rgba(255,90,31,.14);
}
.price-badge{
  font-size: .75rem;
  color: var(--slate-light);
  margin: 0 0 12px;
}
.price-badge.popular{ color: var(--orange); font-weight: 700; }
.price-name{
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.price-desc{
  font-size: .82rem;
  color: var(--slate);
  margin: 0 0 20px;
  min-height: 2.6em;
}
.price-amount{
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 24px;
}
.price-symbol{ font-size: 1.1rem; vertical-align: 6px; margin-right: 2px; }
.price-unit{ font-size: 1.1rem; }
.price-features{
  flex: 1;
  margin: 0 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.price-features li{
  font-size: .85rem;
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ink);
}
.price-features li::before{
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.pricing-note{
  font-size: .78rem;
  color: var(--slate);
  text-align: center;
  max-width: 640px;
  margin: 24px auto 0;
  line-height: 1.8;
}
.pricing-compare-link{ text-align: center; margin: 28px 0 0; }

/* ==========================================================
   FLOW
========================================================== */
.flow-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.flow-step{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 24px 28px;
}
.flow-number{
  display: block;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.flow-title{
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.flow-text{
  font-size: .82rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================
   FAQ
========================================================== */
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-question:hover{ color: var(--orange); }
.faq-icon{
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after{
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-icon::before{ width: 14px; height: 2px; }
.faq-icon::after{ width: 2px; height: 14px; transition: transform .25s var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon::after{ transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-question[aria-expanded="true"]{ color: var(--orange); }

.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-answer p{
  margin: 0;
  padding: 0 4px 24px;
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.9;
}

/* ==========================================================
   CTA
========================================================== */
.cta-section{
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-bg{ position: absolute; inset: 0; }
.cta-bg img{ width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.cta-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 45%, rgba(10,10,10,.35) 100%);
}
.cta-section .container{ position: relative; }
.cta-inner{ max-width: 480px; }
.cta-title{
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 16px;
}
.cta-text{
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  margin: 0 0 32px;
  line-height: 1.9;
}
.cta-caption{
  position: absolute;
  right: 0;
  bottom: -10px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,.55);
  text-align: right;
  line-height: 1.5;
}

/* ==========================================================
   CONTACT FORM
========================================================== */
.contact-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 800px;
  margin: 0 auto;
}
.wpcf7-form{
  max-width: 800px;
  margin: 0 auto;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row.full{ grid-column: 1 / -1; }
.form-row label{
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.req{
  font-size: .68rem;
  color: var(--paper);
  background: var(--orange);
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
}
.form-row input:not([type="checkbox"]):not([type="radio"]),
.form-row select,
.form-row textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form-row input:not([type="checkbox"]):not([type="radio"]):focus,
.form-row select:focus,
.form-row textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus{ border-color: var(--orange); outline: none; }
.form-row textarea{ resize: vertical; }
.wpcf7-form .wpcf7-form-control-wrap{ display: block; }

/* ---- このサイト固有のCF7フォーム構造（cf7-grid / cf7-field） ---- */
.cf7-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 8px;
}
.cf7-field{ display: flex; flex-direction: column; gap: 8px; }
.cf7-field.full{ grid-column: 1 / -1; }
.cf7-field label{ font-size: .85rem; font-weight: 500; }
.opt{ font-size: .78rem; font-weight: 400; color: var(--slate-light); margin-left: 4px; }

/* スパム対策用の隠しフィールド（画面には表示しない） */
.wpcf7-form .hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-foot{ margin-top: 32px; }
.form-foot p{
  font-size: .78rem;
  color: var(--slate);
  line-height: 1.8;
  margin: 0 0 20px;
}
.recaptcha-note{
  font-size: .72rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin: 16px 0 0;
}
.recaptcha-note a{ color: var(--slate); text-decoration: underline; }

.form-check{ margin-top: 4px; }
.checkbox-label,
.wpcf7-acceptance label{
  flex-direction: row !important;
  align-items: center;
  font-size: .85rem;
  font-weight: 400 !important;
  gap: 10px !important;
  display: flex;
}
.checkbox-label input,
.wpcf7-acceptance input{ width: 16px; height: 16px; accent-color: var(--orange); flex: none; }
.checkbox-label a,
.wpcf7-acceptance a{ color: var(--orange); text-decoration: underline; }

.form-submit{ margin-top: 8px; }
.wpcf7-form input[type="submit"],
.wpcf7-submit{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-jp);
  border-radius: 3px;
  border: 1px solid transparent;
  background: var(--orange);
  color: var(--paper);
  cursor: pointer;
  grid-column: 1 / -1;
  transition: background .2s var(--ease);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover{ background: var(--orange-deep); }
.wpcf7-form .wpcf7-submit{ /* uses .btn .btn-primary .btn-block classes directly, no extra rule needed */ }
.wpcf7-spinner{ display: none !important; }
.wpcf7-not-valid-tip{
  display: block;
  font-size: .78rem;
  color: #c0392b;
  margin-top: 6px;
}
.wpcf7-response-output{
  grid-column: 1 / -1;
  border: 1px solid var(--line) !important;
  border-radius: 2px;
  padding: 14px 18px !important;
  font-size: .85rem;
  margin: 0 !important;
}
.wpcf7-form.sent .wpcf7-response-output{ border-color: #bfe0c4 !important; background: #eef7ef; color: #205a2b; }
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output{ border-color: #edb9b5 !important; background: #fbeceb; color: #7c2620; }

.form-notice{
  grid-column: 1 / -1;
  padding: 16px 20px;
  font-size: .85rem;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.form-notice-success{ background: #eef7ef; border-color: #bfe0c4; color: #205a2b; }
.form-notice-error{ background: #fbeceb; border-color: #edb9b5; color: #7c2620; }
.form-submit .btn{ max-width: 320px; margin: 0 auto; }

/* ==========================================================
   FOOTER
========================================================== */
.site-footer{ background: var(--black); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo{
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 12px;
}
.footer-copy{ font-size: .82rem; margin: 0 0 20px; }
.footer-sns{ display: flex; gap: 12px; }
.footer-sns a{
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: .7rem;
  font-family: var(--font-en);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-sns a:hover{ border-color: var(--orange); color: var(--orange); }
.footer-sns a img{
  width: 15px; height: 15px;
  object-fit: contain;
  display: block;
  transition: opacity .2s var(--ease);
}
.footer-sns a:hover img{ opacity: .8; }
.footer-col h4{
  font-size: .85rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 20px;
  letter-spacing: .04em;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ font-size: .82rem; transition: color .2s var(--ease); }
.footer-col a:hover{ color: var(--orange); }
.footer-bottom{
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  padding: 24px 0;
}

/* ==========================================================
   Mobile CTA (fixed bottom bar)
========================================================== */
.mobile-cta{
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--orange);
  color: var(--paper);
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: .95rem;
}

/* ==========================================================
   SUBPAGE: Page hero (services / works / faq)
========================================================== */
.page-hero{
  position: relative;
  background: var(--black);
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
}
.page-hero::before{
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,90,31,.16) 0%, rgba(255,90,31,0) 70%);
}
.page-hero .container{ position: relative; }
.page-hero-eyebrow{
  font-family: var(--font-en);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--orange);
  margin: 0 0 18px;
}
.page-hero-title{
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 16px;
  line-height: 1.5;
}
.page-hero-lead{
  font-size: .92rem;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.9;
}
.page-hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================
   SUBPAGE: TOC (jump navigation)
========================================================== */
.toc-section{ background: var(--mist); padding: 40px 0; }
.toc-box{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.toc-group-title{
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 14px;
  letter-spacing: .04em;
}
.toc-group ul{ display: flex; flex-direction: column; gap: 10px; }
.toc-group a{
  font-size: .85rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc-group a:hover{ color: var(--orange); border-color: var(--orange); }

/* ==========================================================
   SUBPAGE: Chapter divider
========================================================== */
.chapter{ background: var(--paper); }
.chapter:nth-of-type(even){ background: var(--mist); }
.chapter-head{
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}
.chapter-num{
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 4px 14px;
  flex: none;
}
.chapter-title{
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  font-weight: 700;
  margin: 0;
  color: var(--black);
}
.chapter-lead{
  font-size: .88rem;
  color: var(--slate);
  margin: 0 0 48px;
}
.subsection{ margin-bottom: 64px; }
.subsection:last-child{ margin-bottom: 0; }
.subsection-title{
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--black);
}
.subsection-lead{
  font-size: .85rem;
  color: var(--slate);
  margin: -12px 0 24px;
  line-height: 1.9;
}
.back-to-toc{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
.back-to-toc:hover{ color: var(--orange); border-color: var(--orange); }

/* ==========================================================
   SUBPAGE: Recommend grid (こんな方におすすめ)
========================================================== */
.recommend-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.recommend-card{
  text-align: center;
  padding: 24px 12px;
  background: var(--mist);
}
.chapter:nth-of-type(even) .recommend-card{ background: var(--paper); }
.recommend-icon{ width: 36px; height: 36px; margin: 0 auto 16px; }
.recommend-text{ font-size: .8rem; line-height: 1.7; margin: 0; }

/* ==========================================================
   SUBPAGE: Comparison table
========================================================== */
.compare-table-wrap{ overflow-x: auto; }
.compare-table{
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  min-width: 640px;
}
.compare-table th, .compare-table td{
  border: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
}
.compare-table th{
  background: var(--black);
  color: var(--paper);
  font-weight: 500;
}
.compare-table td:first-child, .compare-table th:first-child{
  text-align: left;
  font-weight: 500;
  background: var(--mist);
}
.compare-table td.is-dash{ color: var(--slate-light); }

/* ==========================================================
   SUBPAGE: Example cards (制作例と料金例)
========================================================== */
.example-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.example-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.example-name{ font-size: .95rem; font-weight: 700; margin: 0 0 14px; }
.example-list{ margin: 0 0 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.example-list li{
  font-size: .8rem;
  color: var(--slate);
  padding: 3px 0 3px 18px;
  position: relative;
}
.example-list li::before{ content: '-'; position: absolute; left: 0; color: var(--orange); }
.example-price{ font-family: var(--font-en); font-size: 1.3rem; font-weight: 600; color: var(--black); margin: 0; }
.example-price small{ font-family: var(--font-jp); font-size: .7rem; color: var(--slate); font-weight: 400; display: block; margin-top: 4px; }

/* ==========================================================
   SUBPAGE: Addon cards (動画・印刷物)
========================================================== */
.addon-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.addon-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.addon-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.addon-card.is-popular{ border-color: var(--orange); }
.addon-badge{
  position: absolute;
  top: -12px; right: 20px;
  background: var(--orange);
  color: var(--paper);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
}
.addon-name{ font-size: .95rem; font-weight: 700; margin: 0 0 4px; }
.addon-sub{ font-size: .78rem; color: var(--slate-light); margin: 0 0 16px; }
.addon-price{ font-family: var(--font-en); font-size: 1.5rem; font-weight: 600; color: var(--black); margin: 0 0 18px; }
.addon-list{ margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.addon-list li{
  font-size: .8rem;
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--ink);
}
.addon-list li::before{ content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.addon-note{
  font-size: .82rem;
  color: var(--slate);
  background: var(--mist);
  padding: 18px 20px;
  margin-top: 24px;
  line-height: 1.8;
}
.chapter:nth-of-type(even) .addon-note{ background: var(--paper); }

/* ==========================================================
   SUBPAGE: Option columns / extra list
========================================================== */
.option-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.option-col h4{ font-size: .9rem; font-weight: 700; margin: 0 0 16px; }
.option-col ul{ display: flex; flex-direction: column; gap: 10px; }
.option-col li{
  font-size: .82rem;
  color: var(--slate);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.extra-list{
  columns: 2;
  column-gap: 40px;
  font-size: .85rem;
  color: var(--slate);
}
.extra-list li{ padding: 6px 0 6px 18px; position: relative; break-inside: avoid; }
.extra-list li::before{ content: '・'; position: absolute; left: 0; color: var(--orange); }

/* ==========================================================
   SUBPAGE: FAQ category page
========================================================== */
.faq-category{ margin-bottom: 56px; }
.faq-category:last-child{ margin-bottom: 0; }
.faq-category-title{
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}

/* ==========================================================
   SUBPAGE: Works listing
========================================================== */
.works-section{ background: var(--mist); }
.work-single-body{
  font-size: .95rem;
  line-height: 2;
  color: var(--ink);
}
.work-single-body p{ margin: 0 0 1.6em; }
.work-single-body h2, .work-single-body h3{ margin: 1.6em 0 .8em; font-weight: 700; }
.work-single-body img{ max-width: 100%; height: auto; margin: 1.5em 0; }

/* ---- コラム記事の自動目次 ---- */
.column-toc{
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin: 0 0 48px;
}
.column-toc-title{
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 16px;
  letter-spacing: .04em;
}
.column-toc ol{ list-style: none; margin: 0; padding: 0; }
.column-toc li{ margin-bottom: 10px; padding-left: 18px; position: relative; }
.column-toc li:last-child{ margin-bottom: 0; }
.column-toc li::before{
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--orange);
}
.column-toc li a{
  font-size: .88rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.column-toc li a:hover{ color: var(--orange); border-color: var(--orange); }
.column-toc li.column-toc-level-3{ margin-left: 20px; font-size: .92em; }
.work-single-body h2, .work-single-body h3{ scroll-margin-top: calc(var(--header-h) + 16px); }
.works-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card{
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.work-card:hover{ border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14,14,14,.08); }
.work-thumb{
  aspect-ratio: 16/10;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-thumb-label{
  font-family: var(--font-en);
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
}
.work-body{ padding: 24px; }
.work-meta{ display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.work-tag{
  font-size: .7rem;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 2px 8px;
}
.work-date{ font-family: var(--font-en); font-size: .78rem; color: var(--slate-light); }
.work-title{ font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.work-excerpt{ font-size: .82rem; color: var(--slate); margin: 0; line-height: 1.8; }

/* ==========================================================
   Responsive
========================================================== */
@media (max-width: 980px){
  .why-grid, .pain-grid{ grid-template-columns: 1fr; gap: 20px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .pricing-grid{ grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .flow-list{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }

  .estimate-box{ grid-template-columns: 1fr; }
  .estimate-result{ position: static; }

  .toc-box{ grid-template-columns: 1fr; gap: 24px; }
  .recommend-grid{ grid-template-columns: repeat(3, 1fr); }
  .example-grid, .addon-grid, .addon-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .option-columns{ grid-template-columns: 1fr; }
  .works-grid{ grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 760px){
  section{ padding: 64px 0; }
  .sp-only{ display: inline; }

  .gnav, .header-cta{ display: none; }
  .nav-toggle{ display: block; }
  .header-inner{ padding: 0 20px; }

  .gnav{
    display: flex;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .gnav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .gnav ul{ flex-direction: column; gap: 0; }
  .gnav a{ display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero{ min-height: 92svh; }
  .hero-inner{ padding: calc(var(--header-h) + 32px) 20px 100px; }
  .hero-title{ max-width: none; }
  .hero-bg img{ object-position: 68% 50%; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }

  .news-list{ gap: 24px; }
  .news-item{ max-width: 78vw; }

  .pain-grid, .services-grid, .flow-list{ grid-template-columns: 1fr; }

  .estimate-options{ grid-template-columns: 1fr; }
  .estimate-form{ padding: 24px 20px; }

  .section-head{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head.with-link{ align-items: flex-start; }

  .contact-form{ grid-template-columns: 1fr; }

  .cta-inner{ max-width: none; }
  .cta-caption{ display: none; }

  .footer-inner{ grid-template-columns: 1fr; gap: 32px; }

  .mobile-cta{ display: block; }
  main{ padding-bottom: 60px; }

  .page-hero{ padding: calc(var(--header-h) + 40px) 0 48px; }
  .toc-box{ padding: 24px 20px; }
  .recommend-grid{ grid-template-columns: repeat(2, 1fr); }
  .example-grid, .addon-grid, .addon-grid.cols-4{ grid-template-columns: 1fr; }
  .option-columns{ grid-template-columns: 1fr; }
  .extra-list{ columns: 1; }
  .chapter-head{ flex-direction: column; gap: 10px; }
  section.chapter{ padding: 56px 0; }
}
