@charset "UTF-8";

/* =========================================================
   MIKAGE / A2 TEMPLATE FOUNDATION
   File: 05-a2.css

   A2 TOP用の共通土台です。
   実際のA2 HTMLは .iby-page.iby-design-a2 の内側に配置します。
========================================================= */

.iby-page.iby-design-a2,
.iby-page.iby-design-a2 * {
  box-sizing: border-box;
}

.iby-page.iby-design-a2 {
  width: 100%;
  margin: 0;
  color: var(--ilchi-a2-text);
  background: var(--ilchi-a2-page-bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "YuGothic", "Meiryo", sans-serif;
  line-height: 1.9;
}

.iby-page.iby-design-a2 img,
.iby-page.iby-design-a2 video,
.iby-page.iby-design-a2 iframe {
  max-width: 100%;
}

.iby-page.iby-design-a2 img {
  height: auto;
}

.iby-a2-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.iby-a2-section {
  padding: 88px 0;
}

.iby-a2-section.is-soft {
  background: var(--ilchi-a2-accent-soft);
}

.iby-a2-section__head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.iby-a2-eyebrow {
  margin: 0 0 10px;
  color: var(--ilchi-a2-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iby-a2-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ilchi-a2-text);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.45;
}

.iby-a2-lead {
  margin: 18px 0 0;
  color: var(--ilchi-a2-subtext);
  font-size: 16px;
  line-height: 2;
}

/* Hero */
.iby-a2-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  background: #f6f4ef;
}

.iby-a2-hero__media {
  position: absolute;
  inset: 0;
}

.iby-a2-hero__media img,
.iby-a2-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.iby-a2-hero__media img {
  object-fit: cover;
  object-position: center;
}

.iby-a2-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 35%,
    rgba(255, 255, 255, 0.12) 62%,
    rgba(255, 255, 255, 0) 100%
  );
}

.iby-a2-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  padding: 72px 0;
}

.iby-a2-hero__content {
  width: min(520px, 48%);
}

.iby-a2-hero__title {
  margin: 0;
  color: var(--ilchi-a2-text);
  font-size: clamp(34px, 4.7vw, 64px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.iby-a2-hero__text {
  margin: 24px 0 0;
  color: var(--ilchi-a2-subtext);
  font-size: 17px;
  line-height: 2;
}

.iby-a2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.iby-a2-btn,
.iby-a2-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ilchi-a2-accent);
  border-radius: 999px;
  background: var(--ilchi-a2-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--ilchi-a2-button-shadow);
}

.iby-a2-btn:hover {
  border-color: var(--ilchi-a2-accent-dark);
  background: var(--ilchi-a2-accent-dark);
  color: #fff;
}

.iby-a2-btn.is-outline,
.iby-a2-btn.is-outline:visited {
  background: #fff;
  color: var(--ilchi-a2-accent-dark);
}

/* Cards */
.iby-a2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.iby-a2-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--ilchi-a2-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-card h3 {
  margin: 0 0 14px;
  color: var(--ilchi-a2-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.6;
}

.iby-a2-card p {
  margin: 0;
  color: var(--ilchi-a2-subtext);
  font-size: 14px;
  line-height: 1.9;
}

.iby-a2-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.iby-a2-split__media {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-split__media img {
  display: block;
  width: 100%;
}

@media screen and (max-width: 899px) {
  .iby-a2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iby-a2-hero__content {
    width: min(560px, 62%);
  }
}

@media screen and (max-width: 767px) {
  .iby-a2-container,
  .iby-a2-hero__inner {
    width: min(100% - 36px, 1120px);
  }

  .iby-a2-section {
    padding: 62px 0;
  }

  .iby-a2-section__head {
    margin-bottom: 30px;
    text-align: left;
  }

  .iby-a2-lead {
    font-size: 14px;
  }

  .iby-a2-hero {
    min-height: 680px;
  }

  .iby-a2-hero__media img {
    object-position: 70% center;
  }

  .iby-a2-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.86) 54%,
      rgba(255, 255, 255, 0.98) 100%
    );
  }

  .iby-a2-hero__inner {
    align-items: flex-end;
    padding: 320px 0 52px;
  }

  .iby-a2-hero__content {
    width: 100%;
  }

  .iby-a2-hero__title {
    font-size: clamp(31px, 9vw, 43px);
  }

  .iby-a2-hero__text {
    margin-top: 18px;
    font-size: 14px;
  }

  .iby-a2-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .iby-a2-btn {
    width: 100%;
  }

  .iby-a2-grid,
  .iby-a2-split {
    grid-template-columns: 1fr;
  }

  .iby-a2-card {
    padding: 24px;
    border-radius: 18px;
  }
}

/* =========================================================
   A2 / IMAGE-BASED SECTIONS
   御影の画像素材を配置するための共通構造
========================================================= */

.iby-a2-image {
  display: block;
  width: 100%;
  height: auto;
}

/* 院長紹介 */
.iby-a2-profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: center;
}

.iby-a2-profile__media {
  width: min(360px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-profile__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* 6つのプログラム */
.iby-a2-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.iby-a2-program-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ilchi-a2-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-program-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ilchi-a2-accent-soft);
}

.iby-a2-program-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iby-a2-program-card__body {
  padding: 22px;
}

.iby-a2-program-card__body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.iby-a2-program-card__body p {
  margin: 0;
  color: var(--ilchi-a2-subtext);
  font-size: 13px;
  line-height: 1.85;
}

/* 体験CTA */
.iby-a2-trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--ilchi-a2-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-trial__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* GMCバナー */
.iby-a2-gmc-banner {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-gmc-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* かくれみの関連活動 */
.iby-a2-kakuremino {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-kakuremino__inner {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.iby-a2-kakuremino__content {
  width: min(560px, 58%);
}

.iby-a2-kakuremino-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.iby-a2-kakuremino-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(5px);
}

.iby-a2-kakuremino-icon img {
  display: block;
  width: min(82px, 100%);
  height: auto;
}

/* 体験者イメージ */
.iby-a2-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.iby-a2-voice-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ilchi-a2-border);
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: var(--ilchi-a2-shadow);
}

.iby-a2-voice-card__avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ilchi-a2-accent-soft);
}

.iby-a2-voice-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 899px) {
  .iby-a2-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iby-a2-kakuremino-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .iby-a2-profile,
  .iby-a2-trial {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .iby-a2-profile__media {
    width: min(260px, 100%);
  }

  .iby-a2-program-grid,
  .iby-a2-voice-grid {
    grid-template-columns: 1fr;
  }

  .iby-a2-trial {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .iby-a2-kakuremino {
    background-position: 66% center;
  }

  .iby-a2-kakuremino__inner {
    width: min(100% - 36px, 1040px);
    padding: 50px 0;
  }

  .iby-a2-kakuremino__content {
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
  }

  .iby-a2-kakuremino-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
