/* ========================================
   Patto AI LP - Style Sheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #F5A623;
  --color-primary-dark: #E0911A;
  --color-primary-light: #FFF5E5;
  --color-primary-lighter: #FFF9F0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #FFFFFF;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F8F8F8;
  --color-bg-dark: #2D2D2D;
  --color-border: #E0E0E0;
  --color-danger: #D32F2F;
  --color-card-gray: #EBEBEB;
  --font-base: "Noto Sans JP", sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ロゴ透かしパターン（全ページ統一オーバーレイ） */
.watermark-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('image/正方形ロゴ(背景透過).png');
  background-size: 1040px 1040px;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(-20deg);
  z-index: 1;
}

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

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

ul {
  list-style: none;
}

/* セクション背景はウォーターマークの下に描画 */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  line-height: 1.4;
  color: var(--color-text);
}

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

.section-title-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-title-logo {
  height: 48px;
  width: auto;
  display: inline-block;
}

/* --- Button --- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition);
}

.header-phone-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-phone svg {
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

.header-phone-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}

.header-phone-number {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-primary);
}

.header-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  transition: background var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-primary-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-bg-white);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow);
}

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

.mobile-menu-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-phone svg {
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: 700;
  padding: 14px;
  border-radius: 50px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--color-primary-lighter) 0%, var(--color-bg-white) 60%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
}

.hero-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-logo {
  height: auto;
  width: 140%;
  max-width: none;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-title .highlight {
  color: var(--color-primary);
  background: linear-gradient(transparent 60%, rgba(245,166,35,0.2) 60%);
  padding: 0 4px;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

.hero-image {
  flex: 1.4;
  display: flex;
  justify-content: center;
}

.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.hero-pc {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.hero-person {
  width: 68%;
  height: auto;
  position: relative;
  z-index: 2;
  margin-left: -28%;
  margin-bottom: -4px;
}

/* SP用ヒーロー画像（PC時は非表示） */
.hero-pc-sp {
  display: none;
}

/* ========================================
   Problems
   ======================================== */
.problems {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.problems-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.problem-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-card-gray);
  padding: 24px 32px;
  border-radius: var(--radius);
  text-align: center;
}

.problem-icon {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-icon svg {
  width: 28px;
  height: 28px;
}

.problem-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.problem-card strong {
  color: var(--color-primary-dark);
}

/* ========================================
   Problems Highlight (Full-width dark)
   ======================================== */
.problems-highlight-section {
  padding: 56px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  text-align: center;
  position: relative;
  z-index: 2;
}

.problems-highlight-main {
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 20px;
  font-weight: 600;
}

.problems-highlight-main strong {
  color: var(--color-primary);
  font-size: 2rem;
}

.problems-highlight-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   Features (Service Introduction)
   ======================================== */
.features {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.features-desc {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: -32px;
  margin-bottom: 48px;
}

.features-intro {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 60px;
}

.features-text {
  flex: 1;
}

.features-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.features-lead strong {
  color: var(--color-primary-dark);
}

.features-list {
  margin: 16px 0;
  padding-left: 8px;
}

.features-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
}

.features-image {
  flex: 1.8;
  display: flex;
  justify-content: center;
}

/* Gallery */
.gallery {
  width: 100%;
  max-width: 1260px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.gallery-main-img {
  position: absolute;
  inset: 0;
  display: none;
}

.gallery-main-img.active {
  display: block;
}

.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-desc {
  margin-bottom: 16px;
  min-height: 48px;
}

.gallery-desc-item {
  display: none;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: center;
}

.gallery-desc-item.active {
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
}

.gallery-thumb {
  flex: 1;
  padding: 10px 8px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.gallery-thumb:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,166,35,0.2);
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(245,166,35,0.25);
}

/* キラキラアニメーション */
@keyframes thumb-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.25), transparent);
  animation: thumb-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.gallery-thumb:nth-child(2)::after { animation-delay: 0.4s; }
.gallery-thumb:nth-child(3)::after { animation-delay: 0.8s; }
.gallery-thumb:nth-child(4)::after { animation-delay: 1.2s; }
.gallery-thumb:nth-child(5)::after { animation-delay: 1.6s; }

.gallery-thumb.active::after {
  animation: none;
}

/* Capabilities (対応書類) */
.capabilities {
  text-align: center;
}

.capabilities-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 36px;
  color: var(--color-text);
}

.capabilities-adding {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.capabilities-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.capabilities-category {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
}

.capabilities-category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-light);
}

.capabilities-category-title svg {
  flex-shrink: 0;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
}

.capability-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
}

.capability-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.capabilities-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ========================================
   Comparison
   ======================================== */
.comparison {
  padding: 80px 0 60px;
  background: rgba(45,45,45,0.88);
  position: relative;
}

.comparison .section-title {
  color: var(--color-text-white);
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 28px;
  text-align: left;
}

/* Header row */
.comp-label-head {
  background: var(--color-bg-light);
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  border-top-left-radius: var(--radius);
  min-width: 120px;
}

.comp-other-head {
  background: #F0F0F0;
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--color-border);
  min-width: 200px;
  text-align: center;
}

.comp-ours-head {
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: 800;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--color-primary-dark);
  border-top-right-radius: var(--radius);
  min-width: 280px;
  text-align: center;
  width: 40%;
}

/* Body rows */
.comp-label {
  font-weight: 700;
  white-space: nowrap;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.comp-other-cell {
  background: var(--color-bg-white);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.comp-ours-cell {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(245,166,35,0.2);
  text-align: center;
  width: 40%;
}

/* Last row no bottom border */
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child .comp-label {
  border-bottom: none;
}

.comparison-table tbody tr:last-child .comp-label {
  border-bottom-left-radius: var(--radius);
}

.comparison-table tbody tr:last-child .comp-ours-cell {
  border-bottom-right-radius: var(--radius);
}

/* スクロールヒント（PC時は非表示） */
.comparison-scroll-hint {
  display: none;
}

@keyframes scroll-hint-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.comparison-summary {
  margin-top: 36px;
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-summary strong {
  color: var(--color-primary);
}

/* ========================================
   Learning
   ======================================== */
.learning {
  padding: 0 0 80px;
  background: rgba(45,45,45,0.88);
}

.learning .section-title {
  color: var(--color-text-white);
}

.learning-content {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.learning-text {
  font-size: 1.05rem;
  line-height: 2;
}

.learning-text ul {
  margin: 16px 0;
  padding-left: 8px;
}

.learning-text li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.learning-text li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.learning-emphasis {
  margin-top: 24px;
  font-size: 1.15rem;
  text-align: center;
}

.learning-emphasis strong {
  color: var(--color-primary-dark);
}

/* ========================================
   Benefits
   ======================================== */
.benefits {
  padding: 80px 0;
  background: var(--color-bg-white);
}

/* 90% hero number */
.benefits-hero {
  text-align: center;
  margin-bottom: 48px;
}

.benefits-hero-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}

.benefits-number-accent {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin: 0 4px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.benefit-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   Target
   ======================================== */
.target {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.target-lead {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 36px;
  color: var(--color-text-light);
}

.target-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.target-card {
  text-align: center;
  background: var(--color-bg-white);
  padding: 32px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
}

.target-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.target-card p {
  font-size: 1rem;
  font-weight: 600;
}

.target-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 16px;
}

/* ========================================
   Flow
   ======================================== */
.flow {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary-lighter) 0%, #FFF5E5 100%);
}

.flow-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 16px 28px;
  border: 2px solid rgba(245,166,35,0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(245,166,35,0.2);
}

.flow-number {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.flow-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.flow-arrow::after {
  content: "\25B6";
  color: var(--color-primary);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  font-family: inherit;
  transition: background var(--transition);
}

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

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ========================================
   Contact / CTA
   ======================================== */
.contact {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.contact-lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.required {
  color: var(--color-danger);
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--color-text);
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.form-group textarea {
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
  flex: 1;
  justify-content: center;
  font-weight: 600;
}

.radio-label:has(input:checked) {
  border-color: var(--color-primary);
  background-color: rgba(245,166,35,0.08);
}

.radio-label input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  outline: none;
  box-shadow: none;
  background: #fff;
  vertical-align: middle;
  transition: border-color var(--transition);
}

.radio-label input[type="radio"]:checked {
  border-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.radio-label input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

.radio-text {
  font-size: 0.95rem;
  line-height: 18px;
}

.btn-submit {
  width: 100%;
  font-size: 1.15rem;
  padding: 18px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 48px 0 32px;
  background: #1A1A1A;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
  height: 32px;
  flex-shrink: 0;
}

.footer-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-phone-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.footer-phone-top svg {
  width: 14px;
  height: 14px;
}

.footer-phone-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.footer-phone strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-phone svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.footer-phone:hover {
  color: var(--color-primary);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

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

.footer-company {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-company a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.footer-company a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   Animations (scroll reveal)
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .header-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-phone {
    justify-content: center;
  }

  /* Hero: 縦積み */
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .hero-logo {
    width: 80%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .hero-person {
    display: none;
  }

  .hero-image {
    display: none;
  }

  .hero-pc-sp {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Comparison scroll hint */
  .comparison-scroll-hint {
    display: block;
    text-align: center;
    margin-bottom: 12px;
  }

  .scroll-hint-arrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    animation: scroll-hint-blink 1.5s ease-in-out infinite;
  }

  .comparison-table {
    min-width: 580px;
  }

  /* Features: 縦積み */
  .features-intro {
    flex-direction: column;
  }

  .features-image {
    flex: none;
    width: 100%;
  }

  .capabilities-categories {
    grid-template-columns: 1fr 1fr;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Flow: 縦積み */
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow::after {
    content: "\25BC";
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
    padding: 24px 20px;
  }

  /* Comparison */
  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .comp-ours-head {
    min-width: 180px;
    font-size: 1.1rem;
  }

  .comp-other-head {
    min-width: 140px;
  }

  .comp-ours-cell {
    font-size: 1rem;
  }

  /* Problems highlight */
  .problems-highlight-main {
    font-size: 1.3rem;
  }

  .problems-highlight-main strong {
    font-size: 1.5rem;
  }

  .problems-highlight-sub {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }

  .logo-img {
    height: 32px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .mobile-menu {
    padding: 16px 16px 24px;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: 28px;
  }

  .section-title-logo {
    height: 32px;
  }

  /* Watermark: モバイル用に縮小 */
  .watermark-bg {
    background-size: 600px 600px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-inner {
    gap: 32px;
    padding: 0 16px;
  }

  .hero-label {
    font-size: 0.8rem;
    padding: 3px 12px;
  }

  .hero-logo {
    width: 90%;
    max-width: 300px;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .hero-pc-sp {
    max-width: 100%;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 14px 32px;
  }

  /* Sections padding */
  .problems,
  .features,
  .comparison,
  .benefits,
  .target,
  .flow,
  .faq,
  .contact {
    padding: 48px 0;
  }

  .learning {
    padding: 0 0 48px;
  }

  .comparison {
    padding: 48px 0 32px;
  }

  /* Problems */
  .problem-card {
    padding: 16px 20px;
    gap: 12px;
  }

  .problem-card p {
    font-size: 0.95rem;
  }

  /* Problems highlight */
  .problems-highlight-section {
    padding: 40px 0;
  }

  .problems-highlight-main {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .problems-highlight-main strong {
    font-size: 1.3rem;
  }

  .problems-highlight-sub {
    font-size: 0.9rem;
  }

  /* Features */
  .features-desc {
    font-size: 0.95rem;
    margin-top: -20px;
    margin-bottom: 32px;
  }

  .features-intro {
    gap: 32px;
    margin-bottom: 40px;
  }

  .features-lead {
    font-size: 1rem;
  }

  /* Gallery */
  .gallery-thumbs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .gallery-thumb {
    flex: 0 0 auto;
    min-width: calc(33.333% - 4px);
    padding: 8px 6px;
    font-size: 0.72rem;
  }

  .gallery-desc-item {
    font-size: 0.82rem;
  }

  .gallery-desc {
    min-height: 56px;
  }

  /* Capabilities */
  .capabilities-title {
    font-size: 1.15rem;
    margin-bottom: 24px;
  }

  .capabilities-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .capabilities-category {
    padding: 20px 16px;
  }

  .capability-item {
    font-size: 0.82rem;
  }

  /* Comparison */
  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    font-size: 0.8rem;
  }

  .comp-label-head {
    min-width: 70px;
  }

  .comp-other-head {
    min-width: auto;
    font-size: 0.85rem;
  }

  .comp-ours-head {
    min-width: auto;
    font-size: 0.95rem;
    width: 38%;
  }

  .comp-ours-cell {
    font-size: 0.88rem;
    width: 38%;
  }

  .comparison-summary {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 24px;
  }

  /* Learning */
  .learning-content {
    padding: 24px 20px;
  }

  .learning-text {
    font-size: 0.95rem;
  }

  .learning-emphasis {
    font-size: 1.05rem;
  }

  /* Benefits */
  .benefits-hero-number {
    font-size: 1.6rem;
    white-space: normal;
  }

  .benefits-number-accent {
    font-size: 3.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: 24px 16px;
  }

  /* Flow */
  .flow-step {
    padding: 20px 16px;
  }

  .flow-number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* FAQ */
  .faq-question {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  .faq-item.open .faq-answer {
    max-height: 300px;
  }

  /* Target */
  .target-list {
    flex-direction: column;
    align-items: center;
  }

  .target-card {
    padding: 24px 32px;
    min-width: auto;
    width: 100%;
  }

  /* Form */
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .contact-lead {
    font-size: 1rem;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 16px;
  }

  /* Footer */
  .footer {
    padding: 36px 0 24px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-logo {
    height: 28px;
  }

  .footer-nav {
    gap: 16px;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  /* Button */
  .btn-primary {
    font-size: 1rem;
    padding: 14px 32px;
  }
}
