/* =========================================================
   Dsこどもとみんなのクリニック TOP
   固定1440px・ピクセル完全再現（レスポンシブなし）
   要素ごとに配置：文字=実HTML / 装飾・写真=個別画像 / ベタ塗り=CSS
   原本: images/figma/TOP_full.png (1440×9731)
   ========================================================= */
*{margin:0;padding:0;box-sizing:border-box;}
body{background:#FFF8EC;font-family:"Zen Maru Gothic",sans-serif;overflow-x:hidden;}
.stage{position:relative;width:1440px;height:9731px;margin:0 auto;background:#FFF8EC;overflow:hidden;}
.abs{position:absolute;display:block;}
a{text-decoration:none;color:inherit;}

/* リンク付きバナー・ボタン：ホバーで浮く、クリックで押し込む（drop-shadowで画像の形＝丸に沿った影） */
a.abs:not(.nav){transition:transform .18s ease,filter .18s ease;will-change:transform;}
a.abs:not(.nav):hover{transform:translateY(-6px);filter:drop-shadow(0 9px 12px rgba(0,0,0,.20));}
a.abs:not(.nav):active{transform:translateY(-1px) scale(.98);filter:drop-shadow(0 4px 6px rgba(0,0,0,.16));transition-duration:.05s;}
/* 皮膚科外来バッジ＝常時ふわふわ浮遊（内側imgにかけるので外側aのホバー浮きと競合しない） */
@keyframes badgeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
img[src$="sec/hifuka.png"]{animation:badgeFloat 3.4s ease-in-out infinite;filter:drop-shadow(0 10px 14px rgba(0,0,0,.10));will-change:transform;}
@media (prefers-reduced-motion:reduce){img[src$="sec/hifuka.png"]{animation:none;}}
/* ヘッダーロゴだけは浮かせず・影なし・半透明のみ */
a.abs:has(> img[src$="sec/logo.png"]){transition:opacity .18s ease;will-change:auto;}
a.abs:has(> img[src$="sec/logo.png"]):hover,
a.abs:has(> img[src$="sec/logo.png"]):active{transform:none;box-shadow:none;opacity:.6;}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ナビバー（オレンジ全幅） */
.navbar{background:#F0831E;border-radius:0 0 0 100px;}

/* ヘッダーナビ（実テキスト） fs14 ZenMaru w700 白 */
.nav{font-size:14px;font-weight:700;color:#fff;line-height:20px;white-space:nowrap;}
.nav:hover{color:rgba(255,255,255,0.75);}

/* セクション英字見出し（DynaPuff）：サイズ・色は各見出しでinline指定 */
.en{font-family:"DynaPuff",cursive;font-weight:600;line-height:1;letter-spacing:.02em;white-space:nowrap;margin:0;}

/* アクセス：注意書き・住所・電話 */
.acc-cap{font-size:12px;font-weight:700;color:#423C36;line-height:17px;white-space:nowrap;}
.acc-addr{font-size:18px;font-weight:700;color:#423C36;line-height:26px;white-space:nowrap;}

/* greeting 本文 */
.gbody{font-size:18.3px;font-weight:500;color:#423C36;line-height:26.5px;white-space:pre-wrap;}

/* Medical */
.med-lead{font-size:28px;font-weight:700;color:#000;line-height:44px;}
.ul-teal{border-bottom:4px solid #30A796;padding-bottom:2px;}
.med-body{font-size:15px;font-weight:500;color:#423C36;line-height:26px;}
.med-btn{width:250px;height:44px;background:#FFAC47;border-radius:22px;color:#fff;font-size:19px;font-weight:700;line-height:44px;text-align:center;}
.mlabel{font-size:10px;font-weight:700;color:#3C3C3C;line-height:14px;white-space:nowrap;}

/* お知らせ 日付ピル */
.pill{width:74px;height:18px;background:#FFF6E6;border-radius:9px;font-size:10px;font-weight:700;color:#FFAC47;line-height:18px;text-align:center;}
/* お知らせ タイトル */
.ntitle{font-size:12px;font-weight:700;color:#423C36;line-height:18px;white-space:nowrap;}

/* お知らせ リスト（コーポレート風・日付＋カテゴリ＋タイトル） */
.newsbox{background:#fff;border:1.5px solid #F1E4CE;border-radius:20px;box-shadow:0 10px 28px rgba(150,120,80,.10);padding:4px 30px;}
.nitem{display:flex;align-items:center;gap:22px;padding:15px 4px;border-bottom:1px dashed #EAD6B4;text-decoration:none;transition:background .15s ease;}
.nitem:last-child{border-bottom:none;}
.nitem:hover{background:#FFF9EF;}
.nitem .ni-date{flex:none;width:96px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:#C68A3C;letter-spacing:.03em;}
.nitem .ni-cat{flex:none;font-size:12px;font-weight:700;color:#fff;border-radius:999px;padding:4px 15px;white-space:nowrap;}
.ni-cat.c-orange{background:#F0AF6B;}.ni-cat.c-blue{background:#7FB2E4;}.ni-cat.c-teal{background:#5DBFB0;}
.nitem .ni-title{flex:1;font-size:16px;font-weight:700;color:#423C36;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nitem:hover .ni-title{color:#E0741A;}
.nitem .ni-arrow{flex:none;color:#D9A868;font-size:18px;line-height:1;}
.news-more{font-size:14px;font-weight:700;color:#C68A3C;text-decoration:none;letter-spacing:.02em;}
a.abs.news-more:hover{transform:none;filter:none;color:#E0741A;}

/* Blog */
.bdate{font-size:10px;font-weight:700;color:#FFAC47;line-height:14px;white-space:nowrap;}
.btitle{font-size:13px;font-weight:700;color:#423C36;line-height:19px;overflow:hidden;}

/* 採用バナー（Figma未デザイン部・カスタム） */
.recruit2{position:absolute;display:block;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.14);}
.recruit2 img{width:100%;height:100%;object-fit:cover;display:block;}
.rc-ov2{position:absolute;inset:0;background:linear-gradient(90deg,rgba(240,131,30,.85),rgba(255,172,71,.45));display:flex;flex-direction:column;justify-content:center;gap:12px;padding:0 80px;color:#fff;}
.rc-ov2 .t{font-weight:900;font-size:40px;letter-spacing:.04em;}
.rc-ov2 .s{font-size:18px;font-weight:500;}
.rc-ov2 .b{align-self:flex-start;background:#fff;color:#F0831E;font-weight:700;padding:11px 32px;border-radius:999px;font-size:16px;margin-top:6px;}

/* フッター（Figma未デザイン部・カスタム） */
.ftr2{position:absolute;left:0;width:1440px;background:#F0831E;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:44px 0;}
.ftr2 .wrap{max-width:1200px;margin:0 auto;width:100%;padding:0 70px;display:flex;justify-content:space-between;align-items:flex-start;gap:50px;}
.ftr2 .name{font-weight:700;font-size:20px;margin-bottom:10px;}
.ftr2 .addr{font-size:13px;color:#fff3e8;line-height:1.9;}
.ftr2 .menu{display:grid;grid-template-columns:1fr 1fr;gap:9px 30px;align-content:start;}
.ftr2 .menu a{font-size:14px;color:#fff;}
.ftr2 .menu a:hover{color:#fff3d6;text-decoration:underline;}
.ftr2 .cta{display:flex;flex-direction:column;gap:11px;}
.ftr2 .fb{padding:12px 34px;border-radius:999px;font-weight:700;text-align:center;font-size:14px;}
.ftr2 .web{background:#fff;color:#F0831E;}.ftr2 .line{background:#30A796;}.ftr2 .contact{background:#5B6CC4;}
.ftr2 .copy{text-align:center;font-size:12px;color:#fff3e8;margin-top:28px;}

/* 診療案内ページ */
.page-title{font-size:40px;font-weight:700;color:#423C36;line-height:59px;}
.mnum{font-family:"DynaPuff",cursive;font-size:41px;font-weight:700;line-height:49px;}
.mhead{font-size:27px;font-weight:700;color:#423C36;line-height:39px;white-space:nowrap;margin:0;}
.mbody{font-size:17px;font-weight:500;color:#383838;line-height:28px;white-space:pre-wrap;}
.mbtn2{width:250px;height:44px;background:#FFAC47;border-radius:22px;color:#fff;font-size:20px;font-weight:700;line-height:44px;text-align:center;}

/* TOP 最新お知らせティッカー */
.newsticker{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.94);border-radius:999px;padding:0 22px;box-shadow:0 3px 14px rgba(0,0,0,.10);text-decoration:none;overflow:hidden;}
.newsticker .nt-label{flex:none;background:#F0831E;color:#fff;font-weight:700;font-size:13px;border-radius:999px;padding:6px 20px;letter-spacing:2px;}
.newsticker .nt-item{flex:1;display:flex;align-items:center;gap:14px;min-width:0;}
.newsticker .nt-date{flex:none;color:#9a9a9a;font-size:14px;font-family:'Inter',sans-serif;}
.newsticker .nt-title{color:#423C36;font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.newsticker .nt-arrow{flex:none;color:#cfcfcf;font-size:20px;line-height:1;}
.newsticker .nt-item{transition:opacity .4s;}

/* フッター上 共通フォトストリップ（静止・中央整列） */
.photomarquee{position:absolute;left:0;width:1440px;overflow:hidden;z-index:2;}
.pm-track{display:flex;align-items:center;justify-content:center;gap:18px;width:1440px;}
.pm-track img{height:228px;width:auto;display:block;}
.pm-track img:nth-of-type(n+6){display:none;}

/* ── ページ見出し（ヒーロー内の大ラベル）の白縁取り ───────────────
   2026-07-28 ボス指示で全ページ実行。
   ヒーロー写真の上にオレンジ40pxの文字が乗ると、被写体（白衣・淡色の壁）に
   埋没して読めなくなるため、文字の外側だけに白縁を描いて輪郭を立てる。
   paint-order:stroke fill = 縁を先に描いて文字を上に重ねる指定。
   ※ -webkit-text-stroke 単体だと縁が字の内側に食い込んで文字が痩せて見える。
   対象は各ページ1個だけの .pglabel（＝h2.abs のヒーローラベル）と
   記事詳細の p.abs.pglabel。SP版(.m)の見出しは白地なので対象外。       */
.pglabel{
  -webkit-text-stroke: 6px #ffffff;
  paint-order: stroke fill;
}

/* ── ページ遷移のフェード（2026-07-29 ボス指示「プツっと切り替わるのがチープ」対策）──
   ①View Transitions API対応ブラウザ＝ページ間クロスフェード
   ②非対応ブラウザ・初回ロード＝到着時フェードイン
   どちらもJS不要・非対応環境は通常遷移に自動フォールバック。
   prefers-reduced-motion で全off＝検証ハーネス(--force-prefers-reduced-motion)にも
   視差を嫌うユーザーにも影響しない。 */
@media (prefers-reduced-motion: no-preference){
  @view-transition { navigation: auto; }
  ::view-transition-old(root){ animation-duration:.3s; animation-timing-function:ease; }
  ::view-transition-new(root){ animation-duration:.3s; animation-timing-function:ease; }
  body{ animation: dsPageIn .55s ease both; }
}
/* ⚠️ bodyにtransformを掛けるとposition:fixedの子(SP固定バー)が固定でなくなる
   (transformは固定要素の基準を作る仕様)。フェードはopacityのみにする(2026-07-29修正) */
@keyframes dsPageIn { from{opacity:0} to{opacity:1} }
