:root {
  --navy: #152a4d;
  --navy-deep: #0f2038;
  --pink: #e07a9a;
  --pink-soft: #f8d9e2;
  --gold: #b99a5b;
  --greige: #e7ddd0;
  --cream: #fbf7f1;
  --white: #ffffff;
  --charcoal: #243044;
  --muted: #6b7280;
  --border: rgba(21, 42, 77, 0.14);
  --shadow: 0 20px 50px rgba(21, 42, 77, 0.12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); }
.logo-character { width: 44px; height: 44px; object-fit: cover; object-position: top center; border-radius: 50%; background: var(--white); border: 2px solid var(--pink-soft); box-shadow: 0 6px 18px rgba(21,42,77,0.12); }
.logo-text { letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 16px; font-size: 0.88rem; color: var(--navy); }
.site-nav a { opacity: 0.84; }
.site-nav a:hover { opacity: 1; color: var(--pink); }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--white); border-radius: 12px; padding: 8px 10px; color: var(--navy); font-size: 1.2rem; }

.hero, .service-hero, .article-hero, .articles-index-hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 88% 18%, rgba(224, 122, 154, 0.18), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(185, 154, 91, 0.12), transparent 28%),
    linear-gradient(135deg, #fffaf5 0%, #f3eadf 100%);
}
.hero-grid, .service-hero-grid, .article-hero-grid, .articles-index-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--pink); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.35; }
h1 { margin: 0; font-size: clamp(2.15rem, 4.7vw, 4.1rem); letter-spacing: -0.045em; }
h1 span { color: var(--pink); }
.hero-lead, .article-lead { margin: 24px 0 0; max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 900; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 12px 30px rgba(21, 42, 77, 0.2); }
.btn-secondary { background: var(--pink); color: var(--white); box-shadow: 0 12px 30px rgba(224, 122, 154, 0.22); }

.guide-panel, .service-hero-card, .article-hero-guide, .articles-index-guide {
  position: relative;
  min-height: 430px;
  padding: 28px;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(21,42,77,0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-guide::before { display: none; }
.speech-bubble {
  position: relative;
  z-index: 3;
  display: inline-block;
  max-width: 310px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(21,42,77,0.08);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.speech-bubble.small { font-size: 0.9rem; max-width: 230px; }

.character-img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(21,42,77,0.16)); }
.hero-character { max-width: 320px; margin: 4px auto 0; position: relative; z-index: 2; }
.service-main-character { max-width: 300px; margin: 10px auto 0; }
.article-guide-character { max-width: 260px; margin: 18px auto 0; }
.small-character { width: 112px; flex: 0 0 112px; }
.medium-character { max-width: 220px; }
.classroom-card { position: relative; z-index: 2; margin-top: 10px; padding: 18px; border-radius: 20px; background: #fff7ed; border: 1px dashed rgba(224,122,154,0.4); }
.classroom-card span { color: var(--pink); font-weight: 900; }
.classroom-card p { margin: 6px 0 0; color: var(--muted); }

.section { padding: 78px 0; }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.with-mascot { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 100%; }
.section-heading h2, .concept-box h2, .service-box h2, .final-cta-box h2 { margin: 0; font-size: clamp(1.75rem, 3.1vw, 2.8rem); }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.mini-guide {
  position: relative;
  display: block;
  width: 330px;
  min-height: 170px;
  padding-top: 8px;
}
.mini-guide .small-character {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 98px;
  height: auto;
  z-index: 2;
}
.mini-guide .speech-bubble.small {
  position: absolute;
  left: 78px;
  top: 0;
  margin: 0;
  max-width: 230px;
  z-index: 3;
}
.mini-guide .speech-bubble.small::after {
  left: 22px;
  right: auto;
  bottom: -10px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-card { display: flex; align-items: center; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); color: var(--navy); font-weight: 800; box-shadow: 0 10px 24px rgba(21,42,77,0.06); }
.problem-card span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff1f5; flex: 0 0 40px; }

.concept-section, .review-section { background: #fff9f2; }
.concept-box { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center; padding: 34px; border-radius: calc(var(--radius) + 10px); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.concept-text p:not(.eyebrow) { color: var(--muted); font-size: 1.03rem; }
.concept-guide { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.review-list { display: grid; gap: 12px; }
.review-list div { padding: 16px 18px; border-radius: 18px; background: #fff7ed; border: 1px solid rgba(224,122,154,0.18); }
.review-list strong { display: block; color: var(--navy); }
.review-list span { color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card, .article-card, .flow-card { padding: 25px; background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 0 14px 36px rgba(21,42,77,0.07); }
.category-card { position: relative; overflow: hidden; }
.category-card::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 100px; height: 100px; border-radius: 50%; background: rgba(224,122,154,0.08); }
.category-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #fff1f5; font-size: 1.5rem; margin-bottom: 14px; }
.category-card span { display: inline-block; color: var(--pink); font-weight: 900; letter-spacing: 0.14em; }
.category-card h3 { margin: 10px 0 8px; font-size: 1.24rem; }
.category-card p { color: var(--muted); margin: 0; }
.category-card.featured { background: linear-gradient(135deg, var(--navy), #253c5c); color: var(--white); }
.category-card.featured h3, .category-card.featured p { color: var(--white); }
.category-card.featured .category-icon { background: rgba(255,255,255,0.16); }

.articles-section, .flow-section { background: #f2e9df; }
.article-grid, .flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-thumb { height: 138px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #fff, #f7dce5); color: var(--navy); font-weight: 900; letter-spacing: 0.08em; }
.article-label { margin: 18px 0 8px; color: var(--pink); font-size: 0.82rem; font-weight: 900; }
.article-card h3 { margin: 0; font-size: 1.1rem; }
.flow-card span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 900; margin-bottom: 14px; }
.flow-card h3 { margin: 0 0 8px; }
.flow-card p { margin: 0; color: var(--muted); }

.service-section, .reassurance-section { background: linear-gradient(135deg, #fff5f2, #eef3fb); }
.service-box { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; padding: clamp(30px, 6vw, 62px); border-radius: calc(var(--radius) + 10px); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.service-copy p:not(.eyebrow) { color: var(--muted); }
.reassurance-list { display: grid; gap: 8px; padding: 0; margin: 22px 0; list-style: none; }
.reassurance-list li { position: relative; padding-left: 28px; color: var(--navy); font-weight: 800; }
.reassurance-list li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); }
.service-guide { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.service-box .btn { background: var(--pink); color: var(--white); }

.final-cta-section { background: var(--cream); }
.final-cta-box { text-align: center; padding: clamp(32px, 6vw, 64px); border-radius: calc(var(--radius) + 10px); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.final-cta-box p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin: 18px auto 26px; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px !important; }

.article-category-label { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--pink); color: var(--white); font-weight: 900; font-size: 0.82rem; margin: 0 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 0.9rem; }
.article-meta span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; padding: 72px 0; }
.article-main { display: grid; gap: 28px; }
.article-block, .article-callout, .article-service-cta, .sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: 0 14px 36px rgba(21,42,77,0.07); }
.article-block { padding: clamp(24px, 4vw, 42px); }
.article-block h2 { margin-top: 0; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.article-block p { color: var(--charcoal); }
.article-check-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.article-check-list li { position: relative; padding-left: 30px; font-weight: 800; color: var(--navy); }
.article-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); }
.article-callout { display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: center; padding: 20px; background: #fff7ed; }
.callout-character { max-width: 86px; filter: none; }
.article-callout strong { color: var(--pink); }
.article-callout p { margin: 4px 0 0; color: var(--muted); }
.article-step-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.article-step-list li { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: #fff7ed; border: 1px solid rgba(224,122,154,0.18); }
.article-step-list strong { color: var(--navy); }
.article-step-list span { color: var(--muted); }
.article-service-cta { display: grid; grid-template-columns: 1fr 190px; gap: 24px; align-items: center; padding: clamp(26px, 4vw, 42px); background: linear-gradient(135deg, #fff5f2, #eef3fb); }
.article-service-cta h2 { margin: 0; }
.article-service-cta p:not(.eyebrow) { color: var(--muted); }
.cta-character { max-width: 180px; }
.article-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.sidebar-card { padding: 22px; }
.sidebar-character { max-width: 120px; margin: 10px auto; filter: none; }
.sidebar-card p { color: var(--muted); }
.sidebar-link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sidebar-link-list a { display: block; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: var(--navy); font-weight: 800; }

.article-filter-list { display: flex; flex-wrap: wrap; gap: 12px; }
.article-filter-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); color: var(--navy); font-weight: 900; box-shadow: 0 10px 24px rgba(21,42,77,0.05); }
.articles-list-section { background: #f2e9df; }
.articles-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-list-card { background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 0 14px 36px rgba(21,42,77,0.07); overflow: hidden; }
.article-list-card a { display: grid; height: 100%; }
.article-list-thumb { min-height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, #fff, #f7dce5); }
.simple-thumb { color: var(--navy); font-weight: 900; letter-spacing: 0.08em; font-size: 1.1rem; }
.article-card-character { max-width: 135px; filter: none; }
.article-list-body { padding: 24px; }
.article-list-body h3 { margin: 0 0 10px; font-size: 1.2rem; }
.article-list-body p:not(.article-label) { color: var(--muted); margin: 0 0 16px; }
.article-list-body span { color: var(--pink); font-weight: 900; }
.featured-article-card { grid-column: span 1; }
.article-index-cta-section { background: var(--cream); }

.site-footer { padding: 34px 0; background: var(--navy-deep); color: rgba(255,255,255,0.72); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-character { width: 42px; height: 42px; object-fit: cover; object-position: top center; border-radius: 50%; background: var(--white); }
.footer-logo { color: var(--white); font-weight: 900; margin: 0; }
.footer-inner p { margin: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 74px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .hero-grid, .service-hero-grid, .article-hero-grid, .articles-index-grid, .concept-box, .service-box, .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .section-heading.with-mascot { flex-direction: column; align-items: flex-start; }
  .problem-grid, .category-grid, .article-grid, .flow-grid, .articles-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero, .service-hero, .article-hero, .articles-index-hero { padding: 58px 0; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .problem-grid, .category-grid, .article-grid, .flow-grid, .articles-list-grid { grid-template-columns: 1fr; }
  .mini-guide {
    width: 100%;
    min-height: 160px;
  }
  .mini-guide .small-character {
    width: 88px;
  }
  .mini-guide .speech-bubble.small {
    left: 74px;
    max-width: calc(100% - 82px);
  }
  .concept-guide, .service-guide { align-items: flex-start; }
  .medium-character { max-width: 180px; }
  .service-main-character, .article-guide-character { max-width: 220px; }
  .article-layout { padding: 42px 0; }
  .article-callout { grid-template-columns: 64px 1fr; }
  .callout-character { max-width: 64px; }
  .article-service-cta { grid-template-columns: 1fr; text-align: left; }
  .cta-character { max-width: 140px; margin: 0 auto; }
  .article-filter-list { display: grid; grid-template-columns: 1fr; }
  .article-filter-list a { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .article-page .article-hero {
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .article-page .article-hero::before {
    content: "";
    display: block;
    width: min(100% - 28px, 1120px);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto 22px;
    border-radius: 22px;
    background-image: url("assets/eyecatches/why-50s-men-get-no-likes.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 12px 28px rgba(21,42,77,0.10);
  }

  .article-page .article-hero-guide {
    display: none;
  }

  .article-page .article-main > figure.article-block:first-child {
    display: none;
  }

  .article-page .article-layout {
    padding-top: 26px;
  }
}
@media (max-width: 640px) {
  .hero .hero-guide {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .mini-guide {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    width: 100%;
    min-height: auto;
    padding-top: 8px;
    margin-top: 10px;
  }

  .mini-guide .small-character {
    position: static;
    width: 72px;
    align-self: end;
  }

  .mini-guide .speech-bubble.small {
    position: relative;
    left: auto;
    top: auto;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.65;
    align-self: start;
  }

  .mini-guide .speech-bubble.small::after {
    left: -7px;
    right: auto;
    bottom: 18px;
    width: 14px;
    height: 14px;
    border-right: none;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
  }
}
/* Problem section mini guide layout fix */
.problems-section .mini-guide {
  display: grid;
  grid-template-columns: 76px minmax(0, 230px);
  align-items: end;
  gap: 12px;
  width: auto;
  min-height: auto;
  padding-top: 0;
  margin-left: auto;
}

.problems-section .mini-guide .small-character {
  position: static;
  width: 76px;
  height: auto;
  align-self: end;
  z-index: 2;
}

.problems-section .mini-guide .speech-bubble.small {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  max-width: 230px;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.65;
  align-self: start;
}

.problems-section .mini-guide .speech-bubble.small::after {
  left: -7px;
  right: auto;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-right: none;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .problems-section .section-heading.with-mascot {
    align-items: flex-start;
  }

  .problems-section .mini-guide {
    margin-left: 0;
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .problems-section .mini-guide {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .problems-section .mini-guide .small-character {
    width: 64px;
  }

  .problems-section .mini-guide .speech-bubble.small {
    max-width: 100%;
    font-size: 0.8rem;
    padding: 11px 13px;
  }
}
/* Articles page mobile guide size fix */
@media (max-width: 640px) {
  .articles-index-guide {
    min-height: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .articles-index-guide .article-guide-character {
    max-width: 64px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .articles-index-guide .speech-bubble {
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.65;
    grid-column: 2;
    grid-row: 1;
  }

  .articles-index-guide .speech-bubble::after {
    left: -7px;
    right: auto;
    bottom: 18px;
    width: 14px;
    height: 14px;
    border-right: none;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
  }
}
/* Articles page mobile guide: remove frame and align bubble */
@media (max-width: 640px) {
  .articles-index-guide {
    min-height: auto !important;
    padding: 0 !important;
    margin-top: 22px;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .articles-index-guide .article-guide-character {
    max-width: 58px !important;
    width: 58px !important;
    margin: 0 !important;
    grid-column: 1;
    grid-row: 1;
    filter: drop-shadow(0 8px 12px rgba(21,42,77,0.10));
  }

  .articles-index-guide .speech-bubble {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
    grid-column: 2;
    grid-row: 1;
    border-radius: 16px;
  }

  .articles-index-guide .speech-bubble::after {
    left: -7px !important;
    right: auto !important;
    bottom: 16px !important;
    width: 13px !important;
    height: 13px !important;
    border-right: none !important;
    border-left: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    transform: rotate(45deg) !important;
  }
}

/* Article infographic responsive fix */
.article-infographic {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 28px;
  overflow: hidden;
}

.article-infographic img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.article-infographic--bare {
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .article-infographic {
    margin: 18px 0 24px;
  }

  .article-infographic img {
    border-radius: 14px;
  }
}
