/* Kurage URL2AI Publisher — 深海〜発光ティールのデザイントークン */
:root {
  --abyss: #12202f;
  --abyss-soft: #55697a;
  --foam: #f5fbfb;
  --panel: #e7f3f2;
  --panel-line: #cde5e2;
  --teal: #12a99f;
  --teal-deep: #0a726b;
  --violet: #6f5fd8;
  --up: #1f9d6f;
  --down: #c04a3f;
  --shadow: 0 14px 40px rgba(10, 40, 45, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --abyss: #eaf3f3;
    --abyss-soft: #9fb3ba;
    --foam: #0c1720;
    --panel: #12242a;
    --panel-line: #1f3a3f;
    --teal: #2bd4c6;
    --teal-deep: #1c9e93;
    --violet: #9186ea;
    --up: #3ecf94;
    --down: #e4746a;
    --shadow: 0 14px 40px rgba(0, 0, 0, .38);
  }
}
:root[data-theme="dark"] {
  --abyss: #eaf3f3; --abyss-soft: #9fb3ba; --foam: #0c1720; --panel: #12242a;
  --panel-line: #1f3a3f; --teal: #2bd4c6; --teal-deep: #1c9e93; --violet: #9186ea;
  --up: #3ecf94; --down: #e4746a; --shadow: 0 14px 40px rgba(0,0,0,.38);
}
:root[data-theme="light"] {
  --abyss: #12202f; --abyss-soft: #55697a; --foam: #f5fbfb; --panel: #e7f3f2;
  --panel-line: #cde5e2; --teal: #12a99f; --teal-deep: #0a726b; --violet: #6f5fd8;
  --up: #1f9d6f; --down: #c04a3f; --shadow: 0 14px 40px rgba(10,40,45,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { text-size-adjust: 100%; }
body {
  color: var(--abyss);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--foam);
  min-height: 100vh; line-height: 1.75;
}
h1, h2, h3, .display { font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif; text-wrap: balance; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

header.site {
  padding: 44px 0 8px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.hbrand { display: flex; gap: 20px; align-items: center; }
.avatar-ring {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, var(--teal) 0%, var(--teal-deep) 70%);
  padding: 3px; box-shadow: var(--shadow);
}
.avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  display: block; border: 2px solid var(--foam);
}
.hbrand h1 { font-size: 25px; font-weight: 700; letter-spacing: -.01em; color: var(--abyss); }
.hbrand .tagline { font-size: 13.5px; color: var(--abyss-soft); margin-top: 5px; max-width: 480px; }

.whoami { font-size: 12.5px; color: var(--abyss-soft); text-align: right; line-height: 1.9; }
.whoami strong { color: var(--abyss); }
.whoami a { font-weight: 700; }

.topright { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.langswitch { display: inline-flex; gap: 5px; }
.langswitch a {
  padding: 3px 11px; border-radius: 999px; border: 1px solid var(--panel-line);
  color: var(--abyss-soft); font-size: 12px; font-weight: 700; text-decoration: none;
}
.langswitch a.on { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.langswitch a:hover { border-color: var(--teal); color: var(--teal-deep); }
.langswitch a.on:hover { color: #fff; }

main { padding: 10px 0 60px; }

.intro {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 20px;
  padding: 24px 28px; margin: 20px 0 26px; font-size: 14.5px; color: var(--abyss);
  box-shadow: var(--shadow);
}
.intro b { color: var(--teal-deep); }
.media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.media span {
  background: var(--foam); border: 1px solid var(--panel-line); color: var(--teal-deep);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
}

.card {
  background: var(--foam); border: 1px solid var(--panel-line); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

form input[type=url] {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--panel-line); border-radius: 12px;
  font-size: 15px; margin-bottom: 16px; background: var(--foam); color: var(--abyss);
  font-family: inherit;
}
form input[type=url]:focus { border-color: var(--teal); }
label { font-size: 13px; font-weight: 700; color: var(--teal-deep); display: block; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .04em; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; background: var(--teal-deep); color: #fff;
  border: none; border-radius: 999px; padding: 13px 28px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; text-decoration: none; box-shadow: 0 10px 26px rgba(10, 114, 107, .25);
  font-family: inherit; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 114, 107, .32); color: #fff; }
.btn-x { background: var(--abyss); }
.btn-violet { background: var(--violet); }
.btn-ghost {
  background: transparent; color: var(--teal-deep); border: 1.5px solid var(--panel-line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal); background: var(--panel); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }

.reward-banner {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center;
  border: 1px solid #e6d5a7; background: linear-gradient(120deg, #fffdf3, #eefbf8);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; color: #263844;
}
.reward-banner > div { display: flex; flex-direction: column; }
.reward-banner strong { color: #9a6b00; font-size: 22px; line-height: 1.25; }
.reward-banner p { font-size: 13px; line-height: 1.65; }
.reward-kicker { color: #80621d; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.wallet-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.wallet-row .btn { padding: 10px 18px; font-size: 13px; }
#u2pWalletState { color: var(--abyss-soft); font-size: 12.5px; font-family: ui-monospace, monospace; }
.reward-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid #e6d5a7;
  border-radius: 14px; padding: 13px 16px; margin-bottom: 18px;
  background: linear-gradient(120deg, #fffdf3, var(--panel)); font-size: 13px;
}
.reward-status strong { color: #80621d; }
.reward-status small { color: var(--abyss-soft); font-family: ui-monospace, monospace; }
.reward-state {
  color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent);
  border-radius: 999px; padding: 3px 10px; font-weight: 700;
}

.error {
  background: color-mix(in srgb, var(--down) 12%, var(--foam));
  color: var(--down); border: 1px solid color-mix(in srgb, var(--down) 30%, transparent);
  border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 13.5px; font-weight: 700;
}

.result h2, section.block h2 {
  font-size: 13px; color: var(--teal-deep); text-transform: uppercase; letter-spacing: .08em;
  margin: 30px 0 12px; font-weight: 700;
}
.item { margin-bottom: 14px; }
.item .text {
  white-space: pre-wrap; font-size: 14.5px; background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 10px;
}
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item .actions .status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.item .actions .status.ok { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.item .actions .status.ng { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.blog h3 { font-size: 17px; margin-bottom: 12px; color: var(--abyss); }
.blog p { margin: 10px 0; font-size: 14.5px; color: var(--abyss); }

textarea.sharebox {
  width: 100%; min-height: 96px; border: 1.5px solid var(--panel-line); border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; font-family: inherit; margin-bottom: 16px;
  background: var(--panel); color: var(--abyss);
}

/* ステップ進捗(kmontage風のチェックリスト) */
#u2pSteps { list-style: none; }
#u2pSteps li {
  padding: 11px 4px; font-size: 14.5px; border-bottom: 1px solid var(--panel-line);
  display: flex; align-items: center; gap: 10px; color: var(--abyss-soft);
}
#u2pSteps li:last-child { border-bottom: none; }
#u2pSteps li.done { color: var(--abyss); }
#u2pSteps li.fail { color: var(--down); }

/* 履歴一覧 */
.hist-card {
  background: var(--foam); border: 1px solid var(--panel-line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow);
  transition: border-color .12s ease;
}
.hist-card:hover { border-color: var(--teal); }
.hist-card a.title { font-weight: 700; font-size: 15px; color: var(--abyss); }
.hist-card a.title:hover { color: var(--teal-deep); }
.hist-card .meta { font-size: 12px; color: var(--abyss-soft); margin-top: 6px; }
.empty { color: var(--abyss-soft); font-size: 14px; padding: 40px 0; text-align: center; }

footer.site {
  text-align: center; color: var(--abyss-soft); font-size: 12.5px; padding: 44px 20px 50px;
  border-top: 1px solid var(--panel-line); margin-top: 34px;
}
footer.site a { font-weight: 700; }

@media (max-width: 620px) {
  header.site { padding-top: 32px; }
  .hbrand h1 { font-size: 21px; }
  .card { padding: 20px; }
  .reward-banner { grid-template-columns: 1fr; gap: 8px; }
  .wallet-row { align-items: flex-start; flex-direction: column; }
  .lp-steps-list { grid-template-columns: 1fr; }
  .lp-band { padding: 26px 20px; }
  .lp-token { padding: 20px 22px; }
}

/* ===== ランディング(login view) ===== */
/* URLAI = 価値/トークンのゴールド。ライト/ダーク両対応で定義。 */
:root { --gold:#c98a1e; --gold-soft:#9a6b00; --gold-bg:#fbf2db; --gold-line:#ecd9a8; }
@media (prefers-color-scheme: dark) {
  :root { --gold:#f2c766; --gold-soft:#e8bd58; --gold-bg:#241b08; --gold-line:#4c3c17; }
}
:root[data-theme="dark"]  { --gold:#f2c766; --gold-soft:#e8bd58; --gold-bg:#241b08; --gold-line:#4c3c17; }
:root[data-theme="light"] { --gold:#c98a1e; --gold-soft:#9a6b00; --gold-bg:#fbf2db; --gold-line:#ecd9a8; }

.lp-hero { text-align: center; padding: 14px 0 6px; }
.lp-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-soft); background: var(--gold-bg); border: 1px solid var(--gold-line);
  padding: 6px 15px; border-radius: 999px;
}
.lp-title {
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900;
  font-size: clamp(30px, 6vw, 52px); line-height: 1.22; letter-spacing: -.02em;
  margin: 18px auto 0; max-width: 15em; color: var(--abyss); text-wrap: balance;
}
.lp-title em { font-style: normal; color: var(--teal-deep); }
.lp-lead {
  font-size: clamp(15px, 2.3vw, 18px); line-height: 1.95; color: var(--abyss-soft);
  max-width: 34em; margin: 18px auto 0;
}
.lp-lead b { color: var(--abyss); font-weight: 700; }

.lp-token {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  margin: 28px auto 0; padding: 22px 36px; background: var(--gold-bg);
  border: 1px solid var(--gold-line); border-radius: 22px; box-shadow: var(--shadow);
}
.lp-token-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-soft); }
.lp-token-amt {
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; color: var(--gold);
  font-size: clamp(46px, 11vw, 84px); line-height: 1; display: inline-flex; align-items: baseline; gap: .2em;
}
.lp-token-unit { font-size: .32em; letter-spacing: .05em; color: var(--gold-soft); }
.lp-token-sub { font-size: 13px; color: var(--abyss-soft); margin-top: 8px; max-width: 26em; line-height: 1.7; }
.lp-token-sub b { color: var(--gold-soft); }
.lp-token--soon .lp-token-amt { font-size: clamp(28px, 6vw, 44px); }

.lp-cta { margin-top: 26px; font-size: 16px; padding: 15px 32px; }
.lp-cta-note { font-size: 12.5px; color: var(--abyss-soft); margin-top: 11px; }
.lp-media { justify-content: center; margin-top: 26px; }

.lp-band {
  margin-top: 30px; padding: 36px 32px; border-radius: 24px;
  background: var(--panel); border: 1px solid var(--panel-line); text-align: center;
}
.lp-band-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--teal-deep); }
.lp-band-title {
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900;
  font-size: clamp(23px, 4.6vw, 38px); line-height: 1.3; margin: 12px auto 0;
  max-width: 18em; color: var(--abyss); text-wrap: balance;
}
.lp-band-title em { font-style: normal; color: var(--gold); }
.lp-band-text { font-size: clamp(14px, 2vw, 16px); line-height: 2; color: var(--abyss-soft); max-width: 36em; margin: 16px auto 0; }
.lp-band-text b { color: var(--abyss); font-weight: 700; }
.lp-band-text--em { color: var(--abyss); }
.lp-econ { background: var(--gold-bg); border-color: var(--gold-line); }
.lp-econ .lp-band-kicker { color: var(--gold-soft); }

.lp-steps { margin-top: 30px; text-align: center; }
.lp-steps-title { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: clamp(20px, 3.4vw, 26px); color: var(--abyss); }
.lp-steps-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; }
.lp-steps-list li { background: var(--foam); border: 1px solid var(--panel-line); border-radius: 18px; padding: 26px 18px; box-shadow: var(--shadow); }
.lp-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--teal); color: #fff; font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900; font-size: 22px; margin-bottom: 14px;
}
.lp-steps-list b { display: block; font-size: 16px; color: var(--abyss); }
.lp-steps-list small { display: block; font-size: 13px; color: var(--abyss-soft); margin-top: 7px; line-height: 1.7; }

.lp-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 22px auto 6px; }
.lp-flow span { background: var(--foam); border: 1px solid var(--gold-line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--abyss); }
.lp-flow i { color: var(--gold); font-style: normal; font-weight: 900; font-size: 15px; }

/* フライホイール */
.fw { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; margin: 24px auto 4px; }
.fw-node {
  background: var(--foam); border: 1px solid var(--panel-line); border-radius: 16px;
  padding: 16px 14px; min-width: 140px; max-width: 190px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.fw-node--gold { background: var(--gold-bg); border-color: var(--gold-line); }
.fw-n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: 14px; margin-bottom: 6px;
}
.fw-node--gold .fw-n { background: var(--gold); }
.fw-node b { font-size: 14px; color: var(--abyss); line-height: 1.4; }
.fw-node small { font-size: 11.5px; color: var(--abyss-soft); line-height: 1.5; }
.fw-arrow { align-self: center; color: var(--teal); font-style: normal; font-weight: 900; font-size: 20px; }
.fw-arrow--loop { color: var(--gold); font-size: 24px; }

/* エコシステム */
.lp-eco { margin-top: 30px; text-align: center; }
.lp-eco-title { font-family: "Zen Maru Gothic", sans-serif; font-weight: 800; font-size: clamp(20px, 3.4vw, 26px); color: var(--abyss); }
.lp-eco-lead { font-size: clamp(13.5px, 2vw, 15px); color: var(--abyss-soft); max-width: 32em; margin: 12px auto 0; line-height: 1.9; }
.lp-eco-lead b { color: var(--abyss); }
.lp-eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.lp-eco-item {
  background: var(--foam); border: 1px solid var(--panel-line); border-radius: 14px; padding: 16px 14px;
  font-size: 12.5px; color: var(--abyss-soft); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.lp-eco-item b { font-size: 15px; color: var(--teal-deep); font-weight: 800; }

@media (max-width: 620px) {
  .lp-eco-grid { grid-template-columns: 1fr 1fr; }
  .fw-arrow { display: none; }
  .fw-node { min-width: 44%; }
}
