/* ============================================================
   はやま耳鼻咽喉科・睡眠時無呼吸LP 追加修正版 2026-10-30
   適用順: styles.css → design-v2.css → design-v4.css
   ①公式サイトバナー ②03見出し・写真 ③見出し折返し
   ④小児セクション ⑤女性セクション
   ============================================================ */

/* ① ヘッダーの公式サイト導線 */
.head-inner{gap:17px}
.official-site-banner{
  position:relative; overflow:hidden;
  flex:0 0 auto; min-width:0; width:238px; min-height:62px;
  padding:10px 14px 10px 12px; border:1px solid #c7e6dc; border-radius:14px;
  background:linear-gradient(135deg,#eef8f3 0%,#ffffff 62%,#f7fcfa 100%);
  color:#113f60;display:flex;align-items:center;gap:11px;
  box-shadow:0 8px 24px rgba(12,49,91,.06);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.official-site-banner::before{content:"";position:absolute;right:-20px;top:-20px;width:82px;height:82px;border-radius:50%;background:radial-gradient(circle,rgba(162,222,204,.42),rgba(162,222,204,0) 72%);pointer-events:none}
.official-site-banner:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(12,49,91,.12);background:linear-gradient(135deg,#e7f6ef 0%,#ffffff 72%,#f2fbf7 100%);border-color:#b7dccf}
.official-banner-dot{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#d8f1e7;color:#217b6d;box-shadow:inset 0 0 0 1px rgba(33,123,109,.08)}
.official-banner-dot svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.official-banner-text{display:block;min-width:0;line-height:1.35;position:relative;z-index:1}
.official-banner-text small{display:block;font-size:9.5px;letter-spacing:.08em;white-space:nowrap;font-weight:800;opacity:.72;margin-bottom:3px}
.official-banner-text strong{display:flex;align-items:center;gap:7px;color:#0c315b;font-size:17px;letter-spacing:.02em;white-space:nowrap;font-weight:800}
.official-banner-text .official-main{display:inline-block}
.official-banner-text strong svg{height:16px;width:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.official-mobile-link{display:none}
.desktop-nav{margin-left:auto}

/* ② 大きな横長写真を右側の淡い背景へ。テキストには十分な幅を確保 */
.audience-section{background:linear-gradient(135deg,#fcfaf6 0%,#fafbf8 76%,#edf6f1 100%)}
.audience-intro.redesigned{position:relative;display:block;min-height:310px;margin-bottom:46px;isolation:isolate}
.audience-intro-copy{position:relative;z-index:2;padding:22px 0 14px}
.audience-intro-copy .section-heading{font-size:clamp(35px,3.25vw,46px);line-height:1.55;letter-spacing:.01em;max-width:none;margin:0 0 22px}
.audience-intro-copy .audience-nowrap{display:block;white-space:nowrap}
.audience-description{max-width:720px;font-size:18px;line-height:1.9;color:#5b7380;margin:0}
.audience-ghost-photo{position:absolute;right:0;top:-30px;width:43%;height:350px;border-radius:28px;overflow:hidden;z-index:0;opacity:.44;box-shadow:0 17px 48px rgba(12,49,91,.06)}
.audience-ghost-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:30% 48%}
.audience-ghost-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fcfaf6 0%,rgba(252,250,246,.90) 22%,rgba(252,250,246,.42) 68%,rgba(252,250,246,.16) 100%)}
.audience-card{position:relative;z-index:2}

/* ③ 文章が一文字だけ次の行へ落ちないよう、PCの2行を固定 */
.breathing-banner-content p{font-size:clamp(30px,3.25vw,46px);max-width:100%;letter-spacing:0;line-height:1.58}
.breathing-banner-content p .banner-line{display:block;white-space:nowrap}
.breathing-banner-content p strong{font-weight:800}
.features-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:48px}
.features-content .section-heading{font-size:clamp(28px,2.55vw,37px);line-height:1.55;letter-spacing:-.01em}
.feature-title-line{white-space:nowrap;display:inline-block}

/* ④ 小児: 上段=説明+イラスト / 下段=横並びの2カード */
.child-section{background:linear-gradient(180deg,#fbfdf9 0%,#f4faf6 100%);overflow:hidden}
.child-grid.enhanced.child-grid-v4{
  display:grid;
  grid-template-columns:minmax(0,1.38fr) minmax(0,.62fr);
  grid-template-areas:"intro picture" "signs signs";
  align-items:center;column-gap:60px;row-gap:40px;
}
.child-grid-v4 .child-intro{grid-area:intro;position:relative;z-index:2}
.child-grid-v4 .child-intro .section-heading{font-size:clamp(31px,3vw,41px);line-height:1.57;margin-bottom:20px}
.child-grid-v4 .child-intro .body-lead{font-size:19px;max-width:720px;margin-bottom:17px}
.child-grid-v4 .child-intro>p:not(.eyebrow):not(.body-lead){font-size:17px;max-width:740px;line-height:1.85}
.child-grid-v4 .child-alert{font-size:17px;margin-top:18px;border-top:0;padding-top:0}
.child-grid-v4 .child-visual{grid-area:picture;max-width:none;align-self:center}
.child-grid-v4 .child-visual-card{border:0;box-shadow:none;background:transparent;border-radius:0;padding:0;max-width:360px;margin:0 auto;overflow:visible;position:relative}
.child-grid-v4 .child-visual-card:before{content:"";position:absolute;z-index:0;inset:7% 0 5%;background:#e6f5f3;border-radius:44% 56% 53% 47%/40% 51% 49% 60%;opacity:.8}
.child-grid-v4 .child-visual-card img{display:block;position:relative;z-index:1;width:100%;height:auto;mix-blend-mode:multiply}
.child-grid-v4 .child-signs{grid-area:signs;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.child-grid-v4 .sign-card{background:#fff;border-radius:21px;padding:30px 34px;box-shadow:0 15px 42px rgba(16,68,81,.08);border:1px solid #dbece4}
.child-grid-v4 .sign-card-top{margin-bottom:20px}
.child-grid-v4 .sign-card h3{font-size:21px}
.child-grid-v4 .sign-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 22px;margin:0;padding:0}
.child-grid-v4 .sign-card li{font-size:16px;line-height:1.75}
.child-bottom{margin-top:30px;padding-top:8px}

/* ⑤ 女性: 写真を見出しの右側に重ね、ネイビーの透過グラデーションをかける */
.women-section{overflow:hidden;padding:100px 0 106px;background:linear-gradient(110deg,#0a2e58 0%,#113c65 68%,#1c5872 100%)}
.women-grid.women-grid-v4{max-width:1270px;display:block;position:relative;min-height:375px;isolation:isolate}
.women-grid-v4 .women-photo{position:absolute;top:-25px;right:0;z-index:0;width:43%;height:315px;display:block;pointer-events:none}
.women-grid-v4 .women-photo-frame{height:100%;border-radius:22px;overflow:hidden;position:relative;box-shadow:none}
.women-grid-v4 .women-photo-frame img{height:100%;width:100%;object-fit:cover;object-position:48% 50%;opacity:.72}
.women-grid-v4 .women-photo-frame:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0c315b 0%,rgba(12,49,91,.83) 18%,rgba(12,49,91,.25) 70%,rgba(12,49,91,.16) 100%)}
.women-grid-v4 .women-content{position:relative;z-index:2;width:100%;padding:0}
.women-grid-v4 .women-content .section-heading{font-size:clamp(35px,3.6vw,50px);line-height:1.52;max-width:none;margin:22px 0 29px;letter-spacing:.01em}
.women-grid-v4 .women-title-line{display:block;white-space:nowrap}
.women-grid-v4 .women-content>p:not(.eyebrow):not(.women-note){max-width:990px;font-size:19px;line-height:1.9}
.women-grid-v4 .women-tags{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:14px;margin:28px 0 25px}
.women-grid-v4 .women-tags span{font-size:16px;padding:10px 19px}
.women-grid-v4 .women-note{position:relative;z-index:2;font-size:17px}

/* 画面幅ごとの長文・ヘッダー調整 */
@media (max-width:1330px){
  .head-inner{gap:11px}
  .brand-word{width:225px}
  .brand-emblem{width:55px;height:55px}
  .official-site-banner{width:224px;padding:9px 12px}
  .official-banner-text small{font-size:8.5px}
  .desktop-nav{gap:14px}
  .desktop-nav a{font-size:13px}
  .head-reserve{padding:14px 17px}
}
@media (max-width:1180px){
  .brand-word{width:207px}
  .official-site-banner{width:168px;min-height:54px;padding:8px 10px}
  .official-banner-dot{width:31px;height:31px;flex-basis:31px}
  .official-banner-text small{display:none}
  .official-banner-text strong{font-size:14px}
  .desktop-nav{gap:11px}
  .desktop-nav a{font-size:12px}
  .head-reserve{font-size:13px;padding:13px 14px}
  .audience-intro-copy .section-heading{font-size:clamp(32px,3.5vw,42px)}
}
@media (max-width:980px){
  .official-site-banner{width:auto;min-height:45px;max-width:162px;border-radius:10px;padding:8px 10px}
  .official-banner-dot{display:none}
  .official-banner-text strong{font-size:14px}
  .official-mobile-link{display:block!important;background:#eaf6f0;color:#0c315b!important;font-weight:800}
  .audience-ghost-photo{width:46%;opacity:.33}
  .child-grid.enhanced.child-grid-v4{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);column-gap:30px}
  .child-grid-v4 .sign-card ul{grid-template-columns:1fr 1fr}
  .women-grid-v4 .women-content .section-heading{font-size:clamp(33px,4.2vw,43px)}
}
@media (max-width:760px){
  .official-site-banner{display:none}
  .audience-intro.redesigned{min-height:300px;margin-bottom:28px}
  .audience-ghost-photo{right:-12px;top:0;width:58%;height:260px;opacity:.24}
  .audience-intro-copy{padding:4px 0 8px}
  .audience-intro-copy .section-heading{font-size:clamp(30px,5.2vw,39px)}
  .audience-description{font-size:16px;max-width:620px}
  .features-grid{grid-template-columns:1fr;gap:40px}
  .feature-title-line{white-space:normal;display:inline}
  .breathing-banner-content p .banner-line{white-space:normal}
  .child-grid.enhanced.child-grid-v4{grid-template-columns:1fr;grid-template-areas:"intro" "picture" "signs";row-gap:24px;align-items:start}
  .child-grid-v4 .child-visual-card{max-width:320px}
  .child-grid-v4 .child-intro .section-heading{font-size:clamp(30px,5.2vw,38px)}
  .child-grid-v4 .child-signs{grid-template-columns:1fr;gap:18px}
  .child-grid-v4 .sign-card{padding:24px}
  .women-grid-v4 .women-photo{top:4px;right:0;width:62%;height:210px;opacity:.65}
  .women-grid-v4 .women-content .section-heading{font-size:clamp(30px,5.4vw,38px)}
  .women-grid-v4 .women-title-line{white-space:normal}
}
@media (max-width:680px){
  .audience-intro.redesigned{min-height:0;padding-bottom:12px}
  .audience-intro-copy{padding-top:18px}
  .audience-intro-copy .section-heading{font-size:clamp(28px,6.6vw,36px);line-height:1.52;margin-bottom:15px}
  .audience-intro-copy .audience-nowrap{white-space:normal}
  .audience-ghost-photo{width:68%;height:210px;top:-4px;opacity:.17}
  .audience-description{font-size:16px;line-height:1.85}
  .breathing-banner-content p{font-size:clamp(26px,6.4vw,35px);line-height:1.57}
  .child-grid-v4 .child-intro .section-heading{font-size:clamp(27px,7vw,36px)}
  .child-grid-v4 .child-intro .body-lead{font-size:17px}
  .child-grid-v4 .child-intro>p:not(.eyebrow):not(.body-lead){font-size:16px}
  .child-grid-v4 .child-alert{font-size:16px}
  .child-grid-v4 .child-visual-card{max-width:280px}
  .child-grid-v4 .sign-card ul{grid-template-columns:1fr}
  .child-grid-v4 .sign-card li{font-size:15px}
  .women-section{padding:76px 0}
  .women-grid.women-grid-v4{min-height:0}
  .women-grid-v4 .women-photo{top:-20px;right:-15px;width:77%;height:210px;opacity:.38}
  .women-grid-v4 .women-content .section-heading{font-size:clamp(29px,7vw,36px);line-height:1.52;position:relative;z-index:1;margin:18px 0 28px}
  .women-grid-v4 .women-title-line{white-space:normal}
  .women-grid-v4 .women-content>p:not(.eyebrow):not(.women-note){font-size:17px}
  .women-grid-v4 .women-tags{gap:9px}
  .women-grid-v4 .women-tags span{font-size:14px;padding:8px 12px}
  .women-grid-v4 .women-note{font-size:15px}
}
@media(max-width:380px){
  .audience-intro-copy .section-heading{font-size:28px}
  .breathing-banner-content p{font-size:25px}
  .women-grid-v4 .women-content .section-heading{font-size:27px}
}


/* ===== 2026-10-30 polish update: photo insertion refinement ===== */
.audience-intro.redesigned{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.88fr);
  gap:56px;
  align-items:center;
  min-height:0;
  margin-bottom:52px;
}
.audience-intro.redesigned::before{
  content:"";
  position:absolute;
  left:-90px; top:28px;
  width:310px; height:310px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(88,192,167,.10),rgba(88,192,167,0) 72%);
  z-index:0;
  pointer-events:none;
}
.audience-intro-copy{padding:10px 0 6px}
.audience-intro-copy .section-heading{
  font-size:clamp(38px,3.4vw,50px);
  line-height:1.4;
  margin:0 0 24px;
  letter-spacing:-.01em;
}
.audience-description{max-width:760px;font-size:19px;line-height:1.95}
.audience-ghost-photo{
  position:relative;
  right:auto; top:auto;
  width:100%; height:352px;
  border-radius:32px;
  overflow:hidden;
  opacity:1;
  box-shadow:0 24px 60px rgba(12,49,91,.10);
  background:#eff5f1;
  isolation:isolate;
}
.audience-ghost-photo::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg,#fcfaf6 0%,rgba(252,250,246,.94) 18%,rgba(252,250,246,.58) 36%,rgba(252,250,246,.14) 70%,rgba(252,250,246,.05) 100%);
  z-index:2;
}
.audience-ghost-photo::after{
  content:"SLEEP IMAGE";
  position:absolute;
  left:26px; bottom:18px;
  font-size:10px; letter-spacing:.24em; font-weight:700;
  color:#6a8490;
  z-index:3;
}
.audience-ghost-photo img{
  width:100%; height:100%; object-fit:cover;
  object-position:58% 48%;
  filter:saturate(.95) brightness(1.03);
  transform:scale(1.02);
}

.women-grid.women-grid-v4{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(340px,.86fr);
  gap:48px;
  align-items:start;
  min-height:0;
}
.women-grid-v4 .women-content{max-width:none;padding:0 0 0 2px}
.women-grid-v4 .women-content .section-heading{
  font-size:clamp(40px,3.75vw,54px);
  line-height:1.4;
  margin:20px 0 28px;
  letter-spacing:-.01em;
}
.women-grid-v4 .women-content>p:not(.eyebrow):not(.women-note){
  max-width:770px;
  font-size:19px;
  line-height:1.95;
}
.women-grid-v4 .women-photo{
  position:relative;
  top:auto; right:auto;
  width:100%; height:278px;
  align-self:start;
  justify-self:end;
  z-index:1;
  display:block;
}
.women-grid-v4 .women-photo::before{
  content:"";
  position:absolute; inset:-20px -20px auto auto;
  width:180px; height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);
  z-index:0;
}
.women-grid-v4 .women-photo-frame{
  height:100%;
  border-radius:28px 28px 0 80px;
  overflow:hidden;
  position:relative;
  box-shadow:0 18px 52px rgba(0,0,0,.12);
}
.women-grid-v4 .women-photo-frame::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg,#113c65 0%,rgba(17,60,101,.88) 12%,rgba(17,60,101,.36) 40%,rgba(17,60,101,.05) 78%,rgba(17,60,101,0) 100%);
  z-index:2;
}
.women-grid-v4 .women-photo-frame::after{
  content:"";
  position:absolute; inset:auto 0 0 auto;
  width:100%; height:78px;
  background:linear-gradient(180deg,rgba(19,66,108,0) 0%,rgba(19,66,108,.25) 100%);
  z-index:2;
}
.women-grid-v4 .women-photo-frame img{
  width:100%; height:100%; object-fit:cover; object-position:center 32%;
  opacity:.95;
  filter:saturate(.98) brightness(1.02);
}
.women-grid-v4 .women-tags{margin:30px 0 28px}
.women-grid-v4 .women-note{font-size:18px;line-height:1.85}

@media (max-width:1180px){
  .audience-intro.redesigned{grid-template-columns:minmax(0,1fr) minmax(300px,.84fr);gap:34px}
  .audience-intro-copy .section-heading{font-size:clamp(34px,3.6vw,44px)}
  .audience-description{font-size:18px}
  .women-grid.women-grid-v4{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:30px}
  .women-grid-v4 .women-content .section-heading{font-size:clamp(35px,4vw,46px)}
}
@media (max-width:900px){
  .audience-intro.redesigned{grid-template-columns:1fr;gap:22px}
  .audience-ghost-photo{height:300px;max-width:560px;margin-left:auto}
  .audience-ghost-photo::before{background:linear-gradient(90deg,rgba(252,250,246,.85) 0%,rgba(252,250,246,.55) 28%,rgba(252,250,246,.08) 74%,rgba(252,250,246,0) 100%)}
  .women-grid.women-grid-v4{grid-template-columns:1fr;gap:26px}
  .women-grid-v4 .women-photo{height:250px;max-width:540px;margin-left:auto}
}
@media (max-width:680px){
  .audience-intro.redesigned{gap:16px;margin-bottom:30px}
  .audience-intro-copy .section-heading{font-size:clamp(29px,7vw,37px);line-height:1.45}
  .audience-description{font-size:16px;line-height:1.9}
  .audience-ghost-photo{height:220px;max-width:none;border-radius:24px}
  .audience-ghost-photo::before{background:linear-gradient(90deg,rgba(252,250,246,.90) 0%,rgba(252,250,246,.72) 25%,rgba(252,250,246,.18) 70%,rgba(252,250,246,.05) 100%)}
  .women-grid-v4 .women-content .section-heading{font-size:clamp(31px,8vw,40px);line-height:1.45}
  .women-grid-v4 .women-content>p:not(.eyebrow):not(.women-note){font-size:16px;line-height:1.9}
  .women-grid-v4 .women-photo{height:210px;max-width:none}
  .women-grid-v4 .women-photo-frame{border-radius:24px 24px 0 62px}
  .women-grid-v4 .women-note{font-size:16px;line-height:1.8}
}


/* women visual should sit to the right of the headline on desktop */
.women-grid.women-grid-v4{grid-template-areas:"content photo"}
.women-grid-v4 .women-content{grid-area:content}
.women-grid-v4 .women-photo{grid-area:photo}
@media (max-width:900px){
  .women-grid.women-grid-v4{grid-template-areas:"photo" "content"}
}
