@charset "UTF-8";

/* ============ 全体 ============ */
/* 外部 CSS（bphtmlbody.css）の body は width: 1000px 固定。
   完全レスポンシブにするため width: 100% !important で上書きする。
   横スクロール防止のため overflow-x: hidden を html/body 両方に付与。 */
html, body {
  overflow-x: hidden;
}
body {
  /* width: 100% にしてビューポート全幅に。max-width は付けない
     （.site-footer の 100vw を body の overflow-x: hidden で切られないため）。
     コンテンツの幅制約は .article 側で max-width: 1366px を適用 */
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  color: #1a1a1a;
  -webkit-text-size-adjust: 100%;
}

/* article は全幅。各 band で背景色を切り替え、内部の .container で 1000px に絞る */
.article {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  background: #ecedee url("back.png") center top / 100% auto repeat-y;
}

/* 共通: 白カード幅 1000px、左右 150px パディング → 内側コンテンツ 700px */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 150px;
  box-sizing: border-box;
}

/* ============ ヒーロー（全幅）============ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #122222;
  aspect-ratio: 1366 / 420;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* title.png は hero の上下中央に配置。左は 24.4%（PDF x=333/1366）に揃える。
   width は max-width(650px) に届くよう 50% を指定（650/1366≈47.6% より大きい値） */
.hero__title {
  position: absolute;
  top: 50%;
  left: 24.4%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 650px;
  height: auto;
  z-index: 2;
}
/* 右側プロフィール（3 行とも 18pt 同サイズ・色 #e5d388）
   PDF y=347 → (347-55)/420 = 69.5%、right マージン (1366-1206)/1366 = 11.7% */
.hero__profile {
  position: absolute;
  right: 12%;
  top: 70%;
  z-index: 2;
  color: #e5d388;
  font-family: "ヒラギノ角ゴ ProN W4","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-size: clamp(10px, 1.3vw, 18px);
  line-height: 1.85;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.hero__profile span { display: block; }

/* ============ リード帯（全幅 #e2dbbc）============ */
.lead-band {
  background: #e2dbbc;
  width: 100%;
}
.lead-band .container {
  padding-top: 30px;
  padding-bottom: 30px;
}
.lead-band p {
  margin: 0;
  text-align: justify;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.95;
  color: #255955;
}

/* ============ 白カード（本文）============ */
/* PDF: 白カードは 1000pt 幅で中央寄せ。背景はバンドではなく container に付与し、
   左右に back.png のパターンが見える */
.white-band {
  background: transparent;
  width: 100%;
  overflow: visible;
}
.white-band .container {
  background: #ffffff;
  padding-top: 40px;
  padding-bottom: 60px;
  overflow: visible;
}
.white-band p {
  margin: 0 0 2em;
  text-align: justify;
  font-size: 16px;
  line-height: 1.95;
  text-indent: 1em;
  color: #1a1a1a;
}

/* 次の兄弟要素が p でない場合（写真ブロック・見出し・最後の段落など）は下 margin を 2 倍に。
   ただし次が .photo-block--framed / .photo-block--profile の場合や、
   white-band 内の最後の p（最終段落）の場合は通常マージンに戻す */
.white-band p:not(:has(+ p)):not(:has(+ .photo-block--framed)):not(:has(+ .photo-block--profile)):not(:last-child) {
  /* margin-bottom: 7em; */
}

/* ============ セクション見出し（700px × 45px の暗緑帯）============ */
.sec-head {
  margin: 40px 0 55px;
  padding: 3px 0;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #255955;
  color: #e5d388;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  letter-spacing: .04em;
}
.sec-head:first-child { margin-top: 0; }
.sec-head + p { margin-top: 0; }

/* ============ photo_1: 暗緑ボックス + 写真左上はみ出し + テキスト右 ============ */
/* PDF寸法（body content 700pt 内）: ボックス幅 669pt（left:31pt, right:0）、高さ 252pt
   写真 406×271pt（ボックス上端 -45pt、左端 -33pt はみ出し）
   photo-block 全体: 700×297pt (= 写真上はみ出し 45 + ボックス 252) */
.photo-block--profile {
  position: relative;
  margin: 50px 0 36px;
  max-width: 700px;
  /* PDF 比率: 700×297 (写真上はみ出し 45 + ボックス 252) */
  aspect-ratio: 700 / 297;
}
.photo-block--profile .pp-box {
  position: absolute;
  left: 4.4%;                   /* 31/700 ≒ 4.4% */
  right: 0;
  top: 15.15%;                  /* 45/297 (photo-block 高さ基準) */
  bottom: 0;
  background: #255955;
}
.photo-block--profile .pp-img {
  position: absolute;
  left: 0;                      /* body content 左端から、ボックスより 31px 左にはみ出る */
  top: 0;                       /* ボックスは top:15.15% なので、写真が 45px 相当上にはみ出る */
  width: 58%;                   /* 406/700 ≒ 58% */
  z-index: 2;
}
.photo-block--profile .pp-img img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-block--profile .pp-text {
  position: absolute;
  left: 58%;                    /* 写真の右端から */
  right: 0;
  top: 15.15%;                  /* ボックスと同じ位置 */
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 55px;           /* 左側の余白 */
  color: #e2dbbc;
  text-align: left;
  box-sizing: border-box;
  font-family: "ヒラギノ角ゴ ProN W6","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: bold;
}
.photo-block--profile .pp-text .firm,
.photo-block--profile .pp-text .role {
  display: block;
  font-size: 16px;
  line-height: 1.8;
}
.photo-block--profile .pp-text .name {
  display: block;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .04em;
  margin-top: 4px;
  line-height: 1.6;
}
.photo-block--profile .pp-text .name .honorific {
  font-size: 16px;
  font-weight: bold;
}

/* ============ photo_2: 暗緑フレーム + 写真右上はみ出し L字 ============ */
/* L字構成: 写真の「左」と「下」に同じ幅の緑背景を出す。
   仕様:
     - 写真とフレームは同じ最大幅（662px）、同じ割合（94.6%）
     - 写真は右端揃え、フレームは左端揃え → 左に緑余白
     - padding-top と max() で写真上のはみ出し量 = 左の緑余白幅 にする
     - フレームの aspect-ratio を写真と同じ 706/470 にして、下の緑余白も同じ幅にする */
.photo-block--framed {
  position: relative;
  /* container 幅が広い場合（1199px 以下では padding が % になり content 幅が広がる）
     でも、photo ブロックは PC デザイン時の 700px 幅を上限とし、container 内で中央配置 */
  max-width: 700px;
  margin: 60px auto 7em;
  /* 写真の上はみ出し（＝下の緑余白）の量。
     padding-top はパーセンテージだと container 幅基準になるため、
     photo-block が max-width 700px で capped されると過剰な値になる。
     38px（= 700 - 662、左の緑余白幅）で頭打ちにして L字を均一にする */
  padding-top: min(max(5.4%, calc(100% - 662px)), 38px);
}
.photo-block--framed .pf-frame {
  position: relative;
  background: #255955;
  width: 94.6%;                 /* 100% - 5.4% */
  max-width: 662px;             /* 写真と同じ最大幅 */
  aspect-ratio: 1325 / 857;     /* photo_2.png の実寸と同じ縦横比 */
}
.photo-block--framed .pf-img {
  position: absolute;
  top: 0;                       /* 写真は box の上端から（フレームより上にはみ出す） */
  right: 0;                     /* 写真は container の右端にくっつく */
  width: 94.6%;                 /* フレームと同じ割合 */
  max-width: 662px;             /* 最大 662px */
  z-index: 2;
}
.photo-block--framed .pf-img img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-block--framed figcaption {
  margin-top: 20px;
  color: #255955;
  font-family: "ヒラギノ角ゴ ProN W4","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-size: 16px;              /* PDF実測 16pt */
  line-height: 1.85;
  text-align: left;
  text-indent: 0;
}

/* ============ お問い合わせ ============ */
.contact-band {
  background: transparent;
  width: 100%;
}
/* お問い合わせの container は左右 padding を 0 にし、
   contact__divider が container 全幅（1000px）まで広がるようにする。
   label / ロゴは text-align: center / margin: 0 auto で中央配置のため影響なし。 */
.contact-band .container {
  background: #ffffff;
  padding: 0 0 50px;
  text-align: center;
}
.contact__divider {
  width: 100%;
  height: 5px;
  background: #255955;
  margin: 0 0 36px;
  border: 0;
}
.contact__label, .kannren__label {
  font-size: 18px;
  font-weight: 600;
  color: #666666;
  letter-spacing: .14em;
  margin-bottom: 24px;
}

.kannren__box {
  text-align: left;
}
.kannren__label {
  margin-top: 36px;
}
.kannren__list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 0;
  margin: 0;
  font-size: 16px;
  margin-bottom: 7em;
}
.kannren__item {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kannren__item span {
  display: block;
  font-weight: bold;
}
.kannren__item a {
  color: #1a1a1a;
}
.contact__logo {
  display: block;
  margin: 0 auto;
  max-width: 300px;
  height: auto;
}

/* ============ フッター（<footer> でラップ、内部に JS で .localFooter が挿入される）============ */
/* body の max-width: 1366px を超えて、画面幅全体に背景を広げる手法。
   100vw と calc(-50vw + 50%) で親要素の中央寄せを打ち消す。
   html, body の overflow-x: hidden により横スクロールバーは出ない。 */
.site-footer {
  background: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 24px 20px;
  box-sizing: border-box;
  border-top: 1px solid #000;
}
.site-footer .localFooter {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #1a1a1a;
}
.site-footer .localFooter a {
  color: #1a1a1a;
  text-decoration: underline;
}
.site-footer .localFooter a:hover {
  text-decoration: none;
}

/* ============ SNSボタン ============ */
.social_buttons {
  list-style: none;
  margin: 12px auto;
  padding: 0 14px;
  max-width: 1000px;
  text-align: right;
}
.social_buttons li {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

/* ============ レスポンシブ ============ */
/* すべての img をデフォルトで親要素に収める（横スクロール防止） */
img { max-width: 100%; }

/* ---- タブレット〜小型 PC（1199px 以下）---- */
@media screen and (max-width: 1199px) {
  .container { padding: 0 8%; }
  /* sec-head はカードのコンテンツ幅と同じになる（700px → 84%相当に） */
}

/* ---- 中型タブレット（999px 以下）---- */
@media screen and (max-width: 999px) {
  .container { padding: 0 6%; }
  .sec-head { font-size: 22px; height: 42px; }
  .lead-band .container { padding-top: 24px; padding-bottom: 24px; }
  .lead-band p { font-size: 15px; }
  .white-band p, .kannren__list { font-size: 15px; }
  /* photo_1: 写真のはみ出しを少し控えめに */
  .photo-block--profile .pp-box { left: 3%; }
  /* photo_2: aspect-ratio で自動スケールするため height 上書きは不要 */
}

/* ---- タブレット縦・大型スマホ（767px 以下）---- */
@media screen and (max-width: 767px) {
  .container { padding: 0 4%; }
  .hero { aspect-ratio: 1366 / 500; }   /* 高さを取って画像が見やすく */
  .hero__title { width: 60%; left: 4%; }
  .hero__profile {
    right: 4%;
    top: 60%;
    font-size: clamp(10px, 1.8vw, 13px);
  }
  .sec-head {
    font-size: 18px;
    height: 38px;
    letter-spacing: .02em;
    margin: 30px 0 24px;
  }
  .lead-band .container { padding-top: 20px; padding-bottom: 20px; }
  .lead-band p { font-size: 14px; line-height: 1.85; }
  .white-band .container { padding-top: 24px; padding-bottom: 36px; }
  .white-band p, .kannren__list { font-size: 14px; line-height: 1.85; }

  /* photo_1: 縦並びに切替（写真の上→テキストブロック）。
     PC 用の max-width / aspect-ratio をリセットしてスマホ縦並びに */
  .photo-block--profile {
    position: static;
    max-width: none;
    aspect-ratio: auto;
    min-height: 0;
    margin: 24px 0;
    background: #245854;
  }
  .photo-block--profile .pp-box {
    display: none;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    height: auto;
    padding: 0 12px 16px;
    background: #245854;
  }
  .photo-block--profile .pp-img {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }
  .photo-block--profile .pp-text {
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    height: auto;
    padding: 6px 0 8px;
    margin: 0 5%;
  }

  /* photo_2: L字構成は維持（aspect-ratio + max() で自動スケール）。マージンのみ調整 */
  .photo-block--framed {
    margin: 30px 0 7em;
  }
  .photo-block--framed figcaption {
    font-size: 13px;
    margin-top: 12px;
  }

  .contact-band .container { padding-bottom: 30px; }
  .contact__divider { margin-bottom: 24px; }
  .contact__label, .kannren__label { font-size: 15px; }
  .contact__logo { max-width: 300px; }
  .social_buttons { text-align: center; }
}

/* ---- スマホ（479px 以下）---- */
@media screen and (max-width: 479px) {
  .container { padding: 0 4%; }
  .hero { aspect-ratio: 1366 / 580; }
  .hero__title { width: 70%; left: 4%; }
  .hero__profile {
    right: 4%;
    top: 65%;
    font-size: 10px;
    line-height: 1.7;
  }
  .sec-head {
    font-size: 15px;
    height: 36px;
    margin: 24px 0 20px;
  }
  .lead-band p { font-size: 13px; line-height: 1.8; }
  .white-band p, .kannren__list { font-size: 13px; line-height: 1.85; }
  .photo-block--framed figcaption { font-size: 12px; }
  .contact__label, .kannren__label { font-size: 14px; letter-spacing: .08em; }
  .contact__logo { max-width: 200px; }
}

/* ---- 極小スマホ（375px 以下）---- */
@media screen and (max-width: 375px) {
  .hero { aspect-ratio: 1366 / 640; }
  .hero__title { width: 76%; }
  .hero__profile { font-size: 9px; top: 75%; line-height: 1.2;}
  .sec-head { font-size: 13px; height: 32px; }
  .photo-block--profile .pp-text .firm,
  .photo-block--profile .pp-text .role { font-size: 14px; }
  .photo-block--profile .pp-text .name { font-size: 17px; }
  .photo-block--profile .pp-text .name .honorific { font-size: 13px; }
}
