@charset "utf-8";

/* =========================================================
   THEME（ベージュ×焦げ茶：MVのパース雰囲気に合わせる）
========================================================= */
:root{
  --bg: #f3ece2;           /* 全体背景 */
  --card: #ffffff;         /* 白カード */
  --text: #3a2a1f;         /* 焦げ茶 */
  --muted: #6b5a4b;        /* 薄め焦げ茶 */
  --line: #e2d5c7;         /* 罫線 */
  --accent: #8b6b4a;       /* アクセント（木色） */
  --accent2:#c6ad93;       /* サブアクセント */
  --shadow: 0 10px 30px rgba(45, 28, 18, .10);
}

/* Base */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
}
img{ max-width:100%; height:auto; display:block; }

.wrap{ overflow-x:hidden; }

/* Layout container */
.subpage__w{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 50px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* =========================================================
   Header / MV
========================================================= */
.site-header{ position:relative; background:transparent; }

.mainvisual{
  position: relative;
  padding: 0;
  background: var(--bg);
}
.mainvisual-inner{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 34px;
}

.mv-media{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mv-media img{
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
}

/* MVコピー */
.mv-copy{
  position: absolute;
  left: 38px;
  bottom: 38px;
  z-index: 2;
  max-width: min(720px, 92%);
}
.mv-copy__line{
  display: inline-block;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226, 213, 199, .9);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(45, 28, 18, .10);
  margin: 0 0 10px;
  letter-spacing: .06em;
  color: var(--text);
  font-weight: 600;
}
.mv-copy__line--sm{ font-size: 16px; }
.mv-copy__title{
  margin: 6px 0 0;
  display: inline-block;
  background: rgba(58, 42, 31, .92);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  letter-spacing: .08em;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(45, 28, 18, .18);
}

/* ドメイン（右下） */
.mv-domain{
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  color: rgba(255,255,255,.9);
  background: rgba(58, 42, 31, .55);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
}

/* =========================================================
   Section Title
========================================================= */
.section-title{
  position: relative;
  margin: 0 0 60px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--text);
}
.section-title::after{
  content:"";
  display:block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

/* =========================================================
   Doctor / Greeting
========================================================= */
.doctor-section{ padding: 60px 0 0; background: transparent; }

.doctor-card{
  max-width: 640px;
  margin: 0 auto;
  padding: 46px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 26px rgba(45, 28, 18, .08);
}
.doctor-card__role{
  font-size: 20px;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--muted);
}
.doctor-card__name{
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--text);
}

/* 院長／氏名：横並び */
.doctor-card{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap; /* 画面が狭い場合は折り返し */
}

.doctor-card__role{
  margin-bottom: 0; /* 既存の下余白を打ち消し */
}

.doctor-card__name{
  margin: 0; /* 念のため */
}

.doctor-card__kana{
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  font-size: 15px;
}

.greeting-box{
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 52px;
}
.greeting-text{
  font-size: 17px;
  line-height: 2.05;
  margin: 0;
  color: var(--text);
  letter-spacing: .04em;
}
.greeting-sign{
  margin-top: 18px;
  text-align: right;
  color: var(--text);
}
.greeting-sign__role{
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--muted);
}
.greeting-sign__name{
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: .06em;
  font-weight: 700;
}

/* Profile cards */
.profile-grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.profile-card{
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 34px;
}
.profile-card--wide{
  grid-column: 1 / -1;
}
.profile-title{
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent);
}
.profile-note{
  margin: -6px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
}
.profile-list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-list li{
  position: relative;
  padding-left: 18px;
  line-height: 1.9;
  font-size: 15.5px;
  color: var(--text);
}
.profile-list li + li{ margin-top: 8px; }
.profile-list li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}

/* =========================================================
   Access
========================================================= */
.access-section{ padding: 60px 0 80px; background: transparent; }

.access-layout{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.outlinetbl{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.outlinetbl th, .outlinetbl td{
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}
.outlinetbl tr:last-child th, .outlinetbl tr:last-child td{ border-bottom:none; }
.outlinetbl th{
  width: 28%;
  min-width: 120px;
  white-space: nowrap;
  background: #fbf7f1;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}
.outlinetbl td{
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.8;
}

.btn-map{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 20px rgba(45, 28, 18, .12);
}
.btn-map:hover{ opacity: .88; }

.access-note{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .03em;
}

.gm_w{ width: 100%; }
.gm_w iframe{
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* =========================================================
   Footer
========================================================= */
.site-footer{ background: transparent; padding: 0 0 0; }
.footer-inner{
  text-align: center;
  padding: 46px 0 26px;
}
.footer-brand__name{
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--text);
}
.footer-brand__domain{
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .10em;
  color: var(--muted);
}
.copyright{
  margin-top: 0;
  background: rgba(58, 42, 31, .92);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 14px 10px;
}

/* =========================================================
   Utilities（ベース互換：mbpc/mbsp など）
========================================================= */
@media (min-width:751px){
  .mbpc20{ margin-bottom:2rem !important; }
  .mbpc30{ margin-bottom:3rem !important; }
  .mbpc60{ margin-bottom:6rem !important; }
  .mbpc80{ margin-bottom:8rem !important; }
  .mbpc100{ margin-bottom:10rem !important; }
}
@media (max-width:750px){
  .mbsp30{ margin-bottom:3rem !important; }
  .mbsp60{ margin-bottom:6rem !important; }
  .mbsp80{ margin-bottom:8rem !important; }
}

/* =========================================================
   Responsive（SP）
========================================================= */
@media (max-width: 768px){

  .subpage__w{
    max-width: 94%;
    padding: 44px 18px;
    border-radius: 14px;
  }

  .mainvisual-inner{ padding: 16px 12px 24px; }
  .mv-media img{ height: min(64vh, 520px); }

  .mv-copy{
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .mv-copy__line--sm{ font-size: 14px; }
  .mv-copy__title{
    font-size: 24px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .mv-domain{
    right: 14px;
    bottom: 14px;
    font-size: 12px;
    padding: 7px 10px;
  }

  .section-title{
    font-size: 22px;
    margin-bottom: 34px;
  }

  .doctor-card{ padding: 34px 18px; }
  .doctor-card__name{ font-size: 32px; }

  .greeting-box{
    padding: 26px 18px;
    border-radius: 14px;
  }
  .greeting-text{ font-size: 15.5px; line-height: 2; }

  .profile-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-card{ padding: 26px 18px; }
  .profile-list li{ font-size: 15px; }

  .access-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gm_w iframe{ height: 360px; }

  /* SP：テーブルを縦積みに（見やすさ優先） */
  .outlinetbl,
  .outlinetbl tbody,
  .outlinetbl tr,
  .outlinetbl th,
  .outlinetbl td{
    display:block;
    width:100%;
  }
  .outlinetbl tr{
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .outlinetbl tr:last-child{ border-bottom: none; padding-bottom: 0; }
  .outlinetbl th{
    border: none;
    padding: 20px;
  }
  .outlinetbl td{
    border: none;
    padding: 20px;
  }
}








/* PC：アクセスは縦並び（地図→情報） */
@media (min-width: 769px){
  .access-layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .gm_w iframe{
    height: 460px; /* 任意：少し広めに */
  }
}


/* MV：PCは高さ820px固定 */
@media (min-width: 769px){
  .mv-media .mv-img{
    height: 820px;
    width: 100%;
    object-fit: cover;
  }
}



/* Profile：PCでも縦並び（1カラム）にする */
@media (min-width: 769px){
  .profile-grid{
    grid-template-columns: 1fr;
  }
}




/* MV：SPは画像を見切らせず全体表示（contain） */
@media (max-width: 768px){
  .mv-media img{
    object-fit: contain;
    background: #f3ece2; /* 余白が出たときの背景（全体背景と合わせる） */
  }
}



/* MV：SPは上下余白なしで、画像全体を表示（高さauto運用） */
@media (max-width: 768px){
  .mv-media img{
    width: 100%;
    height: auto;        /* ← これで上下余白が出ない */
    object-fit: initial; /* contain/coverを無効化（念のため） */
    background: none;
  }
}

@media (max-width: 768px){

.doctor-section {
  padding: 20px 0 0;
  background: transparent;
}
}

/* ご挨拶署名：院長／氏名を横並び */
.greeting-sign{
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap; /* 画面が狭い場合は折り返し */
  text-align: right; /* 念のため */
}

.greeting-sign__role{
  margin: 0;
}

.greeting-sign__name{
  margin: 0;
}


/* 受賞歴注記：強調（サイズUP＋白背景＋枠線） */
.profile-note{
  font-size: 15.5px;            /* 既存14px → 少し大きく */
  display: inline-block;        /* 枠を文字幅に合わせる */
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 6px auto 16px;        /* 中央寄せ＋下余白 */
  color: var(--muted);
}
/* profile-note：確実に中央寄せ */
.profile-note{
  display: table;        /* これで margin:auto が確実に効く */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 署名：1行固定＋（かな）だけ小さく */
.greeting-sign{
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;     /* 折り返し禁止（1行固定） */
  white-space: nowrap;   /* テキストの改行禁止 */
}

.greeting-sign__kana{
  font-size: 0.78em;     /* （いがらし のぞみ）だけ小さく */
  letter-spacing: .02em;
  color: var(--muted);
}

/* SP：1行に収めるため全体の文字サイズを少し下げる */
@media (max-width: 768px){
  .greeting-sign{
    gap: 10px;
  }
  .greeting-sign__role{ font-size: 12px; }
  .greeting-sign__name{ font-size: 16px; }
  .greeting-sign__kana{ font-size: 0.72em; }
}

/* Greeting English */
.greeting-en{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.greeting-en__title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-align: left;
}

.greeting-en__text{
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text);
}

.greeting-en__sign{
  margin-top: 10px;
  text-align: right;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
/* English署名：Director名を強調 */
.greeting-en__director{
  font-weight: 700;
  font-size: 1.15em; /* 少し大きく */
  color: var(--text);
}
