@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  --primary-color: #1b7a74;      /* Teal Green */
  --primary-hover: #145d58;
  --primary-light: #eef7f6;      /* Light Teal Background */
  
  --accent-orange: #f07f60;      /* Coral Orange */
  --accent-orange-hover: #d66446;
  --accent-pink: #e86e96;        /* Pink Accent */
  --accent-yellow: #f0a000;      /* Yellow Orange for Female CTA */
  
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #ffffff;
  
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
  
  --border-color: #dddddd;
  --border-color-light: #eeeeee;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --container-width: 1100px;
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

/* Common Layout Containers */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}


section > .head {
  text-align: center;
  margin-bottom: 40px;
}

section > .head h2 {
  font-size: 29px;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

section > .head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-orange);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  background-color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 9999;
  display: block;
}

/* Upper Header Info Area */
header > div {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Area */
header > div > section:first-child a {
  display: flex;
  align-items: center;
  gap: 12px;
}

header > div > section:first-child figure {
  width: 60px;
}

header > div > section:first-child figure img {
  border-radius: 4px;
}

header > div > section:first-child div {
  display: block;
}

header > div > section:first-child div p {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2px;
}

header > div > section:first-child div h1 {
  font-size: 21px;
  color: var(--text-dark);
  font-weight: 700;
  margin: 0;
}

/* Address */
header > div > address {
  font-style: normal;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  display: block; /* Show on PC header */
}

/* Contact Info */
header > div > section:nth-child(3) {
  font-size: 13px;
  color: var(--text-dark);
  display: none; /* Hide on mobile/tablet and PC header */
}

/* CTA */
header > div > section:nth-child(4) {
  text-align: center;
}

header > div > section:nth-child(4) p:first-child {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
  display: none;
}

header > div > section:nth-child(4) p:last-child a {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 3px 6px rgba(27, 122, 116, 0.3);
  transition: all 0.3s ease;
}

header > div > section:nth-child(4) p:last-child a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(27, 122, 116, 0.4);
}

/* Navigation Menu */
.nav-cta-item {
  display: none;
}

header > nav {
  background-color: #3fb1ac;
  border-top: none;
  width: 100%;
}

header > nav ul {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

header > nav ul li {
  text-align: center;
}

header > nav ul li a {
  display: block;
  padding: 14px 15px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  transition: opacity 0.3s ease;
}

/* ホバーとアクティブ時の洗練されたアンダーラインアニメーション */
header > nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--text-light);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

header > nav ul li a:hover {
  opacity: 0.85;
}

header > nav ul li a:hover::after,
header > nav ul li.active a::after {
  transform: scaleX(1);
}

header > nav ul li.active a {
  color: var(--text-light);
}

/* Hamburger Menu Toggle (added for mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 10000;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero and Page Title
   ========================================================================== */
#pagetitle {
  background-color: var(--primary-light);
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
}

#pagetitle h2 {
  font-size: 27px;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

/* Breadcrumb Styling helper */
.breadcrumb {
  max-width: var(--container-width);
  margin: -20px auto 30px;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-gray);
  text-align: right;
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Home (index.html) Page Styles
   ========================================================================== */
/* Hero / Main Visual */
#top-mv:first-of-type {
  padding: 0;
  background-color: #f7ece8;
  overflow: hidden;
}

#top-mv:first-of-type figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* Welcome Intro */
#top-msg {
  background-color: var(--bg-white);
  padding: 65px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: none;
}

#top-msg .head h1 {
  font-size: 25px;
  color: var(--primary-color);
  line-height: 1.5;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

#top-msg > div {
  text-align: left;
  margin-bottom: 40px;
}

#top-msg > div p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

#top-msg > figure {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 40px;
}

#top-msg > figure img {
  max-height: 110px;
  width: auto;
}

#top-msg > figure figcaption {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
}

/* News Section in Welcome (Independent) */
#top-news {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: 0;
  border: none;
  box-shadow: none;
  text-align: left;
}

#top-news h2 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-align: left;
}

#top-news h2::after { display: none; }

#top-news article {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

#top-news article time {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
  width: 90px;
}

#top-news article p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Chosen Reasons Section */
#top-reason {
  background-color: var(--primary-light);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
}

#top-reason .head {
  margin-bottom: 0;
}

#top-reason article {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  counter-increment: reason-counter;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
}

#top-reason article img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

#top-reason article > div {
  flex: 1;
}

#top-reason article h3 {
  font-size: 21px;
  color: #000;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#top-reason article h3::before {
  content: "0" counter(reason-counter);
  font-size: 45px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-orange);
  line-height: 1;
}

#top-reason article p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.6;
}

#top-reason article p:last-child {
  margin-bottom: 0;
}

/* Meet Section (出会える方) */
#top-features {
  padding: 80px 20px;
  background-color: var(--bg-white);
}

#top-features .head {
  box-shadow: none;
  margin-bottom: 45px;
  text-align: center;
}

#top-features .head h2::after {
  background-color: var(--accent-orange);
}

#top-features .head div {
  max-width: var(--container-width);
  margin: 20px auto 0;
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  text-align: left;
}

#top-features .head div span {
  font-weight: 700;
  font-size: 19px;
}

#top-features .features-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

#top-features article {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  border: 2px solid #1b7a744f;
}

#top-features article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top-features article figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 85%);
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  opacity: 1;
}

#top-features article figcaption p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

#top-features article figcaption strong {
  display: block;
  font-size: 29px;
  color: #fff;
  margin: 5px 0;
}

/* Stat detail links */
#top-features nav {
  text-align: center;
  margin-top: 40px;
}

#top-features nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.2);
}

#top-features nav a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 122, 116, 0.3);
}

#top-features nav a::after {
  content: "→";
  font-size: 17px;
  transition: transform 0.3s ease;
}

#top-features nav a:hover::after {
  transform: translateX(4px);
}

/* Activities Plan Snippet */
#top-plan {
  background-color: var(--bg-light);
  padding: 80px 20px;
}

#top-plan .head h3 {
  font-size: 31px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 65px;
}

#top-plan > div {
  max-width: var(--container-width);
  margin: 0 auto;
}

#top-plan > div > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

#top-plan article {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

#top-plan article img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#top-plan article figcaption {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#top-plan article figcaption p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

#top-plan article figcaption ul {
  margin-bottom: 30px;
  flex-grow: 1;
}

#top-plan article figcaption ul li {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

#top-plan article figcaption ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 17px;
}

#top-plan article figcaption a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#top-plan article figcaption a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 122, 116, 0.3);
  text-decoration: none;
}

#top-plan article figcaption a::after {
  content: "→";
  font-size: 17px;
  transition: transform 0.3s ease;
}

#top-plan article figcaption a:hover::after {
  transform: translateX(4px);
}

/* Counselor Testimonials (成婚退会事例) */
#top-case {
  padding: 80px 20px;
  background-color: var(--bg-white);
}

#top-case .head h3 {
  font-size: 31px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 65px;
}

#top-case .case-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

#top-case article {
  background-color: var(--primary-light);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

#top-case article .head h4 {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--primary-color);
  padding-bottom: 8px;
}

#top-case article > div {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

#top-case article figure {
  align-self: center;
  margin-bottom: 20px;
}

#top-case article figure img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-white);
}

#top-case article blockquote {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: #38706c;
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid var(--accent-orange);
  line-height: 1.5;
}

/* Counselor Introduction snippet */
#top-counselor {
  padding: 80px 20px;
  background-color: var(--primary-light);
}

#top-counselor > div {
  max-width: 900px;
  margin: 0 auto;
}

#top-counselor article {
  display: flex;
  align-items: center;
  gap: 40px;
}

#top-counselor article figure {
  flex-shrink: 0;
  width: 250px;
  text-align: center;
}

#top-counselor article figure img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin: 0 auto 10px;
}

#top-counselor article figure figcaption {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
}

#top-counselor article > div {
  flex: 1;
}

#top-counselor article .head {
  text-align: left;
  margin-bottom: 20px;
  box-shadow: none;
}

#top-counselor article .head h2 {
  font-size: 23px;
  color: var(--primary-color);
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
}

#top-counselor article .head h2::after { display: none; }

#top-counselor article .head h3 {
  font-size: 18px;
  color: #000000;
  font-weight: 700;
  padding: 1rem 0;
}

#top-counselor article > div > div {
  font-size: 16px;
  margin-bottom: 25px;
}

#top-counselor article nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#top-counselor article nav a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 122, 116, 0.3);
  color: var(--text-light);
  text-decoration: none;
}

#top-counselor article nav a::after {
  content: "→";
  font-size: 17px;
  transition: transform 0.3s ease;
}

#top-counselor article nav a:hover::after {
  transform: translateX(4px);
}

/* Bottom Quick Links */
#top-links {
  padding: 60px 20px;
  background-color: var(--bg-white);
}

#top-links nav ul {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#top-links nav ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 70px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  padding: 10px;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
}

#top-links nav ul li a:hover {
  background-color: var(--accent-orange);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(240, 127, 96, 0.3);
}

/* ==========================================================================
   Inner Pages Specific Styles
   ========================================================================== */

/* Readme (初めての方へ) Page */
#nayami {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

#nayami .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  background: #f6f4f4;
  padding: 30px;
  border-radius: 8px;
}

#nayami .list ul {
}

#nayami .list ul li {
  font-size: 17px;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

#nayami .list ul li::before {
  content: "\f14a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color);
  font-size: 17px;
}

#nayami .list ul li:last-child {
  margin-bottom: 0;
}

#nayami .txt {
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.6;
}

#first-msg {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

#first-msg h2 {
  font-size: 22px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  border: 2px solid var(--primary-color);
  padding: .5rem 0;
}

#first-msg article {
  margin-bottom: 35px;
  padding: 30px;
  border-radius: 8px;
}

#first-msg article h3 {
  font-size: 19px;
  color: #000000;
  font-weight: 700;
  margin-bottom: 15px;
}

#first-msg article p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.8;
}

#first-msg article p:last-child {
  margin-bottom: 0;
}

/* Plan & Pricing Page */
.plan-inner {
  padding: 3rem 0;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.plan-inner h2 {
  grid-row: 1;
  grid-column: 1 / -1;
  text-align: left;
}

.plan-inner .plan-left {
  grid-row: 2;
  grid-column: 1;
}

.plan-inner figure {
  grid-row: 2;
  grid-column: 2;
  margin-bottom: 0;
}

.plan-inner .plan-bottom {
  grid-row: 3;
  grid-column: 1 / -1;
  margin-top: 20px;
}

.plan-inner .biko {
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.box {
  max-width: var(--container-width);
  margin: 0 auto 60px;
  width: 100%;
  padding: 3rem;
  background: #f3f3f3;
  border-radius: 12px;
  box-sizing: border-box;
}

.box section {
  margin-bottom: 45px;
}

.box section:last-child {
  margin-bottom: 0;
}

.box section h3 {
  font-size: 19px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: left;
  margin-bottom: 25px;
  padding-bottom: 0;
  border-bottom: none;
}

.box section p {
  font-size: 16px;
  line-height: 1.8;
}

.read {
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 20px;
  font-size: 16px;
  text-align: center;
  color: var(--text-gray);
}

main > section h2 {
  font-size: 23px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

main > section figure {
  margin-bottom: 30px;
}

main > section figure img {
  border-radius: 8px;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

main > section table {
  margin: 30px 0;
}

main > section table th,
main > section table td {
  padding: 15px 20px;
  text-align: left;
  font-size: 16px;
}

main > section table th {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
  width: 25%;
  border-bottom: 1px solid var(--border-color);
}

main > section table td {
  border-bottom: 1px solid var(--border-color-light);
  font-weight: 500;
}

.plan-inner p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.plan-inner .plan-bottom p:last-of-type {
  margin-top: 30px;
  text-align: center;
  color: #000000;
}

.plan-inner .plan-bottom p:last-of-type a {
  display: inline-block;
  background-color: #4a7ac5; /* Royal blue matching plan details */
  color: var(--text-light);
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.plan-inner .plan-bottom p:last-of-type a:hover {
  background-color: #3b63a2;
}

#counselor01,
#counselor02 {
  max-width: var(--container-width);
  margin: 0 auto 60px;
  padding: 0 20px;
  width: 100%;
}


#counselor01 h2,
#counselor02 h2 {
  text-align: left;
  font-size: 28px;
}

.counselor-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 30px;
}

.counselor-body figure {
  margin-bottom: 0;
  text-align: center;
}

.counselor-body figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.counselor-body figure figcaption {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  font-weight: 500;
}

.counselor-txt h3 {
  font-size: 19px;
  color: #000000;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.counselor-txt h3:first-of-type {
  margin-top: 0;
}

.counselor-txt ul {
  margin-bottom: 25px;
  list-style-type: none;
  padding-left: 0;
}

.counselor-txt ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.counselor-txt ul li:last-child {
  margin-bottom: 0;
}

#greeting-profile {
  max-width: var(--container-width);
  margin: 0 auto 50px;
  padding: 0 20px;
}

#greeting-profile h3 {
  font-size: 25px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

#greeting-profile .profile-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

#greeting-profile .profile-text h4 {
  font-size: 19px;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 5px;
  font-weight: 700;
}

#greeting-profile .profile-text ul {
  margin-bottom: 30px;
}

#greeting-profile .profile-text ul li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
}

#greeting-profile .profile-img img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.greeting-message {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.greeting-message section {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color-light);
}

.greeting-message section h3 {
  font-size: 19px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--primary-color);
}

.greeting-message section p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.greeting-message section p:last-child {
  margin-bottom: 0;
}

/* Service Flow (flow.html) */
.flow-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
  box-sizing: border-box;
}

.flow-box .flow-txt {
  grid-column: 1;
}

.flow-box figure {
  grid-column: 2;
  margin-bottom: 0;
}

.flow-box figure figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
}

.flow-txt h2 {
  text-align: left;
}

.flow-txt h2 .step-num {
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 15px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
  line-height: 1;
}

.flow-txt h3 {
  font-size: 19px;
  color: #000000;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#flow01 ol {
  counter-reset: step-counter 0;
}

#flow02 ol {
  counter-reset: step-counter 3;
}

#flow03 ol {
  counter-reset: step-counter 6;
}

.flow-txt li {
  padding: 1.5rem 0;
  counter-increment: step-counter;
}

.flow-txt h3::before {
  content: counter(step-counter);
  font-size: 14px;
  background-color: var(--primary-color);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.flow-intro > div {
  flex: 1;
}

.flow-intro h3 {
  font-size: 21px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.flow-intro p {
  font-size: 15px;
  line-height: 1.6;
}

.flow-intro img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.flow-arrow {
  text-align: center;
  font-size: 33px;
  color: var(--border-color);
  margin: 30px 0;
}

.flow-steps {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.flow-step-item {
  display: flex;
  gap: 25px;
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color-light);
}

.flow-step-num {
  width: 45px;
  height: 45px;
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-size: 21px;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.flow-step-content {
  flex: 1;
}

.flow-step-content h4 {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-step-content p {
  font-size: 15px;
  line-height: 1.6;
}

/* Member Data (data.html) */
.data-summary {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.data-summary h3 {
  font-size: 19px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.data-summary .summary-number {
  font-size: 37px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.data-summary .summary-number::before {
  content: "{";
  font-size: 55px;
  font-weight: 300;
  color: var(--accent-orange);
}

.data-summary .summary-number::after {
  content: "}";
  font-size: 55px;
  font-weight: 300;
  color: var(--accent-orange);
}

.data-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto 50px;
}

/* Membership Count Box (data.html) */
.membership-count-box {
  text-align: center;
  padding: 1.5rem 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.membership-count-box__label {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.membership-count-box__number {
  font-size: 42px;
  color: var(--accent-orange);
  font-weight: 800;
  line-height: 1;
}

.membership-count-box__unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.membership-count-box__date {
  font-size: 14px;
  color: var(--text-gray);
}

/* Data Box elements */
.data-box h3 {
  font-size: 21px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: left;
  margin-bottom: 30px;
  padding: 10px 0;
  border-top: 2.5px solid var(--primary-color);
  border-bottom: 2.5px solid var(--primary-color);
}

.data-box h4 {
  margin-top: 40px;
  margin-bottom: 8px;
}

.data-box .t0-b-table-bPlacer {
  margin-top: 0;
  max-width: 680px;
  width: 100%;
}

.chart-img img {
  width: auto !important;
  height: auto !important;
  object-fit: none !important;
  max-width: 100%;
}

.seikon-text {
  color: #000000 !important;
  font-weight: 700;
}

.highlight-red {
  color: #e03a3a;
  font-weight: 800;
}

.data-grid-ex {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}

.data-grid-ex h3 {
  grid-column: 1 / -1;
}

.data-grid-ex .data-left {
  grid-column: 1;
}

.data-grid-ex .data-right-img {
  grid-column: 2;
  margin-bottom: 0;
}

.data-grid-ex .data-right-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.membership-overview__note {
  font-size: 13px !important;
  color: #666666 !important;
  line-height: 1.5;
}

.data-box p.biko {
  font-size: 13px !important;
  color: #666666 !important;
  margin-top: 15px;
}

.data-box p.biko a {
  color: #666666 !important;
  text-decoration: underline;
}

.data-card {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 40px 20px;
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color-light);
}

.data-card h3 {
  font-size: 19px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  padding: 8px 0;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}

.data-card .data-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 30px;
  align-items: center;
}

.data-card .data-grid .chart-img img {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto;
}

.data-card table {
  margin-top: 15px;
}

.data-card table th,
.data-card table td {
  padding: 12px 15px;
  font-size: 15px;
  text-align: left;
}

.data-card table th {
  background-color: var(--bg-light);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.data-card table td {
  border-bottom: 1px solid var(--border-color-light);
}

/* FAQ (faq.html) */
.faq-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color-light);
}

#faq05 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.faq-index {
  max-width: none;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color-light);
}

.faq-box h3 {
  font-size: 19px;
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.faq-box h3 .faq-q {
  font-size: 18px;
  background-color: var(--primary-color);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-box .answer h4 {
  font-size: 17px;
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.faq-box .answer h4 .faq-a {
  font-size: 24px;
  color: var(--accent-orange);
  font-weight: 800;
  margin-right: 10px;
}

.faq-index h3 {
  font-size: 19px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.faq-index ul li {
  margin-bottom: 10px;
}

.faq-index ul li a {
  font-size: 15px;
  color: var(--text-dark);
  padding-left: 15px;
  position: relative;
}

.faq-index ul li a::before {
  content: "●";
  color: var(--accent-orange);
  font-size: 11px;
  position: absolute;
  left: 0;
  top: 2px;
}

.faq-index ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.access-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto 50px;
}

.biko {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-top: 15px;
}

.access-box h2 {
  text-align: left;
}

#about {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 50px;
  text-align: center;
}

.plan-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto 50px;
}

.plan-box h2 {
  text-align: left;
}

#read figure {
  margin: 50px 0;
}

#read figure img {
  max-height: 550px;
  object-fit: cover;
  width: 100%;
}

#flow .head h3 {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 22px;
  font-weight: 700;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  margin-bottom: 15px;
}

.summary-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.summary-text {
  flex: 1;
}

.summary-image {
  flex: 1;
}

.summary-image figure {
  margin: 0;
}

.summary-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.summary-text ul {
  padding-left: 0;
}

.summary-text ul li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  list-style: none;
}

.summary-text ul li::before {
  content: "●";
  color: var(--accent-orange);
  font-size: 11px;
  position: absolute;
  left: 0;
  top: 1px;
}

.tokutei-box {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto 50px;
  font-size: 15px;
}

.tokutei-box h2 {
  text-align: left;
}

.tokutei-box dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-top: 1px solid var(--border-color-light);
  margin-top: 20px;
}

.tokutei-box dt {
  grid-column: 1;
  background-color: var(--bg-light);
  padding: 18px 20px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color-light);
  border-right: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
}

.tokutei-box dd {
  grid-column: 2;
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid var(--border-color-light);
}

#about p.logo {
  margin-bottom: 30px;
}

#about p.logo img {
  max-width: 60%;
  height: auto;
  margin: 0 auto;
  padding: 3rem 0;
}

#about table {
  margin: 30px auto;
  text-align: left;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.faq-item {
  margin-bottom: 40px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 30px;
}

.faq-question {
  display: flex;
  gap: 15px;
  align-items: start;
  margin-bottom: 15px;
}

.faq-q-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  font-size: 19px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.faq-question h4 {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 700;
  padding-top: 6px;
}

.faq-answer {
  display: flex;
  gap: 15px;
  align-items: start;
  padding-left: 20px;
}

.faq-a-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-weight: 700;
  font-size: 19px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.faq-answer-content {
  flex: 1;
}

.faq-answer-content h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 8px;
  padding-top: 6px;
}

.faq-answer-content p {
  font-size: 15px;
  line-height: 1.7;
}

/* Inner Page bottom link helper styling */
.inner-links {
  max-width: 600px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.inner-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-color);
}

.inner-links a::before {
  content: "←";
  font-weight: 700;
}

.inner-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Form Styling (contact-male.html / contact-female.html)
   ========================================================================== */
#contact-case {
  max-width: 650px;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: var(--primary-light);
  border-radius: 8px;
  border: 1px solid #cce8e5;
}

#contact-case h3 {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

#contact-case ul {
  margin-bottom: 20px;
}

#contact-case ul li {
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

#contact-case ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

#contact-case p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.contact-form__inner {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form__header {
  text-align: center;
  margin-bottom: 35px;
}

.contact-form__header h2 {
  font-size: 21px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-form--female .contact-form__header h2 {
  color: var(--accent-pink);
}

.contact-form__header p {
  font-size: 15px;
  color: var(--text-gray);
}

.contact-form__table {
  width: 100%;
  margin-bottom: 30px;
}

.contact-form__table tr {
  border-bottom: 1px solid var(--border-color-light);
}

.contact-form__table th {
  padding: 20px 15px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  width: 30%;
  vertical-align: middle;
}

.contact-form__table th label {
  display: inline-block;
  margin-right: 8px;
}

.contact-form__table th .required {
  background-color: #d9534f;
  color: var(--text-light);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

.contact-form__table td {
  padding: 15px;
}

.contact-form__table td input[type="text"],
.contact-form__table td input[type="tel"],
.contact-form__table td input[type="email"],
.contact-form__table td select,
.contact-form__table td textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px;
}

.contact-form__table td textarea {
  max-width: 100%;
  height: 120px;
  resize: vertical;
}

.contact-form__table td p {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 5px;
}

.contact-form__submit {
  text-align: center;
}

.contact-form__submit button {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  font-size: 17px;
  padding: 12px 60px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.2);
  transition: all 0.3s ease;
}

.contact-form--female .contact-form__submit button {
  background-color: var(--accent-pink);
  box-shadow: 0 4px 10px rgba(232, 110, 150, 0.2);
}

.contact-form__submit button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Complete page specific */
.complete-message {
  max-width: 600px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.complete-message__inner {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.complete-message__check {
  font-size: 49px;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
}

.complete-message__inner h3 {
  font-size: 21px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
}

.complete-message__text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.complete-message__note {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  text-align: left;
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.complete-message__btn a {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 12px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.2);
}

.complete-message__btn a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer & Bottom CTA Area
   ========================================================================== */
/* Bottom Contact Box (どうぞお気軽にお問い合わせください) */
footer > section:first-of-type {
  background-color: var(--primary-light);
  padding: 60px 20px;
  text-align: center;
}

footer > section:first-of-type p:first-child {
  font-size: 23px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

footer > section:first-of-type p:nth-child(2) {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 30px;
}

footer .btn {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer CTA Button */
footer .btn a {
  display: inline-block;
  font-weight: 700;
  padding: 15px 50px;
  border-radius: 30px;
  font-size: 17px;
  color: var(--text-light) !important;
  min-width: 280px;
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.3) !important;
  transition: all 0.3s ease;
}

footer .btn a:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 122, 116, 0.4) !important;
}

/* Main Footer Container */
footer > section.footer-main-info {
  background-color: var(--bg-light);
  padding: 60px 20px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

/* Footer Left: Company info */
.footer-info > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-info > a figure {
  width: 50px;
}

.footer-info > a figure img {
  border-radius: 4px;
}

.footer-info > a p {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
}

.footer-info > a p strong {
  font-size: 19px;
  color: var(--text-dark);
  display: block;
}

.footer-info address {
  font-style: normal;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 25px;
}

.footer-info p img {
  max-width: 170px;
  height: auto;
}

.footer-info p a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-info p:last-of-type a {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: normal;
}

/* Footer Right: Links */
.footer-inner nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-inner nav ul li {
  margin-bottom: 10px;
}

.footer-inner nav ul li a {
  font-size: 14px;
  color: var(--text-dark);
  padding-left: 15px;
  position: relative;
}

.footer-inner nav ul li a::before {
  content: "▶";
  font-size: 9px;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 4px;
}

.footer-inner nav ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Google Map */
#gmap {
  padding: 0;
  background-color: var(--bg-gray);
}

#gmap iframe {
  display: block;
  filter: grayscale(10%) contrast(90%);
}

/* Copyright banner */
footer > small {
  display: block;
  text-align: center;
  background-color: var(--text-dark);
  color: #888888;
  padding: 15px 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet & Mobile (Max: 991px) */
@media (max-width: 991px) {
  
  /* Header adjustments */
  header {
    display: block;
    height: auto;
    padding: 0;
  }

  header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 15px;
  }

  header > div > section:first-child {
    order: initial;
  }

  header > div > section:first-child figure {
    width: 50px;
  }

  header > div > section:first-child div h1 {
    font-size: 19px;
  }

  header > div > address {
    display: none;
  }

  header > div > section:nth-child(4) {
    order: initial;
  }

  header > nav {
    order: initial;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color-light);
    width: 100%;
  }

  header > nav ul {
    display: flex;
    width: 100%;
    gap: 0;
  }

  header > nav ul li {
    flex: 1;
  }

  header > nav ul li a {
    padding: 14px 10px;
    font-size: 15px;
    border-right: 1px solid var(--border-color-light);
    color: var(--text-dark);
  }

  header > nav ul li:first-child a {
    border-left: 1px solid var(--border-color-light);
  }

  header > nav ul li a::after {
    display: none;
  }

  header > nav ul li a:hover,
  header > nav ul li.active a {
    background-color: var(--primary-color);
    color: var(--text-light);
  }
  
  /* Top menu list */
  #top-reason article {
    flex-direction: column;
    padding: 20px;
  }
  
  #top-reason article img {
    width: 100%;
    height: 220px;
  }
  
  #top-features .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  #top-features article {
    aspect-ratio: 2 / 1;
  }
  
  #top-features article figcaption {
    opacity: 1;
  }
  
  #top-plan > div > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #top-plan article img {
    height: 250px;
  }
  
  #top-case .case-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #top-counselor article {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
  
  #top-counselor article .head {
    text-align: center;
  }
  
  #top-counselor article figure img {
    width: 180px;
    height: 180px;
  }
  
  #top-links nav ul {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 400px;
  }
  
  #top-links nav ul li a {
    height: 55px;
    font-size: 15px;
  }
  
  /* Footer layout */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-inner nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Readme page list */
  #nayami .list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Flow list */
  .flow-box {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto;
  }

  .flow-box .flow-txt {
    grid-column: auto;
  }

  .flow-box figure {
    grid-column: auto;
  }

  .flow-intro {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .flow-intro img {
    width: 100%;
    max-width: 400px;
  }
  
  /* Greeting page profile */
  #greeting-profile .profile-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #greeting-profile .profile-img {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Data Page */
  .data-card .data-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .data-card .data-grid .chart-img {
    order: -1;
  }

  .data-grid-ex {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .data-grid-ex .data-left {
    grid-column: auto;
  }

  .data-grid-ex .data-right-img {
    grid-column: auto;
    order: -1;
  }

  /* Plan Page Responsive */
  .plan-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 2rem 20px;
  }
  
  .plan-inner h2 {
    grid-row: auto;
    grid-column: auto;
  }
  
  .plan-inner .plan-left {
    grid-row: auto;
    grid-column: auto;
  }
  
  .plan-inner figure {
    grid-row: auto;
    grid-column: auto;
    margin-bottom: 20px;
  }
  
  .plan-inner .plan-bottom {
    grid-row: auto;
    grid-column: auto;
    margin-top: 0;
  }

  /* Counselor Page Responsive */
  .counselor-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .counselor-body figure {
    max-width: 280px;
    margin: 0 auto;
  }

  #counselor01 h2,
  #counselor02 h2 {
    font-size: 24px;
  }

  .box {
    padding: 2rem 1.5rem;
  }

  .box section {
    margin-bottom: 30px;
  }
}

/* Mobile Devices (Max: 768px) */
@media (max-width: 768px) {
  body, p, li, td, dd, a {
    font-size: 14px !important;
  }

  /* SP版 各種コンテンツボックスの左右余白 */
  .plan-box,
  .data-box,
  .tokutei-box,
  .faq-box,
  #about,
  .access-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 背景色のあるボックスは、画面端に密着しないよう左右にマージンを設定し幅を自動調整 */
  .box,
  #contact-case {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }

  .box {
    padding: 1.5rem 20px;
  }

  #contact-case {
    padding: 20px;
  }

  /* Mobile Header Text Sizes */
  header > div > section:first-child figure {
    width: 40px;
  }

  header > div > section:first-child div h1 {
    font-size: 15px !important;
  }

  header > div > section:first-child div p {
    font-size: 10px !important;
    margin-bottom: 0;
  }

  /* Dynamic Responsive Nav Drawer */
  .nav-toggle {
    display: block; /* Show hamburger button */
  }
  
  header > nav {
    position: fixed;
    top: 60px; /* Below upper header */
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: var(--bg-white);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    transition: left 0.4s ease;
    overflow-y: auto;
    border-top: none;
    border-right: 1px solid var(--border-color-light);
    z-index: 9998;
  }
  
  header > nav.is-open {
    left: 0;
  }
  
  header > nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  header > nav ul li {
    text-align: left;
    width: 100%;
  }
  
  header > nav ul li a {
    padding: 15px 25px;
    font-size: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-color-light);
  }
  
  header > nav ul li:first-child a {
    border-left: none;
  }
  
  header > nav ul li a:hover,
  header > nav ul li.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  /* Hide CTA in header upper div on mobile */
  header > div > section:nth-child(4) {
    display: none !important;
  }

  /* Mobile Menu CTA Button */
  .nav-cta-item {
    display: block !important;
    padding: 15px 25px !important;
    text-align: center;
  }
  
  .nav-cta-btn {
    display: block !important;
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 12px 20px !important;
    border-radius: 30px;
    font-size: 15px !important;
    box-shadow: 0 3px 6px rgba(232, 125, 59, 0.3);
    margin: 10px 0;
    border-bottom: none !important;
  }
  
  .nav-cta-btn:hover {
    background-color: var(--accent-orange) !important;
    opacity: 0.9;
  }
  
  /* Welcome section text */
  #top-msg .head h1 {
    font-size: 17px !important;
  }

  #top-reason article h3 {
    font-size: 17px !important;
  }

  #top-plan .head h3 {
    font-size: 25px !important;
  }

  #top-case .head h3 {
    font-size: 25px !important;
  }
  
  /* Section title sizes */
  section > .head h2 {
    font-size: 25px;
  }
  
  /* Pricing table formatting on mobile */
  main > section table th,
  main > section table td {
    padding: 10px;
    font-size: 14px;
  }
  
  main > section table th {
    width: 35%;
  }
  
  /* 会員データページ：成婚者の推移テーブルのth幅を広げる */
  #data-ex02 table th {
    width: 45%;
  }
  
  /* FAQ Q&A indentation */
  .faq-answer {
    padding-left: 0;
  }
  
  /* Complete page message */
  .complete-message__inner {
    padding: 35px 20px;
  }
  
  /* Contact Form adjustments */
  .contact-form__inner {
    padding: 20px;
  }
  
  .contact-form__table th,
  .contact-form__table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  
  .contact-form__table tr {
    display: block;
  }
  
  .contact-form__table th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .contact-form__table td {
    border-bottom: none;
    padding-top: 5px;
  }
  
  .contact-form__submit button {
    width: 100%;
    padding: 12px;
  }
  
  /* Flow Steps */
  .flow-step-item {
    gap: 15px;
    padding: 15px;
  }
  
  /* Footer CTA layout */
  footer .btn {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  footer .btn a {
    width: 100%;
    max-width: 320px;
  }
  
  .footer-inner nav {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .summary-flex {
    flex-direction: column;
    gap: 20px;
  }
  
  .tokutei-box dl {
    grid-template-columns: 1fr;
  }
  
  .tokutei-box dt,
  .tokutei-box dd {
    grid-column: auto;
  }
  
  .tokutei-box dt {
    border-right: none;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 12px 15px;
  }
  
  .tokutei-box dd {
    padding: 15px;
  }
}
