:root {
  --cream: #f7f0df;
  --paper: #fffdf7;
  --ink: #213a34;
  --ink-soft: #5d6e68;
  --green: #176b58;
  --green-deep: #0e5748;
  --green-pale: #e4f1e9;
  --coral: #e5674d;
  --coral-pale: #fff0e8;
  --blue: #2d7ca3;
  --blue-pale: #e8f4f8;
  --line: #d9d1bb;
  --shadow: 0 18px 45px rgba(49, 58, 45, 0.14);
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(241, 190, 82, 0.23), transparent 24%),
    radial-gradient(circle at 91% 32%, rgba(72, 166, 185, 0.15), transparent 26%),
    var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 4px solid rgba(229, 103, 77, 0.36);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 18px 11px;
  border-bottom: 1px solid rgba(217, 209, 187, 0.75);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(10px);
}

.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 66px;
  min-height: 44px;
  border: 1px solid #b9cfc4;
  border-radius: 14px;
  color: var(--green-deep);
  background: var(--green-pale);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-button span:first-child { font-size: 18px; }
.brand-copy p, .brand-copy strong { display: block; margin: 0; }
.brand-copy p { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.brand-copy strong { margin-top: 1px; font-size: 14px; }

main { padding: 0 20px 42px; }

.hero { padding: 38px 2px 25px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #b6d3df;
  border-radius: 999px;
  color: #216883;
  background: var(--blue-pale);
  font-size: 11px;
  font-weight: 900;
}

h1, h2, h3 { color: var(--ink); font-weight: 900; letter-spacing: -0.035em; }
h1 { margin: 14px 0 11px; font-size: clamp(31px, 9vw, 48px); line-height: 1.3; }
h1 em { color: var(--coral); font-style: normal; text-decoration: underline; text-decoration-color: rgba(229, 103, 77, 0.22); text-decoration-thickness: 8px; text-underline-offset: -3px; }
.hero > p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

.tool-intro {
  margin: 3px 0 28px;
  padding: 19px 15px;
  border: 1px solid #bfd8df;
  border-radius: 23px;
  background: linear-gradient(145deg, #f1fafb, #fff9ee);
}

.mini-label { margin: 0; color: var(--coral); font-size: 11px; font-weight: 900; }
.tool-intro h2 { margin: 3px 0 6px; font-size: clamp(23px, 7vw, 31px); line-height: 1.35; }
.tool-intro-lead { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.tool-intro-cards { display: grid; gap: 10px; margin-top: 14px; }
.tool-intro-card-link { display: block; color: inherit; text-decoration: none; border-radius: 17px; }
.tool-intro-cards article { display: grid; grid-template-columns: 42px 1fr; gap: 11px; height: 100%; padding: 14px; border: 1px solid rgba(185, 207, 196, 0.9); border-radius: 17px; background: rgba(255, 255, 255, 0.9); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.tool-intro-card-link:hover article { transform: translateY(-2px); border-color: #8dbca9; box-shadow: 0 8px 18px rgba(23, 107, 88, 0.12); }
.tool-intro-card-link:focus-visible { outline: 4px solid rgba(229, 103, 77, 0.38); outline-offset: 4px; }
.tool-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #348da2, #176b58); font-size: 19px; font-weight: 900; }
.tool-icon.canva-icon { background: linear-gradient(145deg, #25b7b0, #7d52d6); }
.tool-intro-cards h3 { margin: 0 0 4px; font-size: 17px; }
.tool-intro-cards p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.tool-intro-cards p strong { color: var(--ink); }
.tool-intro-cards small { display: block; margin-top: 8px; padding: 7px 9px; border-radius: 10px; color: var(--green-deep); background: #edf6f1; font-size: 10px; font-weight: 700; line-height: 1.6; }
.tool-intro-cards small span { margin-left: 3px; color: var(--coral); font-size: 14px; }

.video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 18px;
  border-radius: 16px;
  color: #fff;
  background: #c83a37;
  box-shadow: inset 0 -4px 0 rgba(105, 24, 22, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.care-note {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  margin: 0 0 27px;
  padding: 14px;
  border: 1px solid #edc49f;
  border-radius: 18px;
  background: var(--coral-pale);
}

.care-note > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}

.care-note strong, .care-note p { display: block; }
.care-note strong { color: #9c482f; font-size: 12px; }
.care-note p { margin: 3px 0 0; color: #6d574f; font-size: 11px; line-height: 1.7; }

.guide-section { margin-top: 45px; }

.section-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #348da2, #176b58);
  box-shadow: 0 8px 18px rgba(24, 99, 91, 0.18);
  font-size: 23px;
  font-weight: 900;
}

.section-heading p { margin: 0; color: var(--coral); font-size: 11px; font-weight: 900; }
.section-heading h2 { margin: 1px 0 0; font-size: clamp(25px, 7vw, 34px); line-height: 1.35; }
.section-lead { margin: 14px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

.pc-note { margin: 12px 0 0; padding: 12px 13px; border-left: 5px solid var(--blue); border-radius: 6px 14px 14px 6px; color: var(--ink-soft); background: #eff8fb; font-size: 11px; line-height: 1.75; }
.pc-note strong { color: #216883; }

.screen-frame {
  margin: 19px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(47, 65, 55, 0.12);
}

.screen-frame img { display: block; width: 100%; border-radius: 13px; background: #edf1ef; }
.screen-frame figcaption { padding: 10px 5px 3px; color: var(--ink-soft); font-size: 10px; font-weight: 700; line-height: 1.65; }

.annotated-image {
  position: relative;
  overflow: visible;
  border-radius: 13px;
  background: #edf1ef;
}

.focus-box {
  position: absolute;
  z-index: 2;
  border: clamp(2px, 0.45vw, 4px) solid #ff443d;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 3px 12px rgba(121, 12, 8, 0.34);
  pointer-events: none;
}

.focus-box b {
  position: absolute;
  top: -28px;
  left: 0;
  display: grid;
  place-items: center;
  width: clamp(19px, 3vw, 26px);
  height: clamp(19px, 3vw, 26px);
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #e7312b;
  box-shadow: 0 2px 7px rgba(81, 8, 5, 0.3);
  font-size: clamp(9px, 1.4vw, 12px);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.focus-overview-source { top: 0.4%; left: 1%; width: 24.5%; height: 97.8%; }
.focus-overview-chat { top: 0.4%; left: 26.6%; width: 46.7%; height: 97.8%; }
.focus-overview-studio { top: 0.4%; left: 74.5%; width: 24.3%; height: 97.8%; }

.focus-summary-sources { top: 23.9%; left: 2.9%; width: 21.1%; height: 17.1%; }
.focus-summary-answer { top: 3.8%; left: 27.4%; width: 42.8%; height: 84.6%; }

.focus-note-source { top: 40.4%; left: 2.9%; width: 21.2%; height: 6.4%; }

.operation-flow { display: grid; gap: 16px; margin-top: 16px; }
.operation-step { padding: 14px; border: 1px solid #c8ddd4; border-radius: 20px; background: #f8fcf9; }
.operation-title { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.operation-title > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; }
.operation-title strong { color: var(--green-deep); }
.operation-step .screen-frame { margin-top: 11px; }

.overview-figure { overflow: hidden; }
.overview-composite { isolation: isolate; }
.overview-composite > img { position: relative; z-index: 0; }

.zoom-card {
  position: absolute;
  z-index: 3;
  width: min(54%, 270px);
  padding: 6px;
  border: 3px solid #e7312b;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 24, 21, 0.35);
}
.zoom-card > span { display: block; padding: 1px 3px 5px; color: #a82e27; font-size: clamp(8px, 2.5vw, 11px); font-weight: 900; line-height: 1.25; }
.zoom-card img { width: 100%; border-radius: 6px; }
.zoom-top-right { top: 3%; right: 3%; }
.zoom-top-left { top: 3%; left: 3%; }
.zoom-bottom-left { bottom: 3%; left: 3%; }
.zoom-bottom-right { right: 3%; bottom: 3%; }
.zoom-image-wrap { position: relative; }
.zoom-focus { position: absolute; border: 2px solid #ff443d; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); pointer-events: none; }
.zoom-focus-eyedropper { top: 25.3%; left: 27.2%; width: 18.4%; height: 30%; }

.focus-source-upload { top: 59.5%; left: 23.2%; width: 16%; height: 4.5%; }
.focus-memo-save-overview { top: 81.4%; left: 27.4%; width: 9.7%; height: 4.5%; }
.focus-saved-note-overview { top: 40.9%; left: 75.7%; width: 21.8%; height: 7.2%; }
.focus-convert-source-overview { top: 92.3%; left: 86.7%; width: 11.5%; height: 4.5%; }

.studio-tools-image { max-width: 368px; margin: 0 auto; }
.focus-studio-audio { top: 14.6%; left: 8.7%; width: 42.4%; height: 14.9%; }
.focus-studio-quiz { top: 63.8%; left: 8.7%; width: 42.4%; height: 14.9%; }
.focus-studio-info { top: 63.8%; left: 53.3%; width: 42.4%; height: 14.9%; }

.image-key {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.image-key li {
  padding: 11px 12px;
  border-left: 5px solid #e7312b;
  border-radius: 5px 13px 13px 5px;
  background: #fff4f1;
}

.image-key b,
.image-key span { display: block; }
.image-key b { color: #a82e27; font-size: 12px; }
.image-key span { margin-top: 2px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

.three-points { display: grid; gap: 8px; margin-top: 12px; }
.three-points > div { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 13px; background: #eff6f2; }
.three-points b { color: var(--green-deep); font-size: 12px; }
.three-points span { color: var(--ink-soft); font-size: 11px; }

.prompt-box { margin-top: 19px; padding: 20px 15px 15px; border: 2px solid #b9cfc4; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 5px #eef5f0; }
.prompt-box > p { display: inline-block; margin: -34px 0 10px; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--green); font-size: 10px; font-weight: 900; }
.prompt-box pre { margin: 5px 0 14px; color: #253b35; font: 600 13px/1.85 "Zen Maru Gothic", sans-serif; white-space: pre-wrap; }
.copy-button { width: 100%; min-height: 54px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(180deg, #238069, var(--green)); box-shadow: inset 0 -4px 0 var(--green-deep); font: 900 14px "Zen Maru Gothic", sans-serif; cursor: pointer; }
.copy-button.is-copied { background: linear-gradient(180deg, #e7775f, var(--coral)); box-shadow: inset 0 -4px 0 #ad4733; }

.big-steps { display: grid; gap: 9px; margin: 19px 0 0; padding: 0; list-style: none; }
.big-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 10px; padding: 12px; border-radius: 16px; background: #eff6f2; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.big-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; }
.big-steps strong { color: var(--green-deep); }
.send-steps { margin-top: 13px; }

.after-check {
  margin: 12px 0 0;
  padding: 13px 14px;
  border: 1px solid #edc49f;
  border-radius: 16px;
  color: #6d574f;
  background: #fff6ed;
  font-size: 11px;
  line-height: 1.75;
}

.after-check strong { color: #9c482f; }

.good-to-know { margin-top: 12px; padding: 15px; border: 1px solid #b9d4df; border-radius: 18px; background: #eff9fb; }
.good-to-know strong { color: #216883; font-size: 12px; }
.good-to-know p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

.studio-section { padding-top: 2px; }
.tool-cards { display: grid; gap: 10px; margin-top: 12px; }
.tool-cards article { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; padding: 13px; border: 1px solid #c6dce3; border-radius: 17px; background: #f8fcfd; }
.tool-cards span { display: grid; place-items: center; grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; background: #e0f0f4; font-size: 18px; font-weight: 900; }
.tool-cards b { align-self: end; color: #216883; font-size: 13px; }
.tool-cards p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.tool-cards p strong { color: #216883; }

.free-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #bed9c9;
  border-radius: 18px;
  background: #eef8f1;
}

.free-note > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.free-note strong { color: var(--green-deep); font-size: 13px; }
.free-note p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.free-note a { display: inline-block; margin-top: 7px; color: var(--green-deep); font-size: 10px; font-weight: 900; text-underline-offset: 3px; }

.canva-section { padding-top: 2px; }
.canva-card { margin-top: 20px; padding: 17px; border: 1px solid #e4cbbd; border-radius: 22px; background: #fffaf4; }
.canva-label { display: flex; align-items: center; gap: 8px; color: #aa583f; font-size: 12px; }
.canva-label span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--coral); font-size: 11px; font-weight: 900; }
.canva-card h3 { margin: 10px 0 5px; font-size: 22px; }
.canva-card > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.canva-card .screen-frame { margin-top: 15px; }
.canva-steps { margin-top: 14px; }
.canva-visual-steps { display: grid; gap: 12px; margin-top: 14px; }
.focus-canva-color-overview { top: 6.9%; left: 61.2%; width: 2.8%; height: 3.2%; }
.focus-canva-eyedropper-overview { top: 21.4%; left: 12.3%; width: 3.3%; height: 4.1%; }
.focus-magic-edit-overview { top: 6.8%; left: 47.4%; width: 4.7%; height: 3.7%; }
.focus-magic-button-overview { top: 25.8%; left: 15.3%; width: 6.5%; height: 11.6%; }

.chapter-divider {
  display: grid;
  gap: 12px;
  margin: 52px -20px 18px;
  padding: 19px 15px 20px;
  border-top: 1px solid #b8d7cb;
  border-bottom: 1px solid #e2c5b7;
  background: linear-gradient(135deg, #eaf7f2, #fff8ef 78%);
  text-align: center;
}
.chapter-divider-labels { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: min(100%, 560px); margin: 0 auto; }
.chapter-divider-labels > span { color: var(--ink-soft); font-size: 11px; font-weight: 700; line-height: 1.55; }
.chapter-divider-labels > span:last-child { color: #9b4d38; }
.chapter-divider-labels b { display: block; margin-bottom: 2px; color: var(--green-deep); font-size: 10px; }
.chapter-divider-labels > span:last-child b { color: var(--coral); }
.chapter-divider-labels i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--coral); font-size: 18px; font-style: normal; font-weight: 900; }
.chapter-divider p { max-width: 450px; margin: 0 auto; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.chapter-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 16px; border: 1px solid #d79c86; border-radius: 14px; color: #8f4937; background: rgba(255, 255, 255, 0.82); font-size: 12px; font-weight: 900; text-decoration: none; }
.chapter-link span { color: var(--coral); font-size: 17px; line-height: 1; }

#gemini-title,
#canva-title { scroll-margin-top: 86px; }

.finish-card { display: grid; grid-template-columns: 46px 1fr; gap: 13px; margin-top: 44px; padding: 19px 16px; border-radius: 22px; background: linear-gradient(140deg, #e2f1e8, #fff3ce); }
.finish-card > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--green); font-size: 23px; font-weight: 900; }
.finish-card h2 { margin: 1px 0 5px; font-size: 20px; }
.finish-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

footer { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(217, 209, 187, 0.75); color: var(--ink-soft); background: rgba(255, 253, 247, 0.96); font-size: 11px; font-weight: 700; text-align: center; }
footer a { text-decoration: underline; text-decoration-color: rgba(93, 110, 104, 0.45); text-underline-offset: 3px; }

.toast { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px; z-index: 10; max-width: 560px; margin: auto; padding: 14px; border-radius: 16px; color: #fff; background: rgba(27, 60, 50, 0.96); box-shadow: 0 14px 35px rgba(24, 49, 42, 0.3); font-size: 12px; font-weight: 900; text-align: center; }
.toast[hidden] { display: none; }

@media (min-width: 761px) {
  body { padding: 24px 0; }
  .page-shell { min-height: calc(100dvh - 48px); border-radius: 30px; }
  main { padding-right: 34px; padding-left: 34px; }
  .image-key { grid-template-columns: repeat(3, 1fr); }
  .image-key li { min-height: 92px; }
  .tool-cards { grid-template-columns: repeat(3, 1fr); }
  .tool-cards article { display: block; min-height: 230px; }
  .tool-cards span { margin-bottom: 10px; }
  .tool-cards b, .tool-cards p { display: block; }
  .tool-intro-cards { grid-template-columns: repeat(2, 1fr); }
  .chapter-divider { margin-right: -34px; margin-left: -34px; }
}

@media (max-width: 390px) { main { padding-right: 15px; padding-left: 15px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
