/*
Theme Name: Nihon Kassei Theme
Theme URI:
Author: JRPO
Author URI:
Description: 日本再生と活性推進機構 公式サイトテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nihon-kassei-theme
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-gray { color: #6b7280; }
.text-sm { font-size: 0.875rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.bg-gray { background: #f9fafb; }

.section {
  padding: 5rem 0;
}

.section-title-block {
  padding: 8rem 0 4rem;
  background: #fff;
}

.section-main-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 3rem;
  color: #1a2e35;
  letter-spacing: 0.05em;
}

.title-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.title-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a2e35;
}

.accent-line {
  width: 5rem;
  height: 4px;
  background: #04a0a0;
  margin-top: 2rem;
}

.accent-line.center {
  margin: 1rem auto 0;
}

.label-accent {
  color: #04a0a0;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #04a0a0;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  margin-top: 1rem;
  text-decoration: none;
}

.link-arrow:hover {
  color: #038080;
}

.link-arrow svg {
  transition: transform 0.2s;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s;
  padding: 1.5rem 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s;
}

.header.scrolled .logo {
  color: #111827;
}

.logo-accent {
  color: #04a0a0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop button,
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.nav-desktop button:hover,
.nav-desktop a:hover {
  color: #04a0a0;
}

.header.scrolled .nav-desktop button,
.header.scrolled .nav-desktop a {
  color: #374151;
}

.header.scrolled .nav-desktop button:hover,
.header.scrolled .nav-desktop a:hover {
  color: #04a0a0;
}

.nav-toggle {
  color: #fff;
  padding: 0.5rem;
  transition: color 0.3s;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.header.scrolled .nav-toggle {
  color: #111827;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile button,
.nav-mobile a {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  text-align: left;
  padding: 0.5rem 0;
}

.nav-mobile button:hover,
.nav-mobile a:hover {
  color: #04a0a0;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
}

.header.scrolled .lang-current {
  color: #374151;
}

.lang-current:hover {
  background: rgba(255,255,255,0.15);
}

.header.scrolled .lang-current:hover {
  background: rgba(0,0,0,0.05);
}

.lang-current svg.lang-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.lang-current svg.lang-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.lang-switcher:hover .lang-current svg.lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  z-index: 200;
}

.lang-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}

.lang-dropdown-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 120px;
  overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-option:hover {
  background: #f3f4f6;
  color: #04a0a0;
}

.lang-option svg.lang-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.lang-option.active {
  background: #f0fafa;
  color: #04a0a0;
  font-weight: 600;
}

/* Mobile language switcher */
.nav-mobile .lang-mobile {
  display: flex;
  gap: 12px;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
}

.nav-mobile .lang-mobile a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-mobile .lang-mobile a:hover {
  background: #f3f4f6;
  color: #04a0a0;
}

.nav-mobile .lang-mobile a.active {
  background: #f0fafa;
  color: #04a0a0;
  font-weight: 600;
}

.nav-mobile .lang-mobile svg.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Mobile lang button (visible only on mobile, next to hamburger) */
.lang-switcher-mobile {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0.5rem;
}

.lang-switcher-mobile a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header.scrolled .lang-switcher-mobile a {
  color: #374151;
}

.lang-switcher-mobile a:hover {
  background: rgba(255,255,255,0.15);
}

.header.scrolled .lang-switcher-mobile a:hover {
  background: rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .lang-switcher-mobile {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.hero-copy {
  position: absolute;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 64rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-copy.active {
  opacity: 1;
}

.hero-buttons {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.hero-btn-primary {
  background: #04a0a0;
  color: #fff;
  border: 2px solid #04a0a0;
}

.hero-btn-primary:hover {
  background: #038080;
  border-color: #038080;
  color: #fff;
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.indicator {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.indicator.active {
  width: 2rem;
  background: #04a0a0;
}

.indicator:hover {
  background: #fff;
}

@media (min-width: 768px) {
  .hero-copy {
    font-size: 3rem;
  }
  .hero-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    font-size: 3.75rem;
  }
}

/* ===== Introduction ===== */
.intro-section {
  padding: 6rem 0;
}

.intro-grid {
  display: grid;
  gap: 3rem;
}

.intro-left h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}

.intro-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }
  .intro-left h2 {
    font-size: 2.25rem;
  }
}

/* ===== Philosophy ===== */
.philosophy-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.philosophy-img {
  position: relative;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.philosophy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.philosophy-text p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .philosophy-text h2 {
    font-size: 2.25rem;
  }
}

/* ===== Service Cards ===== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.service-card-img {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 2rem;
}

.service-card-body .label-accent {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.service-card-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.service-card-body p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .service-card {
    display: grid;
    grid-template-columns: 4fr 8fr;
  }
  .service-card-img {
    height: auto;
  }
  .service-card-body {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ===== Detail Grid (Sticky Sidebar) ===== */
.detail-grid {
  display: grid;
  gap: 3rem;
}

.detail-sidebar {
  position: relative;
}

.detail-sidebar h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.detail-sidebar p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.detail-sidebar-img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  width: 100%;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 4fr 8fr;
  }
  .detail-sidebar {
    position: sticky;
    top: 8rem;
    align-self: start;
  }
}

/* ===== Detail Cards ===== */
.detail-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
}

.detail-card.alt {
  background: #f9fafb;
}

.detail-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #04a0a0;
  color: #fff;
  border-radius: 50%;
  font-size: 0.875rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.detail-card p {
  color: #6b7280;
  margin-left: 2.75rem;
}

.detail-sub {
  margin-left: 2.75rem;
  margin-top: 1.5rem;
}

.detail-sub + .detail-sub {
  margin-top: 1.5rem;
}

.detail-sub h4 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.detail-sub p {
  margin-left: 0;
}

.check-list {
  margin-left: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #6b7280;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-left: 1rem;
  color: #6b7280;
}

.one-col-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .two-col-list {
    grid-template-columns: 1fr 1fr;
  }
}

.disc-list {
  list-style: disc;
  margin-left: 1.5rem;
  color: #6b7280;
}

.disc-list li {
  margin-bottom: 0.5rem;
}

/* ===== Works ===== */
.works-grid {
  display: grid;
  gap: 2rem;
}

.work-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.3s;
}

.work-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.work-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.work-badge {
  width: 3rem;
  height: 3rem;
  background: rgba(4,160,160,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04a0a0;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.work-header h3 {
  font-weight: 700;
  color: #111827;
}

.work-card > p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.work-period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #04a0a0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ===== Members ===== */
.member-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
}

.member-card.alt {
  background: #f9fafb;
}

.member-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-photo {
  width: 100%;
  max-width: 200px;
}

.member-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.5rem;
}

.member-role {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.member-info ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #6b7280;
}

.member-info p {
  color: #6b7280;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .member-inner {
    flex-direction: row;
  }
  .member-photo {
    width: 33.333%;
  }
  .member-info {
    flex: 1;
  }
}

/* ===== Partners ===== */
.partner-list {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.partner-item:last-child {
  margin-bottom: 0;
}

.partner-item span {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
}

.partner-item a {
  color: #04a0a0;
  text-decoration: underline;
  word-break: break-all;
}

.partner-item a:hover {
  color: #038080;
}

/* ===== Corporate Info ===== */
.corp-info-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.corp-info-table {
  display: flex;
  flex-direction: column;
}

.corp-info-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  gap: 1rem;
}

.corp-info-row:last-child {
  border-bottom: none;
}

.corp-info-row dt {
  font-weight: 700;
  color: #1a2e35;
  font-size: 0.9375rem;
}

.corp-info-row dd {
  color: #6b7280;
  line-height: 1.7;
}

.corp-info-row dd .disc-list {
  margin-left: 1.25rem;
  color: #6b7280;
}

.corp-info-row dd .disc-list li {
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .corp-info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .corp-info-row {
    grid-template-columns: 6rem 1fr;
    padding: 1.5rem 2rem;
  }

  .corp-info-row:nth-child(odd) {
    border-right: 1px solid #f3f4f6;
  }

  /* Row spanning adjustments for the 2-column layout */
  .corp-info-row:nth-child(1) { grid-column: 1; grid-row: 1; }
  .corp-info-row:nth-child(2) { grid-column: 2; grid-row: 1; }
  .corp-info-row:nth-child(3) { grid-column: 1; grid-row: 2; }
  .corp-info-row:nth-child(4) { grid-column: 2; grid-row: 2 / 4; border-bottom: none; }
  .corp-info-row:nth-child(5) { grid-column: 1; grid-row: 3; border-bottom: none; }
}

/* ===== Contact Hero ===== */
.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  overflow: hidden;
  background: #111827;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.contact-hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.contact-hero-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .contact-hero-inner h1 {
    font-size: 3.75rem;
  }
}

/* ===== Contact Grid ===== */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-item h4 {
  font-weight: 700;
  color: #111827;
}

.contact-detail-item p {
  color: #6b7280;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Flow Timeline ===== */
.flow-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.flow-timeline {
  border-left: 2px solid #e5e7eb;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flow-step {
  position: relative;
  display: flex;
  gap: 1rem;
}

.flow-num {
  position: absolute;
  left: -2.85rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #04a0a0;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.flow-step h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.flow-step p {
  color: #6b7280;
}

/* ===== Contact Form ===== */
.contact-form-wrap {
  background: #f9fafb;
  padding: 2rem;
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #04a0a0;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #04a0a0;
  width: 1rem;
  height: 1rem;
}

.checkbox-label span {
  color: #6b7280;
  font-size: 0.875rem;
}

.privacy-check {
  padding-top: 0.5rem;
}

.privacy-check span {
  font-size: 0.875rem;
}

.btn-submit {
  width: 100%;
  background: #04a0a0;
  color: #fff;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #038080;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.faq-item h3 svg {
  flex-shrink: 0;
}

.faq-item p {
  color: #6b7280;
}

/* ===== Footer ===== */
.footer {
  background: #111827;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-address {
  margin-top: 1rem;
}

.footer-menu h4,
.footer-contact h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-menu button,
.footer-menu a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-menu button:hover,
.footer-menu a:hover {
  color: #04a0a0;
}

.footer-contact p {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.btn-footer-contact {
  background: #04a0a0;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  transition: background 0.2s;
  width: 100%;
  display: inline-block;
  text-align: center;
}

.btn-footer-contact:hover {
  background: #038080;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===== Privacy Policy Page ===== */
.privacy-hero {
  background: #1a2e35;
  padding: 120px 0 60px;
  text-align: center;
  color: #fff;
}
.privacy-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.privacy-body {
  padding: 80px 0 100px;
}
.privacy-inner {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-intro {
  font-size: 0.95rem;
  line-height: 2;
  color: #374151;
  margin-bottom: 48px;
}
.privacy-section {
  margin-bottom: 48px;
}
.privacy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2e35;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #04a0a0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.privacy-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #04a0a0;
  border-radius: 2px;
  flex-shrink: 0;
}
.privacy-section p {
  font-size: 0.95rem;
  line-height: 2;
  color: #374151;
}
.privacy-section ol {
  list-style: none;
  counter-reset: privacy-counter;
  margin-top: 12px;
}
.privacy-section ol li {
  counter-increment: privacy-counter;
  font-size: 0.95rem;
  line-height: 2;
  color: #374151;
  padding-left: 1.5em;
  position: relative;
}
.privacy-section ol li::before {
  content: counter(privacy-counter) ')';
  position: absolute;
  left: 0;
  color: #04a0a0;
  font-weight: 600;
}
.privacy-contact-box {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 32px;
  margin-top: 16px;
}
.privacy-contact-box p {
  font-size: 0.95rem;
  line-height: 2;
  color: #374151;
}
.privacy-contact-box a {
  color: #04a0a0;
  text-decoration: underline;
}
.privacy-contact-box a:hover {
  opacity: 0.7;
}
.privacy-date {
  text-align: right;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 48px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #04a0a0;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 48px;
  transition: opacity 0.3s;
}
.back-link:hover {
  opacity: 0.7;
}
@media (max-width: 768px) {
  .privacy-hero {
    padding: 100px 0 40px;
  }
  .privacy-hero h1 {
    font-size: 1.8rem;
  }
  .privacy-body {
    padding: 48px 0 64px;
  }
  .privacy-contact-box {
    padding: 24px;
  }
}

/* ===== Contact Form 7 Integration ===== */
.wpcf7 .form-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .wpcf7 .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.wpcf7 .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #04a0a0;
}
.wpcf7 input[type="submit"] {
  width: 100%;
  background: #04a0a0;
  color: #fff;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover {
  background: #038080;
}
.wpcf7 .checkbox-grid {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .wpcf7 .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* チェックボックスとラベルを横並びに */
.wpcf7 .checkbox-grid .wpcf7-list-item label,
.wpcf7 .checkbox-grid .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
  cursor: pointer;
}
/* CF7のcheckboxは wpcf7-form-control-wrap が1つ、その中に wpcf7-list-item が複数 */
.wpcf7 .checkbox-grid .wpcf7-form-control-wrap {
  display: contents;
}
.wpcf7 .checkbox-grid input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #04a0a0;
}
/* プライバシー同意チェックボックスも横並びに */
.wpcf7 .privacy-check,
.wpcf7 label.privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
  cursor: pointer;
}
.wpcf7 .privacy-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #04a0a0;
}
