/* ==========================================================
   value.css — メディカル革命 byGMO ランディングページ
   フォント: Noto Sans JP + Inter (Google Fonts)
   カラー: メインカラー #00897B (Teal Green)
   ========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Typography (PC: 768px以上) ---------- */
@media (min-width: 768px) {
  body, p, div, span, a, li, td, th { font-size: 16px; font-weight: 400; line-height: 1.5; }
  small, .small { font-size: 11px; font-weight: 400; line-height: 1.5; }
  h1 { font-size: 32px; font-weight: 700; line-height: 1.5; }
  h2 { font-size: 24px; font-weight: 700; line-height: 1.5; }
  h3 { font-size: 22px; font-weight: 700; line-height: 1.5; }
  h4, h5, h6 { font-size: 16px; font-weight: 700; line-height: 1.5; }
}

/* ---------- Typography (スマホ: 767px以下) ---------- */
@media (max-width: 767px) {
  body, p, div, span, a, li, td, th { font-size: 14px; font-weight: 400; line-height: 1.5; }
  small, .small { font-size: 10px; font-weight: 400; line-height: 1.5; }
  h1 { font-size: 20px; font-weight: 700; line-height: 1.5; }
  h2 { font-size: 20px; font-weight: 700; line-height: 1.5; }
  h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
  h4, h5, h6 { font-size: 16px; font-weight: 700; line-height: 1.5; }
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .container { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Scroll Fade-in Animation ---------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
}

.fade-in-section.is-visible .stagger-item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-section.is-visible .stagger-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-section.is-visible .stagger-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in-section.is-visible .stagger-item:nth-child(3) { animation-delay: 0.3s; }
.fade-in-section.is-visible .stagger-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

@media (min-width: 768px) {
  .hero {
    background-position: top left;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,137,123,0.95), rgba(0,137,123,0.60));
}

.hero__body {
  position: relative;
  z-index: 10;
  padding: 80px 0 100px;
}

@media (min-width: 768px) {
  .hero__body { padding: 128px 0 120px; }
}

.hero__inner {
  max-width: 640px;
}

.hero__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero__title { font-size: 44px; }
}

.hero__lead {
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .hero__lead { font-size: 18px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.breadcrumb__inner {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.breadcrumb,
.breadcrumb *,
.breadcrumb a,
.breadcrumb span {
  font-size: 12px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 4px;
}

/* ---------- Feature Sections (01 / 02 / 03) ---------- */
.feature {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .feature { padding: 80px 0; }
}

.feature--white { background-color: #ffffff; }
.feature--gray  { background-color: #f9fafb; }

/* 見出しエリア（番号 + テキスト + 大画像） */
.feature__header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.feature__header-text {
  flex: 1;
}

.feature__number {
  font-size: 80px;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .feature__number { font-size: 120px; }
}

.feature__title {
  color: #00897B;
  margin-bottom: 12px;
}

.feature__subtitle {
  color: #00897B;
  font-size: 18px;
}

@media (min-width: 768px) {
  .feature__subtitle { font-size: 22px; }
}

/* 右側の大画像 */
.feature__main-img {
  display: none;
}

@media (min-width: 768px) {
  .feature__main-img {
    display: block;
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    background-color: #eeeeee;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .feature__main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* 3カラムグリッド */
.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* カード */
.feature__card {}

.feature__card-img {
  width: 100%;
  height: 200px;
  background-color: #eeeeee;
  border-radius: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ホバー時のズームオーバーレイ */
.clickable-img {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.clickable-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.2s;
}

.clickable-img:hover::after {
  background-color: rgba(0,0,0,0.10);
}

.clickable-img__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
  pointer-events: none;
}

.clickable-img:hover .clickable-img__zoom {
  opacity: 1;
}

.feature__card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
}

.feature__card-body {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
  line-height: 1.6;
}

.feature__card-note {
  font-size: 12px;
  color: #6b7280;
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 64px 0;
  background-color: #f9fafb;
  text-align: center;
}

@media (min-width: 768px) {
  .cta { padding: 80px 0; }
}

.cta__title {
  color: #00897B;
  margin-bottom: 16px;
}

.cta__lead {
  color: #4b5563;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .cta__buttons { grid-template-columns: repeat(3, 1fr); }
}

.cta__btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta__btn-label {
  font-size: 12px;
  color: #4b5563;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn--primary {
  background-color: #00897B;
  color: #ffffff;
  border-color: #00897B;
}

.btn--primary:hover { background-color: #00796B; }

.btn--outline {
  background-color: transparent;
  color: #00897B;
  border-color: #00897B;
}

.btn--outline:hover { background-color: rgba(0,137,123,0.05); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 電話番号エリア */
.cta__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #374151;
}

.cta__tel-icon { color: #00897B; }

.cta__tel-label { font-size: 13px; }

.cta__tel-number {
  font-size: 26px;
  font-weight: 700;
  color: #00897B;
  text-decoration: none;
}

.cta__tel-number:hover { text-decoration: underline; }

.cta__tel-hours {
  font-size: 12px;
  color: #6b7280;
}

/* ---------- Specialty Grid ---------- */
.specialty {
  padding: 64px 0;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .specialty { padding: 80px 0; }
}

.specialty__title {
  text-align: center;
  color: #00897B;
  margin-bottom: 48px;
}

.specialty__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .specialty__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .specialty__grid { grid-template-columns: repeat(6, 1fr); }
}

.specialty__item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.2s, background-color 0.2s;
}

.specialty__item:hover {
  border-color: #00897B;
  background-color: rgba(0,137,123,0.05);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0,0,0,0.70);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

.modal-img-placeholder {
  width: 100%;
  height: 600px;
  background-color: #eeeeee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  display: block;
}

/* ---------- Value 相互リンク（4ページ共通） ---------- */
.value-links {
  background-color: #ffffff;
  padding: 24px 0;
}

.value-links__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.value-links__item {
  margin: 0;
}

.value-links__btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 2px solid #00b982;
  color: #00b982;
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.value-links__btn:hover {
  background-color: #00b982;
  color: #ffffff;
}

.value-links__btn--current {
  background-color: #00b982;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

.value-links__btn--current:hover {
  background-color: #00b982;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .value-links__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .value-links__btn {
    padding: 14px 10px;
  }
}

@media (max-width: 1023px) {
  .value-links__list {
    gap: 10px;
  }
  .value-links__btn {
    padding: 10px;
  }
}
