/* ========== Layout ========== */
:root{
  --content-max: 980px;   /* 900〜1100の中間。好みで調整OK */
  --gutter: 1rem;
}

main{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}

html, body { height: 100%; }

html {
  font-size: 108%; /* 105〜108%で好み調整 */
}

body {
  margin: 0;
  color: #1f1f1f;

  /* 白い膜 + 背景画像を常に全体へ */
  background-image:
    linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.80)),
    url("../images/zen-sand.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: cover;

  /* PC: 固定背景 */
  background-attachment: fixed;
}

/* navをoverlayより確実に上にする */
.nav { position: relative; z-index: 1001; }
.nav-links { position: relative; z-index: 1002; }
.menu-toggle { position: relative; z-index: 1003; }

/* overlayはその下 */
.menu-overlay { z-index: 900; }
/* overlay */
.menu-overlay{
  position: fixed;
  inset: 0;
  display: none;
  background: transparent;
  z-index: 900;
  pointer-events: none;   /* ←閉じてる時はクリック受けない */
}

body.menu-open .menu-overlay{
  display: block;
  pointer-events: auto;   /* ←開いてる時だけクリック受ける */
}

p { line-height: 1.6; }

/* ========== Header ========== */
header{
  padding: 0.3rem var(--gutter);
  padding-bottom: 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter); /* header padding 2rem と衝突するので内側で管理 */
}

.hero{
}

.logo img {
  height: 140px;
  width: auto;
  display: block;
  margin-left: -0.5rem;
}

.nav-links ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== Navigation links (underlineあり・黒) ===== */
.nav a {
  color: #1f1f1f;                 /* 黒 */
  text-decoration: underline;     /* ← アンダーライン残す */
  text-underline-offset: 2px;     /* 少し離して上品に */
}

/* hover時：やりすぎない変化 */
.nav a:hover {
  opacity: 0.7;
}

/* ========== Sections spacing ========== */
.who, .how { margin-top: 1.5rem; }
.who ul, .how ol { padding-left: 1.25rem; }
.how li { margin-bottom: 0.75rem; }

.services, .pricing, .contact-location, .faq { max-width: 700px; }
.services h2, .pricing h2, .contact-location h2, .faq h2 { margin-top: 2rem; }
.services ul, .pricing ul { padding-left: 1.25rem; }
.faq p { margin-bottom: 1rem; }

.note { font-size: 0.9rem; }

/* ========== Mobile nav + hero ========== */

/* ========== Hero ========== */

.hero{
  max-width: var(--content-max);
  margin: 1rem auto 1.5rem;
  padding: 1rem 2rem; /* 3remは広い画面で間延びしやすい */
  border-radius: 36px;
  position: relative;
  overflow: hidden; /* ←必須（角丸にするため） */
}

/* 背景写真レイヤー（これだけ薄くなる） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/mesh.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20;  /* ←ここで透明度調整 */
  z-index: 0;
}

/* 中身は常に前面 */
.hero > * {
  position: relative;
  z-index: 1;
}
.hero a {
  display: inline-block;
  margin-top: -1rem;
  margin-left: -0.2rem;

  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.25);

  font-weight: 500;
  text-decoration: none;
  color: #1f1f1f;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}
.hero p {
  line-height: 1.6;
}

/* ========== Mobile nav + hero ========== */
@media (max-width: 768px) {
  .logo img { height: 100px; }

  .hero {
    margin: 0.5rem 1rem;
    padding: 0.2rem 3rem;
  }

  .hero a {
    margin-bottom: 1.2rem; /* ← ここを増やす（1.25〜2remで調整） */
  }

  .hero h1 {
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .hero p { font-size: 0.95rem; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    margin-top: -1.2rem;
  }

  .nav-links {
    width: 100%;
    margin-top: -1.5rem;
  }

  body {
    background-attachment: scroll;
  }
}
/* iPad mini（768px幅）だけ文字を少し大きく戻す */
@media (width: 768px) {
  .hero h1 {
    font-size: 2.00rem;
    line-height: 1.35;
  }

  .hero p {
    font-size: 1.5rem;
    line-height: 1.65;
  }

  .hero a {
    font-size: 1rem;
  }

  .hero {
    padding: 0.6rem 2rem; /* mobileの 0.2rem 3rem が窮屈なので */
  }
}

/* ===== Nav display rules (PC vs Mobile) ===== */

/* PC: show links, hide hamburger */
.menu-toggle { display: none; }
.nav-links   { display: block; }

/* Mobile: hide links, show hamburger */
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .nav-links   { display: none; width: 100%; }
  .nav-links.is-open { display: block; }
}

/* ===== Mobile/PC Nav (clean) ===== */

/* PC */
.menu-toggle { display: none; }
.nav-links { display: block; }

.nav-links ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; 
    padding: 0.5rem 0.8rem;   /* ← 高さと横を少しだけ増やす */
    line-height: 1;          /* アイコンがズレないように */
    border-radius: 8px;     /* 触れる箱感 */
    border: 1px solid rgba(0,0,0,0.18); /* ← 薄く */
  }


  /* nav自体を閉じる/開く */
  .nav-links { display: none; width: 100%; }
  .nav-links.is-open { display: block; }

  /* スマホは縦並び */
  .nav-links ul { display: block; }
  .nav-links li { display: block; }

  /* 見た目（箱） */
  .nav-links ul {
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem; /* ← 横幅を細くする核心 */
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    overflow: hidden;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.75rem;
    text-decoration: none;
  }


  .nav-links li + li a {
    border-top: 1px solid rgba(0,0,0,0.12);
  }
  /* iPhoneでは fixed が不安定なので疑似固定にする */
  body {
    background-attachment: scroll; /* 念のため */
  }

  body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
      linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.80)),
      url("../images/zen-sand.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}
/* ===== Practitioner section ===== */
.practitioner {
  margin-top: 0rem;
  max-width: 900px;
}

.practitioner-box {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.practitioner-box img {
  width: 100%;
  height: auto;

  min-width: 260px;   /* 小さくなりすぎない */
  max-width: 360px;   /* ← これを追加（重要） */

  flex-shrink: 0;
  margin-top: 0.5rem;
}

.practitioner-text h3 {
  margin-top: 0rem;
  margin-bottom: 0.25rem;
  font-size: 1.30rem;
}

.practitioner .title {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}


.title {
  font-family: inherit;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
  .practitioner-box {
    flex-direction: column;
  }
}

/* ===== Location section ===== */

.location-layout{
  max-width: var(--content-max);
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 var(--gutter);

  display: flex;                 /* ← 変更 */
  grid-template-columns: 1fr 1fr;/* ← 左右50% */
  gap: 2rem;

  align-items: stretch;
}

.contact-tel {
  font-weight: 600;
  text-decoration: underline !important;       /* ← 常時アンダーライン */
  text-underline-offset: 2px;       /* ← 下線を少し離して上品に */
  color: inherit;
}

/* hover はあえて控えめ */
.contact-tel:hover {
  opacity: 0.85;                    /* 変えなくてもOK */
}


.location-left{
  flex: 0 0 45%;
  max-width: 45%;
}

.location-right{
  flex: 0 0 55%;
  max-width: 55%;
}

.location-building,
.location-map { height: 100%; }

.location-building img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-map iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.location-left {
  display: flex;
}

.location-left img {
  width: 100%;
  height: 100%;          /* ← 右に合わせる */
  object-fit: cover;     /* ← 自然にトリミング */
  border-radius: 12px;
  display: block;
}

.location-left img,
.location-right img,
.location-right iframe{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 右側：上下2つを同じ高さにする */
.location-right {
  display: grid;
  grid-template-rows: 1fr 1fr; /* 上下を均等に分割 */
  gap: 12px;
  height: 100%; /* ← 左（location-left）と同じ高さを使う */
}

/* building写真 / map を同じ高さの箱にする */
.location-building,
.location-map {
  height: 260px;          /* ← 高さを揃える核心 */
  border-radius: 12px;
  overflow: hidden;
}

/* building写真を箱にフィットさせる */
.location-building img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 全体を保ちつつ、箱いっぱいに（はみ出しは自然にトリミング） */
  display: block;
}

/* Google map（iframe）も箱にフィット */
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-phone{
  margin: 0.25rem 0 0.75rem;
  font-size: 1em;
}

.location-phone a{
  color: inherit;          /* 他の文字と統一 */
  text-decoration: none;   /* 下線消す */
  font-weight: 500;        /* 少しだけ存在感 */
}

.location-phone a:hover{
  text-decoration: underline;
}
.note {
  font-size: 0.85em;
  color: #555;
}

/* Mobile: stack everything */
@media (max-width: 768px){
  .location-layout{
  display: flex;
  flex-direction: column;
}

  /* レイアウト全体 */
  .location-layout {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* 左右カラムを完全に100%に */
  .location-left,
  .location-right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* すべての画像・マップを12/12に揃える */
  .location-left img,
  .location-building,
  .location-building img,
  .location-map,
  .location-map iframe {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }
}
@media (max-width: 768px){

  /* 縦積み + すき間を統一 */
  .location-layout{
    display: flex;
    flex-direction: column;
    gap: 12px;          /* ← ここが統一したい幅 */
  }

  /* 余計なmarginを殺す（これがズレの主犯になりがち） */
  .location-left,
  .location-right,
  .location-left img,
  .location-building,
  .location-map{
    margin: 0 !important;
  }

  /* 右側（building/map）も縦積み + gap統一 */
  .location-right{
    display: flex;
    flex-direction: column;
    gap: 12px;          /* ← building-map の間も同じ */
  }

  /* 念のため img の下の謎の隙間対策 */
  .location-left img,
  .location-building img{
    display: block;
  }
}
/* ===== Pricing section ===== */
.note {
  font-size: 0.98em;      /* ← 通常の本文と同じ */
  line-height: 1.6;
  margin-top: 12px;
}
/* iPad Pro 縦：Sessions are by appointment only を読みやすく */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  p.note {
    font-size: 1.2rem;   /* ← ここが効く */
    line-height: 1.6;
  }
}
.inline-tel{
  color: #1f1f1f;              /* 黒 */
  text-decoration: underline; /* アンダーライン */
  font-weight: 500;
}
/* ===== Footer ===== */
/* footer default = PC */
.site-footer{
  font-size: 0.90em;   /* ← 親のサイズに戻す */
  font-weight: normal;
  line-height: 1.4;
  padding-bottom: 0.75rem; /* ここは好みで */
}

.site-footer a {
  font-size: 0.9em !important;
}

/* main と同じ “カラム” を footer にも作る */
.footer-inner{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.5rem var(--gutter); /* ← main と同じ */
}
.site-footer a[href^="tel"] {
  font-weight: 400 !important;
}

.footer-line{
  display: flex;
  flex-wrap: nowrap;        /* PCは1行固定 */
  gap: 0.5rem;
  align-items: baseline;
  
}

.footer-brand,
.footer-contact{
  display: inline;
  white-space: nowrap;      /* 途中改行しない */
}
.note-small {
  font-size: 0.85em;   /* ← 親より小さく */
  opacity: 0.85;
  white-space: nowrap;
}

/* mobile only */
@media (max-width: 768px){
  .site-footer {
  font-size: 0.82rem;
  padding-bottom: 1rem;
}
  .footer-line{
    display: block;         /* 2行にする */
  }
  .footer-brand{
    display: block;
    margin-bottom: -0.25rem;
  }
  .footer-contact{
    display: block;
  }
  .footer-contact .note {
  font-family: inherit;   /* ← これが重要 */
  font-size: 1.1em;
  opacity: 0.9;
 }
/* モバイル：ハンバーガーメニュー文字を黒に */
  .menu-toggle{
    color: #1f1f1f;   /* 黒 */
    text-decoration: none;
  }
}

/* iPad縦・Air縦・Pro縦 対策 */
@media (min-width: 768px) and (max-width: 1366px) {
  html {
    font-size: 112%; /* 112〜118%で微調整 */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  p, li {
    font-size: 1.35rem;
    line-height: 1.65;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .nav-links ul {
    justify-content: flex-end;
    flex-wrap: wrap;   /* 必要なら折り返し許可 */
    gap: 1rem;         /* 余白が大きすぎる場合の調整 */
  }
}
/* iPad Pro 横向き 専用 */
@media 
  (min-width: 1024px) 
  and (max-width: 1366px) 
  and (orientation: landscape) {

  html {
    font-size: 165%;
  }
}
/* iPad 縦（Air/Pro 縦）でもフッターを折り返す */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-line{
    display: block;     /* 2行化（確実） */
  }

  .footer-brand{
    display: block;
    margin-bottom: 0.15rem;
  }

  .footer-contact{
    display: block;
  }

  /* 電話リンクがはみ出さないように折り返し許可 */
  .contact-tel{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* iPad（Mini/Air/Pro 縦横）で、ナビの Contact & Location だけ少し大きく */
@media (min-width: 768px) and (max-width: 1366px){
  a.cta-location{
    font-size: 1.25rem;
  }
}
/* iPad mini 専用：文字サイズを少しだけ上げる */
@media (min-width: 768px) and (max-width: 820px) {
  body {
    font-size: 1.50rem;
  }
}
/* iPad mini：ハンバーガーメニュー文字を見やすく */
@media (width: 768px) {
  .menu-toggle {
    font-size: 1rem;     /* ← 今より一段上 */
    padding: 0.45rem 0.8rem;
  }
/* iPad mini：フッター文字を少し大きく */
  footer {
    font-size: 1.15rem;
    line-height: 1.5;
  }
}
/* iPad mini：フッターだけ大きく */
@media (min-width: 740px) and (max-width: 820px) {
  .site-footer {
    font-size: 1.25rem;
    line-height: 1.5;
  }
  .site-footer a {
    font-size: 1.35em; /* リンクだけ小さくなる対策 */
  }
}
/* iPad mini 横(1024x768)：location のTELだけ少し大きく */
@media (width: 1024px) and (height: 768px) and (orientation: landscape) {
  .location-phone {
    font-size: 1.1rem; /* ← ここで全体を上げる */
  }

  .location-phone a.contact-tel {
    font-size: 1.1ßem !important; /* ← 念のため固定 */
    font-weight: 600;
    text-decoration: underline;
  }

  .location-phone .note-small {
    font-size: 0.78em; /* (text preferred) は小さめ維持 */
  }
}
/* iPad Pro 縦：Contact & Location の TEL を大きく */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {

  .location-phone {
    font-size: 1.15rem;   /* ← 全体を底上げ */
    line-height: 1.5;
  }

  .location-phone .contact-tel {
    font-size: 1.25em;    /* ← TELだけ少し強調 */
    font-weight: 600;
  }

  .location-phone .note {
    font-size: 1.1em;    /* (text preferred) は控えめ */
  }
}
/* iPad系（Mini/Air/Pro）では Practitioner の横幅制限をゆるめる */
@media (max-width: 1366px){
  .practitioner{
    max-width: var(--content-max); /* もしくは 1100px とかでもOK */
    width: 100%;
  }
}
/* ===== en/jp section ===== */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.85rem;
}

.lang-switch a {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

.lang-switch a:hover {
  opacity: 1;
}