/* ================================================================
   ZUKKU AI TRAVEL — 共通スタイル
   ブランド配色: 紺 #1a3a52 / 青 #3498db / 赤 #e74c3c / 白 #ffffff
   テーマ: 伝統と革新の融合（セリフ体 × モダンUI）
   ================================================================ */

:root {
  --navy: #1a3a52;
  --navy-deep: #0e2233;
  --blue: #3498db;
  --red: #e74c3c;
  --white: #ffffff;
  --gold: #f1c40f;
  --paper: #f7f5f0;
  --ink: #22313f;
  --muted: #7d8fa0;
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

img { max-width: 100%; }

.serif { font-family: var(--serif); letter-spacing: 0.12em; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--white);
  border-bottom: 1px solid #e6e2d9;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .logo { height: 52px; }
.site-header nav a {
  font-family: var(--serif);
  letter-spacing: 0.15em;
  color: var(--navy);
  text-decoration: none;
  margin-left: 26px;
  font-size: 14px;
}
.site-header nav a.cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
}
.site-header nav a:hover { color: var(--blue); }
.site-header nav a.cta:hover { background: var(--blue); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 90px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(52,152,219,0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(231,76,60,0.18), transparent 40%);
}
.hero > * { position: relative; }
.hero .zukku-hero { width: 170px; margin-bottom: 22px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
.hero .zukku-hero-photo {
  width: 210px; height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  background: #fff;
  border: 5px solid rgba(255,255,255,0.9);
  box-shadow: 0 18px 44px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}
.ball-photo {
  width: 320px; height: 320px;
  object-fit: cover;
  object-position: 42% 55%;
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(26,58,82,0.22);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.22em;
  font-weight: 500;
}
.hero .sub {
  font-family: var(--serif);
  letter-spacing: 0.3em;
  color: #9fc3de;
  margin-top: 14px;
  font-size: clamp(13px, 2vw, 17px);
}
.hero .lead { margin-top: 26px; max-width: 620px; margin-inline: auto; color: #d7e3ec; font-size: 15px; }
.hero .actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  padding: 15px 38px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }
.btn-navy { background: var(--navy); color: var(--white); }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.section h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 28px;
  letter-spacing: 0.2em;
  text-align: center;
}
.section h2 + .section-sub {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 44px;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.divider {
  width: 56px; height: 3px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 2px;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 44px; }

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 6px 22px rgba(26,58,82,0.08);
  border-top: 4px solid var(--blue);
}
.card:nth-child(2) { border-top-color: var(--red); }
.card:nth-child(3) { border-top-color: var(--gold); }
.card .icon { font-size: 34px; }
.card h3 { font-family: var(--serif); color: var(--navy); margin: 12px 0 10px; letter-spacing: 0.1em; font-size: 18px; }
.card p { font-size: 14px; color: #4b5b68; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 40px; }
.step {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 24px 22px 76px;
  position: relative;
  box-shadow: 0 4px 16px rgba(26,58,82,0.07);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.step strong { font-family: var(--serif); color: var(--navy); letter-spacing: 0.08em; }
.step p { font-size: 14px; color: #4b5b68; margin-top: 4px; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: 0 10px 32px rgba(26,58,82,0.1);
  max-width: 640px;
  margin: 0 auto;
}
.form-card label { display: block; font-size: 13px; color: var(--navy); font-weight: 600; margin: 18px 0 6px; letter-spacing: 0.06em; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #dfe6ec;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--sans);
  background: #fbfcfd;
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); }
.form-card .btn { width: 100%; margin-top: 28px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-success {
  background: #eaf7ef;
  border: 1.5px solid #34c47c;
  color: #1e7a4c;
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
  display: none;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #9db4c6;
  text-align: center;
  padding: 44px 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.site-footer .brand { font-family: var(--serif); color: var(--white); font-size: 17px; letter-spacing: 0.25em; margin-bottom: 8px; }

/* ================================================================
   チャット UI
   ================================================================ */
.chat-shell {
  max-width: 760px;
  margin: 0 auto;
  height: calc(100vh - 81px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 0 40px rgba(26,58,82,0.08);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy), #235175);
  color: var(--white);
}
.chat-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 35%; background: #fff; border: 2px solid rgba(255,255,255,0.85); }
.chat-top .name { font-family: var(--serif); letter-spacing: 0.2em; font-size: 17px; }
.chat-top .status { font-size: 12px; color: #9fd1a8; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  background:
    linear-gradient(rgba(247,245,240,0.94), rgba(247,245,240,0.94)),
    repeating-linear-gradient(45deg, #eee8dc 0 2px, transparent 2px 24px);
}
.msg { display: flex; margin-bottom: 16px; align-items: flex-end; gap: 10px; }
.msg .avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center 35%; background: #fff; border: 1.5px solid #e3ddd0; }
.msg .bubble {
  max-width: 76%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 15px;
  white-space: pre-wrap;
}
.msg.zukku .bubble { background: var(--white); border: 1.5px solid #e3ddd0; border-bottom-left-radius: 4px; box-shadow: 0 3px 10px rgba(26,58,82,0.06); }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }

/* AI 検索プロセス */
.search-process {
  background: var(--navy-deep);
  color: #bfe0f5;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 6px 0 16px 50px;
  font-size: 13.5px;
  font-family: "SF Mono", Menlo, monospace;
  max-width: 76%;
}
.search-process .step-line { opacity: 0; animation: stepIn 0.4s forwards; display: flex; gap: 8px; padding: 3px 0; }
.search-process .step-line.done::after { content: "✓"; color: #34c47c; margin-left: auto; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ビデオ通話風 職人カード */
.craftsman-card {
  margin: 6px 0 16px 50px;
  max-width: 82%;
  border-radius: 20px;
  overflow: hidden;
  background: #10202e;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(14,34,51,0.35);
}
.craftsman-card .video-area {
  position: relative;
  height: 190px;
  background:
    radial-gradient(circle at 30% 35%, rgba(52,152,219,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(231,76,60,0.3), transparent 50%),
    linear-gradient(160deg, #22384c, #101d29);
  display: grid;
  place-items: center;
}
.craftsman-card .video-area .face {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center;
  font-size: 38px;
  border: 3px solid rgba(255,255,255,0.7);
}
.craftsman-card .live-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: 11px; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px;
}
.craftsman-card .call-ui {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 14px;
}
.craftsman-card .call-ui span {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: grid; place-items: center; font-size: 16px;
}
.craftsman-card .info { padding: 18px 20px 20px; }
.craftsman-card .info .cname { font-family: var(--serif); font-size: 19px; letter-spacing: 0.1em; }
.craftsman-card .info .meta { font-size: 12.5px; color: #9db4c6; margin-top: 3px; }
.craftsman-card .rating { color: var(--gold); font-size: 14px; margin-top: 8px; }
.craftsman-card .story {
  margin-top: 12px;
  font-size: 13.5px;
  color: #d5e2ec;
  border-left: 3px solid var(--red);
  padding-left: 12px;
  font-family: var(--serif);
  line-height: 1.8;
}
.craftsman-card .price-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.craftsman-card .price { font-family: var(--serif); font-size: 21px; color: var(--gold); }
.craftsman-card .price small { font-size: 12px; color: #9db4c6; }
.craftsman-card .actions { display: flex; gap: 10px; margin-top: 14px; }
.craftsman-card .actions button {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  font-size: 14px; cursor: pointer; font-family: var(--sans);
}
.craftsman-card .approve { background: var(--blue); color: var(--white); }
.craftsman-card .decline { background: rgba(255,255,255,0.12); color: var(--white); }

/* パスポート表示 */
.passport-wrap { margin: 10px 0 16px 50px; max-width: 82%; }
.passport-wrap img { border-radius: 16px; box-shadow: 0 14px 34px rgba(14,34,51,0.35); }
.passport-wrap a { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--blue); }

/* 入力欄 */
.chat-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid #e6e2d9;
}
.chat-input input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #dfe6ec;
  border-radius: 999px;
  font-size: 15px;
}
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0 26px;
  font-size: 15px;
  cursor: pointer;
}
.chat-input button:hover { background: var(--blue); }
.chat-input button:disabled { opacity: 0.5; cursor: default; }

/* 登録モーダル */
.overlay {
  position: fixed; inset: 0;
  background: rgba(14,34,51,0.72);
  display: grid; place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 34px 30px;
  width: 100%;
  max-width: 440px;
}
.modal h3 { font-family: var(--serif); color: var(--navy); letter-spacing: 0.14em; text-align: center; }
.modal .zukku-mini { width: 96px; height: 96px; display: block; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; object-position: center 35%; background: #f5f7fa; border: 3px solid #e6eaef; }
.modal label { display: block; font-size: 13px; color: var(--navy); font-weight: 600; margin: 14px 0 6px; }
.modal input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #dfe6ec; border-radius: 10px; font-size: 15px;
}
.modal .btn { width: 100%; margin-top: 22px; }
.modal .skip { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.modal .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.wallet-options { display: grid; gap: 8px; margin-bottom: 4px; }
.wallet-opt {
  display: block; padding: 10px 12px;
  border: 1.5px solid #dfe6ec; border-radius: 10px;
  font-size: 13.5px; cursor: pointer; color: var(--ink);
}
.wallet-opt small { display: block; color: var(--muted); font-size: 11.5px; margin-left: 22px; }
.wallet-opt input { margin-right: 6px; }
.wallet-opt:has(input:checked) { border-color: var(--blue); background: #f2f9fe; }

.soon-badge {
  display: inline-block; background: var(--gold); color: #7a5c00;
  font-size: 11px; letter-spacing: 0.08em; padding: 3px 10px;
  border-radius: 999px; vertical-align: middle; font-family: var(--sans);
}
.modal input:disabled { background: #f1f3f5; color: #aab3bb; cursor: not-allowed; }

/* 実オンチェーン残高ダッシュボード */
.balance-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #0e2233;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
}
.bal-tile {
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 7px 12px;
  white-space: nowrap;
}
.bal-role { font-size: 12px; color: #9db4c6; }
.bal-pyusd { font-family: "SF Mono", Menlo, monospace; font-size: 14px; color: #7fd8a2; font-weight: 600; }
.bal-kite { font-family: "SF Mono", Menlo, monospace; font-size: 11px; color: #6f8fa8; }
.bal-tile.flash .bal-pyusd { animation: balFlash 1.2s ease; }
@keyframes balFlash { 0% { color: #ffe27a; transform: scale(1.25); } 100% { color: #7fd8a2; transform: none; } }
.bal-net { margin-left: auto; font-size: 11px; color: #5a7d97; letter-spacing: 0.06em; }
.bal-net.err { color: #ff9c9c; }

.tx-links { margin-top: 8px; display: grid; gap: 4px; }
.tx-links a { color: #8fd0ff; font-size: 12.5px; font-family: "SF Mono", Menlo, monospace; word-break: break-all; }

.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a8b8c5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

@media (max-width: 640px) {
  .site-header nav a { margin-left: 14px; font-size: 12px; }
  .search-process, .craftsman-card, .passport-wrap { margin-left: 0; max-width: 100%; }
}
