@charset "UTF-8";

/*
  せんな整体院 和モダン試作CSS
  目的：
  - 既存HTML・画像・main.css・mobile.cssを壊さず、追加CSSで和モダン化する
  - 背景全面柄は禁止。読みやすさを最優先
  - 装飾は中央枠・カード枠・カード隅・区切り線に限定
*/

:root {
  --wa-bg: #f6efe4;
  --wa-bg-2: #eee3d4;
  --wa-paper: #fffdf7;
  --wa-paper-soft: #fbf7ef;
  --wa-ink: #2f2923;
  --wa-muted: #756b5f;
  --wa-border: rgba(116, 86, 49, 0.28);
  --wa-border-soft: rgba(116, 86, 49, 0.16);
  --wa-border-strong: rgba(116, 86, 49, 0.42);
  --wa-accent: #4f6f52;
  --wa-indigo: #2f4f67;
  --wa-gold: #b99a55;
  --wa-red: #9f3f36;
  --wa-shadow: 0 18px 45px rgba(57, 43, 24, 0.12);
  --wa-card-shadow: 0 10px 26px rgba(57, 43, 24, 0.07);
}

html {
  background: var(--wa-bg);
}

body.sennna-site {
  margin: 0;
  color: var(--wa-ink);
  background:
    radial-gradient(circle at top left, rgba(185, 154, 85, 0.14), transparent 360px),
    radial-gradient(circle at bottom right, rgba(79, 111, 82, 0.10), transparent 420px),
    linear-gradient(180deg, var(--wa-bg) 0%, var(--wa-bg-2) 100%);
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    serif;
  line-height: 1.75;
}

/* 旧HTMLのbgcolorよりCSSを優先 */
body.sennna-site[bgcolor] {
  background-color: var(--wa-bg) !important;
}

/* 外側の中央表示部分 */
body.sennna-site > table {
  width: min(980px, calc(100% - 32px)) !important;
  max-width: 980px !important;
  margin: 24px auto 40px !important;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--wa-border) !important;
  border-radius: 24px;
  box-shadow: var(--wa-shadow);
  overflow-x: clip;
  overflow-y: visible;
}

/* tableの強い線を和紙風に弱める */
body.sennna-site table {
  border-color: var(--wa-border-soft) !important;
}

body.sennna-site td,
body.sennna-site th {
  border-color: var(--wa-border-soft) !important;
}

/* ヘッダー */
body.sennna-site img[src*="banner_usagi"] {
  filter: drop-shadow(0 8px 14px rgba(80, 58, 30, 0.16));
}

body.sennna-site img[src*="baneer_sennna"] {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(80, 58, 30, 0.12));
}

/* スマホ上部ナビ */
.sp-nav-bar {
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--wa-border);
  box-shadow: 0 6px 18px rgba(57, 43, 24, 0.08);
  backdrop-filter: blur(8px);
}

.sp-nav-brand {
  color: var(--wa-ink);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-decoration: none;
}

.sp-nav-brand img {
  border-radius: 999px;
}

.sp-nav-btn {
  border: 1px solid var(--wa-border-strong);
  background: var(--wa-paper);
  color: var(--wa-ink);
  border-radius: 999px;
}

.sp-nav {
  background: rgba(255, 253, 247, 0.98);
  border-bottom: 1px solid var(--wa-border);
}

.sp-nav-link {
  color: var(--wa-ink);
  border-bottom: 1px solid rgba(116, 86, 49, 0.14);
  text-decoration: none;
}

.sp-nav-link[aria-current="page"] {
  color: var(--wa-accent);
  font-weight: 700;
}

/* 左メニュー */
body.sennna-site th[width="160"] {
  background:
    linear-gradient(180deg, rgba(79, 111, 82, 0.08), rgba(185, 154, 85, 0.06));
}

body.sennna-site th[width="160"] img {
  border-radius: 14px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

body.sennna-site th[width="160"] a:hover img {
  transform: translateY(-1px);
  filter: brightness(1.04) saturate(0.96);
}

/* ページ見出し画像 */
body.sennna-site.subpage td > img[src*="index_"] {
  margin: 10px 0 6px 18px;
  border-radius: 14px;
  filter: drop-shadow(0 8px 14px rgba(80, 58, 30, 0.11));
}

/* メイン領域 */
.top-main {
  width: 100% !important;
  background: transparent;
  border: 0 !important;
}

.top-main > tbody > tr > td,
.top-main > tr > td {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* トップの各セクション */
.top-section {
  position: relative;
  width: auto !important;
  margin: 18px 20px;
  padding: 24px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 247, 239, 0.92));
  border: 1px solid var(--wa-border) !important;
  border-radius: 18px;
  box-shadow: var(--wa-card-shadow);
  box-sizing: border-box;
}

/* 下層ページ本文 */
.sub-main {
  display: block;
  width: auto !important;
  margin: 14px 18px 24px;
  padding: 8px 0 18px;
  background: transparent;
  border: 0 !important;
}

.sub-block {
  position: relative;
  margin: 18px 16px;
  padding: 24px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(251, 247, 239, 0.94));
  border: 1px solid var(--wa-border) !important;
  border-radius: 18px;
  box-shadow: var(--wa-card-shadow);
}

/* 角飾り：控えめ */
.top-section::before,
.top-section::after,
.sub-block::before,
.sub-block::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0.72;
}

.top-section::before,
.sub-block::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--wa-gold);
  border-left: 1px solid var(--wa-gold);
  border-top-left-radius: 8px;
}

.top-section::after,
.sub-block::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--wa-gold);
  border-bottom: 1px solid var(--wa-gold);
  border-bottom-right-radius: 8px;
}

/* 見出し */
.style6 {
  color: var(--wa-indigo) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.top-section > .style6:first-child,
.top-section > span.style6:first-child,
.sub-block > .style6:first-child,
.sub-block > span.style6:first-child,
.sub-block p:first-child b {
  display: inline-block;
  padding: 0 0 6px;
  margin-bottom: 8px;
  border-bottom: 2px solid rgba(185, 154, 85, 0.46);
}

/* トップ画像 */
.top-hero {
  display: block;
  width: auto !important;
  margin: 18px 20px;
  padding: 18px;
  background: var(--wa-paper-soft);
  border: 1px solid var(--wa-border) !important;
  border-radius: 20px;
}

.hero-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photos img,
.biyo-shot img,
body.sennna-site.subpage td > img[src*="photo/annnai"] {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(116, 86, 49, 0.22);
  box-shadow: 0 12px 26px rgba(57, 43, 24, 0.12);
}

/* 本文 */
.top-block,
.news-item,
.text-unified,
.sub-block,
.sub-main {
  color: var(--wa-ink);
}

.line-compact {
  line-height: 1.7;
}

.profile-study-list {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  column-gap: 0.5em;
  row-gap: 0.4em;
  width: fit-content;
  max-width: 100%;
  margin: 0.75em auto 0;
  text-align: left;
  justify-items: start;
  align-items: baseline;
}

.profile-study-year {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.profile-study-text {
  min-width: 0;
}

a {
  color: var(--wa-indigo);
}

a:hover {
  color: var(--wa-accent);
}

/* 強い赤・ピンクを少し落ち着かせる */
font[color="#ff0000"],
font[color="red"] {
  color: var(--wa-red) !important;
}

.biyo-content font[color="#ff00ff"] {
  color: #ff00ff !important;
}

/* 区切り線 */
.notice-divider {
  width: 82%;
  margin: 22px auto;
  border: 0;
  border-top: 1px solid rgba(116, 86, 49, 0.20);
  position: relative;
}

.notice-divider::after {
  content: "◆";
  position: absolute;
  top: -0.82em;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  background: var(--wa-paper);
  color: rgba(185, 154, 85, 0.76);
  font-size: 11px;
}

/* 営業日テーブル */
.hours-scroll {
  overflow-x: auto;
}

.hours-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fffefa;
  border: 1px solid var(--wa-border-strong) !important;
  border-radius: 14px;
  overflow: hidden;
}

.hours-table td {
  padding: 10px 12px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(116, 86, 49, 0.22) !important;
}

/* 連絡・LINE・Instagram */
.contact-line img,
.contact-insta img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(57, 43, 24, 0.10);
}

.accent {
  color: var(--wa-accent);
}

/* アクセス表 */
.access-table {
  max-width: 100%;
  background: var(--wa-paper);
  border-collapse: collapse;
}

.access-table td {
  padding: 10px;
}

/* 美容ページ */
.biyo-gallery {
  margin: 18px 16px;
}

.biyo-photos {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.biyo-shot {
  margin: 0;
  padding: 16px;
  background: var(--wa-paper);
  border: 1px solid var(--wa-border);
  border-radius: 18px;
  box-shadow: var(--wa-card-shadow);
}

.biyo-shot figcaption {
  margin-top: 10px;
  color: var(--wa-muted);
  font-size: 14px;
}

.biyo-arrow {
  margin: 0;
  color: var(--wa-gold);
  font-size: 28px;
  line-height: 1;
}

/* mobile.css の美容写真レイアウトと共存 */
@media (min-width: 992px) {
  body.sennna-site .biyo-photos {
    grid-template-columns: 1fr 1fr;
  }

  body.sennna-site .biyo-arrow {
    display: none;
  }
}

@media (max-width: 991px) {
  body.sennna-site .biyo-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.sennna-site .biyo-arrow {
    display: block;
  }
}

/* mobile.css のPC左メニュー幅と共存 */
@media (min-width: 992px) {
  body.sennna-site th[scope="row"][width="160"] {
    width: 160px !important;
    min-width: 160px;
    max-width: 160px;
  }

  body.sennna-site th[scope="row"] img[src*="index_"] {
    width: 150px;
    max-width: 150px;
  }
}

/* 案内ページの写真行を少し整える */
body.sennna-site.subpage td > img[src*="photo/annnai"] {
  margin: 12px auto;
  display: block;
}

/* mobile.css との共存補正 */
@media (min-width: 992px) {
  body.sennna-site td.top-section,
  body.sennna-site td.top-hero {
    display: table-cell !important;
    vertical-align: top;
  }

  body.sennna-site td.sub-main {
    display: table-cell !important;
    vertical-align: top;
    width: auto !important;
    margin: 0 !important;
    padding: 14px 18px 24px !important;
    box-sizing: border-box;
  }

  body.sennna-site td.sub-main .sub-block,
  body.sennna-site td.sub-main p.sub-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.sennna-site td.top-section.align-left:has(.access-table) .access-table {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  body.sennna-site > table {
    width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: clip;
    overflow-y: visible;
  }

  body.sennna-site td.top-section,
  body.sennna-site td.top-hero {
    display: table-cell !important;
    vertical-align: top;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 16px 22px !important;
    box-sizing: border-box;
  }

  body.sennna-site .sub-block {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 下層ページ：左メニュー列の残り幅を消し、背景枠の左右余白を揃える */
  body.sennna-site.subpage th[scope="row"][width="160"],
  body.sennna-site.subpage th[scope="row"]:has(table img[src*="index_"]) {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  body.sennna-site.subpage > table > tbody > tr > td > table[border="1"] {
    width: 100% !important;
    table-layout: auto !important;
  }

  body.sennna-site.subpage > table > tbody > tr > td > table[border="1"] tr {
    display: block;
    width: 100%;
  }

  body.sennna-site.subpage > table > tbody > tr > td > table[border="1"] td,
  body.sennna-site.subpage > table > tbody > tr > td > table[border="1"] th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.sennna-site.subpage td.sub-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 16px !important;
    box-sizing: border-box;
  }

  body.sennna-site.subpage .sub-main .sub-block,
  body.sennna-site.subpage .sub-main p.sub-block {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    box-sizing: border-box;
  }

  body.sennna-site.subpage td > img[src*="index_"] {
    margin: 10px auto 6px !important;
    display: block;
  }

  body.sennna-site > table table:has(img[src*="annnai"]) tr,
  body.sennna-site > table table:has(img[src*="annnai"]) td {
    height: auto !important;
    min-height: 0 !important;
  }

  body.sennna-site > table table:has(img[src*="annnai"]) img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 360px);
    height: auto !important;
  }
}

/* フッター */
.site-footer {
  color: var(--wa-muted);
  background: transparent;
}

.site-footer td {
  padding: 14px 10px 20px;
  border: 0 !important;
}

/* スマホ */
@media screen and (max-width: 760px) {
  body.sennna-site {
    line-height: 1.72;
    background:
      radial-gradient(circle at top left, rgba(185, 154, 85, 0.12), transparent 260px),
      linear-gradient(180deg, var(--wa-bg) 0%, var(--wa-bg-2) 100%);
  }

  body.sennna-site > table {
    width: calc(100% - 18px) !important;
    margin: 10px auto 28px !important;
    border-radius: 18px;
  }

  body.sennna-site table,
  body.sennna-site tbody,
  body.sennna-site tr,
  body.sennna-site td,
  body.sennna-site th {
    max-width: 100% !important;
  }

  body.sennna-site img {
    max-width: 100%;
    height: auto;
  }

  .top-section,
  .top-hero,
  .sub-block {
    margin: 12px 0;
    padding: 20px 16px 22px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .sub-main {
    margin: 0 0 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .top-section::before,
  .top-section::after,
  .sub-block::before,
  .sub-block::after {
    width: 22px;
    height: 22px;
  }

  .hero-photos {
    gap: 12px;
  }

  body.sennna-site.subpage td > img[src*="index_"] {
    margin: 10px auto;
    display: block;
  }

  body.sennna-site.subpage td > img[src*="photo/annnai"] {
    margin: 10px auto;
    display: block;
  }

  .notice-divider {
    width: 88%;
  }

  .hours-table td {
    padding: 8px 10px;
  }
}
