/*
Theme Name: 退職代行4980
Theme URI: https://taisyoku.ordinal-online.com/
Author: Ordinal Online
Author URI: https://ordinal-online.com/
Description: 退職代行4980の公式サイト用テーマ。雇用形態を問わず一律4,980円を訴求する、価格特化型の1ページ構成ランディングページテーマ。タイポグラフィ主導・罫線ベースのエディトリアルなデザインを採用。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taishoku4980
*/

/* ==========================================================
   0. RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, form, fieldset, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
  --navy:        #16283F;
  --navy-soft:   #223954;
  --sky:         #3E7FB0;
  --sky-deep:    #2C5F87;
  --sky-pale:    #EAF3FA;
  --white:       #FFFFFF;
  --ink:         #1E2430;
  --ink-soft:    #4B5563;
  --line:        #CBD5E0;
  --line-on-navy: rgba(255,255,255,0.22);

  --font-serif: 'Shippori Mincho', serif;
  --font-sans:  'Zen Kaku Gothic New', sans-serif;

  --container: 1120px;
  --gap-section: clamp(64px, 9vw, 120px);
}

/* ==========================================================
   2. BASE
   ========================================================== */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--navy); line-height: 1.55; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--gap-section) 0; }
.section-border { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: 0.02em; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 0.98rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid var(--navy);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sky { background: var(--sky); color: var(--white); border-color: var(--sky); }
.btn-sky:hover { background: var(--white); color: var(--sky); }
.btn-block { width: 100%; }

.photo-slot {
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 220px;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

/* ==========================================================
   3. HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo span { color: var(--sky); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover { border-color: var(--sky); color: var(--sky-deep); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.tel-block { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.tel-block .tel-num { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.tel-block .tel-caption { font-size: 0.72rem; color: var(--ink-soft); }
.header-actions .btn { padding: 12px 20px; font-size: 0.85rem; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ==========================================================
   4. HERO
   ========================================================== */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px) 24px clamp(48px, 6vw, 96px) 0;
  max-width: 560px;
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
}
.hero-copy h1 { font-size: clamp(2.15rem, 4.2vw, 3.1rem); letter-spacing: 0.02em; margin-bottom: 24px; }
.hero-copy .lead { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 36px; max-width: 46ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-shape {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}
.hero-shape img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(10%) contrast(1.05); }
.hero-shape::after { content: ''; position: absolute; inset: 0; background: var(--navy); opacity: 0.55; mix-blend-mode: multiply; }

.price-band { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); padding: 40px 0; }
.price-compare { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; text-align: center; }
.price-compare .was, .price-compare .now { display: flex; flex-direction: column; gap: 8px; }
.price-compare .was-label, .price-compare .now-label { font-size: 0.8rem; color: var(--ink-soft); }
.price-compare .was-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.price-compare .now-price { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--navy); font-weight: 800; }
.price-compare .now-price small { font-size: 1.2rem; font-weight: 500; margin-left: 4px; }
.price-band-notes {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.price-band-notes span:not(:last-child) { border-right: 1px solid var(--line); padding-right: 28px; }

/* ==========================================================
   5. EXPLAINER
   ========================================================== */
.explainer .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.explainer-lead h2 { margin-bottom: 24px; }
.explainer-lead p { color: var(--ink-soft); }
.explainer-facts { border-left: 1px solid var(--line); padding-left: 40px; }
.fact-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child { border-bottom: none; }
.fact-row h4 { font-size: 1rem; margin-bottom: 8px; }
.fact-row p { font-size: 0.92rem; color: var(--ink-soft); }

/* ==========================================================
   6. WORRIES
   ========================================================== */
.worries-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.worries-photo { min-height: 100%; }
.worries-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.worry-tag { border: 1px solid var(--line); padding: 14px 20px; font-size: 0.92rem; color: var(--ink); background: var(--white); }
.worries-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.worries-cta p { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); }

/* ==========================================================
   7. STRENGTHS
   ========================================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.strength-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 28px; }
.strength-cell .tag { font-family: var(--font-serif); font-size: 1.6rem; color: var(--sky); font-weight: 700; margin-bottom: 18px; }
.strength-cell.price-cell { grid-column: span 2; background: var(--sky-pale); }
.price-cell-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 800; color: var(--sky-deep); margin-bottom: 14px; }
.price-cell-num small { font-size: 1.1rem; font-weight: 500; margin-left: 2px; }
.strength-cell h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.6; }
.strength-cell p { font-size: 0.88rem; color: var(--ink-soft); }

/* ==========================================================
   8. PRICING
   ========================================================== */
.pricing { background: var(--navy); color: var(--white); }
.pricing h2, .pricing .section-head p { color: var(--white); }
.pricing .section-head p { color: rgba(255,255,255,0.7); }
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-navy);
  border: 1px solid var(--line-on-navy);
}
.price-card { background: var(--navy); padding: 40px 32px; text-align: center; }
.price-card .plan { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.price-card .amount { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; }
.price-cards-single { grid-template-columns: 1.4fr 1fr; }
.price-card-main .amount { font-size: 3.2rem; color: var(--sky); }
.price-card .amount small { font-size: 1rem; font-weight: 400; margin-left: 4px; }
.price-note {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-navy);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

/* ==========================================================
   9. FLOW
   ========================================================== */
.flow-list { display: grid; grid-template-columns: repeat(6, 1fr); }
.flow-step { padding: 0 20px 0 0; position: relative; }
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 0;
  width: 20px;
  height: 1px;
  background: var(--line);
}
.flow-step .n {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  border: 1px solid var(--navy);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.flow-step h3 { font-size: 0.96rem; margin-bottom: 10px; }
.flow-step p { font-size: 0.84rem; color: var(--ink-soft); }

/* ==========================================================
   9b. BREAK BANNER
   ========================================================== */
.break-banner { padding: 0; }
.break-banner-inner { position: relative; height: 360px; overflow: hidden; }
.break-banner-inner img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(10%); }
.break-banner-overlay { position: absolute; inset: 0; background: rgba(22, 40, 63, 0.6); display: flex; align-items: center; justify-content: center; }
.break-banner-overlay p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  color: var(--white);
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

/* ==========================================================
   10. COMPARISON
   ========================================================== */
.compare-table { border: 1px solid var(--line); font-size: 0.88rem; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 16px 18px; text-align: center; }
.compare-table th { font-family: var(--font-serif); font-weight: 700; background: var(--white); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--ink-soft); }
.compare-table thead th.brand { background: var(--sky-pale); color: var(--sky-deep); }
.compare-table tbody td.brand { background: var(--sky-pale); font-weight: 700; color: var(--sky-deep); }

/* ==========================================================
   12. TRUST MESSAGE
   ========================================================== */
.trust-message { background: var(--sky-pale); }
.trust-message .photo-slot { min-height: 320px; }
.trust-message .container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.trust-message h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 24px; }
.trust-message p { color: var(--ink-soft); }
.trust-message p + p { margin-top: 16px; }

/* ==========================================================
   13. FAQ
   ========================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark { color: var(--sky); margin-right: 14px; font-family: var(--font-serif); }
.faq-item summary .toggle { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-item summary .toggle::before, .faq-item summary .toggle::after {
  content: ''; position: absolute; background: var(--navy);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-item summary .toggle::before { width: 14px; height: 1px; }
.faq-item summary .toggle::after { width: 1px; height: 14px; transition: transform .18s ease; }
.faq-item[open] summary .toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item .faq-a { padding: 0 4px 28px 34px; font-size: 0.92rem; color: var(--ink-soft); max-width: 68ch; }

/* ==========================================================
   14. CONTACT
   ========================================================== */
.contact .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; color: var(--ink); }
.field label .req { color: var(--sky); margin-left: 4px; font-size: 0.78rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-side { border: 1px solid var(--line); padding: 36px 28px; align-self: start; }
.contact-side h3 { font-size: 1.05rem; margin-bottom: 18px; }
.contact-side .tel-big { font-family: var(--font-serif); font-size: 1.9rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.contact-side .tel-hours { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 24px; }
.contact-side .btn { margin-bottom: 12px; }

.form-notice { border: 1px solid var(--line); border-left: 3px solid var(--navy); padding: 16px 20px; margin-bottom: 24px; font-size: 0.9rem; }
.form-notice-success { border-left-color: var(--sky); background: var(--sky-pale); color: var(--sky-deep); }
.form-notice-error { border-left-color: var(--navy); background: var(--white); color: var(--navy); }

.legal-list { border-top: 1px solid var(--line); }
.legal-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.legal-row dt { color: var(--ink-soft); margin: 0; }
.legal-row dd { color: var(--ink); margin: 0; }

/* ==========================================================
   15. FOOTER
   ========================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer-logo { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================
   17. LEGAL DOC PAGES (page.php — privacy policy / terms)
   ========================================================== */
.legal-doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 120px; }
.legal-doc h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 16px;
}
.legal-doc .updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 40px; }
.legal-doc h2 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: 40px 0 14px; }
.legal-doc p { font-size: 0.95rem; color: var(--ink); margin-bottom: 14px; max-width: 68ch; }
.legal-doc ul { padding-left: 1.3em; list-style: disc; margin-bottom: 14px; }
.legal-doc li { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.legal-doc .article-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-doc .legal-list { margin-top: 8px; }

/* ==========================================================
   18. RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
  .main-nav, .header-actions .tel-block { display: none; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 24px; cursor: pointer;
  }
  .nav-toggle-label span { height: 1px; background: var(--navy); width: 100%; }
  .nav-toggle:checked ~ .header-inner .main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-toggle:checked ~ .header-inner .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }

  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-shape { position: relative; width: 100%; height: 220px; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); order: -1; }
  .hero-copy { margin-left: 0; max-width: none; padding: 40px 24px; }
  .price-compare { gap: 32px; }
  .price-band-notes { gap: 16px; }
  .price-band-notes span:not(:last-child) { padding-right: 16px; }

  .worries-layout { grid-template-columns: 1fr; }
  .worries-photo { min-height: 220px; }
  .break-banner-inner { height: 240px; }

  .explainer .container { grid-template-columns: 1fr; gap: 40px; }
  .explainer-facts { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }

  .strengths-grid { grid-template-columns: repeat(2, 1fr); }

  .price-cards { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .flow-step::after { display: none; }

  .trust-message .container { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .strengths-grid { grid-template-columns: 1fr; }
  .strength-cell.price-cell { grid-column: span 1; }
  .flow-list { grid-template-columns: 1fr; }
}
