/* =============================================
   Lincoln Service Site - Main CSS
   ============================================= */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Gutenberg inner container reset */
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* ===== Variables ===== */
:root {
  --navy: #1a2a4a;
  --navy-dark: #0f1d36;
  --accent: #e63e3e;
  --accent-hover: #c42e2e;
  --blue: #2a7de1;
  --blue-light: #e8f2ff;
  --gold: #c8a84e;
  --gray-bg: #f5f6f8;
  --gray-light: #eaeaea;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --max-width: 1100px;
  --section-padding: 80px 0;
}

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.4;
}
.section-title span { color: var(--accent); }

/* ===== SVG Icon Utility ===== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 1em; height: 1em; fill: currentColor; }
.icon-lg { font-size: 3rem; color: var(--navy); }
.icon-lg svg { width: 56px; height: 56px; }
.icon-md { font-size: 2.5rem; }
.icon-md svg { width: 48px; height: 48px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-light);
  height: 64px;
  display: flex;
  align-items: center;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-logo .logo-main {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.header-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--text-light);
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.3s;
}
.header-nav a:hover { color: var(--blue); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; max-width: 480px; }
.hero-text .hero-brand {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-text .hero-brand .aim {
  font-size: 0.5em;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 2;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
}
.hero-tagline em {
  font-style: normal;
  color: var(--gold);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 30px;
  color: rgba(255,255,255,0.8);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(230,62,62,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,62,62,0.4);
}
.btn-primary.btn-disabled {
  background: #888;
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

/* Hero main visual */
.hero-visual {
  flex: 0 0 400px;
  max-width: 400px;
}
.hero-visual img { width: 100%; height: auto; display: block; }

/* ===== Problem Section ===== */
.problems {
  padding: var(--section-padding);
  background: var(--gray-bg);
}
.problems .section-title {
  background: var(--navy);
  color: var(--white);
  display: inline-block;
  padding: 12px 40px;
  border-radius: 8px;
  margin-bottom: 50px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}
.problems .section-title span { color: var(--gold); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.problem-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.problem-card:hover { transform: translateY(-4px); }
.problem-icon {
  margin-bottom: 16px;
  color: var(--accent);
}
.problem-icon svg { width: 52px; height: 52px; }
.problem-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.problem-character {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.problem-character .speech {
  display: inline-block;
  background: var(--white);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.problem-character .chara { width: 100px; }

/* ===== Solution Section ===== */
.solutions {
  padding: var(--section-padding);
  background: var(--blue-light);
}
.solutions .section-title { color: var(--navy); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.solution-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--blue);
  transition: transform 0.3s;
}
.solution-card:hover { transform: translateY(-4px); }
.solution-icon {
  margin-bottom: 16px;
  color: var(--blue);
}
.solution-icon svg { width: 52px; height: 52px; }
.solution-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.solution-chara { margin-top: 36px; }
.solution-chara .chara { width: 130px; }

/* ===== Features Section ===== */
.features { padding: var(--section-padding); }
.feature-item {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}
.feature-item:last-child { margin-bottom: 0; }
.feature-item:nth-child(even) { flex-direction: row-reverse; }
.feature-screenshot {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-light);
}
.feature-screenshot img { width: 100%; height: auto; display: block; }
.feature-info { flex: 1; }
.feature-info h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}
.feature-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
}

/* ===== Comparison Section ===== */
.comparison {
  padding: var(--section-padding);
  background: var(--navy);
  color: var(--white);
}
.comparison .section-title { color: var(--white); }
.comparison .section-title em {
  font-style: normal;
  color: var(--gold);
}
.comparison-tagline {
  text-align: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 50px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.comparison-box {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 28px;
}
.comparison-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.comparison-box.before h3 { color: #ff8a8a; }
.comparison-box.after h3 { color: #7ec8e3; }
.comparison-box ul { list-style: none; }
.comparison-box ul li {
  padding: 8px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison-box.before ul li::before { content: '\2717'; color: #ff8a8a; font-weight: 700; }
.comparison-box.after ul li::before { content: '\2714'; color: #7ec8e3; font-weight: 700; }
.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.comparison-arrow svg { width: 40px; height: 40px; fill: var(--gold); }
.comparison-chara {
  text-align: center;
  margin-top: 40px;
}
.comparison-chara .chara { width: 140px; }

/* ===== Message Section ===== */
.message {
  padding: var(--section-padding);
  background: var(--gray-bg);
}
.message-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.message-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-light);
  line-height: 2.2;
  margin-bottom: 20px;
}
.message-content .highlight-text {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--navy);
}
.message-heading {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 30px;
}

/* ===== CTA Section ===== */
.cta { padding: var(--section-padding); }
.cta .section-title { margin-bottom: 40px; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.cta-card {
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  border: 2px solid var(--gray-light);
  transition: all 0.3s;
}
.cta-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 25px rgba(42,125,225,0.12);
  transform: translateY(-4px);
}
.cta-icon {
  margin-bottom: 16px;
  color: var(--blue);
}
.cta-icon svg { width: 48px; height: 48px; }
.cta-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cta-card .btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.cta-card .btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.cta-card .btn-outline-disabled {
  border-color: #aaa;
  color: #aaa;
  cursor: default;
  pointer-events: none;
}

/* ===== CTA WordPress Button Override ===== */
.cta-card .is-layout-flex {
  justify-content: center;
}
.cta-card .wp-block-button.btn-outline {
  border: none;
  padding: 0;
  background: none;
}
.cta-card .wp-block-button.btn-outline .wp-block-button__link {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  background: none;
}
.cta-card .wp-block-button.btn-outline .wp-block-button__link:hover {
  background: var(--blue);
  color: var(--white);
}

/* ===== FAQ Section ===== */
.faq { padding: var(--section-padding); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-light);
}
.faq-item:first-child {
  border-top: 1px solid var(--gray-light);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 48px 22px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 12px;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--blue); }
.faq-question .faq-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  position: relative;
  top: -1px;
}
.faq-question::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 0 24px 44px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.faq-answer-inner .faq-label-a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  position: relative;
  top: -1px;
}
.faq-answer-inner p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ===== Character (たいがくん) ===== */
.chara { display: inline-block; }
.chara img { width: 100%; height: auto; display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.8rem; }
.footer-links { display: flex; gap: 40px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links ul li a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root { --section-padding: 60px 0; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-visual { flex: none; max-width: 300px; width: 100%; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item,
  .feature-item:nth-child(even) { flex-direction: column; }
  .comparison-grid { grid-template-columns: 1fr; gap: 16px; }
  .comparison-arrow { transform: rotate(90deg); }
  .cta-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
  :root { --section-padding: 48px 0; }
  .header-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s;
  }
  .header-nav.open { right: 0; }
  .hamburger { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .hero-text .hero-brand { font-size: 2rem; }
  .hero-visual { max-width: 260px; }
  .feature-item { gap: 24px; }
  .problems .section-title { padding: 10px 20px; font-size: 1.1rem; }
  .problem-character .chara { width: 70px; }
  .solution-chara .chara { width: 100px; }
  .comparison-chara .chara { width: 100px; }
}


/* =============================================
   利用規約ページ / 特商法ページ 共通スタイル
   ============================================= */
body.page-lincoln-terms a,
body.page-lincoln-tokushoho a { color: #2a7de1; text-decoration: none; }
body.page-lincoln-terms a:hover,
body.page-lincoln-tokushoho a:hover { text-decoration: underline; }

/* 下層ページではヘッダーにTOPに戻るリンクを表示 */
body.page-lincoln-terms .header-nav,
body.page-lincoln-tokushoho .header-nav { gap: 0; }

/* Page hero (下層ページ用) */
.page-hero {
  margin-top: 64px;
  background: var(--navy);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
}
.page-hero .updated {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ===== Terms page ===== */
.terms-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.terms-content > p.intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
  line-height: 2;
}
.terms-section {
  margin-bottom: 36px;
}
.terms-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}
.terms-section p,
.terms-section li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 2;
}
.terms-section ol {
  padding-left: 1.5em;
  margin-top: 4px;
}
.terms-section ol li { margin-bottom: 4px; }
.terms-section ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-top: 4px;
}
.terms-section ul li { margin-bottom: 4px; }

/* ===== Tokushoho page ===== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.page-content > p.intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
  line-height: 2;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table tr {
  border-bottom: 1px solid var(--gray-light);
}
.info-table tr:first-child {
  border-top: 1px solid var(--gray-light);
}
.info-table th,
.info-table td {
  padding: 18px 16px;
  font-size: 0.92rem;
  line-height: 1.9;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 200px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gray-bg);
  white-space: nowrap;
}
.info-table td { color: var(--text); }
.info-table td ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
}
.info-table td ul li { margin-bottom: 2px; }

/* 下層ページ用フッター（シンプル） */
body.page-lincoln-terms .footer,
body.page-lincoln-tokushoho .footer {
  padding: 24px 20px;
}
body.page-lincoln-terms .footer-content,
body.page-lincoln-tokushoho .footer-content { display: none; }

@media (max-width: 600px) {
  .terms-content { padding: 32px 16px 60px; }
  .terms-section h2 { font-size: 1rem; }
  .page-content { padding: 32px 16px 60px; }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .info-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }
  .info-table td {
    padding-top: 4px;
    padding-bottom: 16px;
  }
}
