/* ===================================================
   CareTrunk LP — style.css
   =================================================== */

:root {
  --color-primary: #3A7CC6;
  --color-primary-dark: #1E4D7B;
  --color-primary-light: #5090D0;
  --color-bg-light: #E8F0F8;
  --color-bg-alt: #F7FAFC;
  --color-text-primary: #1E4D7B;
  --color-text-body: #4A7396;
  --color-text-secondary: #5A7D9A;
  --color-border: #D0E0F0;
  --color-border-light: #E0E8F0;
  --color-line: #06C755;
  --header-height: 64px;
}

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

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

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-plan-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
  width: 100%;
}
.btn-line {
  background: var(--color-line);
  color: #fff;
  border-color: var(--color-line);
}
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 8px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
/* アプリ本体（public/index.html 等）と同じ icon.png ロゴ */
.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-bg-light); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 16px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SECTIONS COMMON ===== */
.section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 40px;
  line-height: 1.4;
}
.section-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: -28px;
  margin-bottom: 40px;
}

/* Grid helpers */
.cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== HERO ===== */
.hero { background: var(--color-bg-light); padding: 80px 0 60px; }
.hero-content { text-align: center; }
.hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
/* 「できることを見る」に合わせて両CTAの幅を揃える */
.hero-buttons .btn {
  min-width: 16em;
  box-sizing: border-box;
}
.hero-image {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-border);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img { width: 100%; object-fit: cover; }

/* ===== PROBLEMS ===== */
.problems { background: #fff; }
.problem-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--color-bg-alt);
}
.problem-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.problem-icon svg { width: 100%; height: 100%; }
.problem-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features { background: var(--color-bg-alt); }
.features-main { margin-bottom: 24px; }
.feature-card { border-radius: 12px; padding: 32px; border: 1px solid var(--color-border); background: #fff; }
.feature-card--main {}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.feature-icon-wrap svg { width: 100%; height: 100%; }
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}
.feature-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; }

.feature-card--sub { text-align: center; padding: 28px 20px; background: #fff; border: 1px solid var(--color-border); }
.feature-sub-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}
.feature-sub-icon svg { width: 100%; height: 100%; }
.feature-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.feature-sub-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.7; }

/* 既存の「できること」ブロックと2カードの区切り */
.features-app-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  max-width: 80%;
  margin: 2rem auto;
}

/* 実画面スクリーンショット（「できること」拡張） */
.features-app-shots {
  margin-top: 0;
  align-items: start;
}
.feature-app-shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e0e0e0;
  padding: 1.25rem;
  gap: 0.75rem;
}
.feature-app-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.3;
}
.feature-app-badge--caller {
  background: #e6f1fb;
  color: #0c447c;
}
.feature-app-badge--receiver {
  background: #e1f5ee;
  color: #085041;
}
.feature-app-shot__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.feature-app-shot__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 0 0 auto;
}
/* 2カード共通: 同じ高さ（指示書 300px）の枠に cover で収める */
.feature-app-shot__img-frame {
  margin-top: auto;
  width: 100%;
  height: 300px;
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}
/* caller: 横長を中央で切り抜き */
.feature-app-shot__img--caller {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: 50% 50%;
  border-radius: 8px;
}
/* receiver: 全画面キャプチャ（上:ヘッダー/下:余白・ブラウザ）を外す */
.feature-app-shot__img--receiver {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  /* 「新着の呼び出し」少し上〜TV確認カード下付近。グレー帯を消すため 32% から下方向へ */
  object-position: 50% 47%;
  border-radius: 8px;
}
.features-app-cta {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}
.features-app-cta__link {
  display: inline-block;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.features-app-cta__link:hover {
  background: rgba(58, 124, 198, 0.08);
}

/* ===== HOW TO USE ===== */
.how-to-use { background: #fff; }
.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}
.step-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { background: var(--color-bg-alt); }
.plan-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.plan-card--recommended {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(58, 124, 198, 0.15);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-size: 40px; font-weight: 700; color: var(--color-text-primary); }
.plan-unit { font-size: 15px; font-weight: 600; color: var(--color-text-secondary); }
.plan-tax { font-size: 12px; color: var(--color-text-secondary); }
.plan-note { font-size: 13px; color: var(--color-text-secondary); margin-top: -8px; }
.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.plan-features li {
  font-size: 14px;
  color: var(--color-text-body);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.btn-plan-outline:hover { background: var(--color-bg-light); }

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq-list {
  max-width: 600px;
  margin: 0 auto;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.faq-item:first-child { border-top: 1px solid var(--color-border-light); }
.faq-q, .faq-a {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
}
.faq-q { font-weight: 600; color: var(--color-text-primary); margin-bottom: 8px; }
.faq-a { color: var(--color-text-body); }
.faq-q-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.faq-a-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* ===== CONTACT ===== */
.contact { background: var(--color-bg-light); }
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(30, 77, 123, 0.08);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.required {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #e05252;
  padding: 2px 6px;
  border-radius: 3px;
}
.form-control {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 124, 198, 0.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7D9A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.contact-line {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}
.contact-line-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.line-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 36px 0;
  text-align: center;
}
.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.footer-copy { font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --header-height: 56px; }

  /* Header */
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--color-border-light);
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 15px; border-radius: 8px; }
  .site-header { position: sticky; }

  /* Grids */
  .cards-3col { grid-template-columns: 1fr; }
  .cards-2col { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .hero-image { min-height: 200px; }

  /* Section */
  .section { padding: 60px 0; }
  .section-title { font-size: 22px; margin-bottom: 28px; }

  /* Contact card */
  .contact-card { padding: 28px 20px; }

  /* Plans */
  .plans { gap: 16px; }
}

/* ============================================================
   APP.HTML — アプリ紹介ページ専用スタイル
   ============================================================ */

/* ===== APP HERO ===== */
.app-hero {
  background: #f0f7ff;
  padding: 64px 0 56px;
}
.app-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.app-hero__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}
.app-hero__desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.app-hero__img-wrap {
  width: 100%;
  max-width: 560px;
}
.app-hero__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ===== APP STEPS WRAPPER ===== */
.app-steps {
  padding: 56px 0 80px;
}

/* ===== INDIVIDUAL STEP ===== */
.app-step {
  max-width: 640px;
  margin: 0 auto 0;
}
.app-step__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.app-step__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.app-step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.app-step__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-left: 42px;
}
.app-step__img-wrap {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}
.app-step__img-wrap--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0;
}
.app-step__img-frame {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}
.app-step__img-frame--narrow {
  max-width: 280px;
  width: 100%;
}
.app-step__img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: contain;
}
.app-step__img--contain {
  object-fit: contain;
}
.app-step__caption {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 6px;
}

/* Step 2: 通知画像2枚横並び */
.app-step__notif-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-step__notif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-step__notif-img {
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

/* ===== STEP CONNECTOR ===== */
.app-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
}
.app-step-connector__line {
  width: 2px;
  height: 28px;
  background: #ccc;
}
.app-step-connector__arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #ccc;
}

/* ===== EMERGENCY SECTION ===== */
.app-emergency {
  max-width: 640px;
  margin: 2.5rem auto 0;
  background: #fff5f5;
  border: 1px solid #f09595;
  border-radius: 12px;
  padding: 1.25rem;
}
.app-emergency__label {
  font-size: 15px;
  font-weight: 700;
  color: #791f1f;
  margin-bottom: 10px;
}
.app-emergency__desc {
  font-size: 14px;
  color: #a32d2d;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.app-emergency__img-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-emergency__img-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-emergency__img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== APP CTA ===== */
.app-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-bottom: 0;
}
.app-cta__btn {
  font-size: 16px;
  padding: 12px 32px;
}
.app-cta__note {
  font-size: 13px;
  color: #999;
  margin-top: 12px;
}

/* ===== RESPONSIVE: APP ===== */
@media (max-width: 768px) {
  .app-hero { padding: 48px 0 40px; }
  .app-hero__title { font-size: 22px; }
  .app-hero__desc { font-size: 14px; }
  .app-hero__img-wrap { max-width: 100%; }

  .app-step__desc { padding-left: 0; }

  .app-step__notif-img { width: 120px; }
  .app-emergency__img { width: 140px; }
}
