/* ========================================
   M&A PMI AGENT - 調剤薬局LP スタイルシート
   ======================================== */

:root {
  --yellow: #FFE07D;
  --navy: #2C4A73;
  --teal: #4FB3B3;
  --bg: #F7FAFF;
  --white: #FFFFFF;
  --text: #1A2B3C;
  --text-light: #5A6A7A;
  --border: #D8E4F0;
  --shadow: 0 4px 24px rgba(44, 74, 115, 0.10);
  --shadow-lg: 0 8px 40px rgba(44, 74, 115, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.rounded {
  border-radius: var(--radius);
  overflow: hidden;
}

.sp-only {
  display: none;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(44,74,115,0.10);
}

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

.logo img {
  height: 36px;
  width: auto;
}

/* ========== CTA BUTTON ========== */
.btn-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  border: none;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,224,125,0.5);
  opacity: 0.92;
}

.btn-header {
  font-size: 13px;
  padding: 10px 22px;
  white-space: nowrap;
}

.btn-main {
  font-size: 16px;
  padding: 18px 40px;
  display: block;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(255,224,125,0.4);
}

.btn-large {
  font-size: 18px;
  padding: 22px 48px;
  max-width: 540px;
}

.btn-footer {
  font-size: 15px;
  padding: 16px 36px;
  display: inline-block;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(44, 74, 115, 0.88) 0%,
    rgba(44, 74, 115, 0.70) 50%,
    rgba(44, 74, 115, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 80px 20px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-sub-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.accent {
  color: var(--yellow);
}

.hero-area {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0.92;
  background: rgba(255,255,255,0.10);
  border-left: 3px solid var(--yellow);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.hero-area span {
  font-weight: 700;
}

.cta-above {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.85;
  text-align: center;
}

.hero-cta {
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ========== WORRIES ========== */
.worries {
  background: var(--white);
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.worry-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.worry-card:hover {
  box-shadow: var(--shadow);
}

.worry-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.worry-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.worries-answer {
  background: linear-gradient(135deg, var(--navy), #3a5f8f);
  color: var(--white);
  text-align: center;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
}

.worries-answer p {
  font-size: 16px;
  line-height: 1.8;
}

.worries-answer strong {
  color: var(--yellow);
}

/* ========== WHY NOW ========== */
.why-now {
  background: var(--bg);
}

.img-block {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.img-block img {
  height: 320px;
  object-fit: cover;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reason-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.reason-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal);
  opacity: 0.4;
  line-height: 1;
  white-space: nowrap;
  padding-top: 4px;
}

.reason-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.reason-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== BUYER NEEDS ========== */
.buyer-needs {
  background: var(--white);
}

.needs-table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
}

.needs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.needs-table th,
.needs-table td {
  padding: 16px 20px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.needs-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  width: 160px;
  white-space: nowrap;
}

.needs-table tr:nth-child(even) td {
  background: #f0f5fc;
}

.area-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.area-tags:last-child {
  margin-bottom: 0;
}

.area-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.area-tag.tokyo { background: #e8f0fe; color: #1a56a0; }
.area-tag.kanagawa { background: #e6f4ea; color: #1e7e34; }
.area-tag.saitama { background: #fff3e0; color: #e65100; }

.area-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.highlight {
  color: #c0392b;
  font-weight: 900;
  font-size: 16px;
}

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

.cta-above {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  text-align: center;
}

/* ========== WHY BUYER ========== */
.why-buyer {
  background: var(--bg);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.buyer-img-col img,
.strength-img-col img {
  height: 420px;
  object-fit: cover;
}

.buyer-point {
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.buyer-point:last-child {
  margin-bottom: 0;
}

.buyer-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.buyer-point h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.buyer-point p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== STRENGTHS ========== */
.strengths {
  background: var(--white);
}

.strength-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.strength-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  border-top: 3px solid var(--navy);
}

.strength-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.strength-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.strength-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.strength-card strong {
  color: var(--navy);
}

/* Fee Compare */
.fee-compare {
  margin-top: 60px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.compare-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
}

.compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.compare-card {
  flex: 1;
  max-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.compare-card.other {
  border: 2px solid var(--border);
}

.compare-card.ours {
  border: 2px solid var(--yellow);
  background: #fffbee;
}

.compare-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.compare-fee {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.compare-fee strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.fee-highlight {
  color: #c0392b !important;
  font-size: 28px !important;
}

.compare-detail {
  font-size: 12px;
  color: var(--text-light);
}

.compare-vs {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.4;
}

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

/* ========== VALUATION ========== */
.valuation {
  background: var(--bg);
}

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.val-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.val-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.val-icon {
  font-size: 18px;
}

.val-card ul {
  padding: 16px 20px;
  list-style: none;
}

.val-card ul li {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.val-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.val-card ul li:last-child {
  border-bottom: none;
}

.val-card ul li strong {
  color: var(--navy);
}

.val-note {
  font-size: 12px;
  color: var(--text-light);
  background: #f0f5fc;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.transfer-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
}

.transfer-type {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.transfer-item ul {
  padding: 0 !important;
  padding-left: 14px !important;
}

.transfer-item ul li {
  font-size: 12px;
  padding: 4px 0 !important;
  padding-left: 14px !important;
  border-bottom: none !important;
  color: var(--text);
}

.transfer-note {
  font-size: 12px;
  color: var(--text-light);
  padding: 0 20px 16px;
  text-align: center;
}

/* ========== PROCESS ========== */
.process {
  background: var(--white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
}

.process-step {
  flex: 1;
  min-width: 160px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--teal);
}

.step-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.process-step p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.process-arrow {
  color: var(--teal);
  font-size: 18px;
  padding: 0 4px;
  margin-top: 50px;
  flex-shrink: 0;
  opacity: 0.6;
}

.process-note {
  background: #e8f4f4;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.process-note p {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--yellow);
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-icon {
  font-size: 32px;
  background: var(--bg);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.profile-detail {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.stars {
  color: #f5a623;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}

/* ========== FAQ ========== */
.faq {
  background: var(--white);
}

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

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-q {
  background: var(--bg);
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.faq-a {
  background: var(--white);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-icon-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #3a5f8f 100%);
  color: var(--white);
  text-align: center;
}

.cta-img-block {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.85;
}

.final-cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.3;
}

.final-cta-sub {
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0.92;
}

.final-cta-sub strong {
  color: var(--yellow);
}

.final-cta-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 36px;
}

.final-point {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.cta-note {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

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

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

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

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

.footer-cta {
  text-align: center;
  margin-bottom: 28px;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-copy p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ========== SCROLL ANIMATION ========== */
.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) {
  .worry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-list {
    grid-template-columns: 1fr;
  }

  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .buyer-img-col img,
  .strength-img-col img {
    height: 260px;
  }

  .strength-cards {
    grid-template-columns: 1fr;
  }

  .valuation-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .sp-only {
    display: block;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .worry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .worry-card {
    padding: 16px 12px;
  }

  .header-inner .btn-header {
    font-size: 11px;
    padding: 8px 14px;
  }

  .logo img {
    height: 28px;
  }

  .needs-table th {
    width: 100px;
    font-size: 12px;
    padding: 12px;
  }

  .needs-table td {
    font-size: 13px;
    padding: 12px;
  }

  .compare-grid {
    flex-direction: column;
    align-items: center;
  }

  .compare-vs {
    transform: rotate(90deg);
  }

  .process-steps {
    flex-direction: column;
    overflow-x: visible;
  }

  .process-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    padding: 4px 0;
  }

  .final-cta-points {
    grid-template-columns: 1fr;
  }

  .btn-main,
  .btn-large {
    font-size: 14px;
    padding: 16px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    gap: 12px;
  }
}
