@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ===== Living Life ブランド配色（ネイビー × コーラル）に準拠 ===== */
:root {
  --bg1: #f6f7f9;
  --bg2: #eef0f4;
  --card: #ffffff;
  --ink: #2b333d;
  --sub: #6b7682;
  --line: #e6e9ee;

  --navy: #1f3a63;
  --navy-l: #2c4f86;
  --navy-d: #16284a;
  --navy-dd: #0f1d38;

  --coral: #e85c43;
  --coral-l: #f47c64;
  --coral-d: #cf4a31;

  --danger: #c0392b;
  --full: #9aa3ac;
  --ring: rgba(31, 58, 99, .18);

  --shadow-s: 0 1px 2px rgba(15, 29, 56, .06);
  --shadow-m: 0 10px 30px -14px rgba(15, 29, 56, .26), 0 2px 6px rgba(15, 29, 56, .04);
  --shadow-l: 0 22px 48px -20px rgba(15, 29, 56, .4);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 460px at 80% -120px, rgba(31,58,99,.10), transparent 60%),
    radial-gradient(760px 380px at -8% 6%, rgba(232,92,67,.08), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  min-height: 100vh;
}

.wrap { max-width: 740px; margin: 0 auto; padding: 0 18px 72px; }

/* ===== Header ===== */
header.app {
  position: relative; overflow: hidden; color: #fff;
  padding: 38px 18px 34px; text-align: center;
  background:
    radial-gradient(560px 220px at 50% -40px, rgba(244,124,100,.20), transparent 70%),
    linear-gradient(135deg, var(--navy-dd) 0%, var(--navy-d) 45%, var(--navy) 100%);
  box-shadow: 0 16px 40px -22px rgba(15, 29, 56, .8);
}
header.app::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px);
  background-size: 18px 18px; opacity: .5; pointer-events: none;
}
header.app::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--coral) 25%, var(--coral-l) 50%, var(--coral) 75%, transparent);
}
.app-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ロゴ＝ホームへのリンク */
.brand-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.brand-link:hover { transform: translateY(-1px); opacity: .96; }
.brand-link:hover .brandmark { box-shadow: 0 10px 22px -8px rgba(232,92,67,.8), inset 0 1px 0 rgba(255,255,255,.5); }

.brandmark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(150deg, var(--coral-l), var(--coral-d));
  box-shadow: 0 6px 16px -6px rgba(232,92,67,.7), inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom: 8px; transition: box-shadow .15s ease;
}
.eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--coral-l);
}
header.app h1 { margin: 2px 0 0; font-size: 1.6rem; font-weight: 900; letter-spacing: .03em; color: #fff; }
header.app p { margin: 4px 0 0; font-size: .86rem; font-weight: 400; color: rgba(255,255,255,.82); }

/* ===== Sections ===== */
h2.section {
  font-size: 1.06rem; font-weight: 700; margin: 32px 0 14px;
  padding-left: 13px; position: relative; letter-spacing: .01em;
}
h2.section::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--coral-l), var(--coral));
}

/* ===== Cards ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-m); padding: 18px 20px; margin-bottom: 14px;
  animation: rise .45s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Slot row ===== */
.slot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card.slot {
  position: relative; overflow: hidden;
  max-width: 580px; margin-left: auto; margin-right: auto;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.slot::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--navy-l), var(--navy-d)); opacity: .9;
}
.card.slot:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: rgba(31,58,99,.28); }
.slot .info { padding-left: 6px; }
.slot .info .dt { font-size: 1.18rem; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.slot .info .meta { font-size: .82rem; color: var(--sub); margin-top: 3px; }

/* ===== Badge ===== */
.badge {
  font-size: .76rem; padding: 4px 12px; border-radius: 999px; font-weight: 700;
  white-space: nowrap; display: inline-block; border: 1px solid transparent;
}
.badge.ok   { background: #ebf1f9; color: var(--navy); border-color: #cdddf0; }
.badge.few  { background: #fdf2e0; color: #97650f; border-color: #f0d9b0; }
.badge.full { background: #eef1f2; color: var(--full); border-color: #dfe4e6; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  color: #fff; padding: 11px 20px; border-radius: 12px; text-decoration: none; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--coral-l), var(--coral));
  box-shadow: 0 8px 18px -8px rgba(232,92,67,.6), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 24px -10px rgba(232,92,67,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn.full, .btn:disabled {
  background: #eef1f2; color: var(--full); cursor: not-allowed; box-shadow: none; border: 1px solid #e1e6e7;
}
.btn.ghost {
  background: #fff; color: var(--navy-d);
  border: 1.5px solid rgba(31,58,99,.4); box-shadow: var(--shadow-s);
}
.btn.ghost:hover { background: #f1f5fb; filter: none; border-color: var(--navy); }
.btn.danger { background: linear-gradient(180deg, #d6534a, var(--danger)); box-shadow: 0 8px 18px -8px rgba(192,57,43,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.block { display: block; width: 100%; text-align: center; }

/* ===== Forms ===== */
label { display: block; font-size: .84rem; font-weight: 700; color: var(--sub); margin: 16px 0 6px; }
label .req { color: var(--coral-d); font-size: .72rem; margin-left: 5px; font-weight: 700; }
input[type=text], input[type=email], input[type=date], input[type=time],
input[type=number], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fbfcfe; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #aeb6bf; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--ring);
}

/* ===== Flash ===== */
.flash { padding: 15px 18px; border-radius: 14px; margin: 20px 0; font-weight: 700; box-shadow: var(--shadow-s); animation: rise .4s ease both; }
.flash.ok  { background: linear-gradient(180deg, #eef3fb, #e6eef9); color: var(--navy-d); border: 1px solid #c9dbf1; }
.flash.err { background: linear-gradient(180deg, #fdeeec, #fbe5e2); color: var(--danger); border: 1px solid #f2c9c3; }

/* ===== Target slot ===== */
.target-slot {
  background: linear-gradient(180deg, #f1f5fb, #e9f0f9);
  border: 1px solid rgba(31,58,99,.3); border-left: 5px solid var(--navy);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 8px;
}
.target-slot strong { font-size: 1.06rem; font-variant-numeric: tabular-nums; }

.muted { color: var(--sub); font-size: .86rem; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 130px; }

/* ===== Home-return bar ===== */
.homebar { margin: 22px 0 4px; }
.homebar .btn.ghost { max-width: 260px; margin: 0 auto; }

/* ===== Table (admin) ===== */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--sub); font-size: .76rem; letter-spacing: .02em; border-bottom: 2px solid var(--line); }
tbody tr:hover { background: #f7f9fc; }

/* ===== Topbar / footer ===== */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 4px; }
.topbar .btn { padding: 8px 14px; font-size: .82rem; }
a { color: var(--navy-d); text-underline-offset: 2px; }
a:hover { color: var(--coral-d); }
footer { text-align: center; color: var(--sub); font-size: .76rem; margin-top: 40px; }
footer a { font-weight: 700; }

@media (max-width: 480px) {
  header.app h1 { font-size: 1.34rem; }
  .wrap { padding: 0 14px 60px; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .flash { animation: none; }
  .btn, .card.slot, .brand-link { transition: none; }
}

/* ===== Advisor link (home) ===== */
.advisor-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-s);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.advisor-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: rgba(31,58,99,.28); color: inherit; }
.advisor-link img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--line); flex: 0 0 auto; }
.advisor-link .al-name { font-weight: 800; }
.advisor-link .al-sub { font-size: .8rem; color: var(--sub); }
.advisor-link .al-go { margin-left: auto; color: var(--coral-d); font-weight: 800; font-size: 1.1rem; }

/* ===== Profile page ===== */
.profile-hero { display: flex; gap: 20px; align-items: center; }
.profile-hero .avatar {
  width: 152px; height: 190px; flex: 0 0 auto; border-radius: 16px;
  object-fit: cover; object-position: 50% 14%; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-m);
}
.profile-hero .pname { font-size: 1.5rem; font-weight: 900; margin: 0; }
.profile-hero .pname .romaji { font-size: .68rem; font-weight: 700; color: var(--sub); letter-spacing: .14em; margin-left: 10px; }
.profile-hero .prole { color: var(--navy); font-weight: 700; font-size: .92rem; margin: 8px 0 0; line-height: 1.6; }
.profile-hero .ptag { color: var(--sub); font-size: .86rem; margin: 10px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(150deg, var(--coral-l), var(--coral)); box-shadow: 0 0 0 3px #fff;
}
.timeline .yr { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: #eef1f6; border: 1px solid var(--line); color: var(--navy-d); border-radius: 999px; padding: 7px 15px; font-size: .84rem; font-weight: 700; }
.chip.coral { background: #fdeee9; border-color: #f4d3c8; color: var(--coral-d); }

@media (max-width: 520px) {
  .profile-hero { flex-direction: column; text-align: center; }
}

/* ===== LP (overview) ===== */
.lp-hero { text-align: center; padding: 26px 6px 6px; }
.lp-title { font-size: 1.5rem; font-weight: 900; line-height: 1.55; margin: 0 0 14px; }
.lp-lead { color: var(--ink); max-width: 560px; margin: 0 auto 22px; }
.btn.lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 7px 0 7px 30px; }
.checklist li::before { content: "\2713"; position: absolute; left: 3px; top: 7px; color: var(--coral); font-weight: 900; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-s);
}
.feature .fe-ic { font-size: 1.5rem; line-height: 1.2; flex: 0 0 auto; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 2em; height: 2em; line-height: 2em; text-align: center;
  border-radius: 50%; color: #fff; font-weight: 900;
  background: linear-gradient(150deg, var(--coral-l), var(--coral));
  box-shadow: 0 4px 10px -4px rgba(232,92,67,.6);
}

.lp-cta { text-align: center; }
.lp-cta p { font-weight: 700; margin: 0 0 14px; }

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .lp-title { font-size: 1.28rem; }
}

/* ===== Note box (予約後の流れ) ===== */
.notebox {
  background: linear-gradient(180deg, #fbfcfe, #f6f8fb);
  border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 12px; padding: 14px 18px; margin: 22px 0 8px;
}
.notebox h3 { margin: 0 0 8px; font-size: .96rem; font-weight: 800; }
.notebox ul { list-style: none; margin: 0; padding: 0; }
.notebox li { position: relative; padding: 5px 0 5px 26px; font-size: .88rem; color: var(--sub); }
.notebox li::before { content: "\2713"; position: absolute; left: 2px; top: 5px; color: var(--coral); font-weight: 900; }
.notebox li strong { color: var(--ink); }
