@charset "UTF-8";
/* Template: swell
Theme Name: SWELL CHILD
Theme URI: https://swell-theme.com/
Description: SWELLの子テーマ
Version: 1.0.0
Author: LOOS WEB STUDIO
Author URI: https://loos-web-studio.com/
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================================================
   Rian Clinic Header/Footer (unique names: riancl-*)
   ========================================================= */

/* 固定ヘッダー分の押し下げ */
body {
  padding-top: 6.25rem;
}

/* 管理バー分の押し下げ（WP標準） */
.admin-bar .l-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .l-header { top: 46px; }
}

/* ===== Header (SWELL class name retained) ===== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 6.25rem;
  background-color: #fff;
}

/* 内側（独自） */
.riancl-header {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.875rem;
  padding-right: 1.875rem;
  color: #333;
  font-family: YakuHanJP, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.riancl-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.riancl-header__logo img {
  display: block;
  height: auto;
  max-height: 3.5rem;
}

/* trigger */
.riancl-header__trigger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.riancl-header__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  transition: transform .25s ease, opacity .25s ease;
}

/* PC nav */
.riancl-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.riancl-header__nav-logo img {
  display: block;
  height: auto;
  max-width: 260px;
}

.riancl-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.riancl-header__nav-list a {
  text-decoration: none;
  color: #333;
  font-size: .875rem;
  line-height: 1;
}

.riancl-header__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #268fcf;
  color: #fff;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: .875rem;
  white-space: nowrap;
}

/* util（衝突回避） */
.riancl-u-dn-lg-min { display: none; } /* SPで表示 */
.riancl-u-dn-md-max { display: block; } /* PCで表示 */

/* ===== Mobile header ===== */
@media screen and (max-width: 1240px) {
  .riancl-header { padding-inline: 2.1875rem; }
  .riancl-u-dn-lg-min { display: inline-flex; }

  .riancl-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100vh;
    background: #fff;
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    transform: translateX(110%);
    transition: transform .25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.08);
    overflow: auto;
    z-index: 101;
  }

  /* 管理バー時のナビ上ずれ対策（WP標準） */
  .admin-bar .riancl-header__nav { top: 32px; }
  @media screen and (max-width: 782px) {
    .admin-bar .riancl-header__nav { top: 46px; }
  }

  .riancl-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .riancl-header__navi-contact {
    width: 100%;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 1rem;
  }

  .riancl-header__tel-num {
    font-size: 1.125rem;
    color: #333;
    text-decoration: none;
  }

  .riancl-header__tel-fax,
  .riancl-header__time {
    font-size: .8125rem;
    margin-top: .25rem;
    line-height: 1.6;
  }

  body.is-riancl-nav-open .riancl-header__nav {
    transform: translateX(0);
  }

  /* ハンバーガー → × */
  body.is-riancl-nav-open .riancl-header__bar--top { transform: translateY(8px) rotate(45deg); }
  body.is-riancl-nav-open .riancl-header__bar--mid { opacity: 0; }
  body.is-riancl-nav-open .riancl-header__bar--bot { transform: translateY(-8px) rotate(-45deg); }
}

@media screen and (max-width: 480px) {
  body { padding-top: 5rem; }
  .l-header { height: 5rem; }
  .riancl-header { padding-inline: 1.25rem; }
}

/* ===== Footer (SWELL class name retained) ===== */
.l-footer {
  width: 100%;
  margin-top: 6.25rem;
  padding-bottom: 5rem;
  border-bottom: 1.875rem solid #268fcf;
}

/* 背景画像（絶対URL固定） */
.l-footer::before {
  display: block;
  content: "";
  width: 100%;
  height: 18.75rem;
  background: url("https://rian-clinic.com/wp/wp-content/themes/wp-theme-rianclinic/assets/img/common/footer.webp") no-repeat;
  background-size: cover;
  background-position: center;
}

/* フッター中身（独自） */
.riancl-footer {
  color: #333;
  font-family: YakuHanJP, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.riancl-footer__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.riancl-footer__brand-logo img {
  max-width: 320px;
  height: auto;
  display: block;
}

.riancl-footer__brand-address {
  margin-top: 1rem;
  font-style: normal;
  font-size: .875rem;
  line-height: 1.6;
}

.riancl-footer__brand-copy {
  display: inline-block;
  margin-top: 1rem;
  font-size: .75rem;
  opacity: .9;
}

.riancl-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.riancl-footer__nav a,
.riancl-footer__mail a {
  color: #333;
  text-decoration: none;
}

.riancl-footer__tel-num {
  font-size: 1.25rem;
  text-decoration: none;
  color: #333;
}

.riancl-footer__tel-fax,
.riancl-footer__time {
  margin-top: .25rem;
  font-size: .8125rem;
  line-height: 1.6;
}

.riancl-footer__mail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: #268fcf;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
}

@media screen and (max-width: 900px) {
  .riancl-footer__inner { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
  .l-footer {
    padding-bottom: 2.5rem;
    margin-top: 2.5rem;
  }
}