/* ===== 京大おおきにアプリ LP 追加スタイル（styles.css を拡張） ===== */

/* POINT 01 / 02 訴求ペア */
.highlight-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.highlight-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}
.highlight-card.accent {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-color: transparent;
}
.highlight-card .highlight-no {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.highlight-card.accent .highlight-no { color: var(--gold); }
.highlight-card h3 { margin: 0 0 12px; font-size: 1.32rem; line-height: 1.5; }
.highlight-card p { margin: 0; color: var(--muted); }
.highlight-card.accent p { color: rgba(255, 255, 255, 0.86); }
.highlight-card strong { color: inherit; }

/* 3ステップ flow */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.flow-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 34px 26px 28px;
  color: #fff;
}
.flow-card .flow-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.flow-card h3 { margin: 0 0 10px; font-size: 1.22rem; }
.flow-card p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.flow-grid .flow-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
}

/* つまずき診断 視点リスト */
.diag-points {
  background: var(--navy-soft);
  border-radius: 18px;
  padding: 28px 30px;
}
.diag-points-label {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.diag-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diag-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink);
}
.diag-points li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 診断の例 */
.example-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.example-cards { display: grid; gap: 16px; }
.example-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.example-card.accent { border-left-color: var(--wine); background: var(--green-soft); }
.example-card .example-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 8px;
}
.example-card.accent .example-tag { color: var(--wine-deep); }
.example-card p { margin: 0; }
.next-actions {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.next-actions h3 { margin: 0 0 18px; font-size: 1.28rem; }
.next-actions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: na; }
.next-actions li { display: flex; gap: 14px; align-items: flex-start; }
.next-actions .na-no {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
}
.next-actions li span:last-child { padding-top: 4px; color: rgba(255, 255, 255, 0.9); }

.section-note {
  margin: 34px auto 0;
  max-width: 880px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
}
.section-photo .section-note { color: rgba(255, 255, 255, 0.9); }

/* セカンドオピニオン */
.so-intro {
  max-width: 880px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.9;
}
.caution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.caution-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 22px 22px;
  box-shadow: var(--shadow-soft);
}
.caution-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--wine-deep);
  padding-left: 26px;
  position: relative;
}
.caution-card h3::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.caution-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* セカンドオピニオン flow */
.so-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.so-flow li {
  position: relative;
  background: var(--navy-soft);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
}
.so-flow .so-step {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.so-flow strong { font-size: 1.02rem; color: var(--navy); }
.so-flow li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
  z-index: 2;
}

/* 導入メリット */
.merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.merit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.merit-card .merit-no {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-soft);
}
.merit-card h3 { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.5; }
.merit-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* 関連リンク */
.section-related { background: var(--mist); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.related-card {
  display: block;
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card.alt { background: linear-gradient(165deg, var(--green-deep), #154d39); }
.related-card:hover { transform: translateY(-4px); }
.related-card .related-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}
.related-card.alt .related-label { color: #ffe6a8; }
.related-card strong { display: block; font-size: 1.3rem; margin-bottom: 12px; }
.related-card em { display: block; font-style: normal; color: rgba(255, 255, 255, 0.84); margin-bottom: 18px; line-height: 1.8; }
.related-card b { font-weight: 700; color: #fff; }

/* ===== 写真レイアウト ===== */
.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.media-split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.media-split.reverse .media-text { order: 2; }
.media-split.reverse .media-figure { order: 1; }
.media-text .section-label { margin-bottom: 14px; }
.media-text h2 { margin: 0 0 18px; }
.media-text p { color: var(--muted); margin: 0 0 14px; }
.media-text p strong { color: var(--ink); }
.media-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-figure img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 440px;
  object-fit: cover;
}

.wide-figure {
  margin: 0 0 34px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.wide-figure img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 35%;
}

/* フルブリードのフォトバンド */
.photo-band {
  position: relative;
  margin: 0;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 27, 47, 0.82), rgba(8, 27, 47, 0.55));
}
.photo-band .photo-band-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 820px;
  padding: 60px 24px;
}
.photo-band .photo-band-copy .section-label { justify-content: center; color: var(--gold); }
.photo-band .photo-band-copy h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 10px 0 0; line-height: 1.5; }
.photo-band .photo-band-copy p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.88); line-height: 1.9; }

/* ===== コンシェルジュ 京子 フローティングウィジェット ===== */
.kyoko {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  font-family: var(--sans);
}
.kyoko[hidden] { display: none; }
.kyoko-panel[hidden] { display: none; }
.kyoko-launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 78vw;
}
.kyoko-launch:hover { transform: translateY(-2px); }
.kyoko-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  display: inline-flex;
}
.kyoko-avatar svg { width: 100%; height: 100%; }
.kyoko-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kyoko-launch-label { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.kyoko-launch-label b { font-size: 0.92rem; }
.kyoko-launch-label em { font-style: normal; font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); }
.kyoko-launch-close { display: none; font-size: 1.3rem; padding: 0 6px; color: rgba(255,255,255,0.85); }
.kyoko.is-open .kyoko-launch-label { display: none; }
.kyoko.is-open .kyoko-launch-close { display: inline; }
.kyoko.is-open .kyoko-launch { padding: 10px 8px 10px 10px; gap: 6px; }

/* ナッジ（吹き出し） */
.kyoko-launch::before {
  content: attr(data-nudge);
  position: absolute;
  right: 4px;
  bottom: calc(100% + 10px);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px 12px 2px 12px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.kyoko.has-nudge:not(.is-open) .kyoko-launch::before { opacity: 1; transform: translateY(0); }

.kyoko-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, 84vw);
  max-height: min(560px, 74vh);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: kyoko-pop 0.25s ease;
}
@keyframes kyoko-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.kyoko-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px 46px 14px 104px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
}
.kyoko-head-standing {
  position: absolute;
  left: 6px;
  bottom: -10px;
  height: 118px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}
.kyoko-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.kyoko-close:hover { background: rgba(255, 255, 255, 0.26); }
.kyoko-head-copy { flex: 1; line-height: 1.35; }
.kyoko-head-copy strong { display: block; font-size: 0.98rem; }
.kyoko-head-copy span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.78); }
.kyoko-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px 6px; }
.kyoko-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kyoko-msg { max-width: 86%; font-size: 0.92rem; line-height: 1.7; }
.kyoko-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.kyoko-msg.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
}
.kyoko-msg.bot a { color: var(--green-deep); font-weight: 700; text-decoration: underline; }
.kyoko-quick {
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kyoko-chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.kyoko-chip:hover { background: #fff; border-color: var(--navy); }
.kyoko-chip.cta { background: var(--green); color: #fff; }
.kyoko-chip.cta:hover { background: var(--green-deep); border-color: transparent; }

/* レスポンシブ */
@media (max-width: 900px) {
  .highlight-pair,
  .flow-grid,
  .merit-grid,
  .caution-grid,
  .related-grid { grid-template-columns: 1fr; }
  .example-layout { grid-template-columns: 1fr; }
  .so-flow { grid-template-columns: repeat(2, 1fr); }
  .flow-grid .flow-card::after,
  .so-flow li::after { display: none; }
  .media-split,
  .media-split.reverse { grid-template-columns: 1fr; gap: 26px; }
  .media-split.reverse .media-text { order: 1; }
  .media-split.reverse .media-figure { order: 2; }
  .media-figure img { max-height: 360px; }
  .photo-band { min-height: 300px; }
}
@media (max-width: 560px) {
  .merit-grid { grid-template-columns: 1fr; }
  .so-flow { grid-template-columns: 1fr; }
  .kyoko { right: 12px; bottom: 12px; }
  .kyoko-launch-label b { font-size: 0.84rem; }
}
