/****************************************
* main.css :ヘッダー、フッター レイアウトの役割
* ヘッダー、フッターのデザイン、共通適用レイアウト add tamashiro
***************************************/
/* 基本カラー */
:root {
  /* color */

  /* brand */
  --primary-color : #54361b;
  --secondary-color : #42444C;

  /* text */
  --color-text: #222222;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-text-gray:#42444C;

  /* background */
  --color-bg: #ffffff;
  --color-bg-gray: #f7f7f7;
  --color-bg-dark: #42444C;
  --color-bg-gray1: #EDF4FD;
  --color-bg-contact:#EDF4FD;

  /* dot */
  --dot-color:#ccc;

  /* contact */ 
   /*bg text */
  --contact-bg-text:#8EBCF7;
  /* line */
  --contact-line:#949DB1;

  /* layout */
  --inner-max: 1100px;   /* メインカラム幅（広め）※要確認 */
  --inner-max-s: 940px;  /* メインカラム幅（狭め）※要確認 */
  --inner-pad: 24px;     /* 左右の余白 ※要確認 */

  /* font */
  --font-mincho: "Shippori Mincho B1", serif;
  --font-en: "Inter", sans-serif;
  --font-sans: "Noto Sans JP", sans-serif;
}

/* トップページ (layout) */
.p-top__inner{
  max-width: 940px; /* レイアウト最大値 */
  margin: 80px auto 160px; /* 中央配置（配置ルール） */
}

/* ── 共通レイアウト：メインカラム幅（広め/狭め） ── */
.l-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}

.l-inner.-s {
  max-width: var(--inner-max-s);
}

#container { overflow: clip; }


/* ══════════════════════════════════════════
   鍼灸maman: ヘッダー
   ══════════════════════════════════════════ */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background-color .4s ease, box-shadow .4s ease;
}

.l-header--transparent {
  background: transparent;
  box-shadow: none;
}

.l-header.is-fixed {
  background: var(--primary-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.l-header--sub {
  background: var(--primary-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.l-header--transparent {
  position: absolute;
  background: transparent;
  box-shadow: none;
}

.l-header.is-fixed {
  position: fixed;
  background: var(--primary-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.l-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.l-header__logo a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}
.l-header__logo-ja,
.l-header__logo-en {
  font-family: var(--mm-font-mincho-alt);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2em;
  color: var(--color-text-white);
}
.l-header--transparent .l-header__logo-ja,
.l-header--transparent .l-header__logo-en {
  color: var(--mm-color-text-white);
}
.l-header.is-fixed .l-header__logo-ja,
.l-header.is-fixed .l-header__logo-en {
  color: var(--mm-color-heading);
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.l-header__nav a {
  font-family: var(--mm-font-mincho);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--color-text-white);
  white-space: nowrap;
  transition: opacity .2s;
}
.l-header__nav a:hover { opacity: .7; }
.l-header--transparent .l-header__nav a { color: var(--mm-color-text-white); }
.l-header.is-fixed .l-header__nav a { color: var(--mm-color-text-white); }

.l-header__dropdown {
  position: relative;
}

.l-header__dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.l-header__dropdown-menu {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  background: var(--mm-color-bg-cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 10;
}

.l-header__dropdown:hover .l-header__dropdown-menu,
.l-header__dropdown:focus-within .l-header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.l-header__dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--mm-color-heading) !important;
  white-space: nowrap;
}

.l-header--transparent .l-header__dropdown-menu a {
  color: var(--mm-color-heading) !important;
}

.l-header__reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mm-color-accent);
  color: var(--mm-color-brown-deep) !important;
  font-family: var(--mm-font-mincho);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  padding: 14px 22px;
  border-radius: 160px;
  white-space: nowrap;
  transition: opacity .2s;
}
.l-header__reserve:hover { opacity: .8; }

.l-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.l-header__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--mm-color-heading);
  transition: .3s;
}
.l-header--transparent .l-header__hamburger span { background: #fff; }

.l-header__hpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 999px;
    padding: 14px 22px;
    transition: opacity .2s;
    flex-shrink: 0;
}

.l-header__hpb:hover {
    opacity: .8;
}

.l-header__hpb img {
    display: block;
    width: auto;
    height: 20px;
}

.l-header__line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #06C755;
    color: #fff !important;
    font-family: var(--mm-font-mincho);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .1em;
    padding: 14px 22px;
    border-radius: 160px;
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
}

.l-header__line:hover {
    opacity: .8;
}

/* ══════════════════════════════════════════
   鍼灸maman: フッター
   ══════════════════════════════════════════ */
.l-footer {
  position: relative;
  background: var(--mm-color-heading);
  color: var(--mm-color-text-white);
}

.l-footer__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
}

.l-footer__pagetop {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mm-font-hina);
  font-size: 15px;
  color: var(--mm-color-text-white);
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
  margin-bottom: 20px;
  position: absolute;
  right: 0;
  bottom: 60px;
}
.l-footer__pagetop:hover { opacity: .7; }

.l-footer__pagetop::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--mm-color-accent);
  background-image: url(../img/common/top_toggle.svg);
  background-size: 15px 15px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.l-footer__layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.l-footer__company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.l-footer__logo {
  display: flex;
  align-items: center;
}

.l-footer__logo img {
  display: block;
  width: auto;
  height: 50px;
}

.l-footer__address {
  font-family: var(--mm-font-mincho);
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

.l-footer__privacy {
  font-family: var(--mm-font-mincho);
  font-size: 13px;
}
.l-footer__privacy a { color: inherit; }
.l-footer__privacy a:hover { opacity: .7; }

.l-footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.l-footer__nav-item {
  font-family: var(--mm-font-mincho);
  font-size: 16px;
  margin-bottom: 12px;
}
.l-footer__nav-item a { color: inherit; transition: opacity .2s; }
.l-footer__nav-item a:hover { opacity: .7; }

.l-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 24px;
}

.l-footer__copyright {
  font-family: var(--mm-font-mincho);
  font-size: 12px;
  color: var(--mm-color-text-white);
}

.l-footer__logo--mobile {
    display: none;
}

/* ══════════════════════════════════════════
   鍼灸maman: サブページ共通 KV（ページヘッダー）
   ══════════════════════════════════════════ */
.p-page-header {
  position: relative;
  height: 422px;
  background: var(--mm-color-heading);
  overflow: hidden;
}

.p-page-header__photo {
  position: absolute;
  top: 80px;
  right: 0;
  width: 63%;
  height: calc(100% - 80px);
}
.p-page-header__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-page-header__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mm-color-overlay);
}

.p-page-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--mm-inner-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--mm-inner-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-page-header__en {
  font-family: var(--mm-font-mincho);
  font-weight: 600;
  color: var(--mm-color-bg-beige);
  font-size: 56px;
  line-height: 1.2;
}

.p-page-header__ja {
  font-family: var(--mm-font-mincho);
  color: var(--mm-color-bg-beige);
  font-size: 24px;
  margin-top: 16px;
}

.c-hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.c-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.l-header--transparent .c-hamburger span {
    background: #fff;
}

.c-hamburger span:nth-child(1) {
    transform: translateY(-7px);
}

.c-hamburger span:nth-child(3) {
    transform: translateY(7px);
}

/* 開いた状態(✕に変形) */
.c-hamburger.is-active span {
    background: var(--mm-color-heading);
}

.c-hamburger.is-active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

body.is-drawer-open {
    overflow: hidden;
}

#c-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: var(--primary-color);
  z-index: 2000;
  transition: right .35s ease;
  padding: 80px 30px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
#c-drawer.is-open { right: 0; }
#c-drawer ul { list-style: none; padding: 0; }
#c-drawer ul li { border-bottom: 1px solid rgba(255,255,255,.15); }
#c-drawer ul li a {
  display: block;
  font-family: var(--font-mincho);
  font-size: 16px;
  color: #fff;
  padding: 18px 0;
  letter-spacing: .1em;
}
.c-drawer__close {
  position: absolute; top: 24px; right: 24px;
  font-size: 28px; color: #fff;
  background: none; border: none; cursor: pointer;
}

.c-drawer__btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.c-drawer__reserve {
  display: block;
  text-align: center;
  background: var(--mm-color-accent);
  color: var(--primary-color);
  font-family: var(--font-mincho);
  font-size: 16px;
  border-radius: 50px;
  padding: 14px;
  margin: 20px 0;
}

.c-drawer__hpb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50px;
  padding: 12px;
  margin-bottom: 20px;
}

.c-drawer__hpb img {
  display: block;
}

.c-drawer__line {
  display: block;
  text-align: center;
  background: #06C755;
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 16px;
  border-radius: 50px;
  padding: 14px;
  margin-bottom: 20px;
}

#c-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
}
#c-overlay.is-open { display: block; }
