/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Yomogi&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url("slide.css");
@import url("inview.css");

/* ================================================================
   CSS カスタムプロパティ
================================================================ */
:root {
  --primary-color: #5C5650;
  --primary-inverse-color: #fff;
  --space-large: 8vw;
  --space-small: 2vw;
}

@keyframes opa1 {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ================================================================
   Bootstrap干渉リセット
================================================================ */
ul, ol { padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; }
p { margin: 0; }

/* ================================================================
   リセット・基本設定
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-size: 16px; height: 100%; }

body {
  font-family: "Noto Serif JP", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", serif;
  -webkit-text-size-adjust: none;
  background: #fff;
  color: var(--primary-color);
  line-height: 2;
}

figure { margin: 0; }
dd { margin: 0; }
nav ul { list-style: none; }
nav, ul, li, ol { margin: 0; padding: 0; }
section li { margin-left: 1rem; }
table { border-collapse: collapse; }
img { border: none; max-width: 100%; height: auto; vertical-align: middle; }
video { max-width: 100%; }
iframe { width: 100%; }
input { font-size: 1rem; }
section { overflow-x: hidden; padding: 2.5rem var(--space-large); }

a { color: inherit; transition: 0.3s; }
a:hover { text-decoration: none; opacity: 0.9; }

/* ================================================================
   コンテナ
================================================================ */
#container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================================================================
   ヘッダー
================================================================ */
header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 90px;
  padding-bottom: 1rem;
}

@media screen and (max-width: 500px) {
  header { height: 70px; }
}

body:not(.home) header {
  margin-bottom: var(--space-large);
}

/* ホームページ：ヘッダーをヒーローに重ねる */
body.home header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: transparent;
}

/* ホームページ：ヒーロー上では白ロゴ、通過後は通常色 */
body.home #logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
body.home.past-hero #logo img {
  filter: none;
}

body.home header nav li a {
  color: rgba(255,255,255,0.85);
}

body.home header nav li a:hover {
  color: #fff;
}

body.home header nav ul ul a {
  color: rgba(255, 255, 255, 0.9);
}

body.home header nav ul ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.home header nav ul ul {
  background: rgba(175, 60, 90, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.home main {
  padding-top: 0;
}

/* ロゴ：fixed でハンバーガーと連動 */
#logo {
  margin: 0; padding: 0;
  position: fixed;
  z-index: 200;
  top: clamp(20px, 3vw, 40px);
  left: clamp(24px, 4vw, 60px);
  width: clamp(260px, 22vw, 320px);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
#logo img {
  display: block;
  transition: opacity 0.8s ease;
}
#logo a:hover img {
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

/* スクロール下降中はロゴを上へスライドアウト */
body.scroll-down #logo {
  transform: translateY(calc(-100% - clamp(20px, 3vw, 40px)));
  pointer-events: none;
}

@media screen and (max-width: 600px) {
  #logo { top: 24px; left: 24px; width: clamp(200px, 68vw, 260px); }
}

header nav ul { display: none; }

@media screen and (min-width: 1100px) {
  header > nav > ul { margin-right: 5vw; display: flex; align-items: flex-end; gap: 1.6rem; }
  header nav li a {
    display: block;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.5rem 0;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
  }
  /* ホバー：テキスト幅だけに下線スライドイン（左右パディングを除く） */
  header nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  }
  header nav li a:hover { opacity: 1; }
  header nav li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  header > nav > ul > li:last-child a { padding: 0.5rem 0.4rem; font-size: 1.1rem; }
  header > nav > ul > li:last-child a::after { display: none; }
  /* ログイン／ログアウトアイコンのフワッとホバー */
  a.nav-icon-btn {
    display: block;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease-in-out;
  }
  a.nav-icon-btn:hover {
    opacity: 0.6;
    transform: translateY(-3px);
    transition: transform 0.35s cubic-bezier(0, 0, 0.2, 1), opacity 0.35s ease-out;
  }
}

header nav ul ul,
.small-screen #menubar ul ul {
  animation: opa1 0.5s 0.1s both;
}

/* ================================================================
   ヘッダードロップダウン
================================================================ */
@media screen and (min-width: 1100px) {
  header nav .ddmenu_parent { position: relative; }
  header nav .ddmenu_parent:hover > ul { display: block; }
  header nav ul ul {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    min-width: 13em;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
  }
  header nav ul ul li { white-space: nowrap; list-style: none; padding: 0; margin: 0; }
  header nav ul ul a {
    color: #3B4043;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6em 1.4em;
    letter-spacing: 0.05em;
  }
  header nav ul ul a:hover { background: rgba(0, 0, 0, 0.04); }
  /* ドロップダウンリンクにはスライド下線不要 */
  header nav ul ul a::after { display: none; }
}

/* ================================================================
   開閉メニュー（Orbisインスパイア：薄いオーバーレイ＋ライトパネル）
================================================================ */
#menubar { display: none; }
#menubar ul { list-style: none; margin: 0; padding: 0; }
#menubar a { display: block; text-decoration: none; }

.large-screen #menubar { display: block; }
.small-screen #menubar.display-block { display: block; }
.ddmenu_parent ul { display: none; }

a.ddmenu::before {
  font-family: "Font Awesome 6 Free";
  content: "\f078";
  font-weight: 900;
  font-size: 0.55em;
  margin-right: 0.7em;
  vertical-align: middle;
  opacity: 0.35;
}

@keyframes menuFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes panelSlideIn {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* 全画面オーバーレイ（Orbis: .l-nav — display:block, padding-left, rgba(0,0,0,0.28)） */
.small-screen #menubar.display-block {
  position: fixed; z-index: 199;
  inset: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.28);
  padding-left: 24px;
  box-sizing: border-box;
  display: block !important;
  animation: menuFadeIn 0.2s ease both;
}

/* 右寄せパネル（Orbis: max-width:1028px; margin-left:auto） */
.small-screen #menubar #menubar-panel {
  width: 100%;
  max-width: 1028px;
  margin-left: auto;
  height: 100%;
  background: rgba(252, 251, 250, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: panelSlideIn 0.4s cubic-bezier(0.33, 1, 0.68, 1) both;
}

/* パネル内の2カラムレイアウト（Orbisの .l-nav-inner 相当） */
.small-screen #menubar .menubar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 100%;
  padding: clamp(5rem, 12vh, 7rem) clamp(2rem, 5vw, 3.5rem) 3rem;
  gap: 4rem;
}

/* 左列 */
.small-screen #menubar .menubar-nav {
  width: auto;
  flex-shrink: 0;
  list-style: none;
}

/* 各ナビアイテム（Orbis: .l-nav-menu-item） */
.small-screen #menubar .menubar-nav-item {
  margin-top: 2rem;
}
.small-screen #menubar .menubar-nav-item:first-child {
  margin-top: 0;
}

/* カテゴリーラベル（Orbis: .c-title3） */
.small-screen #menubar .menubar-cat {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: #3B4043;
  opacity: 0.7;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

/* リンク（Orbis: .c-link -icon -block -border） */
.small-screen #menubar .menubar-nav p {
  margin: 0;
  border-bottom: 1px solid rgba(59, 64, 67, 0.15);
}
.small-screen #menubar .menubar-nav p a {
  display: block;
  color: #111;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  padding: 0.7rem 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}
.small-screen #menubar .menubar-nav p a:hover { opacity: 0.4; }
.small-screen #menubar a.ddmenu::before { display: none; }

/* スタガードアニメーション */
.small-screen #menubar.display-block .menubar-nav-item {
  animation: slideUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) both;
}
.small-screen #menubar.display-block .menubar-nav-item:nth-child(1) { animation-delay: 0.08s; }
.small-screen #menubar.display-block .menubar-nav-item:nth-child(2) { animation-delay: 0.16s; }
.small-screen #menubar.display-block .menubar-nav-item:nth-child(3) { animation-delay: 0.24s; }
.small-screen #menubar.display-block .menubar-nav-item:nth-child(4) { animation-delay: 0.31s; }
.small-screen #menubar.display-block .menubar-nav-item:nth-child(5) { animation-delay: 0.37s; }
.small-screen #menubar.display-block .menubar-nav-item:nth-child(6) { animation-delay: 0.43s; }

/* 右列 28%（Orbis: .l-nav-submenu width:36） */
.menubar-sub {
  width: 28%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

/* 鑑定メニュー：子メニュー */
.small-screen #menubar .menubar-subnav {
  padding-left: 1rem;
  margin-top: 0.2rem;
}
.small-screen #menubar .menubar-subnav p {
  border-bottom: none;
}
.small-screen #menubar .menubar-subnav p a {
  font-size: 16px;
  opacity: 0.85;
  padding: 0.3rem 0;
}
.small-screen #menubar .menubar-subnav p a:hover { opacity: 0.4; }

/* お問い合わせリンク（Orbis: .c-shop-link 相当） */
.menubar-contact {
  display: block;
  color: #3B4043;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  border-bottom: 1px solid rgba(59, 64, 67, 0.25);
  padding-bottom: 0.7rem;
  text-align: right;
}

/* SNS（Orbis: justify-end） */
.menubar-sns {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
  list-style: none;
}
.menubar-sns a {
  color: #3B4043;
  font-size: 1.8rem;
  opacity: 1;
  transition: opacity 0.2s;
}
.menubar-sns a:hover { opacity: 0.5; }

/* スマートフォン：縦積み（Orbis: sp:direction-column） */
@media screen and (max-width: 40em) {
  .small-screen #menubar .menubar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow-y: auto;
    gap: 1.5rem;
  }
  .small-screen #menubar .menubar-nav,
  .menubar-sub { width: 100%; }
  .menubar-sub { align-items: flex-start; }
  .menubar-sns { justify-content: flex-start; }
  /* モバイルではフォントを少し小さく */
  .small-screen #menubar .menubar-nav p a { font-size: 1.2rem; }
}

/* ================================================================
   ハンバーガーボタン（68px円形）
================================================================ */
#menubar_hdr {
  animation: opa1 0.3s 0.5s both;
  position: fixed; z-index: 200;
  cursor: pointer;
  top: 10px; right: 20px;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid #959595;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #959595;
  font-family: "Open Sans", sans-serif;
  transition: transform 0.7s ease-in-out,
              color 0.6s ease-in-out, border-color 0.6s ease-in-out,
              background 0.6s ease-in-out, letter-spacing 0.6s ease-in-out;
  user-select: none;
}

#menubar_hdr:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.14em;
  /* ホバーイン：すっと変化 */
  transition: transform 0.35s cubic-bezier(0, 0, 0.2, 1),
              color 0.35s ease-out, border-color 0.35s ease-out,
              background 0.35s ease-out, letter-spacing 0.35s ease-out;
}
#menubar_hdr.display-none { display: none; }

/* ホームページのヒーロー上では白 */
body.home:not(.past-hero) #menubar_hdr {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
}

/* デスクトップ：グローバルナビと重なる間は非表示、スクロール後に出現 */
@media screen and (min-width: 1100px) {
  #menubar_hdr {
    animation: none;
    pointer-events: none;
    top: clamp(20px, 3vw, 40px);
    right: clamp(24px, 4vw, 60px);
    left: auto;
    transform: translateY(-200%);
    transition: transform 0.7s ease-in-out,
                color 0.6s ease-in-out, border-color 0.6s ease-in-out,
                background 0.6s ease-in-out, letter-spacing 0.6s ease-in-out;
  }
  body.page-scrolled #menubar_hdr,
  #menubar_hdr.ham {
    transform: translateY(0);
    pointer-events: auto;
  }
  #menubar_hdr:hover {
    transform: scale(1.05);
  }
  body.scroll-down #menubar_hdr:not(.ham) {
    transform: translateY(-200%);
    pointer-events: none;
  }
}

.menu-open-text  { display: block; }
.menu-close-text { display: none; }

/* メニューオープン中：ロゴとボタンを上へスライドアウト */
body.menu-open #logo {
  transform: translateY(calc(-100% - clamp(20px, 3vw, 40px)));
  pointer-events: none;
}
body.menu-open #menubar_hdr {
  transform: translateY(-200%);
  pointer-events: none;
}

@media screen and (max-width: 40em) {
  #menubar_hdr { top: 24px; right: 24px; width: 54px; height: 54px; font-size: 10px; }
}

@media screen and (max-width: 500px) {
  body.scroll-down #logo,
  body.menu-open #logo {
    transform: translateY(calc(-100% - 10px));
  }
}

/* ================================================================
   サイド固定ボタン
================================================================ */
#side-btns {
  position: fixed;
  right: 0;
  top: 28%;
  z-index: 100;
}

.side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 62px;
  padding: 1.4rem 0;
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  border-radius: 4px 0 0 4px;
  transition: opacity 0.3s ease;
}
.side-btn i {
  font-size: 1.2rem;
}
.side-btn span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
}
.side-btn:hover {
  opacity: 0.8;
  color: #fff;
}

.side-btn-reserve {
  background: linear-gradient(180deg, #c9a96e, #a07840);
}

@media screen and (max-width: 600px) {
  #side-btns { top: auto; bottom: 2rem; right: 0; left: 0; display: flex; justify-content: center; }
  .side-btn { border-radius: 4px; flex-direction: row; padding: 0.9rem 2rem; font-size: 1rem; width: auto; }
  .side-btn span { writing-mode: horizontal-tb; }
}

/* ================================================================
   メインコンテンツ
================================================================ */
main {
  flex: 1 0 auto;
  overflow-x: hidden;
  padding: 6vw 0 0;
}

main h2 {
  margin: 0; padding: 0;
  font-size: 2.4rem;
  font-weight: normal;
  margin-bottom: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (max-width: 600px) {
  main h2 { font-size: 1.6rem; }
}
@media screen and (min-width: 900px) {
  body:not(.home) header { margin-bottom: 2rem; }
  main { padding-top: 0; }
  main h2 { margin-bottom: 5.5rem; }
}

main h2.c { align-items: center; }

main h2 span.sub-text {
  display: inline-block;
  border-top: 1px solid var(--primary-color);
  font-size: 0.9rem;
  opacity: 0.6;
  letter-spacing: 0.1rem;
  padding-top: 0.8rem;
}

main h2.no-line span.sub-text { border: none; padding-top: 0; }
main h3 { font-weight: 600; font-size: 1.4rem; }

/* ================================================================
   Google Map
================================================================ */
.iframe-box {
  width: 100%; height: 0;
  padding-top: 50%;
  position: relative;
  overflow: hidden;
}
.iframe-box iframe {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
}

/* ================================================================
   フッター（Orbis CSS変数: --space0=24px, --space1=40px, --space2=64px,
            --color-border=#959595 を使用）
================================================================ */
footer { padding: 0; margin: 0; background: #eeebe7; }
footer a { text-decoration: none; color: inherit; }

/* Orbis: .l-footer-bottom { padding-top: var(--space2); padding-bottom: var(--space2); } */
.l-footer-bottom { padding: 64px; color: #111; }

/* フッター内リンク hover 統一 */
.l-footer-bottom a { transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1); }
.l-footer-bottom a:hover { opacity: 0.65; }

/* フッターロゴを濃く */
.l-footer-right > a img { filter: brightness(0.7); }

/* Orbis: max-width:0 flex justify-between */
.l-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}

/* 左列ラッパー */
.l-footer-left {
  width: 50%;
  flex-shrink: 0;
  font-size: 16px;
}

/* タイトル */
.l-footer-nav-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0 1.2rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--primary-color);
}

/* 2カラムのナビラッパー */
.l-footer-nav-wrap {
  display: flex;
  gap: 0;
}

/* 各カラム */
.l-footer-nav {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.l-footer-nav + .l-footer-nav { padding-left: 16px; }

/* Orbis: .c-link { text-decoration: none; line-height: 1.4; transition: opacity 0.6s; } */
.c-link {
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.c-link:hover { opacity: 0.5; }

/* Orbis: .c-link.-block { display: flex; justify-content: space-between; } */
.c-link.-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.c-color-black { color: #111; }

/* Orbis: .c-link.-border { padding-bottom: var(--space0); border-bottom: 1px solid var(--color-border); } */
.c-link.-border {
  padding: 24px 0;
  border-bottom: 1px solid #959595;
}


/* Orbis: width:59 stack:1 */
.l-footer-right {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px; /* var(--space1) = 40px */
}


/* 左列タイトル（重複定義削除済） */

/* Orbis: ul.flex.justify-end.gap:1.font-size:14 — 小ナビ */
.l-footer-right > ul.flex {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.l-footer-right > ul.justify-end { justify-content: flex-end; }
.l-footer-right > ul.gap-sm { gap: 24px; flex-wrap: wrap; } /* gap:1 = var(--space0) = 24px */
.l-footer-right > ul.font-size-sm a { font-size: 16px; }

/* Orbis: .c-hover-fade { transition: opacity 0.6s; } / .c-hover-fade:hover { opacity: 0.5; } */
.c-hover-fade { transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1); }

/* Orbis: ul.flex.justify-end.gap:0 — SNS */
.l-footer-right > ul.flex:not(.gap-sm) { gap: 16px; }
.l-footer-right > ul.flex:not(.gap-sm) img { display: block; }

/* Orbis: .l-footer-bottom .copyright { } / .copyright span { margin-right: 0.5em; } */
.copyright {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.copyright span { margin-right: 0.5em; }

/* レスポンシブ */
@media screen and (max-width: 700px) {
  .l-footer-inner { flex-direction: column; gap: 48px; }
  .l-footer-left, .l-footer-right { width: 100%; }
  .l-footer-right { align-items: flex-start; }
  .l-footer-right > ul.justify-end, .copyright { justify-content: flex-start; }
}
@media screen and (max-width: 600px) {
  footer { padding-bottom: 3.2rem; }
  .l-footer-bottom { padding: 40px 24px; }
}
@media screen and (max-width: 600px) {
  .l-footer-nav-wrap { flex-direction: column; }
  .l-footer-nav + .l-footer-nav { padding-left: 0; }
}

/* ================================================================
   list-c2（お問い合わせ、ご予約）
================================================================ */
.list-c2 > a { text-decoration: none; display: block; }

@media screen and (min-width: 600px) {
  .list-c2 { display: flex; }
}

.list-c2 .list {
  text-align: center;
  position: relative;
  overflow-y: hidden;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  padding: 5rem 2rem;
  margin: 1rem 0;
}

@media screen and (min-width: 600px) {
  .list-c2 > * { flex: 1; }
  .list-c2 .list { margin: 0; display: flex; align-items: center; justify-content: center; }
  .list-c2 > a .list { height: 100%; }
}

.list-c2 .list.image1 { background: url("../images/IMG_5812.jpg") no-repeat center center / cover; }
.list-c2 .list.image2 { background: url("../images/AdobeStock_30230077-scaled.jpg") no-repeat center center / cover; }

.list-c2 h4 { font-weight: 200; line-height: 1.2; }
.list-c2 h4 .main-text {
  display: block;
  font-size: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

@media screen and (min-width: 600px) {
  .list-c2 h4 .main-text { font-size: 4rem; }
}
@media screen and (max-width: 600px) {
  .list-c2 h4 .main-text { font-size: 2rem; }
}

.list-c2 h4 .sub-text { position: relative; padding: 0 5rem; }
@media screen and (max-width: 600px) {
  .list-c2 h4 .sub-text { padding: 0 3rem; }
}
.sub-text::before { left: 0; }
.sub-text::after { right: 0; }
.list-c2 h4 .sub-text::before, .list-c2 h4 .sub-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2rem;
  border-top: 1px solid #fff;
}

.list-c2 .list .text { position: relative; z-index: 1; font-size: 16px; }

.list-c2 .list::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  transition: transform 0.3s 0.1s;
}
.list-c2 .list:hover::before { transform: translateY(100%); }

/* ================================================================
   お知らせ
================================================================ */
.new {
  display: grid;
  grid-template-columns: auto 1fr;
}

.new dt, .new dd {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 16px;
}

.new dt { padding-right: 4rem; }
@media screen and (max-width: 600px) {
  .new { grid-template-columns: 1fr; }
  .new dt { padding-right: 0; padding-bottom: 0.3rem; border-bottom: none; font-size: 13px; opacity: 0.7; }
  .new dd { padding-top: 0.3rem; }
}

/* ================================================================
   FAQ
================================================================ */
.faq {
  background: #5E5C5A;
  color: #fff;
  position: relative;
}

@media screen and (min-width: 600px) {
  .faq { display: flex; flex-direction: row-reverse; justify-content: space-between; }
}

.faq h2 { margin: 0; padding: 0; font-size: 2rem; font-weight: 200; letter-spacing: 0.4em; display: block; }

@media screen and (max-width: 600px) {
  .faq h2 { margin-bottom: 1rem; }
}

@media screen and (min-width: 600px) {
  .faq h2 { writing-mode: vertical-lr; margin-right: 18vw; }
}

.faq h2 .kazari { line-height: 1; font-size: 0.9rem; }

@media screen and (min-width: 600px) {
  .faq h2 .kazari {
    font-size: 20vw;
    position: absolute;
    right: 0; top: var(--space-large);
    color: rgba(255,255,255,0.05);
  }
}

.faq dt {
  font-size: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 2rem 0 1rem;
}

@media screen and (min-width: 600px) {
  .faq dt { padding: 2rem 2rem 1rem; font-size: 18px; }
}

.faq dd { padding: 0 0 2rem; font-size: 0.9rem; }

@media screen and (min-width: 600px) {
  .faq dd { padding: 0 2rem 2rem; font-size: 16px; }
  .faq .text { width: 50%; }
}

/* ================================================================
   お客様の声（横スクロール）
================================================================ */
.list-yoko-scroll * { margin: 0; padding: 0; }

.list-yoko-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  margin-right: calc(-1 * var(--space-large));
  padding-bottom: 3vw;
}
.list-yoko-scroll::-webkit-scrollbar { display: none; }

.list-yoko-scroll .list {
  width: 60%;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 600px) {
  .list-yoko-scroll .list { width: 28%; padding: 2rem; }
}

.list-yoko-scroll .list .text { flex: 1; }

.list-yoko-scroll .list::before, .list-yoko-scroll .list::after {
  content: "";
  position: absolute;
  width: 30px; height: 10px;
  border: 0.5px solid var(--primary-color);
}

.list-yoko-scroll .list::before { left: 0; top: 0; border-right: none; border-bottom: none; }
.list-yoko-scroll .list::after { right: 0; bottom: 0; border-top: none; border-left: none; }

.list-yoko-scroll h4 { margin-bottom: 1rem; }
.list-yoko-scroll p { font-size: 0.9rem; }
.list-yoko-scroll .name { text-align: right; }
.list-yoko-scroll .name img {
  width: 50px; height: 50px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-left: 20px;
}

/* ================================================================
   box1（こだわりセクション）
================================================================ */
.box1 {
  overflow-x: visible;
  position: relative;
  padding: var(--space-large);
  margin-top: 10vw;
}

.box1 .deco-text {
  position: absolute;
  right: 0; top: -13.5vw;
  color: #f5edec;
  font-size: 7vw;
  line-height: 1;
}

.box1 .illust1 {
  position: absolute;
  right: 6vw; top: 5vw;
  width: 23vw;
  opacity: 0.2;
  transform: rotate(-20deg);
}

.box1 .illust2 {
  position: absolute;
  right: 0; top: 2vw;
  width: 13vw;
  opacity: 0.2;
  transform: rotate(20deg);
}

.box1 .text { margin-bottom: 5rem; }
.box1 .text p { font-size: 1rem; line-height: 2.2; }

@media screen and (min-width: 600px) {
  .box1 { display: flex; gap: 5vw; align-items: flex-start; }
  .box1 > * { flex: 1; }
  .box1 .illust1 { left: 3vw; top: -13vw; width: 12vw; }
  .box1 .illust2 { left: 16vw; top: -8vw; width: 8vw; }
  .box1 .text { margin-bottom: 0; }
}

.box1 .text, .box1 .image { margin-top: 0; }
.box1 .image { position: relative; }
#about .text, #about .image { align-self: flex-start; margin-top: 0; padding-top: 0; }
#about .text { color: #111; }
#about .text strong {
  background: linear-gradient(transparent 50%, #f5d9d9 50%);
  font-weight: bold;
  padding: 0 0.1em;
}
.box1 .image img { border-radius: 10px; }
.box1 .image img:nth-of-type(1) { width: 100%; }

@media screen and (min-width: 900px) {
  #about .image { max-width: 30%; }
  #about h2 { margin-bottom: 2rem; }
}

@media screen and (max-width: 600px) {
  .box1 h2 { font-size: 2rem; }
  .box1 h2 span.sub-text { font-size: 0.75rem; }
  .box1 .text p { font-size: 1rem; }
  .box1 .btn1 a { font-size: 0.9rem; }
}

/* ================================================================
   list1（コースのご案内）
================================================================ */
.logo-kazari { }

.list1.image1 { background: url("../images/IMG_5792.jpg") no-repeat center center / cover; }
.list1.image2 { background: url("../images/IMG_5804.jpg") no-repeat center center / cover; }
.list1.image3 { background: url("../images/IMG_5796.jpg") no-repeat center center / cover; }
.list1.image4 { background: url("../images/236473719_1450.jpg") no-repeat center center / cover; }

.list1 {
  padding: var(--space-large);
  position: relative;
  overflow-x: hidden;
  margin-bottom: 1vw;
  height: 56.25vw;
  max-height: 640px;
  min-height: 320px;
}

.list1::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  transition: transform 0.5s 0.1s;
}
.list1:hover::before { transform: translateX(100%); }
.list1::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.list1 .text {
  position: relative; z-index: 1;
  width: 95%; height: 100%;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media screen and (min-width: 600px) {
  .list1 .text { width: 40%; }
}

.list1 .text.reverse { margin-left: auto; }

.list1 h3 {
  margin: 0; padding: 0;
  font-weight: normal;
  position: relative;
  font-size: 2rem;
  letter-spacing: 0.1rem;
  line-height: 1.2;
}

.list1 h3 .large { font-size: 7rem; }

.list1 h3 span:not(.large) {
  font-size: 1rem;
  opacity: 0.5;
  position: absolute;
  right: 0; top: 0;
}

.list1 .text p { font-size: 16px; }

@media screen and (max-width: 600px) {
  .list1 h3 { font-size: 1.6rem; }
  .list1 h3 .large { font-size: 3.5rem; }
  .list1 h3 span:not(.large) { font-size: 0.8rem; }
  .list1 .text p { font-size: 0.875rem; }
}

/* ================================================================
   list-grid1（3カラム）
================================================================ */
.list-grid1 .list * { margin: 0; padding: 0; }
.list-grid1 .list {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  color: #111;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
}
.list-grid1 .list h4 { margin-bottom: 0.5rem; }
.list-grid1 .list p { font-size: 1rem; line-height: 1.5; }
.list-grid1 .list .text { flex: 1; }
.list-grid1 .list figure { margin: -1rem; margin-bottom: 0.5rem; height: 150px; overflow: hidden; flex-shrink: 0; }
.list-grid1 .list figure img { width: 100%; height: 100%; object-fit: cover; }

@media screen and (min-width: 800px) {
  .list-grid1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; align-items: stretch; }
  .list-grid1 > a { display: flex; }
  .list-grid1 .list { margin-bottom: 0; flex: 1; }
}

/* ================================================================
   縦書き（コースタイトル）
================================================================ */
.title-bg { display: flex; justify-content: center; }
.title-bg h2 { font-weight: normal; display: flex; flex-direction: column; align-items: center; padding-bottom: 3vw; }
.title-bg h2 .tate { font-size: 2rem; }
.title-bg h2 .yoko { font-size: 0.9rem; margin-bottom: 3vw; letter-spacing: 0.1rem; opacity: 0.5; }

/* ================================================================
   ボタン
================================================================ */
.btn1 a {
  display: inline-block;
  text-decoration: none;
  margin-top: 2rem;
  padding: 0.65rem 1.8rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-size: 1rem;
  letter-spacing: 0.15em;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn1 a:hover {
  background: var(--primary-color);
  color: var(--primary-inverse-color);
}

.btn2 a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  transition: opacity 0.3s ease;
}
.btn2 a::after { content: "→"; transition: transform 0.3s ease; }
.btn2 a:hover { opacity: 0.6; }
.btn2 a:hover::after { transform: translateX(5px); }

.btn3 { text-align: right; letter-spacing: 0.1em; }
.btn3 a { display: inline-block; text-decoration: none; color: inherit; position: relative; padding-right: 5rem; }
.btn3 a::after {
  content: "";
  background: url("../images/arrow1.svg") no-repeat right center / 100px;
  display: block;
  position: absolute;
  right: 0; bottom: -1rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  text-align: center;
  transition: 0.3s;
  border: 1px solid var(--primary-color);
}
.btn3 a:hover::after {
  background-color: var(--primary-color);
  background-position: left center;
}

.btn3.white { color: #fff; }
.btn3.white a::after {
  background: url("../images/arrow1_white.svg") no-repeat right center / 100px;
  border: 1px solid #fff;
}
.btn3.white a:hover::after { background-color: #fff; background-position: left center; }

/* ================================================================
   サムネイルスライドショー
================================================================ */
.slide-thumbnail-box { overflow-x: hidden; padding-left: 0; padding-right: 0; }
.slide-thumbnail1 { margin-bottom: 6vw; }
.slide-thumbnail1 .img { display: flex; }
.slide-thumbnail1 .img img { padding: 0 1rem; }
.slide-thumbnail1 .img div:nth-of-type(even) { transform: translateY(3vw); }

.slide-thumbnail1 .rtl, .slide-thumbnail1 .ltr {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.slide-thumbnail1 .rtl { animation-name: slide-rtl; }
.slide-thumbnail1 .ltr { animation-name: slide-ltr; }

@keyframes slide-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes slide-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ================================================================
   テーブル
================================================================ */
.ta1 caption {
  caption-side: top;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: var(--primary-inverse-color);
  margin-bottom: 1rem;
  border-radius: 5px;
}
/* 施工事例 */
.case-item { margin-bottom:4rem; padding-bottom:4rem; border-bottom:1px solid #e0dbd7; }
.case-item:last-child { border-bottom:none; margin-bottom:0; }
.case-item h4 { font-size:1.6rem; font-weight:700; margin-bottom:1rem; color:#333; }
.case-item .case-img { text-align:center; margin:1.2rem 0; }
.case-item .case-img img { width:320px; max-width:100%; height:auto; }
.case-item .case-body { font-size:1.2rem; line-height:2; margin-bottom:1.5rem; color:#333; }
@media screen and (max-width:600px) {
  .case-item h4 { font-size:1.2rem; }
  .case-item .case-body { font-size:1rem; }
}
/* linkcard */
.lkc-external-wrap a { display:block; text-decoration:none; color:inherit; border:1px solid #ddd; border-radius:4px; overflow:hidden; transition:box-shadow 0.2s; }
.lkc-external-wrap a:hover { box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.lkc-info { display:flex; align-items:center; gap:0.4rem; padding:0.4rem 0.8rem; background:#f5f5f5; font-size:0.75rem; color:#666; border-bottom:1px solid #eee; }
.lkc-content { padding:0.8rem; }
.lkc-thumbnail { float:left; margin:0 0.8rem 0.5rem 0; }
.lkc-thumbnail-img { width:80px; height:80px; object-fit:cover; display:block; }
.lkc-title { font-size:1.25rem; font-weight:600; color:#333; margin-bottom:0.3rem; }
.lkc-url { font-size:1rem; color:#999; word-break:break-all; }
@media screen and (max-width:600px) {
  .lkc-title { font-size:1rem; }
  .lkc-url { font-size:0.85rem; }
}
.lkc-content::after { content:''; display:block; clear:both; }

.ta1 { table-layout: fixed; border-top: 1px solid var(--primary-color); width: 100%; margin-bottom: 5rem; }
.ta1 tr { border-bottom: 1px solid var(--primary-color); }
.ta1 th, .ta1 td { padding: 1rem; word-break: break-all; color: #111; }
.ta1 td { font-weight: 500; }
.ta1 th { width: 280px; text-align: left; background: #eee; }
.ta1 td { width: calc(100% - 280px); }
.ta1-wide th { width: 320px; }
.ta1-wide td { width: calc(100% - 320px); }

@media screen and (max-width: 600px) {
  .ta1 tr { display: block; padding: 0.8rem 0; }
  .ta1 th, .ta1 td { display: block; width: 100%; padding: 0.2rem 0; background: none; text-align: left; }
  .ta1 th { font-weight: bold; opacity: 0.8; }
}

/* ================================================================
   ユーティリティ
================================================================ */
.order1 { order: 1; }
.padding0 { padding: 0 !important; }
.padding-lr0 { padding-left: 0 !important; padding-right: 0 !important; }
.space-small { padding-left: var(--space-small); padding-right: var(--space-small); }
.c { text-align: center !important; }
.l { text-align: left !important; }
.r { text-align: right !important; }
.no-line span.sub-text { border: none; padding-top: 0; }
.bg1 { background: #f0f0f0; }
.mb0 { margin-bottom: 0 !important; }
.mb30 { margin-bottom: 30px !important; }

/* ================================================================
   フォーム
================================================================ */
.form-wrap { max-width: 700px; margin: 0 auto; }
.form-row { margin-bottom: 1.5rem; }
.form-row label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-row label .req {
  display: inline-block;
  background: #827C75;
  color: #fff;
  font-size: 0.7em;
  padding: 0 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #bbb;
  color: #333;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-submit { text-align: center; margin-top: 2rem; }
.form-submit button, .form-submit a {
  display: inline-block;
  padding: 0.8rem 3rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.form-submit button:hover, .form-submit a:hover { filter: brightness(1.2); }

/* ================================================================
   顧客管理・フォーム共通
================================================================ */
.client-form { max-width: 560px; }
.client-form-row { margin-bottom: 1.2rem; }
.client-form-row label { display: block; margin-bottom: 0.3rem; font-size: 15px; color: var(--primary-color); }
.client-form-row .req {
  display: inline-block;
  background: #827C75;
  color: #fff;
  font-size: 0.7em;
  padding: 0 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}
.client-form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.client-btn-save {
  padding: 0.7rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
}
.client-btn-save:hover { filter: brightness(1.2); }
.client-btn-cancel {
  font-size: 15px;
  color: #aaa;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}
.client-error {
  background: #fdf0f0;
  border: 1px solid #e8a0a0;
  color: #a84a4a;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 15px;
}

/* featureページ 顧客バー */
.feature-client-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #f3f0eb;
  border-left: 3px solid var(--primary-color);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.feature-client-label {
  font-size: 0.78rem;
  color: #aaa;
  flex-shrink: 0;
}
.feature-client-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 1px;
  margin-left: auto;
}

/* ================================================================
   命盤鑑定ページ (feature)
================================================================ */

/* Bootstrap btn-primary を上書き */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #403d38;
  border-color: #403d38;
  color: #fff;
  box-shadow: none;
}
.btn-primary:focus { box-shadow: 0 0 0 0.2rem rgba(92,86,80,0.4); }

/* form-control フォーカス色 */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(92,86,80,0.2);
}

/* feature ラッパー・フォームエリア */
.feature-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 4rem;
}
.feature-form-area {
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* feature-item（フォームの各行） */
.feature-item {
  margin-bottom: 1.2rem;
}
.feature-item > label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* 命盤テーブル */
table.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.85rem;
  border: 2px solid var(--primary-color);
}
table.tbl td {
  border: 1px solid var(--primary-color);
  padding: 0.5rem 0.6rem;
  vertical-align: top;
  line-height: 1.7;
  color: var(--primary-color);
}
table.tbl td.description { background: #faf9f7; }
table.tbl p { margin: 0; font-size: 0.8rem; opacity: 0.8; }

/* 詳細テーブル */
table.detail {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
table.detail td {
  border: 1px solid #c8c2bc;
  padding: 0.4rem 0.6rem;
  text-align: center;
  color: var(--primary-color);
}

/* 星ラベル（インライン表示） */
.feature-wrap label { font-size: inherit; font-weight: normal; margin: 0; }
.feature-wrap label.red  { color: #c0392b; }
.feature-wrap label.blue { color: #2563a8; }
.feature-wrap label.waku {
  border: 1px solid var(--primary-color);
  padding: 0 2px;
}

/* ================================================================
   ヒーロー スマホ調整
================================================================ */
@media screen and (max-width: 500px) {
  .hero-content { bottom: 35vh; }
}

/* ================================================================
   マイページ ダッシュボードレイアウト
================================================================ */

/* 全体シェル：viewport全体を使うアプリ型レイアウト */
body.mypage {
  overflow: hidden;
  height: 100vh;
  font-size: 17px;
  color: #333;
}
.mp-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* トップバー */
.mp-topbar {
  height: 52px;
  flex-shrink: 0;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}
.mp-topbar-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.9; }
.mp-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.mp-topbar-user {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}
.mp-topbar-user i { margin-right: 0.3rem; opacity: 0.7; }
.mp-topbar-logout {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.25rem 0.9rem;
  border-radius: 2px;
  transition: 0.2s;
}
.mp-topbar-logout:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 本体エリア（サイドバー＋コンテンツ） */
.mp-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* サイドバー：固定・独立スクロール */
.mp-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #f8f6f3;
  border-right: 1px solid #e0dbd5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0;
}
.mp-nav { list-style: none; padding: 0; margin: 0; }
.mp-nav li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 16px;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.mp-nav li a i { width: 15px; text-align: center; font-size: 14px; flex-shrink: 0; }
.mp-nav li a:hover { background: #ede9e4; color: var(--primary-color); }
.mp-nav li.active a {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  background: #ede9e4;
  font-weight: 500;
}
.mp-nav-new a { color: var(--primary-color) !important; font-weight: 500; }
.mp-nav-sep { border-top: 1px solid #e0dbd5; margin: 0.5rem 0; }

/* コンテンツエリア：独立スクロール */
.mp-content {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  min-width: 0;
  background: #fff;
}
/* index.css の body:not(.home) main より優先させる */
body.mypage .mp-content {
  padding: 2rem 2.5rem;
}

/* ページヘッダー */
.mp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0dbd5;
}
.mp-page-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #333;
  margin: 0;
}

/* スマホ：縦積み＋タブバー */
@media screen and (max-width: 768px) {
  body.mypage { overflow: auto; height: auto; }
  .mp-shell { height: auto; overflow: visible; }
  .mp-body { flex-direction: column; overflow: visible; }
  .mp-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #e0dbd5;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .mp-nav { display: flex; flex-shrink: 0; }
  .mp-nav li a {
    padding: 0.8rem 1.1rem;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
  }
  .mp-nav li.active a {
    border-left-color: transparent;
    border-bottom-color: var(--primary-color);
    background: #f0ede9;
  }
  .mp-nav-sep { display: none; }
  .mp-content { overflow: visible; padding: 1.5rem 1rem; }
}

/* ================================================================
   マイページ共通部品
================================================================ */
.mypage-null { color: #aaa; }

.mypage-btn-new {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: 0.2s;
  white-space: nowrap;
}
.mypage-btn-new:hover { background: #6b6460; color: #fff; }

.mypage-section { margin-bottom: 2.5rem; }
.mypage-section-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #333;
}
.mypage-count {
  font-size: 14px;
  color: #777;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.mypage-table-wrap { overflow-x: auto; }
.mypage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.mypage-table th {
  background: #f3f0eb;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 2px solid #e0dbd5;
  white-space: nowrap;
  color: #444;
}
.mypage-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f0ede9;
  vertical-align: middle;
  font-size: 16px;
}
.mypage-table tr:hover td { background: #faf9f7; }

.mypage-actions { display: flex; gap: 0.4rem; white-space: nowrap; }
.mypage-btn-view, .mypage-btn-dl, .mypage-btn-del {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 15px;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.2s;
  white-space: nowrap;
}
.mypage-btn-view {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.mypage-btn-view:hover { background: var(--primary-color); color: #fff; }
.mypage-btn-dl { background: var(--primary-color); color: #fff; }
.mypage-btn-dl:hover { background: #6b6460; color: #fff; }
.mypage-btn-del { border: 1px solid #ccc; color: #999; }
.mypage-btn-del:hover { border-color: #c0392b; color: #c0392b; }

.mypage-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #777;
}
.mypage-empty p { margin-bottom: 1.5rem; font-size: 15px; }

.mypage-pager { display: flex; gap: 0.3rem; margin-top: 1.2rem; }
.mypage-pager a, .mypage-pager span {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 13px;
  border: 1px solid #e0dbd5;
  color: #444;
  text-decoration: none;
  border-radius: 2px;
}
.mypage-pager a:hover { background: #f3f0eb; }
.mypage-pager .current {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

@media screen and (max-width: 600px) {
  .mypage-table thead { display: none; }
  .mypage-table tr {
    display: block;
    border: 1px solid #e0dbd5;
    border-radius: 4px;
    margin-bottom: 0.8rem;
  }
  .mypage-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0ede9;
  }
  .mypage-table td:last-child { border-bottom: none; }
  .mypage-table td::before {
    content: attr(data-label);
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
    margin-right: 1rem;
  }
  .mypage-table tr:hover td { background: none; }
  .mypage-actions { justify-content: flex-end; }
}

/* ================================================================
   顧客管理
================================================================ */

/* プレースホルダーを薄く */
.mp-content .form-control::placeholder,
.feature-item .form-control::placeholder {
  color: #bbb;
  opacity: 1;
}

/* Bootstrap form-control のフォントをマイページ基準に合わせる */
.mp-content .form-control {
  font-size: 16px;
  font-family: inherit;
}

.client-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.client-search-input {
  max-width: 360px;
  flex: 1;
}
.client-search-btn {
  padding: 0.45rem 1.4rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
}
.client-search-btn:hover { filter: brightness(1.2); }
.client-search-clear {
  font-size: 15px;
  color: #777;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}
.client-name-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.client-name-link:hover { border-bottom-color: var(--primary-color); }
.client-family-badge {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 12px;
  background: #f0ede9;
  color: #666;
  border-radius: 10px;
  padding: 0 0.5rem;
  vertical-align: middle;
}
.client-info-box {
  background: #faf9f7;
  border: 1px solid #e0dbd5;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 16px;
}
.client-info-row {
  display: flex;
  gap: 1.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ede9;
}
.client-info-row:last-child { border-bottom: none; }
.client-info-label {
  min-width: 100px;
  font-size: 14px;
  color: #777;
  flex-shrink: 0;
}
.client-add-family-btn {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid var(--primary-color);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  margin-left: 0.8rem;
  vertical-align: middle;
  transition: 0.2s;
}
.client-add-family-btn:hover { background: var(--primary-color); color: #fff; }
.family-readings-row td { background: #faf9f7; padding-top: 0.3rem; padding-bottom: 0.8rem; }
.family-reading-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

/* 顧客詳細タブ */
.client-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0dbd5;
  margin-bottom: 1.5rem;
}
.client-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.7rem 1.4rem;
  font-size: 15px;
  font-family: inherit;
  color: #888;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.client-tab-btn:hover { color: var(--primary-color); }
.client-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

/* 本人以外の鑑定依頼リスト */
.client-family-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.client-family-item {
  border: 1px solid #e0dbd5;
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  background: #faf9f7;
}
.client-family-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.client-family-name {
  font-size: 16px;
  font-weight: 500;
}
.client-family-rel {
  font-size: 13px;
  color: #888;
  background: #ede9e4;
  border-radius: 10px;
  padding: 0 0.6rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
/* ================================================================
   ページ共通
================================================================ */
.page-section  { margin-bottom: 2rem; color: #111; }
.page-section p { margin-bottom: 1em; }
.page-section p:last-child { margin-bottom: 0; }
.page-section strong,
.menu-intro strong {
  background: linear-gradient(transparent 50%, #f5d9d9 50%);
  font-weight: bold;
  padding: 0 0.1em;
}
.page-box.page-section { padding: 2rem; background: #f5edec; border-radius: 5px; color: #111; }
.page-p        { margin-bottom: 1.5rem; }
.page-p-mb1    { margin-bottom: 1rem; }
.page-p-mb2    { margin-bottom: 2rem; }
.page-p-mb3    { margin-bottom: 3rem; }
.page-note     { font-size: 0.9rem; }
.page-h3       { font-size: 1.2rem; font-weight: normal; margin-bottom: 1.5rem; padding-left: 0.8rem; border-left: 3px solid var(--primary-color); }
.page-h3-lg    { font-size: 1.6rem; font-weight: 600; margin-bottom: 1.5rem; }
.page-h3-md    { font-size: 1.4rem; font-weight: normal; margin-bottom: 1.5rem; }
.page-ul       { list-style: none; padding-left: 0; margin-bottom: 1rem; }
.page-ul li    { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; border-bottom: 1px solid #e8e0dc; }
.page-ul li:first-child { border-top: 1px solid #e8e0dc; }
.page-ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }
.mb1           { margin-bottom: 1rem; }
.mb2           { margin-bottom: 2rem; }
.mb3           { margin-bottom: 3rem; }
.mt05          { margin-top: 0.5rem; }
.mt1           { margin-top: 1rem; }
.mt15          { margin-top: 1.5rem; }
.mt2           { margin-top: 2rem; }
.mt3           { margin-top: 3rem; }
.ta1-mb4       { margin-bottom: 4rem; }
.ta1-mb25      { margin-bottom: 2.5rem; }
.ta1-mb2       { margin-bottom: 2rem; }
.ta1-mb15      { margin-bottom: 1.5rem; }
.ta1-mb1       { margin-bottom: 1rem; }
.ta1-caption-title {
  text-align: left; font-size: 1.1rem; font-weight: 600;
  color: var(--primary-color); padding: 0 0 0.3rem 0.6rem;
  margin-bottom: 0; background: none; border-radius: 0;
  letter-spacing: 0.05em; border-left: 3px solid var(--primary-color);
}
.form-submit-mb { margin-bottom: 3rem; }
.form-submit-mt { margin-top: 3rem; }

/* ================================================================
   鑑定メニュー共通
================================================================ */
.menu-intro           { text-align: center; margin-bottom: 3rem; color: #111; }
.list-grid1.auto      { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.list-grid1 h4 a      { text-decoration: none; color: inherit; }
.list-grid1 .more-link { font-size: 0.85rem; color: var(--primary-color); }
.menu-other-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 0.7rem;
  border-left: 3px solid var(--primary-color);
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease;
}
.menu-other-title:hover { opacity: 0.65; }
.menu-other-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.menu-other-link {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 1px solid #555;
  font-size: 16px;
  text-decoration: none;
  color: #111;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.menu-other-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.menu-subsection-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; padding-left: 0.5rem; border-left: 3px solid var(--primary-color); color: var(--primary-color); letter-spacing: 0.05em; }
.menu-price-notice    { font-size: 0.95rem; font-weight: bold; text-align: center; border: 2px solid #a05050; color: #a05050; padding: 0.5rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; line-height: 1.5; }
.menu-price-notice small { font-size: 0.75rem; font-weight: normal; }
.menu-price-title     { font-size: 1.1rem; font-weight: bold; margin-bottom: 0.5rem; padding-left: 0.5rem; border-left: 4px solid var(--primary-color); }
.menu-price-title-red { font-size: 1.1rem; font-weight: bold; margin-bottom: 0.8rem; padding-left: 0.5rem; border-left: 4px solid #a05050; color: #a05050; }
.ta1-red th           { color: #a05050; }
.ta1-red td           { color: #a05050; }
.moving-price-note    { font-size: 0.95rem; font-weight: bold; color: #a05050; line-height: 1.9; margin-top: 1rem; }
.moving-price-note p  { margin-bottom: 0.8rem; }
.moving-price-note p:last-child { margin-bottom: 0; }

/* ================================================================
   フォーム共通
================================================================ */
.form-notice      { text-align: center; margin-bottom: 2rem; padding: 1rem; background: #fdf6f4; border-radius: 8px; }
.form-notice-text { font-size: 0.95rem; color: #888; margin-bottom: 0.5rem; }
.form-notice-link { color: var(--primary-color); font-size: 1rem; border-bottom: 1px solid var(--primary-color); padding-bottom: 1px; }
.form-thanks      { text-align: center; padding: 3rem 1rem; }
.form-thanks p    { font-size: 1.1rem; }
.form-thanks-back { margin-top: 2rem; }
.form-thanks-back a { color: var(--primary-color); }
.form-errors      { background: #fdf0f0; border: 1px solid #e8a0a0; padding: 0.8rem 1rem; margin-bottom: 1.5rem; font-size: 0.95rem; color: #a84a4a; }
.label-req        { color: #c00; font-size: 0.85rem; }
.label-opt        { font-size: 0.85rem; color: #aaa; }
.resize-v         { resize: vertical; }

/* ================================================================
   ニュース
================================================================ */
.news-empty        { text-align: center; color: #aaa; padding: 3rem 0; }
.news-pager        { text-align: center; margin: 2rem 0; display: flex; gap: 0.5rem; justify-content: center; }
.news-pager-current { padding: 0.4rem 0.8rem; background: var(--primary-color); color: #fff; }
.news-pager-link   { padding: 0.4rem 0.8rem; border: 1px solid var(--primary-color); color: var(--primary-color); }
.news-back         { margin-bottom: 2rem; }
.news-back a       { font-size: 0.9rem; color: var(--primary-color); }
.news-body         { font-size: 1.05rem; line-height: 1.9; white-space: pre-wrap; }

/* ================================================================
   ごあいさつページ (.about)
================================================================ */
.about-message     { background: #f5edec; padding: 2.5rem 2rem; margin-bottom: 3rem; border-radius: 10px; color: #111; }
.about-h3          { font-size: 1.6rem; font-weight: normal; margin-bottom: 2rem; letter-spacing: 0.1em; }
.about-quote       { text-align: center; padding: 1.5rem var(--space-large); background: #ede0d8; color: #333; border-radius: 5px; margin-bottom: 3rem; }
.about-quote p     { font-size: 1.6rem; font-style: italic; margin: 0; }
.about-list        { list-style: none; padding-left: 0; margin-bottom: 1rem; }
.about-list li     { padding: 0.3rem 0 0.3rem 1.6rem; margin-left: 0; position: relative; }
.about-list li::before { content: '✓'; position: absolute; left: 0; color: #c06050; font-weight: bold; }
.about-emph        { color: #a06030; }
.about-emph-lg     { color: #a06030; font-size: 1.4rem; }
.access-label      { font-size: 0.85rem; opacity: 0.6; margin-left: 1rem; }
.iframe-box-mt     { margin-top: 1.5rem; }

/* ================================================================
   プロフィールページ (.profile)
================================================================ */
.profile-hero       { display: flex; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; align-items: flex-start; color: #111; }
.profile-hero-info  { flex: 1; min-width: 260px; }
.profile-hero-body  { flex: 2; min-width: 260px; }
.profile-title      { font-size: 0.85rem; margin: 0; letter-spacing: 0.15em; }
.profile-name       { font-size: 2.4rem; font-weight: normal; margin: 0.3rem 0 0.2rem; letter-spacing: 0.05em; }
.profile-kana       { font-size: 0.9rem; margin: 0; letter-spacing: 0.2em; }
/* ================================================================
   開運セミナーページ (.seminar)
================================================================ */
.seminar-event-date { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); margin-bottom: 0.5rem; }
.seminar-event-note { font-size: 0.9rem; margin-bottom: 1rem; }
.seminar-tagline    { font-size: 1.2rem; font-weight: bold; margin-bottom: 2rem; }
.seminar-link       { word-break: break-all; }

/* ================================================================
   風水教室ページ (.school)
================================================================ */
.school-section-title  { font-size: 1.3rem; font-weight: normal; margin-bottom: 1rem; }
.school-message-name   { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 1rem; }
.school-ul             { line-height: 2.4; margin-bottom: 1.5rem; }
.school-desc           { line-height: 1.8; margin-bottom: 1rem; }
.school-note           { font-size: 0.9rem; margin-bottom: 3rem; }
.school-subtitle       { font-size: 0.9rem; margin-bottom: 0.5rem; }
.school-class-box      { border: 1px solid var(--primary-color); padding: 1.2rem 1.5rem; }
.school-class-box ul   { line-height: 2.2; margin: 0; }
.school-class-box p    { margin-top: 0.8rem; }
.school-course-title   { font-size: 1.1rem; font-weight: normal; margin-bottom: 1rem; padding-left: 0.5rem; border-left: 3px solid var(--primary-color); }
.mt-school             { margin-top: 3rem; }
.school-course-title.has-subtitle { margin-bottom: 0.3rem; }

/* 図面製作費テーブル（赤系） */
.ta1-red { border-top-color: #a05050; }
.ta1-red tr { border-bottom-color: #a05050; }
.ta1-red th { background: #f5ecec; }

/* 図面代カード */
.price-cards {
  display: flex;
  gap: 1rem;
}
.price-cards .card {
  flex: 1;
  border: 2px solid #333;
  padding: 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media screen and (max-width: 600px) {
  .price-cards { flex-direction: column; }
}

.client-family-readings {
  border-top: 1px solid #ede9e4;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
