/* ===============================
   Root / Base
=============================== */
:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#5f6670;
  --line:rgba(0,0,0,.12);
  --brand:#1b7a57;
  --radius:16px;
  --max:1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family:-apple-system,BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.8;
  word-break:break-word;
  overflow-wrap:break-word;
}

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* ===============================
   Header
=============================== */
.header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 18px;
  min-height:88px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:72px;
  height:72px;
  background:url("img/logo.png") center/contain no-repeat;
  border-radius:16px;
  flex-shrink:0;
}

.brand-name h1{
  font-size:20px;
  margin:0;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  gap:10px;
}

.nav a{
  padding:8px 10px;
  border-radius:10px;
  font-weight:800;
}

.nav a.active{
  background:rgba(27,122,87,.1);
  color:var(--brand);
}

.menu-btn{
  display:none;
  position:relative;
  z-index:10000;
  padding:8px 12px;
  font-size:13px;
}


.mobile-nav.open{ display:block; }

.mobile-nav a{
  display:block;
  padding:14px;
  font-size:16px;
  border-bottom:1px solid var(--line);
}

/* ===============================
   Hero
=============================== */
.hero{
  position:relative;
  min-height:52vh;
  display:grid;
  align-items:end;
  overflow:hidden;
  pointer-events:none;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:url("img/hero.jpg") center/cover no-repeat;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.15));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  padding:34px 0;
  pointer-events:auto;
}

.hero-box{
  color:#fff;
  max-width:760px;
}

.hero-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  font-size:13px;
  font-weight:700;
}

/* ===============================
   Sections / Cards
=============================== */
.section{ padding:34px 0; }

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:14px;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.card-pad{ padding:18px; }

.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.features.cute .card-pad{ text-align:center; }
.features.cute .icon{ font-size:40px; }
.features.cute p{ font-size:14px; color:var(--muted); }

/* ===============================
   Table
=============================== */
.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  border:1px solid var(--line);
  padding:10px;
  text-align:center;
}

.small{
  font-size:13px;
  color:var(--muted);
}

/* ===============================
   Message（院長）
=============================== */
.message-wrap{
  display:flex;
  gap:20px;
  align-items:flex-start;
}

/* ★ 親を支配 */
.message-image{
  flex:0 0 auto;
  width:200px;
  text-align:center;
}

/* ★ doctor.png を完全制御 */
.message-image img{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  display:block;
  margin:0 auto;
  border-radius:14px;
}

.message-text h2{ margin-top:0; }

/* ===============================
   News
=============================== */
.news-float-img{
  float:right;
  width:220px;
  max-width:100%;
  margin:0 0 12px 16px;
  border-radius:12px;
}

/* ===============================
   Consult
=============================== */
.consult-wrap{
  display:flex;
  gap:24px;
  align-items:flex-start;
}

.consult-list{ flex:1; }

.consult-image{
  flex:0 0 220px;
}

.consult-image img{
  width:100%;
  border-radius:14px;
}

/* ===============================
   Footer
=============================== */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0 28px;
  color:var(--muted);
}

/* ===============================
   Responsive（スマホ完全版）
=============================== */
@media(max-width:768px){

  body{ font-size:15px; line-height:1.7; }
  .wrap{ padding:0 14px; }

  .nav{ display:none; }
  .menu-btn{ display:inline-flex; }

  .brand-mark{
    width:56px;
    height:56px;
  }

  .header-inner{
    min-height:72px;
    padding:10px 14px;
  }

  .hero{ min-height:60vh; }
  .hero-inner{ padding:22px 0; }

  .features{ grid-template-columns:1fr; }

  /* 院長 */
  .message-wrap{
    flex-direction:column;
    align-items:center;
  }

  .message-image{
    width:100%;
  }

  .message-image img{
    max-width:200px !important;
    margin-bottom:10px;
  }

  /* お知らせ */
  .news-float-img{
    float:none;
    display:block;
    width:100%;
    max-width:320px;
    margin:0 auto 14px;
  }

  /* 相談会 */
  .consult-wrap{ flex-direction:column; }

  .consult-image,
  .consult-image img{
    width:100%;
    max-width:320px;
    margin:0 auto;
  }

  .footer{
    text-align:center;
    padding:20px 0 24px;
  }
}
/* ===== モバイルメニュー本体 ===== */
.mobile-nav{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:#fff;
  z-index:10001;   /* ← hero/headerより上 */
  padding-top:90px;
}

.mobile-nav.open{
  display:block;
}
