/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #f3c517;
  /* キーカラー */
  --primary-dark: #d9ae15;
  /* ホバー用など */
  --secondary-color: #4a5568;
  /* グレー系 */
  --secondary-light: #718096;
  --text-color: #2d3748;
  /* 基本テキスト */
  --text-light: #4a5568;
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  --white: #ffffff;
  --black: #171923;
  --border-color: #e2e8f0;
  --error-color: #e53e3e;
  /* エラー表示用 */
  --font-family: "Noto Sans JP", sans-serif;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* 基本フォントサイズ */
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent potential horizontal scroll */
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1em;
  overflow-wrap: break-word;
  /* 長い単語がはみ出す場合に折り返す */
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section {
  padding: 80px 0;
  position: relative;
  /* Added for potential absolute positioning children */
  overflow: hidden;
  /* Prevents absolute positioned elements from overflowing */
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  position: relative;
}

.section-title.accent-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

.section-description {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  /* Default max width */
  margin-left: auto;
  /* Center alignment */
  margin-right: auto;
  /* Center alignment */
  margin-bottom: 40px;
  /* Bottom margin */
  font-size: 1.1rem;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark p,
.bg-dark li {
  color: var(--white);
}

.bg-dark .section-title {
  color: var(--white);
}

.bg-dark .section-description {
  color: rgba(255, 255, 255, 0.8);
}

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

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8em 1.8em;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--black);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ========== Added Button Style for Dark Outline ========== */
.btn-outline-dark {
  background-color: transparent;
  color: var(--black);
  /* Dark text */
  border: 2px solid var(--black);
  /* Dark border */
}

.btn-outline-dark:hover {
  background-color: var(--black);
  /* Dark background on hover */
  color: var(--white);
  /* Light text on hover */
  transform: translateY(-2px);
  border-color: var(--black);
}

.btn-large {
  padding: 1em 2.5em;
  font-size: 1.1rem;
}

/* --- Header --- */
.header {
  background-color: var(--white);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 40px;
  display: block;
  flex-shrink: 0;
}

/* PC Navigation */
.global-nav {
  display: none;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  padding: 5px 0;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  width: 100%;
}

/* PC Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 15px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Active state for hamburger icon */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--white);
  z-index: 999;
  padding: 40px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
  transform: translateX(0);
  display: block;
}

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0 20px;
  margin: 0;
}

.mobile-menu nav li {
  list-style: none;
  width: 100%;
  max-width: 350px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.mobile-menu nav li a:not(.btn) {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 15px;
  text-align: center;
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-menu nav li a:not(.btn):hover {
  background-color: var(--bg-light);
  text-decoration: none;
}

.mobile-menu nav a {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 500;
}

.mobile-menu nav li a.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 180px;
  padding: 0.8em 1.5em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background-color: var(--bg-light);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-title {
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.hero-title-line {
  white-space: nowrap;
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1.5em;
  max-width: 550px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.hero-image img {
  max-width: 500px;
  /* Default max-width for larger screens */
  margin: 0 auto;
  /* Overridden for mobile below */
}

/* --- Problem Section --- */

/* ===== Styles for Header (Image + Title) ===== */
.problem-header {
  display: flex;
  flex-direction: column;
  /* Mobile: stack image and title */
  align-items: center;
  gap: 15px;
  /* Space between image and title */
  margin-bottom: 40px;
  /* Space below header */
}

.problem-header-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.problem-header-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.problem-header .section-title {
  margin-bottom: 0;
  /* Remove default bottom margin */
  text-align: center;
  /* Ensure title is centered on mobile */
}

/* ===== Styles for Columns ===== */
.problem-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* Mobile: 1 column */
  gap: 40px;
  /* Space between columns/rows */
  margin-top: 30px;
  /* Space above columns */
}

.problem-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center items horizontally */
}

/* Title inside column (H3) */
.problem-column-title {
  color: var(--primary-dark);
  /* Use primary dark color */
  font-size: 1.6rem;
  /* Adjust size */
  font-weight: 700;
  margin-bottom: 20px;
  /* Space below title */
}

/* Box containing the problem list */
.problem-box {
  border: 1px solid var(--border-color);
  /* Light grey border */
  border-radius: 10px;
  /* Rounded corners */
  padding: 25px 20px;
  /* Padding inside the box */
  background-color: var(--white);
  /* White background */
  width: 100%;
  /* Take full width of the column */
  margin-bottom: 25px;
  /* Space below box, above icon */
  min-height: 180px;
  /* Minimum height to align boxes roughly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center text vertically */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
}

/* Text inside the problem box */
.problem-box p {
  color: var(--text-light);
  /* Regular light text color */
  font-size: 1rem;
  /* Adjust size */
  font-weight: 400;
  /* Regular weight */
  line-height: 1.6;
  margin-bottom: 0.8em;
  /* Space between lines */
  text-align: center;
  /* Center align text */
}

.problem-box p:last-child {
  margin-bottom: 0;
  /* Remove margin from last item */
}

/* Icon at the bottom of each column */
.problem-column-icon {
  width: 100%;
  display: flex;
  justify-content: center;
}

.problem-column-icon img {
  max-width: 120px;
  height: auto;
}

/* --- About Section --- */
.about-content-wrapper {
  position: relative;
  margin-top: 20px;
  min-height: 250px;
  /* Initial height for mobile */
}

.about-text-content {
  /* Text content takes full width and is centered */
}

.about-content-wrapper .section-description {
  margin-bottom: 0;
  /* Reset bottom margin */
}

.about-character-image {
  /* Mobile: Position below text */
  width: 180px;
  margin: 30px auto 0;
  /* Center below text */
}

.about-character-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Value Sections (For Students/Companies) --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-color);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.value-icon {
  height: 60px;
  margin: 0 auto 25px;
}

.value-card-title {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.for-companies .value-card {
  border-top-color: var(--secondary-color);
}

.section-cta {
  margin-top: 50px;
  text-align: center;
}

/* --- Features Section --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
}

.feature-image {
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.feature-title {
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 350px;
  margin: 0 auto;
}

/* --- CTA Section --- */
.cta-background-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  max-width: 500px;
  height: auto;
  z-index: 0;
  opacity: 0.5;
  display: none;
  /* Hidden by default, shown on larger screens */
}

.cta-background-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ========== Added class for primary background CTA ========== */
.cta-bg-primary {
  background-color: var(--primary-color);
  /* Set background to primary color */
  color: var(--black);
  /* Default text color to black for contrast */
}

.cta-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Title color adjustment for this specific CTA */
.cta-bg-primary .cta-title {
  color: var(--black);
  /* Ensure title is black */
}

/* Button adjustments for this specific CTA */
.cta-bg-primary .btn-primary {
  /* Make primary button stand out on primary background */
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.cta-bg-primary .btn-primary:hover {
  background-color: var(--secondary-color);
  /* Example hover */
  border-color: var(--secondary-color);
  color: var(--white);
}

/* .btn-outline-dark is defined globally */

.cta-content-wrapper {
  position: relative;
  z-index: 1;
}

.cta-title {
  margin-bottom: 30px;
  line-height: 1.4;
}

.cta-title-line {
  display: block;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 35px;
  margin-bottom: 15px;
}

.footer-about p {
  margin-bottom: 0;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-link-group h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-link-group h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-link-group ul li {
  margin-bottom: 10px;
}

.footer-link-group a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-link-group a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-bottom {
  background-color: var(--black);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* --- Contact Page Specific Styles (No Changes Needed Here) --- */
.contact-page-main {
  padding-top: var(--header-height);
}

.contact-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.small-container {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  margin-top: 40px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 0.95rem;
}

.required-mark {
  color: var(--error-color);
  font-size: 0.8em;
  margin-left: 4px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(243, 197, 23, 0.25);
}

.form-control::placeholder {
  color: #a0aec0;
  opacity: 1;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

select.form-control::-ms-expand {
  display: none;
}

.privacy-policy-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.privacy-policy-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary-color);
}

.privacy-policy-consent label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.privacy-policy-consent .privacy-link {
  color: var(--primary-dark);
  text-decoration: underline;
}

.privacy-policy-consent .privacy-link:hover {
  color: var(--primary-color);
}

.form-submit-button {
  margin-top: 30px;
}

.error-message {
  display: none;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  width: 100%;
}

.form-control.is-invalid {
  border-color: var(--error-color);
}

.form-control.is-invalid:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25);
}

.privacy-policy-consent input[type="checkbox"].is-invalid + label {
  color: var(--error-color);
}

.privacy-policy-consent .error-message {
  margin-left: 26px;
  width: calc(100% - 26px);
}

.form-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  display: none;
}

.form-result.success {
  background-color: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
  display: block;
}

.form-result.error {
  background-color: #fed7d7;
  color: #742a2a;
  border: 1px solid #feb2b2;
  display: block;
}

/* --- Responsive --- */

/* Tablet */
@media (min-width: 768px) {
  /* Base font sizes */
  h1,
  .hero-title {
    font-size: 3.5rem;
  }

  h2,
  .section-title,
  .cta-title {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  p,
  .hero-subtitle,
  .section-description,
  .value-card p,
  .feature-item p,
  .problem-box p {
    /* Combined problem text style */
    font-size: 1rem;
    line-height: 1.7;
  }

  .privacy-policy-consent label {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.8em 1.8em;
  }

  .btn-large {
    font-size: 1.1rem;
    padding: 1em 2.5em;
  }

  .section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
  }

  /* Header */
  .global-nav {
    display: block;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    margin: 0;
    /* max-width is still 500px from global rule */
  }

  /* Problem Section Layout (Tablet+) */
  .problem-header {
    flex-direction: row;
    /* Side-by-side layout */
    justify-content: center;
    /* Center items */
    gap: 30px;
    /* Space between image and title */
    margin-bottom: 60px;
    /* More space below header */
  }

  .problem-header-image {
    width: 150px;
    height: 150px;
  }

  .problem-header .section-title {
    text-align: left;
    /* Align title left */
  }

  .problem-columns-wrapper {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns layout */
    gap: 30px;
    /* Adjust gap */
    margin-top: 0;
    /* Reset top margin as header provides spacing */
  }

  .problem-column-title {
    font-size: 1.8rem;
    /* Adjust column title size */
  }

  .problem-box {
    padding: 30px 25px;
    min-height: 200px;
    /* Adjust min-height */
  }

  .problem-box p {
    font-size: 1rem;
    /* Reset font size if needed */
    text-align: left;
    /* Align text left */
  }

  .problem-column-icon img {
    max-width: 150px;
    /* Larger icons */
  }

  /* About Section Layout (Tablet+) */
  .about-content-wrapper {
    min-height: 300px;
    /* Adjust height based on image */
  }

  .about-text-content {
    max-width: 70%;
    /* Adjust text width to leave space */
    margin: 0 auto;
    /* Keep centered */
  }

  .about-character-image {
    position: absolute;
    bottom: 0;
    right: 0;
    /* Start at the very right edge */
    width: 220px;
    /* Adjust size */
    margin: 0;
    /* Reset margin */
    transform: translateX(-20px);
    /* Pull slightly inward from the edge */
  }

  /* Value Grid */
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  /* Feature Grid */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* CTA Section Background Image */
  .cta-background-image {
    display: block;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr 2fr;
    gap: 60px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Form */
  .form-label {
    font-size: 1rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  h1,
  .hero-title {
    font-size: 4.2rem;
  }

  /* .section-description { font-size: 1.2rem; } */

  .value-grid {
    gap: 40px;
  }

  /* Problem Section Layout (Desktop) */
  .problem-header-image {
    width: 180px;
    height: 180px;
  }

  .problem-box {
    min-height: 220px;
    /* Adjust min-height */
  }

  .problem-column-icon img {
    max-width: 170px;
    /* Larger icons */
  }

  /* About Section Layout (Desktop) */
  .about-content-wrapper {
    min-height: 350px;
    /* Adjust height */
  }

  .about-text-content {
    max-width: 65%;
    /* Narrower text */
  }

  .about-character-image {
    width: 280px;
    /* Larger image */
    right: 5%;
    /* Position further from edge */
    transform: translateX(0);
    /* Reset transform */
  }

  /* CTA Background Image Size */
  .cta-background-image {
    width: 35%;
    max-width: 600px;
  }
}

/* Larger Desktop / Feature Grid 3 columns */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  /* About Section Layout (Larger Desktop) */
  .about-content-wrapper {
    min-height: 400px;
    /* Adjust height */
  }

  .about-text-content {
    max-width: 60%;
    /* Even narrower text */
  }

  .about-character-image {
    width: 330px;
    /* Larger image */
    right: 8%;
    /* Adjust position */
  }

  /* CTA Background Image Size */
  .cta-background-image {
    width: 30%;
    max-width: 700px;
    opacity: 0.7;
  }
}

/* --- Responsive Text Adjustments (Mobile First) --- */
@media (max-width: 767px) {
  /* Font sizes */
  h1,
  .hero-title {
    font-size: 2.2rem;
  }

  h2,
  .section-title,
  .cta-title {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p,
  .hero-subtitle,
  .section-description,
  .value-card p,
  .feature-item p,
  .problem-box p {
    /* Combined problem text style */
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.7em 1.5em;
  }

  .btn-large {
    font-size: 1rem;
    padding: 0.9em 2em;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-control {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .privacy-policy-consent label {
    font-size: 0.85rem;
  }

  .error-message {
    font-size: 0.8rem;
  }

  /* Hero title wrapping */
  .hero-title-line {
    white-space: normal;
  }

  /* Problem section title */
  .problem-header .section-title {
    font-size: 1.8rem;
  }

  .problem-column-title {
    font-size: 1.4rem;
    /* Adjust column title size */
  }

  /* About section layout on mobile */
  .about-content-wrapper {
    min-height: auto;
    /* Reset min-height */
  }

  .about-character-image {
    position: static;
    /* Back to static flow */
    margin: 30px auto 0;
    width: 180px;
    transform: translateX(0);
    /* Reset transform */
  }

  .about-text-content {
    max-width: 100%;
    /* Allow text full width */
  }

  .about-content-wrapper .section-description {
    text-align: center;
  }

  /* Problem section layout on mobile */
  .problem-columns-wrapper {
    grid-template-columns: 1fr;
    /* Confirm 1 column */
  }

  .problem-box p {
    text-align: center;
    /* Center align text on mobile */
  }

  /* ===== Mobile Hero Image Fix ===== */
  .hero-image img {
    max-width: 100%;
    /* Ensure image fits within its container on mobile */
    margin: 0 auto;
    /* Keep centered */
  }

  /* ===== End Mobile Hero Image Fix ===== */
}

/* Placeholder styles (can be removed when img are added) */
.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
  text-align: center;
  background: #eee;
  /* Add background for visibility */
  border: 1px dashed #ccc;
  /* Add border for visibility */
  min-height: 50px;
  /* Ensure it has some height */
}

/* --- Responsive Text Adjustments (Mobile First) --- */
@media (max-width: 767px) {
  /* ... (既存のモバイルスタイル) ... */

  /* ===== Mobile Hero Image Fix ===== */
  .hero-image img {
    max-width: 100%;
    /* Ensure image fits within its container on mobile */
    margin: 0 auto;
    /* Keep centered */
  }

  /* ===== End Mobile Hero Image Fix ===== */
}

/* Placeholder styles (can be removed when img are added) */
.placeholder-image {
  /* ... (既存のプレースホルダースタイル) ... */
}

/* ===== FAQ Page Styles ===== */
.faq-page-main {
  padding-top: var(--header-height);
  /* Adjust top padding */
}

.faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  /* Remove default marker */
  padding-right: 30px;
  /* Space for icon */
  transition: color 0.2s ease;
  color: var(--text-color);
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-question::-webkit-details-marker {
  display: none;
  /* Hide default marker for Chrome/Safari */
}

/* Custom Arrow Icon */
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondary-light);
  transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] > .faq-question {
  color: var(--primary-dark);
  /* Highlight opened question */
}

.faq-answer {
  padding: 10px 0 25px 15px;
  /* Indent answer slightly */
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
  /* Adjust font size if needed */
}

.faq-answer p {
  margin-bottom: 0.8em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .faq-question {
    font-size: 1.2rem;
    padding: 20px 0;
    padding-right: 40px;
    /* More space for icon */
  }

  .faq-question::after {
    font-size: 1.8rem;
  }

  .faq-answer {
    font-size: 1rem;
    padding: 15px 0 30px 20px;
  }
}

/* ===== End FAQ Page Styles ===== */

/* ===============================================
   Contact Page - Info Box
   =============================================== */
.contact-info-box {
  background-color: #f8f9fa;
  /* 背景色 */
  border: 1px solid #dee2e6;
  /* 枠線の色 */
  border-radius: 8px;
  /* 角の丸み */
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem auto 0;
  max-width: 600px;
  /* ボックスの最大幅 */
}

.contact-info-label {
  font-weight: 700;
  color: #212529;
  /* やや濃いグレー */
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-info-email {
  margin-bottom: 1.5rem;
}

.contact-info-email a {
  font-size: 1.6rem;
  font-weight: 700;
  /* サイトのプライマリーカラー(黄色)だと見づらいため、クリック可能なリンクとして分かりやすい青色を指定 */
  color: #0056b3;
  text-decoration: none;
  word-break: break-all;
  /* メールアドレスが長くても改行されるように */
  transition: color 0.2s ease-in-out;
}

.contact-info-email a:hover {
  color: #003d80;
  /* ホバー時にもう少し濃い青に */
  text-decoration: underline;
}

.contact-info-note {
  font-size: 0.9rem;
  color: #495057;
  /* やや薄いグレー */
  line-height: 1.8;
}

/* --- スマートフォン表示への対応 --- */
@media (max-width: 768px) {
  .contact-info-box {
    padding: 2rem 1.5rem;
  }

  .contact-info-email a {
    font-size: 1.25rem;
    /* スマホでは少し文字を小さく */
  }

  .contact-info-note {
    font-size: 0.85rem;
  }
}

/* --- 404 Page --- */
.not-found-section {
  padding-top: calc(var(--header-height) + 60px); /* 固定ヘッダーとの余白 */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(
    100vh - var(--header-height)
  ); /* ヘッダーを除いた画面の高さを確保 */
  text-align: center;
  background-color: var(--bg-light); /* 背景色を他のセクションと合わせる */
}

.not-found-image {
  max-width: 150px;
  margin: 0 auto 30px;
}

.not-found-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: var(--secondary-light);
  line-height: 1;
  margin-bottom: 0.1em;
  /* Heroセクションのh1を参考にしつつ、よりインパクトのあるスタイルに */
}

.not-found-subtitle {
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 25px;
  /* section-titleのスタイルを参考に */
}

.not-found-text {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  /* section-descriptionのスタイルを参考に */
}

.not-found-cta .btn {
  /* ボタンのスタイルは既存のものをそのまま利用 */
  transform: scale(1.05); /* 少しだけボタンを大きくして目立たせる */
}

/* 404 Page - Responsive */
@media (max-width: 767px) {
  .not-found-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }
  .not-found-image {
    max-width: 120px;
  }
  .not-found-title {
    font-size: 6rem; /* スマホでは少し小さく */
  }
  .not-found-subtitle {
    font-size: 1.6rem; /* スマホでは少し小さく */
  }
  .not-found-text {
    font-size: 0.95rem;
  }
}
