/* 会員向け組織情報 共通スタイル */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #263238;
}

/* ---- ログイン ---- */
.login-body {
  min-height: 100vh;
  background: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.login-box {
  background: #fff;
  padding: 28px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  width: 100%;
  max-width: 384px;      /* 中身320px＋左右の余白。狭い画面では画面の幅に合わせて縮む（N-14） */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-box h1 { font-size: 18px; margin: 0 0 4px; }
.login-note { font-size: 13px; color: #546e7a; margin: 0 0 8px; }
/* 手続きの大事な説明の文（「LINEで確認」画面・ひも付けコード入力画面）。薄い小さい字の login-note ではなく、本文の大きさと色
   （入力欄と同じ 16px、色は html, body の #263238） */
.login-lead { font-size: 16px; color: #263238; line-height: 1.6; margin: 0 0 8px; }
.login-error { font-size: 13px; color: #c62828; background: #ffebee; padding: 6px 8px; border-radius: 4px; margin: 0 0 6px; }
.login-notice { font-size: 13px; color: #0d47a1; background: #e3f2fd; padding: 6px 8px; border-radius: 4px; margin: 0 0 6px; }
.login-box label { font-size: 12px; font-weight: 600; color: #37474f; margin-top: 6px; }
.login-box input { font-size: 16px;  /* 16px未満だと iPhone の Safari が入力時に画面を拡大する */
  padding: 8px 10px; border: 1px solid #b0bec5; border-radius: 4px; }
.login-box button {
  margin-top: 14px; padding: 10px; font-size: 15px; font-weight: 600;
  border: none; border-radius: 4px; background: #0288d1; color: #fff; cursor: pointer;
}

/* ---- 共通ヘッダー ---- */
/* 狭い画面（スマホ）では折り返して2段以上になり、すべてのリンクとボタンが押せる */
.page-body { background: #eceff1; min-height: 100vh; }
.site-header {
  min-height: 44px;
  background: #263238;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 6px 14px;
  box-sizing: border-box;
}
.site-title { color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-nav a { color: #b3e5fc; font-size: 13px; text-decoration: none; white-space: nowrap; padding: 4px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-user { margin-left: auto; font-size: 12px; color: #cfd8dc; white-space: nowrap; }
.logout-form { margin: 0; }
.logout-form button {
  padding: 6px 10px; font-size: 12px; border: none; border-radius: 4px;
  background: #90a4ae; color: #102027; cursor: pointer; white-space: nowrap;
}
/* スマホ幅：ログアウトを指で押せる大きさ（高さ44px以上）と濃さに。確認コード画面の『最初からやり直す』もボタン状に */
@media (max-width: 700px) {
  .login-box button { min-height: 44px; }
  .logout-form button {
    min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600;
    background: #0288d1; color: #fff;
  }
  .login-box .restart-link {
    display: block; box-sizing: border-box; min-height: 44px; line-height: 44px; text-align: center;
    border: 1px solid #0288d1; border-radius: 4px; font-size: 15px; font-weight: 600; color: #0277bd; text-decoration: none;
  }
}

/* ---- 透かし（会員名と会員ID）。見づらくならない薄さで、操作のじゃまをしない ----
   濃さは --wm-alpha（0〜1。0.07 で前回の薄さ、0.11 が今の設定）、文字の大きさは --wm-size で変える */
:root {
  --wm-alpha: 0.11;
  --wm-size: 14px;
}
#watermark {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 50;
  user-select: none;
}
.wm-item {
  position: absolute; white-space: nowrap; font-size: var(--wm-size);
  color: rgba(38, 50, 56, var(--wm-alpha));
  transform: rotate(-24deg); transform-origin: left top;
}
@media print {
  .wm-item { color: rgba(38, 50, 56, calc(var(--wm-alpha) + 0.05)); }
}

/* ---- 共通の小さな注意書き ---- */
.unit-note { font-size: 12px; color: #546e7a; }

@media (max-width: 700px) {
  .site-user { margin-left: 0; }
}

/* ---- メニュー ---- */
.menu-main { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
.menu-main h1 { font-size: 20px; margin: 0 0 6px; }
.menu-note { font-size: 13px; color: #546e7a; margin: 0 0 18px; }
.menu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.menu-card {
  background: #fff; border-radius: 8px; padding: 18px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15); display: flex; flex-direction: column; gap: 8px;
}
.menu-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.menu-card-title { font-size: 16px; font-weight: 700; color: #0277bd; }
.menu-card-desc { font-size: 13px; color: #455a64; line-height: 1.5; }
.menu-foot { font-size: 12px; color: #78909c; margin-top: 24px; }
