:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e6e6e6;
  --card:#fff;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --radius:16px;
  --btn:#111;
  --btnText:#fff;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.container{ max-width: 980px; margin: 0 auto; padding: 16px; }
/* ✅ container を「必ず中央」に固定（左右ズレ対策） */
.container{
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Header
   ========================================================= */
.header{
  position: sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:50;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 16px;
  gap:12px;
  max-width: 980px;
  margin: 0 auto;
}

.brand{
  display:flex;
  gap:10px;
  align-items:baseline;
  text-decoration:none;
  color:inherit;
}
.brand__title{ font-weight:800; letter-spacing:.2px; }
.brand__sub{ color:var(--muted); font-size:12px; }

/* =========================================================
   Nav
   ========================================================= */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
}

/* ✅ ボタンじゃないリンクだけに適用（btnの色を壊さない） */
.nav a:not(.btn){
  color:inherit;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
}
.nav a:not(.btn):hover{ background:#f6f6f6; }

.userchip{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}

.inline{ display:inline; margin:0; }
.linklike{
  background:none;
  border:none;
  color:inherit;
  cursor:pointer;
  padding:8px 10px;
  border-radius:10px;
  font:inherit;
}
.linklike:hover{ background:#f6f6f6; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--btn);
  color:var(--btnText);
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #111;
  font-weight:700;
}

/* Ghost base（白背景） */
.btn--ghost{
  background:#fff;
  color:#111;
  border:1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}

/* hover/active/focusでも黒文字のまま */
.btn--ghost:hover,
.btn--ghost:active,
.btn--ghost:focus-visible{
  background:#f7f7f7;
  color:#111;
  border-color:#111;
}

/* =========================================================
   Hamburger (SP)
   ========================================================= */
.hamburger{
  display:none; /* PC/Tablet hidden */
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:10px;
  cursor:pointer;

  /* ✅ スマホでタップが確実に届くように */
  position: relative;
  z-index: 200;
  touch-action: manipulation;
}
.hamburger span{
  display:block;
  height:2px;
  background:#111;
  margin:6px 0;
  border-radius:2px;
}

/* =========================================================
   SP menu
   ========================================================= */
.nav--sp{
  display:none; /* hidden時は常に隠す */
  flex-direction:column;
  align-items:stretch;
  padding: 10px 16px 16px;
  border-top:1px solid var(--line);

  /* ✅ かぶり対策 */
  position: relative;
  z-index: 150;
}
.nav--sp a{ padding:12px; }

/* ✅ hidden が外れた時だけ表示（JSで開閉） */
.nav--sp:not([hidden]){
  display:flex;
}

.spuser{
  padding:10px 12px;
  color:var(--muted);
  font-size:12px;
}

/* =========================================================
   Cards / misc
   ========================================================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 16px 0;
}
.card--sub{ box-shadow:none; }

.grid{ display:grid; grid-template-columns: 1fr; gap:12px; }

h1{ margin:0 0 10px; font-size:20px; }
h2{ margin:0 0 8px; font-size:16px; }
p{ margin: 0 0 10px; line-height:1.7; }
.muted{ color:var(--muted); }

.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.flash{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  margin:12px 0;
  background:#fafafa;
}
.flash--success{ border-color:#b7f0c2; background:#f2fff5; }
.flash--error{ border-color:#ffb4b4; background:#fff5f5; }

@media (min-width: 860px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ✅ Smartphone only (<= 767px) */
@media (max-width: 767px){
  .nav--pc{ display:none; }
  .hamburger{ display:inline-block; }
}


.input{
width:100%;
border:1px solid var(--line);
border-radius:12px;
padding:10px 12px;
font:inherit;
background:#fff;
}
textarea.input{ line-height:1.6; }
select.input{ height:44px; }
.input:focus{ outline:2px solid rgba(0,0,0,.12); outline-offset:2px; }



.footer{
  margin-top:40px;
  padding:24px 16px;
  border-top:1px solid var(--line);
  background:#fff;
}

.footer__inner{
  max-width:980px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.footer__nav a{
  margin-right:12px;
  font-size:12px;
  color:var(--muted);
}

.footer__nav a:hover{
  text-decoration:underline;
}

.footer__meta{
  font-size:12px;
  color:var(--muted);
}


.footer__support{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.footer__support a{
  color:inherit;
  text-decoration:underline;
}

