@charset "UTF-8";
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: #1f2937;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

@supports (min-height: 100dvh) {
  html,
  body {
    min-height: 100dvh;
  }
}
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.site-main,
.member-main {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}

/* 共通UI */
a {
  color: #2f5f8f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.btn--primary {
  background: #2f5f8f;
  color: #fff;
  border-color: #2f5f8f;
}
.btn--login {
  background: #fff;
}
.btn--logout {
  background: #fff;
}

.site-header {
  width: 100%;
}

.site-header--public {
  background: #e9e7ec;
}

.site-header--member {
  background: #e7a6b6;
}

.header-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
}

.gnav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-actions .btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.site-footer {
  width: 100%;
  background: #476c9b;
  color: #fff;
}

.footer-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
}

.fnav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo--footer {
  color: #fff;
}

.copy {
  opacity: 0.9;
}

.public-content {
  height: 100%;
  background: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.public-content .inner p {
  margin: 0;
}

.login-section {
  min-height: 100vh;
  background: #fff1c1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.login-inner {
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
          box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.form-block input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.form-block .btn {
  margin-top: 6px;
}

.member-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: calc(100vh - 60px);
}

.member-sidebar {
  background: #6f5d7e;
  color: #fff;
  padding: 16px;
}

.member-content.is-front {
  background: #f7f8fa;
  min-height: 100vh;
}
.member-content.is-content {
  background: #fff7e6;
  min-height: 100vh;
}
.member-content .inner {
  background: transparent;
}

/* 会員プロフィールカード */
.member-profile-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.mpc-title {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.mpc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mpc-grid dt {
  font-weight: 600;
}
.mpc-grid .full {
  grid-column: 1/-1;
}

/* 左メニュー（アコーディオン） */
.member-nav {
  color: #fff;
}

.member-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acc-item + .acc-item {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.acc-toggle {
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.acc-panel {
  padding: 6px 6px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.doc-list {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
}

.doc-list li a {
  display: block;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.doc-list li a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* 会員ドキュメント */
.member-doc {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
}

.member-doc__title {
  margin-top: 0;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .member-layout {
    grid-template-columns: 1fr;
  }
  .member-sidebar {
    border-right: none;
  }
  .mpc-grid {
    grid-template-columns: 1fr;
  }
}
/* 固定ホームリンク */
.member-top {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.member-top .doc-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
}

.member-top .doc-link:hover {
  background: rgba(255, 255, 255, 0.22);
}