@charset "UTF-8";
:root {
  --ink: #26323a;
  --muted: #6d7880;
  --line: #dce2e5;
  --paper: #f5f7f7;
  --accent: #315b68;
  --accent-dark: #244650;
  --white: #fff;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
.page-shell { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 28px; }
.login-shell { width: min(480px, calc(100% - 36px)); padding-top: 7vh; }
.site-brand { text-align: center; margin-bottom: 30px; }
.brand-en { color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.brand-rule { width: 54px; height: 1px; background: #9aadb3; margin: 17px auto; }
.site-brand h1, .menu-header h1 { margin: 4px 0; font-size: 27px; letter-spacing: .12em; font-weight: 500; }
.site-brand p { margin: 0; color: var(--muted); font-size: 13px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: 0 8px 24px rgba(28, 49, 57, .045); }
.login-panel h2 { margin: 0 0 22px; text-align: center; font-size: 19px; font-weight: 600; }
label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 600; }
input[type="text"], input[type="password"] {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #cbd4d8; border-radius: 4px; background: #fff; color: var(--ink); font: inherit;
}
input:focus { outline: 2px solid rgba(49, 91, 104, .2); border-color: var(--accent); }
.primary-button {
  width: 100%; min-height: 48px; margin-top: 25px; border: 0; border-radius: 4px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.primary-button:hover { background: var(--accent-dark); }
.help-text { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.message { padding: 10px 12px; border-radius: 4px; font-size: 13px; }
.error { color: #8b2f2f; background: #fff1f0; border: 1px solid #f0d0cd; }
.menu-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.menu-header h1 { font-size: 22px; }
.logout-button { border: 1px solid #bdc9cd; border-radius: 4px; padding: 8px 14px; color: var(--ink); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.logout-button:hover { background: #eaf0f1; }
.welcome { padding: 34px 0 22px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.welcome h2 { margin: 0; font-size: 25px; font-weight: 600; }
.welcome p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.menu-card {
  position: relative; display: flex; min-height: 158px; flex-direction: column; align-items: flex-start;
  padding: 22px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 7px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.menu-card:hover { border-color: #9aafb5; transform: translateY(-2px); box-shadow: 0 7px 18px rgba(28,49,57,.06); }
.menu-icon { color: var(--accent); font-size: 27px; line-height: 1.2; margin-bottom: 13px; }
.menu-title { font-size: 16px; font-weight: 600; }
.menu-description { margin-top: 4px; color: var(--muted); font-size: 11px; }
.menu-arrow { position: absolute; right: 18px; bottom: 12px; color: #82949a; font-size: 22px; }
.site-footer { margin-top: 42px; color: #879398; text-align: center; font-size: 11px; }
@media (max-width: 680px) {
  .page-shell { padding-top: 26px; }
  .login-shell { padding-top: 6vh; }
  .menu-header { align-items: flex-start; }
  .menu-header h1 { font-size: 18px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-card { min-height: 145px; padding: 17px; }
  .menu-description { font-size: 10px; }
}
@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 118px; }
}

.success { color: #245b3a; background: #edf8f0; border: 1px solid #cce8d3; }
.account-link { margin: 24px 0 0; text-align: right; font-size: 12px; }
.account-link a, .help-text a { color: var(--accent); }

/* -------------------------------------------------
   会員ページ共通：FAQ・お問い合わせ
------------------------------------------------- */
.text-link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}
.text-link-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-text p { margin: 7px 0; }
.help-text a { font-weight: 600; }
.member-content-shell { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 32px; }
.member-page-header { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.member-page-header .brand-en { margin-bottom: 8px; }
.member-page-header h1 { margin: 0; font-size: 23px; font-weight: 600; }
.member-page-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.member-page-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; font-size: 12px; }
.member-page-nav a { color: var(--accent); text-decoration: none; }
.member-page-nav a:hover { text-decoration: underline; }
.member-panel { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.member-panel h2 { margin: 0 0 18px; font-size: 18px; }
.member-panel h3 { margin: 26px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 16px; }
.member-panel details { padding: 14px 2px; border-bottom: 1px solid #edf0f1; }
.member-panel summary { cursor: pointer; font-weight: 600; }
.member-panel details p { margin: 10px 0 0; color: #4d5960; font-size: 14px; }
.member-notice { margin: 18px 0; padding: 14px 16px; background: #eef3f4; border-left: 3px solid var(--accent); font-size: 13px; }
.member-form label { margin-top: 18px; }
.member-form input[type="text"],
.member-form input[type="email"],
.member-form select,
.member-form textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #cbd4d8; border-radius: 4px; background: #fff;
  color: var(--ink); font: inherit;
}
.member-form textarea { min-height: 180px; resize: vertical; }
.member-form input:focus,
.member-form select:focus,
.member-form textarea:focus { outline: 2px solid rgba(49,91,104,.2); border-color: var(--accent); }
.required-mark { color: #a33; font-size: 11px; font-weight: 500; }
.form-help { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.form-actions { margin-top: 24px; }
.form-actions .primary-button { margin-top: 0; }
.secondary-link-button { display: inline-block; margin: 12px 0 0; color: var(--accent); font-size: 13px; }
.confirm-list { margin: 0; }
.confirm-list dt { margin-top: 16px; font-weight: 600; font-size: 13px; }
.confirm-list dd { margin: 5px 0 0; padding: 11px 12px; background: #f5f7f7; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; }
.member-footer a { color: var(--accent); }
@media (max-width: 600px) {
  .member-content-shell { padding-top: 24px; }
  .member-panel { padding: 20px 16px; }
  .member-page-header h1 { font-size: 20px; }
}

/* ログイン状態表示・パスワード表示切替 */
.login-state { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.login-account {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.password-input-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.password-input-wrap input { flex: 1; min-width: 0; }
.password-toggle { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }


/* ログイン状態表示・パスワード表示切替 */
.login-state {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.password-input-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

.password-toggle {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

/* パスワード再設定フォーム */
input[type="email"] {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd4d8;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

/* 既存パスワード変更画面の表示切り替え */
.password-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.password-field input {
    flex: 1 1 auto;
    min-width: 0;
}

.toggle-password {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

/* パスワード再設定画面：ログイン画面と文字の基準を統一 */
.login-panel .reset-intro {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 400;
}

/* 共通リンク表現：通常・訪問済みで色を変えない */
.site-link,
.site-link:visited {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

.site-link:hover,
.site-link:focus {
    color: var(--accent-dark);
}

.site-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.external-link-mark {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    vertical-align: 2px;
}

/* パスワード再設定結果画面：ログイン画面の文字・リンク基準に統一 */
.reset-message {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.reset-return {
    margin-top: 18px;
}

/* メニュー画面：ログイン画面と同じ幅・ブランドヘッダー・パネルを使用 */
.menu-shell {
  width: min(480px, calc(100% - 36px));
  padding-top: 7vh;
}
.site-brand .access-notice {
  margin: 2px 0 0;
  color: #c33;
  font-size: 11px;
  font-weight: 400;
}
.menu-logout-row {
  display: flex;
  justify-content: flex-end;
  margin: -12px 0 10px;
}
.menu-panel {
  padding: 26px 24px;
}
.menu-panel .welcome {
  padding: 0 0 20px;
  text-align: center;
}
.menu-panel .welcome h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.menu-panel .welcome p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.menu-card {
  min-height: 142px;
  padding: 17px;
}
.menu-icon {
  margin-bottom: 9px;
}
.menu-title {
  font-size: 14px;
}
.menu-description {
  font-size: 11px;
}
.menu-panel .account-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
}
.menu-panel .text-link-row {
  margin-top: 14px;
}
.menu-shell .site-footer {
  margin-top: 30px;
}
@media (max-width: 480px) {
  .menu-shell {
    padding-top: 6vh;
  }
  .menu-panel {
    padding: 22px 16px;
  }
  .menu-grid {
    gap: 9px;
  }
  .menu-card {
    min-height: 132px;
    padding: 14px;
  }
}
