@charset "UTF-8";
/* =========================================================
   さくらファミリー歯科
   PC design: 1600px / SP design: 390px
   breakpoint: 900px
   ========================================================= */

/* ---------- variables ---------- */
:root{
  --green:      #009d56;
  --blue:       #00b9ff;
  --brown:      #a25800;
  --beige:      #fff5ea;
  --purple:     #c56ac6;
  --green-hy:   #00b969;   /* 衛生管理 */
  --orange:     #ffa545;   /* ドクター紹介 */
  --blue-ac:    #0064ff;   /* アクセス */
  --text:       #464646;

  --ff-jp: "A-OTF Shin Go Pr6N", "ShinMGoPr6N", "Shin Go", "小塚ゴシック Pr6N",
           "Kozuka Gothic Pr6N", "A-OTF Gothic MB101 Pro", "GothicMB101Pro",
           "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --ff-num: "DIN Alternate", "DINAlternate-Bold", "DIN Alternate Bold",
            "Barlow", var(--ff-jp);

  --header-h: 200px;
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body,h1,h2,h3,h4,p,ul,ol,li,dl,dt,dd,figure,table,th,td{ margin:0; padding:0; }
ul,ol{ list-style:none; }
img,svg,iframe{ vertical-align:bottom; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
table{ border-collapse:collapse; border-spacing:0; }

body{
  font-family:var(--ff-jp);
  font-weight:400;
  color:var(--text);
  background:#fff;
  line-height:1.75;
  font-feature-settings:"palt" 1;
  padding-top:var(--header-h);
  overflow-wrap:break-word;
}

/* ---------- utilities ---------- */
.is-sp,.is-sp-inline{ display:none !important; }
.u-nowrap{ white-space:nowrap; }
.u-sp-br{ display:none; }
.u-pc-gap{ display:inline-block; width:2.2em; }

.l-container{
  width:min(1200px, 100% - 80px);
  margin-inline:auto;
}

/* =========================================================
   header
   ========================================================= */
.l-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:200;
  background:#fff;
  height:var(--header-h);
}
.l-header__bar{ padding-top:34px; }
.l-header__inner{
  width:min(1200px, 100% - 80px);
  margin-inline:auto;
  height:85px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.l-header__logo{ flex:0 0 auto; line-height:0; margin-right:auto; }
.l-header__logo img{ width:clamp(250px, 24.5vw, 392px); }

/* --- 電話番号（リンクではありません） --- */
.c-telbox{
  flex:0 0 auto;
  margin-right:clamp(8px, 1.25vw, 20px);
  width:clamp(232px, 21.875vw, 350px);
  height:85px;
  border:1.6px solid var(--green);
  border-radius:30px;
  color:var(--green);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.2;
  text-align:center;
}
.c-telbox__lead{ font-size:clamp(9px,.75vw,12px); letter-spacing:.14em; }
.c-telbox__num{
  font-family:var(--ff-num);
  font-weight:700;
  font-size:clamp(18px,1.6875vw,27px);
  letter-spacing:.12em;
  line-height:1.15;
  margin:.05em 0 .1em;
  display:flex;
  align-items:center;
  gap:.28em;
}
.c-telbox__icon{ width:.42em; height:auto; }
.c-telbox__hours{ font-size:clamp(8px,.6875vw,11px); letter-spacing:.05em; }

/* --- WEB予約ボタン --- */
.c-btn-web{
  position:relative;
  flex:0 0 auto;
  width:clamp(215px, 21.875vw, 350px);
  height:85px;
  padding-inline:clamp(12px,1.44vw,23px);
  border-radius:30px;
  background:var(--green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(8px,1.06vw,17px);
  font-weight:700;
}
.c-btn-web__dev{ width:clamp(24px,2.32vw,37px); flex:0 0 auto; }
.c-btn-web__txt{
  font-size:clamp(15px,1.4375vw,23px);
  letter-spacing:.16em;
  line-height:1;
  white-space:nowrap;
}
.c-btn-web__ext{ width:clamp(14px,1.375vw,22px); flex:0 0 auto; }
.c-btn-web.is-disabled{ cursor:default; pointer-events:none; }

/* --- 準備中バッジ（予約サイト未契約のため） --- */
.c-prep{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(70px, 7.19vw, 115px);
  height:clamp(26px, 2.63vw, 42px);
  background:rgba(0,0,0,.6);
  color:#fff;
  font-weight:400;
  font-size:clamp(10px, 1vw, 16px);
  line-height:1;
  letter-spacing:.19em;
  text-indent:.19em;
  pointer-events:none;
}

/* --- global nav --- */
.l-gnav{ margin-top:28px; }
.l-gnav__list{
  display:flex;
  justify-content:center;
  align-items:center;
  line-height:1.2;
}
.l-gnav__list li{ display:flex; align-items:center; }
.l-gnav__list li+li::before{
  content:"";
  width:1px;
  height:16px;
  background:var(--text);
  margin-inline:clamp(14px,1.6875vw,27px);
}
.l-gnav__list a{
  font-size:clamp(11px,1vw,16px);
  letter-spacing:.19em;
  transition:color .25s;
}
.l-gnav__list a:hover{ color:var(--green); }

/* =========================================================
   hero
   ========================================================= */
.p-hero__img{ line-height:0; }
.p-hero__img img{ width:100%; }
.p-hero__info{
  text-align:center;
  font-size:16px;
  line-height:30px;
  letter-spacing:.19em;
  padding:29px 20px 23px;
}

/* 告知バナー（index_banner.html でのみ使用） */
.p-hero__banner{
  width:min(580px, 100% - 20px);
  margin:30px auto 0;
  line-height:0;
}
.p-hero__banner img{ width:100%; }

/* =========================================================
   sections
   ========================================================= */
.p-sec{ padding:60px 0 70px; scroll-margin-top:var(--header-h); }
.p-sec--white{ background:#fff; }
.p-sec--beige{ background:var(--beige); }

.c-sectitle{ margin-bottom:26px; }
.c-sectitle__en{ display:block; width:auto; }
.c-sectitle--philosophy .c-sectitle__en{ width:342px; }
.c-sectitle--facilities .c-sectitle__en{ width:280px; }
.c-sectitle--treatment  .c-sectitle__en{ width:318px; }
.c-sectitle--infection  .c-sectitle__en{ width:540px; }
.c-sectitle--doctor     .c-sectitle__en{ width:212px; }
.c-sectitle--access     .c-sectitle__en{ width:191px; }
.c-sectitle__ja{
  font-size:20px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:.185em;
  margin-top:16px;
}

/* ---------- 2 columns ---------- */
.l-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:36px;
  align-items:start;
}
.l-cols+.l-cols{ margin-top:60px; }
.l-cols__img img,
.l-cols__img iframe{
  width:100%;
  border-radius:46px;
}
.l-cols--rev .l-cols__text{ order:2; }
.l-cols--rev .l-cols__img { order:1; }

/* ---------- body text ---------- */
.l-cols__text p{
  font-size:16px;
  line-height:30px;
  letter-spacing:.19em;
}
.l-cols__text p+p{ margin-top:30px; }

.c-lead{
  --lead-lh:30px;   /* 行送り */
  --lead-dot:14px;  /* ●のサイズ */
  font-size:16px;
  font-weight:400;
  line-height:var(--lead-lh);
  letter-spacing:.19em;
  display:flex;
  align-items:flex-start;
  gap:5px;
}
.c-lead::before{
  content:"";
  flex:0 0 auto;
  width:var(--lead-dot);
  height:var(--lead-dot);
  /* 1行目の行ボックス中央に●をそろえる */
  margin-top:calc((var(--lead-lh) - var(--lead-dot)) / 2);
  border-radius:50%;
  background:currentColor;
}
.c-sectitle--philosophy .c-sectitle__ja{ margin-top:16px; }

/* section accent colours */
#philosophy .c-lead{ color:var(--blue); }
#facilities .c-lead{ color:var(--brown); }
#treatment  .c-lead{ color:var(--purple); }
#infection  .c-lead{ color:var(--green-hy); }
#doctor     .c-lead{ color:var(--orange); }

/* ---------- numbered list（当院の理念） ---------- */
.c-numlist{ margin-top:43px; }
.c-numlist li{
  font-size:16px;
  line-height:30px;
  letter-spacing:.19em;
  padding-left:21px;
  text-indent:-21px;
}
.c-numlist li+li{ margin-top:30px; }
.c-numlist__no{
  font-family:var(--ff-num);
  color:var(--blue);
  display:inline-block;
  width:21px;
  text-indent:0;
  letter-spacing:0;
}

/* ---------- 経歴 ---------- */
.c-history li{
  font-size:16px;
  line-height:30px;
  letter-spacing:.19em;
}

/* =========================================================
   access
   ========================================================= */
.c-table{ width:100%; }
.c-table th,
.c-table td{
  border:1px solid var(--blue-ac);
  font-size:16px;
  font-weight:400;
  line-height:28px;
  letter-spacing:.19em;
  text-align:left;
  vertical-align:middle;
  padding:14px 20px;
}
.c-table th{ width:136px; white-space:nowrap; background:#fff; }
.c-table__tel{ pointer-events:none; }

.l-cols--access{ align-items:stretch; }
.p-access__map{ display:flex; }
.p-access__map iframe{
  width:100%;
  height:100%;
  min-height:401px;
  border:0;
  border-radius:0;
}

/* =========================================================
   footer
   ========================================================= */
.l-footer{
  background:#fff;
  text-align:center;
  padding:85px 20px 24px;
}
.l-footer__link a{
  display:inline-flex;
  align-items:center;
  font-size:19px;
  letter-spacing:.195em;
  line-height:1.4;
  transition:opacity .25s;
}
.l-footer__link a:hover{ opacity:.6; }
.l-footer__link img{ width:21px; margin-left:31px; }
.l-footer__copy{
  margin-top:68px;
  font-size:14px;
  letter-spacing:.07em;
  line-height:1.4;
}

/* =========================================================
   SP fixed bottom bar / drawer / menu button（SP only）
   ========================================================= */
.l-fixbar{ display:none; }
.l-drawer{ display:none; }
.c-menubtn{ display:none; }

/* =========================================================
   ==========           SP  (max-width:899px)      =========
   ========================================================= */
@media screen and (max-width:899px){

  :root{ --header-h:75px; }

  .is-pc{ display:none !important; }
  .is-pc-inline{ display:none !important; }
  .is-sp{ display:block !important; }
  .is-sp-inline{ display:block !important; }
  .u-sp-br{ display:inline; }
  .u-pc-gap{ display:none; }

  body{ padding-bottom:76px; }

  .l-container{ width:100%; padding-inline:20px; }

  /* ---------- header ---------- */
  .l-header{ height:75px; }
  .l-header__bar{ padding-top:0; height:75px; }
  .l-header__inner{
    width:100%;
    padding-inline:20px 8px;
    height:75px;
    gap:8px;
  }
  .l-header__logo img{ width:min(252px, 68vw); }

  .c-menubtn{
    display:flex !important;
    flex:0 0 auto;
    width:58px;
    height:58px;
    border-radius:16px;
    background:var(--green);
    color:#fff;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
  }
  .c-menubtn__lines{
    width:28px;
    height:20px;
    position:relative;
    display:block;
  }
  .c-menubtn__lines i{
    position:absolute;
    left:0;
    width:28px;
    height:2px;
    background:#fff;
    border-radius:1px;
    transition:transform .3s, opacity .2s;
  }
  .c-menubtn__lines i:nth-child(1){ top:0; }
  .c-menubtn__lines i:nth-child(2){ top:9px; }
  .c-menubtn__lines i:nth-child(3){ top:18px; }
  .c-menubtn__txt{ font-size:9px; letter-spacing:.08em; text-indent:.08em; line-height:1; }
  .c-menubtn.is-open .c-menubtn__lines i:nth-child(1){ transform:translateY(9px) rotate(45deg); }
  .c-menubtn.is-open .c-menubtn__lines i:nth-child(2){ opacity:0; }
  .c-menubtn.is-open .c-menubtn__lines i:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

  /* ---------- drawer ---------- */
  .l-drawer{
    display:block;
    position:fixed;
    inset:0;
    z-index:190;
    background:#fff;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .l-drawer[hidden]{ display:none; }
  .l-drawer__inner{ padding:75px 18px 40px; }

  .c-btn-web--drawer{
    display:flex;
    width:100%;
    height:58px;
    border-radius:16px;
    gap:14px;
  }
  .c-btn-web--drawer .c-btn-web__dev{ width:34px; }
  .c-btn-web--drawer .c-btn-web__txt{ font-size:23px; letter-spacing:.06em; }
  .c-btn-web--drawer .c-btn-web__ext{ width:20px; }
  .c-btn-web--drawer .c-prep{ width:115px; height:42px; font-size:17px; }

  .l-drawer__list{
    margin-top:22px;
    border-top:1px solid var(--text);
  }
  .l-drawer__list li{ border-bottom:1px solid var(--text); }
  .l-drawer__list a{
    display:flex;
    align-items:center;
    justify-content:center;
    height:62px;
    font-size:16px;
    letter-spacing:.19em;
  }
  .l-drawer__hours{
    margin-top:8px;
    text-align:center;
    font-size:15px;
    line-height:25px;
    letter-spacing:.19em;
  }

  /* ---------- hero ---------- */
  .p-hero__banner{ margin-top:25px; }
  .p-hero__info{
    font-size:17px;
    line-height:25px;
    letter-spacing:.19em;
    padding:31px 20px 0;
  }

  /* ---------- sections ---------- */
  .p-sec{ padding:55px 0 40px; }

  .c-sectitle{ margin-bottom:28px; text-align:center; }
  .c-sectitle__en{ margin-inline:auto; }
  .c-sectitle--philosophy .c-sectitle__en{ width:308px; }
  .c-sectitle--facilities .c-sectitle__en{ width:252px; }
  .c-sectitle--treatment  .c-sectitle__en{ width:286px; }
  .c-sectitle--infection  .c-sectitle__en{ width:253px; }
  .c-sectitle--doctor     .c-sectitle__en{ width:191px; }
  .c-sectitle--access     .c-sectitle__en{ width:172px; }
  .c-sectitle__ja{ font-size:18px; letter-spacing:.178em; margin-top:10px; }

  .l-cols{ display:block; }
  .l-cols+.l-cols{ margin-top:42px; }
  .l-cols__img{ margin-top:26px; }
  .l-cols__img img,
  .l-cols__img iframe{ border-radius:28px; }
  .l-cols--rev .l-cols__text{ order:0; }
  .l-cols--rev .l-cols__img { order:0; }

  .l-cols__text p,
  .c-numlist li,
  .c-history li{ font-size:15px; line-height:30px; letter-spacing:.2em; }
  .c-lead{ --lead-lh:30px; --lead-dot:13px; font-size:15px; letter-spacing:.2em; gap:5px; }
  .c-numlist{ margin-top:30px; }

  /* ---------- access ---------- */
  .c-table th,
  .c-table td{
    display:block;
    width:auto;
    text-align:center;
    font-size:17px;
    line-height:27px;
    letter-spacing:.19em;
    padding:10px 12px;
    border-width:1px;
  }
  .c-table th{ white-space:normal; }
  .c-table__tel{ pointer-events:auto; }
  .c-table tr+tr th{ border-top:0; }
  .c-table td{ border-top:0; }

  .l-cols--access{ display:block; }
  .p-access__map{
    margin:38px -20px 0;
    width:auto;
  }
  .p-access__map iframe{
    min-height:0;
    height:269px;
    border-radius:0;
  }

  .p-access__gmap{ margin-top:14px; text-align:center; }
  .c-btn-gmap{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    width:270px;
    height:58px;
    border:1.6px solid var(--green);
    border-radius:16px;
    background:#fff;
  }
  .c-btn-gmap__logo{ width:46px; flex:0 0 auto; }
  .c-btn-gmap__txt{ width:165px; flex:0 0 auto; }

  /* ---------- footer ---------- */
  .l-footer{ padding:39px 20px 30px; }
  .l-footer__link a{ font-size:14px; letter-spacing:.16em; }
  .l-footer__link img{ width:15px; margin-left:14px; }
  .l-footer__copy{ margin-top:33px; font-size:10px; letter-spacing:.08em; }

  /* ---------- fixed bottom bar ---------- */
  .l-fixbar{
    display:flex !important;
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:180;
    padding:0 8px 6px;
    gap:9px;
    align-items:flex-end;
  }
  .c-fixbar__tel{
    flex:1 1 auto;
    min-width:0;
    height:58px;
    background:#fff;
    border:2px solid var(--green);
    border-radius:12px;
    color:var(--green);
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 10px;
    min-width:0;
    container-type:inline-size;
  }
  .c-fixbar__tel img{ width:auto; height:34px; flex:0 0 auto; }
  .c-fixbar__tel > span{ min-width:0; }
  .c-fixbar__tel-lead{
    display:block;
    font-size:11px;
    font-size:min(12px, calc((100cqw - 32px) / 13.4));
    line-height:1.25;
    letter-spacing:.02em;
    white-space:nowrap;
  }
  .c-fixbar__tel-num{
    display:block;
    font-family:var(--ff-num);
    font-weight:700;
    font-size:20px;
    font-size:min(24px, calc((100cqw - 32px) / 7));
    line-height:1.18;
    letter-spacing:.05em;
    white-space:nowrap;
  }
  .c-fixbar__web,
  .c-fixbar__top{
    flex:0 0 auto;
    height:58px;
    padding-block:8px;
    border-radius:12px;
    background:var(--green);
    color:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-align:center;
  }
  .c-fixbar__web{ position:relative; width:83px; cursor:default; pointer-events:none; }
  .c-fixbar__web .c-prep{
    font-weight:400;
    width:72px;
    height:26px;
    font-size:11px;
    letter-spacing:.13em;
    text-indent:.13em;
  }
  .c-fixbar__web img{ width:28px; }
  .c-fixbar__web span{ font-size:15px; font-weight:500; line-height:1; letter-spacing:.02em; }
  .c-fixbar__top{ width:54px; }
  .c-fixbar__top svg{ width:24px; height:13px; }
  .c-fixbar__top span{ font-size:13px; font-weight:500; line-height:1.05; letter-spacing:.02em; }

  /* drawer open : lock scroll / hide bottom bar */
  body.is-drawer-open{ overflow:hidden; }
  body.is-drawer-open .l-fixbar{ display:none !important; }
}

/* ---------- small phones ---------- */
@media screen and (max-width:374px){
  .l-cols__text p,
  .c-numlist li,
  .c-history li{ font-size:15px; line-height:28px; }
  .c-lead{ font-size:15px; --lead-lh:28px; }
  .c-table th,.c-table td{ font-size:16px; line-height:25px; }
  .p-hero__info{ font-size:15px; line-height:23px; }
}

/* ---------- narrow phones : fixed bar ---------- */
@media screen and (max-width:379px){
  .l-fixbar{ padding:0 6px 6px; gap:7px; }
  .c-fixbar__web{ width:72px; }
  .c-fixbar__web img{ width:28px; }
  .c-fixbar__web span{ font-size:15px; }
  .c-fixbar__web .c-prep{ width:64px; height:23px; font-size:10px; }
  .c-fixbar__top{ width:48px; }
  .c-fixbar__top svg{ width:26px; height:13px; }
  .c-fixbar__top span{ font-size:13px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
}
