@charset "UTF-8";

/* ==================================================
   法人案内ページ Styles (about.css)
================================================== */

/* ページ見出し（ヘッダー潜り込み防止） */
.p-sub-fv {
  padding: 120px 0 40px; /* 上部に固定ヘッダー分の余白を確保 */
  text-align: center;
}
.p-sub-fv__title {
  font-size: 32px;
  font-weight: 400;
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  letter-spacing: 0.1em;
  color: #333;
  margin: 0;
}

/* 導入文 */
.p-about__intro {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 60px;
}

/* ==================================================
   レイヤー風セクション見出し（トップページと共通）
================================================== */
.p-top-layer-header {
  position: relative;
  text-align: center;
  padding: 30px 0;
  margin-bottom: 25px;
}
.p-top-layer-header--left {
  text-align: left;
  padding: 10px 0;
}
.p-top-layer-header__en {
  font-family: var(--font-serif, "Noto Serif JP", serif);
  font-size: 72px;
  font-weight: 300;
  color: #e2e8ec;
  letter-spacing: 0.08em;
  display: block;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}
.p-top-layer-header__ja {
  font-family: var(--font-serif, "Noto Serif JP", serif);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 400;
  color: #333;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.p-top-layer-header--left .p-top-layer-header__ja {
  position: static;
  transform: none;
  margin-top: -35px;
  margin-left: 5px;
}

/* ==================================================
   ABOUT: 法人を知る
================================================== */
.p-about-section {
  margin-bottom: 80px;
}
.p-about-section__inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
.p-about-section__text {
  flex: 1;
}
.p-about-section__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}
.p-about-section__lead {
  font-size: 14.5px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}
.p-about-section__img {
  flex: 1;
}
.p-about-section__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ==================================================
   VISION: ビジョン
================================================== */
.p-about-vision {
  background-color: #f7f9fa; /* 薄いグレー背景 */
  padding: 60px 0 80px;
  margin: 0 -50vw 80px; /* 画面幅いっぱいに背景を広げるハック */
  padding-left: 50vw;
  padding-right: 50vw;
}
.p-about-vision__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.p-about-vision__list li {
  background-color: #fff;
  border: 1.5px solid var(--color-main, #f37c8f);
  color: var(--color-main, #f37c8f);
  text-align: center;
  padding: 20px 15px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* ==================================================
   4つの詳細導線カード
================================================== */
.p-about-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.p-about-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f37c8f;
  border-radius: 8px;
  padding: 25px 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.p-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(243, 124, 143, 0.15);
  opacity: 1;
}

.p-about-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.p-about-card__icon {
  width: 32px;
  height: auto;
}
.p-about-card__title {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-main, #f37c8f);
}

.p-about-card__desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px 0;
  flex: 1; 
}

.p-about-card__btn {
  display: block;
  background-color: var(--color-main, #f37c8f);
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: bold;
  position: relative;
  transition: opacity 0.3s;
}
.p-about-card__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.p-about-card:hover .p-about-card__btn {
  opacity: 0.9;
}


/* ==================================================
   理事長挨拶ページ (MESSAGE)
================================================== */
.p-message-content {
  margin-bottom: 80px;
}
.p-message-content__subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-main, #f37c8f);
  line-height: 1.6;
  margin-bottom: 40px;
  border-left: 4px solid var(--color-main, #f37c8f);
  padding-left: 20px;
}
.p-message-content__body p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 24px;
}
.p-message-content__body p:last-child {
  margin-bottom: 0;
}

/* プロフィールエリア */
.p-message-profile {
  background-color: #f7f9fa;
  border-radius: 8px;
  padding: 50px;
  margin-bottom: 60px;
}
.p-message-profile__heading {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.p-message-profile__heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-main, #f37c8f);
}

.p-message-profile__inner {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.p-message-profile__info {
  flex: 1;
}
.p-message-profile__name {
  margin-bottom: 25px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}
.p-message-profile__name .job {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}
.p-message-profile__name .name {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.1em;
}

.p-message-profile__list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #444;
}

.p-message-profile__dl dt {
  font-weight: 700;
  color: var(--color-main, #f37c8f);
  margin-bottom: 8px;
  font-size: 15px;
}
.p-message-profile__dl dd {
  margin: 0 0 20px 0;
}

.p-message-profile__img {
  width: 320px;
  flex-shrink: 0;
}
.p-message-profile__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}


/* ==================================================
   法人概要・沿革ページ (COMPANY)
================================================== */
.p-company-section {
  margin-bottom: 80px;
}

.p-company-table {
  border-top: 2px solid var(--color-main, #f37c8f);
  margin-top: 10px;
}
.p-company-table dl {
  display: flex;
  margin: 0;
  padding: 25px 15px;
  border-bottom: 1px solid #e5e5e5;
}
.p-company-table dt {
  width: 200px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-main, #f37c8f);
  font-size: 15px;
}
.p-company-table dd {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #333;
}

/* 事業所一覧（法人概要内）のリストスタイル */
.p-company-facility-list .item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}
.p-company-facility-list .item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.p-company-facility-list .name {
  display: block;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}
.p-company-facility-list .info {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ==================================================
   事業所一覧ページ (CLINICS)
================================================== */
.p-clinics-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
}

.p-clinic-item {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 80px;
}
.p-clinic-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.p-clinic-item__inner {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* 左側：テキストエリア */
.p-clinic-item__info {
  flex: 1;
}
.p-clinic-item__name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  border-left: 4px solid var(--color-main, #f37c8f);
  padding-left: 15px;
}
.p-clinic-item__address {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}
.p-clinic-item__desc {
  font-size: 14.5px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.8;
}

/* タグデザイン */
.p-clinic-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.p-clinic-item__tags span {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-main, #f37c8f);
  border: 1px solid var(--color-main, #f37c8f);
  padding: 4px 12px;
  border-radius: 20px;
  background-color: #fff;
}

.p-clinic-item__btn {
  width: 100%;
}

/* 右側：写真エリア（Swiper） */
.p-clinic-item__gallery {
  width: 480px;
  flex-shrink: 0;
}
.js-clinic-main-swiper {
  width: 100%;
  background-color: #f7f9fa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.js-clinic-main-swiper img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 統一された比率で表示 */
  object-fit: cover;
  display: block;
}

/* Swiper 矢印のカスタマイズ */
.js-clinic-main-swiper .swiper-button-next,
.js-clinic-main-swiper .swiper-button-prev {
  color: #fff;
  background-color: rgba(0,0,0,0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.js-clinic-main-swiper .swiper-button-next::after,
.js-clinic-main-swiper .swiper-button-prev::after {
  font-size: 14px;
  font-weight: bold;
}

/* サムネイル */
.p-clinic-thumb {
  box-sizing: border-box;
  padding: 0;
}
.p-clinic-thumb .swiper-slide {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  border-radius: 4px;
  overflow: hidden;
}
.p-clinic-thumb .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid var(--color-main, #f37c8f);
}
.p-clinic-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* キャプション（写真タイトル） */
.p-clinic-item__caption {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

/* ==================================================
   数字で見るイプシロン (NUMBERS)
================================================== */
.p-numbers-section {
  margin-bottom: 80px;
}

/* PC：3列のグリッドレイアウト */
.p-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.p-numbers-item {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.p-numbers-item:hover {
  transform: translateY(-5px);
}
.p-numbers-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==================================================
   SP Responsive (max-width: 768px)
================================================== */
@media screen and (max-width: 768px) {
  .p-sub-fv { padding: 100px 0 30px; }
  .p-sub-fv__title { font-size: 24px; }
  .p-about__intro { text-align: left; margin-bottom: 40px; }
  .p-top-layer-header { padding: 25px 0 20px; margin-bottom: 20px; overflow: hidden; }
  .p-top-layer-header--left { padding: 10px 0; }
  .p-top-layer-header__en { font-size: clamp(48px, 13vw, 62px); letter-spacing: 0.04em; line-height: 1.1; }
  .p-top-layer-header__ja { font-size: 30px; letter-spacing: 0.05em; font-weight: 500; }
  .p-top-layer-header--left .p-top-layer-header__ja { margin-top: -30px; margin-left: 2px; }
  .p-about-section__inner { flex-direction: column; gap: 30px; }
  .p-about-section__img img { margin-top: 20px; }
  
  /* ★修正箇所：SP時のビジョンセクションのはみ出しを安全に収めるように修正 */
  .p-about-vision {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 60px;
    padding: 40px 15px;
    box-sizing: border-box;
  }
  .p-about-vision__list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .p-about-vision__list li {
    font-size: 13.5px;
    padding: 15px 12px;
    line-height: 1.6;
    box-sizing: border-box;
  }

  .p-about-links__grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .p-about-card { padding: 20px 15px; }
  .p-about-card__header { flex-direction: column; text-align: center; gap: 10px; }
  .p-about-card__desc { font-size: 12px; }
  .p-message-content__subtitle { font-size: 18px; padding-left: 15px; margin-bottom: 30px; }
  .p-message-content__body p { font-size: 14px; margin-bottom: 20px; }
  .p-message-profile { padding: 30px 20px; }
  .p-message-profile__inner { flex-direction: column-reverse; gap: 30px; }
  .p-message-profile__img { width: 100%; max-width: 320px; margin: 0 auto; }
  .p-message-profile__name .name { font-size: 22px; }
  .p-message-profile__list { font-size: 13.5px; }
  .p-company-table dl { flex-direction: column; padding: 20px 10px; }
  .p-company-table dt { width: 100%; margin-bottom: 8px; }
  .p-company-table dd { font-size: 14px; }

  /* 事業所一覧ページ SPスタイル */
  .p-clinics-list {
    gap: 60px;
  }
  .p-clinic-item__inner {
    flex-direction: column;
    gap: 30px;
  }
  .p-clinic-item__gallery {
    width: 100%;
  }
  .p-clinic-item__name {
    font-size: 20px;
  }

  /* 数字で見るイプシロン SP：1列のグリッドレイアウトに変更 */
  .p-numbers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
}