/* =========================================================
   以下、トップページ(front-page.php)専用のデザインCSS
   Cocoon本体のCSSとは独立して動作します（body.tate-front配下のみ）
   ========================================================= */

body.tate-front{
  --paper:#F3E9E4;
  --paper-deep:#EAD9D2;
  --card:#FAF3EF;
  --ink:#2B231F;
  --ink-soft:#6B5D55;
  --wine:#B8452F;
  --wine-deep:#6E2A1C;
  --wine-tint:#F4DFD7;
  --gold:#A47C4C;
  --sage-tint:#E4E9D8;
  --line:#DCC7BF;
  --shadow: 0 10px 30px -18px rgba(110,42,28,0.35);

  margin:0 !important;
  padding:0 !important;
  background:var(--paper) !important;
  color:var(--ink) !important;
  font-family:'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif !important;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
body.tate-front *{box-sizing:border-box;}
body.tate-front h1,
body.tate-front h2,
body.tate-front h3,
body.tate-front .mincho{font-family:'Shippori Mincho', serif;}
body.tate-front .en{font-family:'Cormorant Garamond', serif;}
body.tate-front a{color:inherit;text-decoration:none;}
body.tate-front img{max-width:100%;display:block;}
body.tate-front .wrap{max-width:1140px;margin:0 auto;padding:0 28px;}

/* ---------- ring signature element ---------- */
body.tate-front .rings{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
body.tate-front .rings svg{position:absolute;}
body.tate-front .ring-mark{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;flex:0 0 auto;}
body.tate-front .ring-mark svg{width:100%;height:100%;}

/* ---------- header ---------- */
body.tate-front .tate-header{
  position:sticky;top:0;z-index:50;
  background:rgba(243,233,228,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
body.tate-front .headbar{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;max-width:1140px;margin:0 auto;}
body.tate-front .logo{display:flex;align-items:baseline;gap:10px;font-family:'Shippori Mincho',serif;font-size:22px;font-weight:700;letter-spacing:.04em;color:var(--wine-deep);}
body.tate-front .logo small{font-family:'Cormorant Garamond',serif;font-size:12px;letter-spacing:.14em;color:var(--gold);font-weight:500;}
body.tate-front nav ul{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0;}
body.tate-front nav ul li{list-style:none;}
body.tate-front nav ul li a{font-size:14.5px;letter-spacing:.03em;position:relative;padding:4px 0;color:var(--ink-soft);}
body.tate-front nav ul li a:hover{color:var(--wine);}
body.tate-front .tel-btn{
  display:flex;align-items:center;gap:8px;
  background:var(--wine);color:#fff !important;padding:10px 18px;border-radius:2px;
  font-size:13.5px;letter-spacing:.03em;white-space:nowrap;
  box-shadow:var(--shadow);
}
body.tate-front .tel-btn .num{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:600;}
body.tate-front .nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;}
body.tate-front .nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);margin:5px 0;}

/* ---------- hero ---------- */
body.tate-front .hero{position:relative;overflow:hidden;background:var(--paper-deep);min-height:640px;display:flex;align-items:center;}
body.tate-front .hero-visual{position:absolute;inset:0;z-index:1;}
body.tate-front .hero-visual img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;animation:tateHeroFade 20s infinite;
  filter:brightness(1.32) saturate(1.06);
}
body.tate-front .hero-visual img:nth-child(1){animation-delay:0s;}
body.tate-front .hero-visual img:nth-child(2){animation-delay:5s;}
body.tate-front .hero-visual img:nth-child(3){animation-delay:10s;}
body.tate-front .hero-visual img:nth-child(4){animation-delay:15s;}
@keyframes tateHeroFade{
  0%{opacity:0;}
  2.5%{opacity:1;}
  22.5%{opacity:1;}
  25%{opacity:0;}
  100%{opacity:0;}
}
body.tate-front .hero-scrim{
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(100deg, rgba(52,17,10,.62) 0%, rgba(52,17,10,.46) 32%, rgba(52,17,10,.24) 58%, rgba(52,17,10,.06) 100%);
}
body.tate-front .hero-inner{
  max-width:1140px;margin:0 auto;padding:96px 28px;
  position:relative;z-index:3;width:100%;
}
body.tate-front .hero-inner .content{max-width:640px;}
body.tate-front .eyebrow{font-size:12.5px;letter-spacing:.22em;color:var(--gold);margin-bottom:18px;display:flex;align-items:center;gap:10px;}
body.tate-front .eyebrow::before{content:"";width:26px;height:1px;background:var(--gold);}
body.tate-front .hero h1{font-size:clamp(34px,4.6vw,58px);line-height:1.25;margin:0 0 22px;color:#F8F1EC;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.5), 0 8px 30px rgba(0,0,0,.4);}
body.tate-front .hero h1 .sm{display:block;font-size:.42em;color:#E3CFC3;font-weight:500;margin-bottom:10px;letter-spacing:.06em;}
body.tate-front .hero p.lead{font-size:15.5px;color:#EADFD9;max-width:46ch;margin:0 0 30px;text-shadow:0 2px 14px rgba(0,0,0,.3);}
body.tate-front .meta-line{display:flex;gap:26px;flex-wrap:wrap;margin-bottom:36px;}
body.tate-front .meta-item{display:flex;flex-direction:column;gap:2px;}
body.tate-front .meta-item .num{font-family:'Cormorant Garamond',serif;font-size:34px;color:#F4C98A;font-weight:700;line-height:1;text-shadow:0 2px 4px rgba(0,0,0,.6), 0 8px 22px rgba(0,0,0,.45);}
body.tate-front .meta-item .lbl{font-size:12px;color:#EADFD9;letter-spacing:.04em;text-shadow:0 2px 8px rgba(0,0,0,.4);}
body.tate-front .cta-row{display:flex;gap:14px;flex-wrap:wrap;}
body.tate-front .btn{
  display:inline-flex;align-items:center;gap:10px;padding:14px 26px;font-size:14px;letter-spacing:.03em;
  border-radius:2px;transition:transform .18s ease, box-shadow .18s ease;
}
body.tate-front .btn-primary{background:var(--wine);color:#fff !important;box-shadow:var(--shadow);}
body.tate-front .btn-primary:hover{transform:translateY(-2px);}
body.tate-front .btn-outline{border:1px solid #F3E9E4;color:#F3E9E4 !important;background:transparent;}
body.tate-front .btn-outline:hover{background:rgba(243,233,228,.12);}
body.tate-front .hero .caption{
  position:absolute;bottom:28px;right:28px;z-index:3;
  text-align:right;font-family:'Cormorant Garamond',serif;font-style:italic;color:#F3E9E4 !important;
  font-size:14px;letter-spacing:.05em;text-shadow:0 2px 10px rgba(0,0,0,.4);
}

/* ---------- news ticker ---------- */
body.tate-front .news-band{background:var(--wine-deep);color:#F3E9E4;}
body.tate-front .news-inner{max-width:1140px;margin:0 auto;padding:16px 28px;display:flex;align-items:center;gap:22px;}
body.tate-front .news-tag{flex:0 0 auto;font-size:12px;letter-spacing:.14em;color:var(--gold);border:1px solid rgba(164,124,76,.5);padding:5px 12px;border-radius:20px;}
body.tate-front .news-list{display:flex;gap:36px;overflow-x:auto;scrollbar-width:none;}
body.tate-front .news-list::-webkit-scrollbar{display:none;}
body.tate-front .news-item{flex:0 0 auto;display:flex;align-items:center;gap:10px;font-size:13.5px;white-space:nowrap;color:#F3E9E4;}
body.tate-front .news-item a{color:#F3E9E4 !important;}
body.tate-front .news-item a:hover{text-decoration:underline;}
body.tate-front .news-item .d{font-family:'Cormorant Garamond',serif;color:var(--gold);font-size:13px;}

/* ---------- section shared ---------- */
body.tate-front section{padding:104px 0;}
body.tate-front .sec-head{max-width:640px;margin:0 auto 56px;text-align:center;}
body.tate-front .sec-head .eyebrow{justify-content:center;}
body.tate-front .sec-head .eyebrow::before{display:none;}
body.tate-front .sec-head .eyebrow::after{content:"";width:26px;height:1px;background:var(--gold);}
body.tate-front .sec-head h2{font-size:clamp(26px,3vw,36px);color:var(--wine-deep);margin:0 0 16px;font-weight:600;}
body.tate-front .sec-head p{color:var(--ink-soft);font-size:14.5px;margin:0;}

/* ---------- features ---------- */
body.tate-front .feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);}
body.tate-front .feat-card{background:var(--card);padding:38px 28px;}
body.tate-front .feat-icon{width:44px;height:44px;color:var(--wine);margin-bottom:20px;}
body.tate-front .feat-card h3{font-size:16.5px;margin:0 0 10px;color:var(--ink);font-weight:600;}
body.tate-front .feat-card p{font-size:13px;color:var(--ink-soft);margin:0;}

/* ---------- departments ---------- */
body.tate-front .dept-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
body.tate-front .dept-card{
  position:relative;padding:44px 38px;border-radius:3px;overflow:hidden;
  display:flex;flex-direction:column;min-height:340px;
}
body.tate-front .dept-card.ob{background:var(--wine-deep);color:#F3E9E4;}
body.tate-front .dept-card.gy{background:var(--sage-tint);color:var(--ink);}
body.tate-front .dept-tag{font-family:'Cormorant Garamond',serif;font-size:13px;letter-spacing:.16em;opacity:.75;margin-bottom:10px;}
body.tate-front .dept-card h3{font-size:26px;margin:0 0 16px;}
body.tate-front .dept-card ul{list-style:none;margin:0 0 28px;padding:0;font-size:13.5px;display:flex;flex-wrap:wrap;gap:9px;}
body.tate-front .dept-card li{padding:6px 13px;border-radius:20px;font-size:12.5px;}
body.tate-front .dept-card.ob li{background:rgba(255,255,255,.12);}
body.tate-front .dept-card.gy li{background:rgba(110,51,80,.08);color:var(--wine-deep);}
body.tate-front .dept-card p.desc{font-size:13.5px;opacity:.85;margin:0 0 auto 0;max-width:46ch;}
body.tate-front .dept-more{margin-top:24px;font-size:13px;display:inline-flex;align-items:center;gap:8px;letter-spacing:.03em;}
body.tate-front .dept-card.ob .dept-more{color:#F0D9C8 !important;}
body.tate-front .dept-card.gy .dept-more{color:var(--wine) !important;}

/* ---------- doctors / timeline ---------- */
body.tate-front .timeline-wrap{position:relative;margin-bottom:64px;padding-top:10px;}
body.tate-front .timeline-line{position:relative;height:2px;background:var(--line);margin:0 40px 46px;}
body.tate-front .timeline-line .yr-start,
body.tate-front .timeline-line .yr-end{position:absolute;top:-28px;font-family:'Cormorant Garamond',serif;font-size:14px;color:var(--ink-soft);}
body.tate-front .timeline-line .yr-start{left:0;}
body.tate-front .timeline-line .yr-end{right:0;}
body.tate-front .doctors-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
body.tate-front .doc-card{background:var(--card);border:1px solid var(--line);padding:30px 26px;position:relative;}
body.tate-front .doc-card .ring-mark{color:var(--gold);font-size:22px;margin-bottom:16px;}
body.tate-front .doc-role{font-size:11.5px;letter-spacing:.1em;color:var(--wine);margin-bottom:6px;}
body.tate-front .doc-name{font-family:'Shippori Mincho',serif;font-size:20px;margin:0 0 12px;color:var(--ink);}
body.tate-front .doc-desc{font-size:12.8px;color:var(--ink-soft);}
body.tate-front .doc-card.wide{grid-column:span 3;}

/* ---------- hours & access ---------- */
body.tate-front .ha-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:56px;align-items:start;}
body.tate-front table.hours{width:100%;border-collapse:collapse;font-size:13.5px;}
body.tate-front table.hours th, body.tate-front table.hours td{padding:12px 8px;text-align:center;border-bottom:1px solid var(--line);}
body.tate-front table.hours th{font-weight:500;color:var(--ink-soft);font-size:12.5px;}
body.tate-front table.hours td.lbl{text-align:left;color:var(--ink-soft);font-size:12.5px;}
body.tate-front table.hours td.on{color:var(--wine);font-weight:700;}
body.tate-front table.hours td.off{color:#c9bab3;}
body.tate-front .note-box{margin-top:22px;padding:18px 20px;background:var(--wine-tint);border-radius:3px;font-size:12.8px;color:var(--wine-deep);}
body.tate-front .access-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13.5px;}
body.tate-front .access-row .k{flex:0 0 88px;color:var(--ink-soft);font-size:12.5px;letter-spacing:.03em;}
body.tate-front .map-frame{margin-top:22px;border:1px solid var(--line);border-radius:3px;overflow:hidden;height:260px;}
body.tate-front .map-frame iframe{width:100%;height:100%;border:0;filter:sepia(8%) saturate(90%);}

/* ---------- cta band ---------- */
body.tate-front .cta-band{background:var(--wine-deep);color:#F3E9E4;text-align:center;padding:88px 0;position:relative;overflow:hidden;}
body.tate-front .cta-band h2{color:#F3E9E4;font-size:clamp(24px,3vw,34px);margin:0 0 18px;}
body.tate-front .cta-band p{color:#E3CFC3;font-size:14px;margin:0 0 34px;}
body.tate-front .cta-band .cta-row{justify-content:center;}
body.tate-front .cta-band .btn-outline{border-color:#E3CFC3;color:#F3E9E4 !important;}
body.tate-front .cta-band .btn-outline:hover{background:rgba(255,255,255,.08);}

/* ---------- footer ---------- */
body.tate-front .tate-footer{background:var(--paper-deep);padding:64px 0 28px;}
body.tate-front .foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:40px;margin-bottom:46px;}
body.tate-front .foot-logo{font-family:'Shippori Mincho',serif;font-size:20px;color:var(--wine-deep);margin-bottom:14px;}
body.tate-front .foot-col h4{font-size:12.5px;letter-spacing:.1em;color:var(--gold);margin:0 0 16px;}
body.tate-front .foot-col p, body.tate-front .foot-col a{font-size:13px;color:var(--ink-soft);display:block;margin-bottom:10px;}
body.tate-front .foot-col a:hover{color:var(--wine);}
body.tate-front .foot-bottom{border-top:1px solid var(--line);padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--ink-soft);}

@media (max-width: 880px){
  body.tate-front nav, body.tate-front .tel-btn{display:none;}
  body.tate-front .nav-toggle{display:block;}
  body.tate-front .hero{min-height:520px;}
  body.tate-front .hero-inner{padding-top:56px;padding-bottom:56px;}
  body.tate-front .feat-grid{grid-template-columns:1fr 1fr;}
  body.tate-front .dept-grid{grid-template-columns:1fr;}
  body.tate-front .doctors-grid{grid-template-columns:1fr;}
  body.tate-front .doc-card.wide{grid-column:span 1;}
  body.tate-front .ha-grid{grid-template-columns:1fr;gap:40px;}
  body.tate-front .foot-grid{grid-template-columns:1fr;gap:28px;}
  body.tate-front section{padding:72px 0;}
}
