/* =============================================
   design_mockup.html の CSS をそのまま移植
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 14px;
  margin: 0; padding: 0;
}

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 32px; height: 72px;
}
.site-logo {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px; font-weight: 700;
  color: var(--navy); letter-spacing: .05em;
}
.logo-en {
  font-size: 9px; color: var(--gold); letter-spacing: .15em;
  margin-top: 2px; text-transform: uppercase;
}
.header-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.header-actions {
  display: flex; align-items: center; gap: 4px; margin-left: 8px;
}
.nav-link {
  padding: 6px 14px; font-size: 13px; color: var(--text-mid);
  text-decoration: none; position: relative;
  font-weight: 400; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; right: 50%;
  height: 1px; background: var(--gold); transition: all .25s;
}
.nav-link:hover::after { left: 14px; right: 14px; }
.nav-cta {
  background: var(--navy); color: white;
  padding: 10px 20px; border-radius: 2px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  border: none; cursor: pointer; text-decoration: none;
  letter-spacing: .03em; transition: background .2s;
}
.nav-cta:hover { background: var(--navy-light); }
.member-link {
  border: 1px solid var(--border); color: var(--text-mid);
  padding: 9px 16px; border-radius: 2px;
  font-size: 12px; white-space: nowrap; text-decoration: none;
  transition: all .2s;
}
.member-link:hover { border-color: var(--navy); color: var(--navy); }

/* ハンバーガーボタン（デスクトップでは非表示） */
.site-header__toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.site-header__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルドロップダウン（デスクトップでは非表示） */
.header-nav-mobile {
  display: none;
}
.header-nav-mobile.is-open {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav-link {
  display: block; padding: 14px 20px;
  font-size: 14px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.mobile-nav-link:hover { background: var(--cream); color: var(--navy); }

/* HERO */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 90px 32px 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 80px,
      rgba(255,255,255,.025) 80px, rgba(255,255,255,.025) 81px
    );
}
.hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,74,.12) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
}
.hero-eyebrow {
  font-size: 11px; color: var(--gold); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}
.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 42px; font-weight: 700;
  color: white; line-height: 1.35; letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-desc {
  font-size: 14px; color: rgba(255,255,255,.7);
  line-height: 1.9; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; font-size: 14px; font-weight: 700;
  border: none; border-radius: 2px; cursor: pointer;
  letter-spacing: .04em; transition: background .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.35); color: white;
  padding: 14px 28px; font-size: 14px; background: none;
  border-radius: 2px; cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block; letter-spacing: .04em;
}
.btn-outline:hover { border-color: white; }
.hero-card {
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; padding: 28px;
}
.hero-card-title {
  font-size: 11px; color: var(--gold); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.stat-row { display: flex; flex-direction: column; gap: 14px; }
.stat-item { display: flex; align-items: baseline; gap: 8px; }
.stat-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px; font-weight: 600; color: white; line-height: 1;
}
.stat-unit { font-size: 14px; color: rgba(255,255,255,.6); }
.stat-label { font-size: 12px; color: rgba(255,255,255,.55); margin-left: 2px; }
.stat-sep { height: 1px; background: rgba(255,255,255,.08); margin: 2px 0; }

/* SECTION */
.section { padding: 72px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 44px; }
.section-eyebrow {
  font-size: 10px; color: var(--gold); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: '—'; }
.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px; font-weight: 700; color: var(--navy);
  letter-spacing: .03em; line-height: 1.4;
}
.section-sub {
  font-size: 13px; color: var(--text-light); margin-top: 10px; line-height: 1.8;
}

/* SERVICES */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.service-card {
  background: var(--white); padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.service-card:hover { background: var(--cream); }
.service-card::before {
  content: attr(data-num);
  position: absolute; top: 20px; right: 20px;
  font-family: 'Shippori Mincho', serif;
  font-size: 40px; color: var(--cream-dark); font-weight: 700;
  line-height: 1;
}
.service-icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  background: var(--navy); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.service-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px; font-weight: 600; color: var(--navy);
  margin-bottom: 10px; letter-spacing: .03em;
}
.service-desc { font-size: 12px; color: var(--text-light); line-height: 1.85; margin: 0; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gold); margin-top: 16px;
  text-decoration: none; font-weight: 500; letter-spacing: .05em;
}
.service-link::after { content: '→'; transition: transform .2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ABOUT STRIP */
.about-strip { background: var(--navy); padding: 72px 32px; }
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center;
}
.about-img {
  aspect-ratio: 4/5; background: var(--navy-mid);
  border-radius: 2px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder { font-size: 48px; opacity: .3; }
.about-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  padding: 20px 16px 14px;
  font-size: 11px; color: rgba(255,255,255,.7); text-align: center;
}
.about-eyebrow {
  font-size: 10px; color: var(--gold); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.about-eyebrow::before { content: '—'; }
.about-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 30px; font-weight: 700; color: white;
  line-height: 1.5; margin-bottom: 20px; letter-spacing: .03em;
}
.about-text { font-size: 13px; color: rgba(255,255,255,.65); line-height: 2; margin-bottom: 14px; }
.about-btn {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gold); font-weight: 500;
  border: 1px solid var(--gold); padding: 12px 24px;
  border-radius: 2px; text-decoration: none; transition: all .2s; letter-spacing: .05em;
}
.about-btn:hover { background: var(--gold); color: var(--navy); }

/* NEWS */
.news-section { background: var(--cream); }
.news-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.news-item {
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 24px; background: var(--white);
  border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--cream); }
.news-date { font-size: 12px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.news-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 1px;
  flex-shrink: 0; letter-spacing: .05em;
}
.tag-law { background: #e8f0fa; color: #2a4a8a; }
.tag-subsidy { background: #e8f5e8; color: #2a6a2a; }
.tag-column { background: #faf0e8; color: #7a4a1a; }
.news-title-text { font-size: 13px; color: var(--text); }
.news-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 13px; color: var(--navy);
  font-weight: 500; text-decoration: none; letter-spacing: .04em;
}
.news-more::after { content: '→'; }

/* CTA */
.cta-section {
  background: var(--cream-dark);
  padding: 64px 32px; text-align: center;
  border-top: 1px solid var(--border);
}
.cta-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-bottom: 14px; letter-spacing: .03em;
}
.cta-sub { font-size: 13px; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-navy {
  background: var(--navy); color: white;
  padding: 14px 36px; font-size: 14px; font-weight: 500;
  border: none; border-radius: 2px; cursor: pointer;
  text-decoration: none; display: inline-block; letter-spacing: .04em;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-light); }
.btn-ghost {
  border: 1px solid var(--navy); color: var(--navy);
  padding: 14px 32px; font-size: 14px; background: none;
  border-radius: 2px; cursor: pointer; text-decoration: none;
  display: inline-block; letter-spacing: .04em; transition: all .2s;
}
.btn-ghost:hover { background: var(--navy); color: white; }

/* FOOTER */
.site-footer { background: var(--navy); padding: 48px 32px 24px; color: rgba(255,255,255,.6); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px;
}
.footer-logo-en { font-size: 9px; color: var(--gold); letter-spacing: .15em; margin-bottom: 16px; }
.footer-address { font-size: 11px; line-height: 1.9; }
.footer-address a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-col-title { font-size: 11px; color: white; font-weight: 500; margin-bottom: 14px; letter-spacing: .05em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer-link { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 11px; }
.footer-policy { font-size: 11px; color: rgba(255,255,255,.4); text-decoration: none; }

/* PAGE HERO (固定ページ共通) */
.page-hero-wrap {
  background: var(--navy); padding: 40px 32px 36px;
}
.page-hero-wrap .inner { max-width: 1100px; margin: 0 auto; }
.page-hero-wrap .breadcrumb {
  font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .1em; margin-bottom: 10px;
}
.page-hero-wrap h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px; font-weight: 700; color: white; letter-spacing: .03em;
}

/* ============================================
   MEMBER PORTAL
   ============================================ */
.member-layout { min-height: 100vh; display: flex; flex-direction: column; }
.member-header {
  background: var(--navy); height: 56px;
  display: flex; align-items: center; padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-bar .member-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .member-header { top: 46px; } }

.member-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px; color: white; font-weight: 600; letter-spacing: .03em;
}
.member-logo span { color: var(--gold); margin-left: 6px; font-size: 11px; font-weight: 400; font-family: 'Noto Sans JP', sans-serif; }
.member-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.member-company { font-size: 12px; color: rgba(255,255,255,.7); }
.member-company strong { color: white; font-weight: 500; }
.member-logout-btn {
  font-size: 11px; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 12px; border-radius: 2px; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.member-logout-btn:hover { color: white; border-color: rgba(255,255,255,.5); }
.member-body { display: flex; flex: 1; }

/* Sidebar */
.msidebar {
  width: 220px; flex-shrink: 0;
  background: var(--white); border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto;
}
.admin-bar .msidebar { top: calc(56px + 32px); height: calc(100vh - 56px - 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .msidebar { top: calc(56px + 46px); height: calc(100vh - 56px - 46px); }
}

/* ハンバーガーボタン（デスクトップでは非表示） */
.member-nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; margin-left: 8px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
}
.member-nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.member-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.member-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.member-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* member-header: 高さを auto にして2行に対応 */
  .member-header { height: auto; padding: 8px 12px; gap: 8px; }
  .member-company { display: none; }
  .member-nav-toggle { display: flex; flex-shrink: 0; }

  /* member-logo: サイト名を改行して2行表示 */
  .member-logo { font-size: 13px; line-height: 1.4; }
  .member-logo span { display: block; margin-left: 0; font-size: 10px; }

  /* member-body: 縦並び */
  .member-body { flex-direction: column; }

  /* サイドバー: 初期非表示、開いたときにドロワー展開 */
  .msidebar {
    display: none;
    width: 100%; height: auto;
    position: static;
    top: auto;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow-y: visible;
  }
  .msidebar.is-open { display: block; }

  /* サイドバーアイテム: 横並びアイコン＋テキスト（デスクトップと同じ縦リスト） */
  .msidebar-item { padding: 13px 20px; font-size: 14px; }
  .msidebar-item .mico { font-size: 17px; }

  /* 2つ目のセクションのインラインスタイルを上書き */
  .msidebar-section + .msidebar-section {
    margin-top: 8px !important; padding-top: 8px !important;
    border-top: 1px solid var(--border) !important;
  }

  /* mmain: パディング縮小 */
  .mmain { padding: 16px; }
}
.msidebar-section { margin-bottom: 6px; }
.msidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 13px; color: var(--text-mid);
  cursor: pointer; transition: all .15s; position: relative;
  border-left: 3px solid transparent; text-decoration: none;
}
.msidebar-item:hover { background: var(--cream); color: var(--navy); }
.msidebar-item.active, a.msidebar-item.active {
  background: var(--cream); color: var(--navy); font-weight: 500;
  border-left-color: var(--gold);
}
.msidebar-item .mico { font-size: 15px; width: 20px; text-align: center; }
.msidebar-badge {
  margin-left: auto; background: var(--red-soft); color: white;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Main */
.mmain { flex: 1; background: var(--cream); padding: 32px; overflow-y: auto; }
.mmain-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin-bottom: 24px; letter-spacing: .03em;
}
.mmain-title span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: 10px;
}

/* Alert card */
.alert-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--red-soft);
  border-radius: 2px; padding: 16px 20px; margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.alert-tag {
  background: var(--red-soft); color: white;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 1px; flex-shrink: 0; margin-top: 1px; letter-spacing: .05em;
}
.alert-title { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.alert-date { font-size: 11px; color: var(--text-light); }

/* Dash grid */
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.dash-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-card-title { font-size: 13px; font-weight: 500; color: var(--navy); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.dash-card-more { font-size: 11px; color: var(--gold); text-decoration: none; }
.dash-card-body { padding: 0; }

/* Notice items */
.dnotice-item { padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.dnotice-item:hover { background: var(--cream); }
.dnotice-item:last-child { border-bottom: none; }
.dnotice-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dnotice-tag { font-size: 10px; padding: 1px 6px; border-radius: 1px; letter-spacing: .04em; }
.tag-important { background: #fde8e8; color: var(--red-soft); }
.tag-normal { background: var(--cream-dark); color: var(--text-light); }
.tag-personal { background: #e8f0fa; color: #2a4a8a; }
.dnotice-date { font-size: 11px; color: var(--text-light); }
.dnotice-title { font-size: 13px; color: var(--text); line-height: 1.5; }
.dnotice-unread { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-left: auto; }

/* Quick links */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.quick-item { background: var(--white); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: background .15s; text-decoration: none; }
.quick-item:hover { background: var(--cream); }
.quick-ico { font-size: 24px; }
.quick-label { font-size: 12px; color: var(--text-mid); font-weight: 500; text-align: center; }
.quick-sub { font-size: 10px; color: var(--text-light); text-align: center; }

/* Contract info */
.contract-info { padding: 16px 20px; font-size: 12px; color: var(--text-mid); line-height: 2.1; }
.contract-row { display: flex; justify-content: space-between; }
.contract-label { color: var(--text-light); }
.contract-value { font-weight: 500; color: var(--navy); }

/* Login page */
.login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 80px, rgba(255,255,255,.02) 80px, rgba(255,255,255,.02) 81px);
}
.login-page::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,147,74,.15) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.login-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; width: 100%; max-width: 420px;
  overflow: hidden; position: relative; z-index: 1;
}
.login-card-top { background: var(--navy); padding: 32px; text-align: center; }
.login-logo { font-family: 'Shippori Mincho', serif; font-size: 20px; color: white; font-weight: 700; }
.login-logo span { display: block; font-size: 10px; color: var(--gold); letter-spacing: .2em; margin-top: 4px; font-family: 'Noto Sans JP', sans-serif; font-weight: 400; }
.login-card-body { padding: 32px; }
.login-lead { font-size: 12px; color: var(--text-light); margin-bottom: 24px; line-height: 1.8; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 11px; color: var(--text-mid); margin-bottom: 6px; display: block; font-weight: 500; }
.form-input {
  width: 100%; border: 1px solid var(--border); border-radius: 2px;
  padding: 11px 14px; font-size: 13px; color: var(--text);
  background: var(--cream); outline: none; transition: border .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.form-input:focus { border-color: var(--navy); background: white; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); cursor: pointer; }
.form-forgot { font-size: 12px; color: var(--gold); text-decoration: none; }
.login-btn {
  width: 100%; background: var(--navy); color: white;
  padding: 14px; font-size: 14px; font-weight: 500; border: none;
  border-radius: 2px; cursor: pointer; letter-spacing: .04em;
  transition: background .2s; font-family: 'Noto Sans JP', sans-serif;
}
.login-btn:hover { background: var(--navy-light); }
.login-note { margin-top: 16px; text-align: center; font-size: 11px; color: var(--text-light); line-height: 1.7; }
.login-note a { color: var(--gold); text-decoration: none; }

/* PDF viewer */
.pdf-viewer-wrap { background: #2c2c2a; border-radius: 2px; min-height: 400px; overflow: hidden; }
.pdf-viewer-wrap iframe { display: block; width: 100% !important; height: 700px; border: none; }
.pdf-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; background: rgba(255,255,255,.08); padding: 8px 16px; border-radius: 2px; }
.pdf-toolbar-btn { background: none; border: none; color: rgba(255,255,255,.7); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 2px; transition: all .15s; }
.pdf-toolbar-btn:hover { background: rgba(255,255,255,.1); color: white; }
.pdf-page-num { font-size: 12px; color: rgba(255,255,255,.6); }
.pdf-pages-wrap { display: flex; gap: 16px; align-items: center; }
.pdf-mock-page { background: white; width: 240px; border-radius: 2px; box-shadow: 0 8px 32px rgba(0,0,0,.4); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pdf-mock-h { height: 16px; background: #e0ddd6; border-radius: 2px; }
.pdf-mock-l { height: 8px; background: #ede9e2; border-radius: 2px; }
.pdf-mock-img { height: 80px; background: #ede9e2; border-radius: 2px; }

/* お問い合わせ会員 */
.member-contact-phone {
  background: var(--navy); border-radius: 2px; padding: 24px 28px; margin-bottom: 28px;
}
.member-contact-phone .label { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.member-contact-phone .number { font-family: 'Shippori Mincho', serif; font-size: 36px; font-weight: 700; color: white; text-decoration: none; display: block; letter-spacing: .05em; line-height: 1; margin-bottom: 8px; }
.member-contact-phone .hours { font-size: 12px; color: var(--gold-light); }

/* 営業時間外バナー */
.after-hours-banner {
  background: var(--red-soft); color: white;
  text-align: center; padding: 10px 20px; font-size: 13px;
}

/* スクロールフェードイン */
[data-scroll-fade] { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s ease; }
[data-scroll-fade].is-visible { opacity: 1; transform: translateY(0); }

/* WordPress ログインフォーム調整 */
.login-card #loginform { margin: 0; }
.login-card #loginform p { margin-bottom: 16px; }
.login-card #loginform label { font-size: 11px; color: var(--text-mid); margin-bottom: 6px; display: block; font-weight: 500; }
.login-card #loginform input[type="text"],
.login-card #loginform input[type="password"] { width: 100%; border: 1px solid var(--border); border-radius: 2px; padding: 11px 14px; font-size: 13px; color: var(--text); background: var(--cream); outline: none; font-family: 'Noto Sans JP', sans-serif; }
.login-card #loginform #wp-submit { width: 100%; background: var(--navy); color: white; padding: 14px; font-size: 14px; font-weight: 500; border: none; border-radius: 2px; cursor: pointer; letter-spacing: .04em; font-family: 'Noto Sans JP', sans-serif; margin-top: 8px; }
.login-card #loginform .forgetmenot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); }

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.svc-detail-wrap { max-width: 800px; margin: 0 auto; }
.svc-detail-lead {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream); border-left: 4px solid var(--gold);
  padding: 24px 28px; margin-bottom: 40px; border-radius: 0 2px 2px 0;
}
.svc-detail-num { font-family: 'Shippori Mincho', serif; font-size: 28px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.svc-detail-icon { font-size: 28px; flex-shrink: 0; }
.svc-detail-lead p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin: 0; }
.svc-detail-body { margin-bottom: 40px; line-height: 1.9; color: var(--text-mid); }
.svc-detail-body h3 { font-family: 'Shippori Mincho', serif; font-size: 16px; font-weight: 600; color: var(--navy); margin: 28px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.svc-detail-body ul, .svc-detail-body p { margin-bottom: 12px; }
.svc-detail-body ul { padding-left: 20px; }
.svc-detail-body li { margin-bottom: 6px; font-size: 14px; }
.svc-detail-flow { background: var(--cream-dark); border-radius: 2px; padding: 28px 32px; margin-bottom: 40px; }
.svc-detail-flow h3 { font-family: 'Shippori Mincho', serif; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.svc-flow-list { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: flow; flex-wrap: wrap; }
.svc-flow-list li {
  counter-increment: flow; flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; padding: 0 8px; font-size: 12px; color: var(--text-mid);
}
.svc-flow-list li::before {
  content: counter(flow); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: white; font-size: 13px; font-weight: 700;
  margin-bottom: 8px; flex-shrink: 0;
}
.svc-flow-list li:not(:last-child)::after {
  content: '→'; position: absolute; right: -8px; top: 7px;
  color: var(--gold); font-size: 14px;
}
.svc-detail-cta { background: var(--navy); color: white; border-radius: 2px; padding: 32px; text-align: center; }
.svc-detail-cta p { font-size: 15px; margin-bottom: 0; }

/* ============================================
   PRICE PAGE
   ============================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.price-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
}
.price-card--featured {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(28,43,74,.12);
}
.price-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 700; padding: 3px 16px;
  border-radius: 10px; letter-spacing: .05em; white-space: nowrap;
}
.price-card__name {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.price-card__sub { font-size: 12px; color: var(--text-light); margin-bottom: 20px; }
.price-card__amount { font-size: 14px; color: var(--text-mid); margin-bottom: 24px; }
.price-card__amount span {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px; font-weight: 700; color: var(--navy);
}
.price-card__amount small { font-size: 12px; color: var(--text-light); }
.price-card__list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.price-card__list li { font-size: 12px; color: var(--text-mid); }
.price-card__list--disabled { color: var(--text-light); }
.price-note { font-size: 12px; color: var(--text-light); margin-top: 20px; line-height: 1.8; }

.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spot-card { background: var(--white); border: 1px solid var(--border); border-radius: 2px; padding: 28px 24px; text-align: center; }
.spot-card__title { font-family: 'Shippori Mincho', serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.spot-card__price { font-family: 'Shippori Mincho', serif; font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.spot-card__price small { font-size: 13px; color: var(--text-light); }
.spot-card__desc { font-size: 12px; color: var(--text-light); line-height: 1.8; }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-category { margin-bottom: 40px; }
.faq-category__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px; font-weight: 600; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 0;
  border-bottom: 2px solid var(--navy);
}
.faq-list { border: 1px solid var(--border); border-top: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item__q {
  width: 100%; background: var(--white); border: none;
  padding: 18px 20px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; cursor: pointer; text-align: left;
  font-size: 13px; color: var(--text); font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif; transition: background .15s;
}
.faq-item__q:hover { background: var(--cream); }
.faq-item__q[aria-expanded="true"] { background: var(--cream); }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); color: var(--gold); }
.faq-item__icon { font-size: 18px; color: var(--text-light); flex-shrink: 0; transition: transform .2s, color .2s; }
.faq-item__a { background: var(--cream); padding: 16px 20px; border-top: 1px solid var(--border); }
.faq-item__a p { font-size: 13px; color: var(--text-mid); line-height: 1.9; margin: 0; }

/* ============================================
   CONTACT PAGE (PUBLIC)
   ============================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.contact-info-card { background: var(--navy); border-radius: 2px; padding: 24px; margin-bottom: 16px; }
.contact-info-card__label {
  font-size: 10px; color: var(--gold); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 10px;
}
.contact-info-card__tel {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px; font-weight: 700; color: white;
  text-decoration: none; display: block; letter-spacing: .05em; line-height: 1; margin-bottom: 8px;
}
.contact-info-card__hours { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.9; }
.contact-free-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.contact-free-list li { font-size: 12px; color: rgba(255,255,255,.75); }

/* CF7 layout */
.cf7-row { margin-bottom: 20px; }
.cf7-row label { display: block; font-size: 13px; color: var(--text-mid); margin-bottom: 6px; }
.cf7-row abbr { color: var(--red-soft); text-decoration: none; margin-left: 4px; }
.cf7-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7-list-item { margin: 0 !important; }
.wpcf7-list-item label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wpcf7-not-valid-tip { font-size: 11px; color: var(--red-soft); margin-top: 4px; display: block; }
.wpcf7-response-output { margin-top: 20px !important; padding: 12px 16px !important; border-radius: 2px !important; font-size: 13px !important; }
.wpcf7-mail-sent-ok { background: #e8f5e8; border-color: #2a6a2a !important; color: #2a6a2a !important; }
.wpcf7-mail-sent-ng, .wpcf7-validation-errors { background: #fdf0f0; border-color: var(--red-soft) !important; color: var(--red-soft) !important; }
@media (max-width: 600px) { .cf7-row--2col { grid-template-columns: 1fr; } }

/* CF7 form reset */
.wpcf7 { margin: 0 !important; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%; border: 1px solid var(--border); border-radius: 2px;
  padding: 11px 14px; font-size: 13px; color: var(--text);
  background: var(--cream); outline: none; transition: border .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--navy); background: white; }
.wpcf7 input[type="submit"] {
  background: var(--navy); color: white;
  padding: 13px 40px; font-size: 14px; font-weight: 500;
  border: none; border-radius: 2px; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: .04em; transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--navy-light); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.about-table th, .about-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; text-align: left; vertical-align: top;
}
.about-table th { background: var(--cream); color: var(--text-mid); font-weight: 500; width: 160px; white-space: nowrap; }
.about-table td { color: var(--text); }
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: none; }

.access-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.access-dl dt { font-size: 11px; color: var(--text-light); font-weight: 500; margin-bottom: 4px; margin-top: 20px; }
.access-dl dt:first-child { margin-top: 0; }
.access-dl dd { font-size: 13px; color: var(--text); line-height: 1.8; margin: 0; }

/* ============================================
   NEWS ARCHIVE
   ============================================ */
.news-filter-btn {
  padding: 7px 16px; border: 1px solid var(--border);
  background: var(--white); border-radius: 2px; font-size: 12px;
  color: var(--text-mid); cursor: pointer; text-decoration: none;
  transition: all .15s; font-family: 'Noto Sans JP', sans-serif; display: inline-block;
}
.news-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.news-filter-btn.active { background: var(--navy); border-color: var(--navy); color: white; }

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.single-layout { max-width: 800px; }
.single-article__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.single-article__meta time { font-size: 12px; color: var(--text-light); }
.single-article__content { font-size: 14px; line-height: 2; color: var(--text); margin-bottom: 48px; }
.single-article__content h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px; color: var(--navy); margin: 40px 0 16px;
  padding-left: 14px; border-left: 3px solid var(--gold);
}
.single-article__content h3 { font-size: 16px; color: var(--navy); margin: 28px 0 12px; font-weight: 500; }
.single-article__content p { margin-bottom: 16px; }
.single-article__content ul, .single-article__content ol { padding-left: 24px; margin-bottom: 16px; }
.single-article__nav { border-top: 1px solid var(--border); padding-top: 24px; }
.single-article__nav .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.single-article__nav .nav-links a { font-size: 13px; color: var(--navy); text-decoration: none; font-weight: 500; }
.single-article__nav .nav-links a:hover { color: var(--gold); }

/* ============================================
   AFTER HOURS BANNER (member portal)
   ============================================ */
.after-hours-banner {
  background: #fdf4e3; border: 1px solid #f0d080;
  border-left: 4px solid var(--gold); border-radius: 2px;
  padding: 12px 18px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: #7a5a10; line-height: 1.75;
}
.after-hours-banner .banner-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.after-hours-banner strong { display: block; margin-bottom: 2px; font-size: 13px; }
.after-hours-banner .banner-close {
  margin-left: auto; background: none; border: none;
  font-size: 16px; cursor: pointer; color: #aaa; flex-shrink: 0; line-height: 1; padding: 0;
}

/* ============================================
   MEMBER DOWNLOADS PAGE
   ============================================ */
.downloads-filter { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 14px; border: 1px solid var(--border);
  background: var(--white); border-radius: 2px; font-size: 12px;
  color: var(--text-mid); cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: all .15s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: white; }

.downloads-table { width: 100%; border-collapse: collapse; }
.downloads-table thead tr { background: var(--cream); border-bottom: 2px solid var(--border); }
.downloads-table th { padding: 12px 16px; text-align: left; font-size: 12px; color: var(--text-mid); font-weight: 500; }
.downloads-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); vertical-align: middle; }
.downloads-table tbody tr:last-child td { border-bottom: none; }
.btn-download {
  background: var(--navy); color: white; border: none;
  padding: 6px 14px; border-radius: 2px; font-size: 11px;
  cursor: pointer; text-decoration: none; display: inline-block;
  font-family: 'Noto Sans JP', sans-serif; transition: background .2s;
}
.btn-download:hover { background: var(--navy-light); }

/* ============================================
   MEMBER NOTICE PAGE
   ============================================ */
.notice-tabs { display: flex; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.notice-tabs button {
  flex: 1; padding: 11px 16px; border: none;
  background: var(--white); font-size: 13px; color: var(--text-mid);
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  border-right: 1px solid var(--border); transition: all .15s;
}
.notice-tabs button:last-child { border-right: none; }
.notice-tabs button[aria-selected="true"] { background: var(--navy); color: white; font-weight: 500; }

/* ============================================
   LIBRARY / PDF PAGE
   ============================================ */
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pdf-breadcrumb { font-size: 11px; color: var(--text-light); }
.pdf-breadcrumb a { color: var(--gold); text-decoration: none; }

/* ============================================
   VIDEOS PAGE
   ============================================ */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-player-wrap { margin-bottom: 24px; }
.video-player-wrap__responsive {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  background: #000; border-radius: 2px;
}
.video-player-wrap__responsive iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-player-wrap h2 { font-family: 'Shippori Mincho', serif; font-size: 20px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }

/* ============================================
   MYPAGE
   ============================================ */
.mypage-section { background: var(--white); border: 1px solid var(--border); border-radius: 2px; padding: 24px 28px; margin-bottom: 16px; }
.mypage-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px; font-weight: 600; color: var(--navy);
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.mypage-info { display: grid; grid-template-columns: 140px 1fr; }
.mypage-info dt { font-size: 11px; color: var(--text-light); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mypage-info dd { font-size: 13px; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
.btn-logout {
  display: inline-flex; background: none; border: 1px solid var(--border);
  padding: 10px 24px; border-radius: 2px; font-size: 13px;
  color: var(--text-mid); cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-logout:hover { border-color: var(--red-soft); color: var(--red-soft); }

/* ============================================
   MEMBER CONTACT — PHONE CARD
   ============================================ */
.member-phone-card {
  background: var(--navy); border-radius: 4px; padding: 28px 32px;
  margin-bottom: 20px; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px; position: relative; overflow: hidden;
}
.member-phone-card::after {
  content: ''; position: absolute; right: -20px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(184,147,74,.1); pointer-events: none;
}
.member-phone-card__label { font-size: 11px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 10px; }
.member-phone-card__number {
  font-family: 'Shippori Mincho', serif; font-size: 32px; font-weight: 700;
  color: white; letter-spacing: .06em; margin-bottom: 8px;
  text-decoration: none; display: block; line-height: 1;
}
.member-phone-card__hours { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.9; }
.member-phone-card__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 13px 24px; border-radius: 2px; font-size: 13px; font-weight: 700;
  text-decoration: none; letter-spacing: .04em; white-space: nowrap;
  transition: background .2s; position: relative; z-index: 1;
}
.member-phone-card__btn:hover { background: var(--gold-light); }

/* BACK LINK */
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--navy); text-decoration: none;
  margin-top: 16px; font-weight: 500; transition: color .15s;
}
.btn-back:hover { color: var(--gold); }

/* CONTRACT INFO — works for div.contract-info > dl and for dl.contract-info */
.contract-info { padding: 16px 20px; font-size: 12px; color: var(--text-mid); line-height: 2.1; }
.contract-info dl, dl.contract-info { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 0; }
.contract-info dt, dl.contract-info dt { color: var(--text-light); }
.contract-info dd, dl.contract-info dd { margin: 0; font-weight: 500; color: var(--navy); }

/* ── カテゴリセクション共通（書式DL / PDF / 動画） ── */
.dl-section,
.content-section { margin-bottom: 36px; }

.dl-section-header,
.content-section-header {
  display: flex; align-items: baseline; gap: 10px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px; margin-bottom: 14px;
}
.dl-section-title,
.content-section-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.dl-section-count,
.content-section-count { font-size: 11px; color: var(--text-light); }

/* ── ライブラリ カード（PDF） ── */
.library-card {
  display: flex; flex-direction: column;
  padding: 20px; transition: box-shadow .15s;
}
.library-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.library-card__icon { font-size: 28px; margin-bottom: 8px; }
.library-card__chapter { font-size: 10px; color: var(--text-light); margin-bottom: 4px; }
.library-card__title { font-size: 13px; font-weight: 500; color: var(--navy); line-height: 1.5; flex: 1; }
.library-card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.library-card__btn {
  display: inline-block; padding: 5px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: opacity .15s; white-space: nowrap;
}
.library-card__btn--view { background: var(--navy); color: var(--white); }
.library-card__btn--view:hover { opacity: .85; }
.library-card__btn--dl { background: var(--cream-dark); color: var(--navy); border: 1px solid var(--border); }
.library-card__btn--dl:hover { background: var(--border); }

/* ── 動画カード ── */
.video-card { display: block; text-decoration: none; overflow: hidden; transition: box-shadow .15s; padding: 0; }
.video-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.video-card__thumb {
  background: var(--navy); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.video-card__play { font-size: 36px; opacity: .6; position: relative; z-index: 1; }
.video-card__body { padding: 14px 16px; }
.video-card__title { font-size: 13px; font-weight: 500; color: var(--navy); line-height: 1.4; }
.video-card__date { font-size: 11px; color: var(--text-light); margin-top: 6px; }

/* ── チャット（会員ポータル） ── */
.mmain--chat {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  height: calc(100vh - 60px); /* member-header分 */
  overflow: hidden;
}
.chat-header-bar {
  padding: 14px 24px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.chat-header-bar__title { font-size: 15px; font-weight: 700; color: var(--navy); }
.chat-header-bar__note  { font-size: 11px; color: var(--text-light); margin-top: 3px; }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--cream);
}
.chat-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1;
  text-align: center; color: var(--text-light); font-size: 13px; line-height: 1.8;
}
.chat-empty__icon { font-size: 40px; margin-bottom: 12px; }

/* バブル */
.chat-bubble { max-width: 72%; display: flex; flex-direction: column; }
.chat-bubble--staff { align-self: flex-start; }
.chat-bubble--mine  { align-self: flex-end; }

.chat-bubble__sender {
  font-size: 11px; color: var(--text-light);
  margin-bottom: 3px; padding-left: 4px;
}
.chat-bubble__body {
  padding: 11px 16px; border-radius: 14px;
  font-size: 13px; line-height: 1.7; word-break: break-word;
}
.chat-bubble--staff .chat-bubble__body {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.chat-bubble--mine .chat-bubble__body {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 3px;
}
.chat-bubble__time {
  font-size: 10px; color: var(--text-light);
  margin-top: 4px;
}
.chat-bubble--mine .chat-bubble__time { text-align: right; }

/* 入力エリア */
.chat-input-area {
  flex-shrink: 0; padding: 14px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.chat-input-area textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
  resize: none; font-family: inherit;
  transition: border-color .15s;
}
.chat-input-area textarea:focus {
  outline: none; border-color: var(--navy);
}
.chat-input-area__actions {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 12px; margin-top: 8px;
}
.chat-input-area__hint { font-size: 11px; color: var(--text-light); }

/* お知らせ: ボタン型アイテム */
.dnotice-item--btn {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; appearance: none; -webkit-appearance: none;
  font-family: inherit; font-size: inherit; color: inherit;
}
.dnotice-item--btn:hover .dnotice-title { color: var(--gold); }

/* お知らせ詳細モーダル */
.notice-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.notice-modal-overlay[hidden] { display: none; }
.notice-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  width: 100%; max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.notice-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-light); line-height: 1;
  padding: 4px 8px; border-radius: 4px;
}
.notice-modal-close:hover { background: var(--cream-dark); color: var(--navy); }
.notice-modal-date {
  font-size: 12px; color: var(--text-light); margin-bottom: 8px;
  display: flex; align-items: center;
}
.notice-modal-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px; font-weight: 600; color: var(--navy);
  margin: 0 0 20px; line-height: 1.5;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.notice-modal-body {
  font-size: 14px; line-height: 1.9; color: var(--text);
}
.notice-modal-body p { margin: 0 0 1em; }
.notice-modal-body a { color: var(--gold); }

/* 書式ダウンロード: アクションボタン群 */
.dl-actions { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-preview {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; font-weight: 600; border-radius: 4px; text-decoration: none;
  background: var(--cream-dark); color: var(--navy);
  border: 1px solid var(--border); white-space: nowrap;
  transition: background .15s;
}
.btn-preview:hover { background: var(--border); }

/* チャット: ファイル添付エリア */
.chat-input-area__file {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.chat-attach-btn {
  cursor: pointer; font-size: 12px; color: var(--text-mid);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); white-space: nowrap; transition: background .15s;
}
.chat-attach-btn:hover { background: var(--cream-dark); }
.chat-file-label { font-size: 11px; color: var(--text-light); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-clear {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 14px; padding: 0 4px; line-height: 1;
}
.chat-file-clear:hover { color: var(--red-soft); }

/* チャット: ファイル添付バブル */
.chat-bubble__file { margin-top: 5px; font-size: 12px; }
.chat-bubble__file a { color: var(--gold); text-decoration: none; }
.chat-bubble__file a:hover { text-decoration: underline; }
.chat-bubble--mine .chat-bubble__file a { color: var(--gold-light); }

/* サイドバーバッジ */
.msidebar-badge {
  background: #c62828; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  margin-left: auto; flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-title { font-size: 28px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { flex: 1; text-align: center; max-width: 200px; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
  .member-phone-card { grid-template-columns: 1fr; }
  .member-phone-card__btn { justify-self: start; }
}
@media (max-width: 768px) {
  /* ヘッダー: 2行レイアウト */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0 16px;
    gap: 0;
  }
  /* 1行目: ロゴ + ハンバーガー */
  .site-logo {
    flex: 1; order: 1;
    height: 56px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .logo-ja { font-size: 15px; }
  .logo-en { display: none; }
  .site-header__toggle { display: flex; order: 2; }
  /* デスクトップナビを非表示 */
  .header-nav { display: none; }
  /* 2行目: ボタン群 */
  .header-actions {
    width: 100%; margin-left: 0; order: 3;
    display: flex; align-items: center;
    border-top: 1px solid var(--border);
    padding: 8px 0;
    gap: 8px;
  }
  .header-actions .member-link {
    flex: 1; text-align: center; padding: 9px 8px; font-size: 11px;
  }
  .header-actions .nav-cta {
    flex: 1; text-align: center; padding: 10px 8px; font-size: 12px;
  }
}

@media (max-width: 540px) {
  .service-grid { grid-template-columns: 1fr; }
  /* msidebar は下の768pxクエリで対応するため削除 */
  .footer-inner { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; }
}
