/* KOMADEKI's established teal, warm yellow and readable typography. */
:root {
  color-scheme: light;
  --kd-ink: #243f4a;
  --kd-muted: #576d77;
  --kd-teal: #117e85;
  --kd-deep: #086a72;
  --kd-wash: #e7f4f3;
  --kd-line: #dce7eb;
  --kd-gold: #b77829;
  --kd-gold-wash: #fff2dc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--kd-ink); font: 14px/1.9 "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: #117e8520; }
a:focus-visible { outline: 3px solid var(--kd-teal); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700; }
.kd-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.kd-skip { position: absolute; top: 8px; left: 12px; padding: 10px 16px; background: #fff; border: 2px solid var(--kd-teal); z-index: 10; transform: translateY(-160%); }
.kd-skip:focus { transform: translateY(0); }
.kd-head { max-width: 1248px; margin: auto; min-height: 98px; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #edf1f2; }
.kd-logo { display: flex; align-items: center; gap: 14px; font: 700 24px/1.35 "Zen Kaku Gothic New", sans-serif; letter-spacing: .06em; }
.kd-logo small { display: block; margin-top: 5px; font: 400 10px/1.6 "BIZ UDPGothic", sans-serif; letter-spacing: .06em; }
.kd-brand-mark { display: grid; place-items: center; position: relative; width: 44px; height: 44px; flex-shrink: 0; background: var(--kd-teal); color: #fff; border-radius: 12px 12px 4px 12px; box-shadow: 4px 4px 0 #d1e9e8; font-size: 29px; }
.kd-brand-mark > span { position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 7px; right: 6px; background: #f0ca77; }
.kd-nav { display: flex; gap: 30px; color: var(--kd-muted); font-size: 12px; }
.kd-nav a { padding: 10px 0; }
.kd-nav a:hover, .kd-footer nav a:hover { color: var(--kd-teal); text-decoration: underline; text-underline-offset: 5px; }
.kd-eyebrow { font-size: 12px; line-height: 1.7; color: var(--kd-deep); font-weight: 700; letter-spacing: .035em; }
.kd-hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; padding-block: 66px 62px; }
.kd-hero .kd-eyebrow { display: flex; gap: 9px; align-items: center; }
.kd-eyebrow > span { display: inline-block; width: 8px; height: 8px; background: #dfaf5e; border-radius: 50%; flex-shrink: 0; }
.kd-hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.48; letter-spacing: .015em; margin: 22px 0; }
.kd-hero h1 em { color: var(--kd-teal); font-style: normal; }
.kd-hero-lead { color: var(--kd-muted); font-size: 14px; line-height: 2.2; }
.kd-main-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 24px; margin-top: 26px; min-height: 54px; background: var(--kd-deep); color: #fff; border-radius: 12px; box-shadow: 0 4px 0 #07535a; font-size: 13px; font-weight: 700; }
.kd-main-action:hover { background: #075860; }
.kd-hero-foot { font-size: 11px; color: var(--kd-muted); margin-top: 16px; }
.kd-scene { position: relative; padding: 26px 10px 0 15px; min-width: 0; isolation: isolate; }
.kd-scene::before { content: ""; position: absolute; z-index: -1; inset: 0 -5px 8px 0; background: #e4edef; border-radius: 42% 48% 38% 24%; }
.kd-spark { position: absolute; z-index: 2; top: -5px; left: 20px; color: #cda65c; font-size: 34px; transform: rotate(12deg); }
.kd-board { padding: 12px; background: #26383f; color: #e7eff2; border: 1px solid #43575f; border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 14px 28px #243b4526; overflow: hidden; }
.kd-board-top, .kd-board-bottom { display: flex; align-items: center; gap: 7px; padding: 1px 3px 11px; font-size: 10px; }
.kd-board-top > span:last-child, .kd-board-bottom > span:last-child { margin-left: auto; color: #b7d9dc; }
.kd-board-dot { width: 7px; height: 7px; border-radius: 50%; background: #e8bd68; }
.kd-board img { width: 100%; height: auto; border-radius: 6px; }
.kd-board-bottom { padding: 10px 3px 0; }
.kd-scene-note { position: absolute; z-index: 2; right: -6px; bottom: 96px; display: flex; align-items: center; gap: 12px; padding: 16px 22px 16px 16px; border-radius: 14px; background: #f8fbfb; border: 1px solid #d6e1e4; box-shadow: 0 8px 28px #274f5d1a; transform: rotate(3deg); }
.kd-scene-note strong { font-size: 12px; line-height: 1.7; }
.kd-note-symbol { display: grid; place-items: center; width: 34px; height: 34px; background: var(--kd-gold-wash); color: var(--kd-gold); border-radius: 10px; font-size: 20px; }
.kd-answer-line { display: block; height: 4px; width: 96px; background: #d5e5e8; border-radius: 5px; margin-top: 8px; }
.kd-people { width: 91%; height: auto; margin: -3px auto 0; position: relative; }
.kd-products { padding-block: 44px 64px; border-top: 1px solid var(--kd-line); }
.kd-section-label { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.kd-section-label h2 { font-size: 30px; line-height: 1.65; margin-top: 12px; }
.kd-section-label > p { font-size: 12px; color: var(--kd-muted); padding-bottom: 7px; }
.kd-mobile-break { display: none; }
.kd-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.kd-product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--kd-line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 6px 22px #243f4a06; }
.kd-product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; background: #fdf7ec; }
.kd-studio .kd-product-head { background: #edf7f7; }
.kd-product-kind { font: 700 16px/1.7 "Zen Kaku Gothic New", sans-serif; }
.kd-product-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--kd-gold); }
.kd-studio .kd-product-label { color: var(--kd-teal); }
.kd-real { padding: 20px 24px 16px; background: #fdf7ec; }
.kd-studio .kd-real { background: #edf7f7; }
.kd-sample { padding: 8px; background: #fff; border: 1px solid #e2e4df; border-radius: 9px; box-shadow: 0 4px 12px #243f4a09; }
.kd-sample img { width: 100%; height: 260px; object-fit: contain; }
.kd-real figcaption { margin-top: 12px; color: var(--kd-muted); font-size: 11px; }
.kd-content { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.kd-for { font-size: 12px; color: var(--kd-deep); font-weight: 700; margin-bottom: 9px; }
.kd-content h3 { font-size: 34px; line-height: 1.4; }
.kd-formal { margin-top: 5px; font-size: 12px; color: var(--kd-muted); }
.kd-desc { margin-block: 22px 25px; color: var(--kd-muted); line-height: 2; font-size: 14px; flex: 1; }
.kd-action { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 11px; background: var(--kd-deep); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 3px 0 #07535a; }
.kd-action:hover { background: #075860; }
.kd-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 27px; font-size: 11px; color: var(--kd-muted); margin-top: 15px; }
.kd-status { display: inline-block; color: #8a6427; background: var(--kd-gold-wash); border-radius: 20px; padding: 2px 10px; }
.kd-trust { padding-block: 8px 0; }
.kd-trust-link { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 38px; align-items: center; padding: 32px 42px; border-radius: 22px; background: #edf7f7; border: 1px solid #d6e9eb; }
.kd-youtube-art { min-height: 144px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.kd-youtube-art > span { display: grid; place-items: center; width: 64px; height: 45px; border-radius: 13px; background: var(--kd-deep); color: #fff; padding-left: 3px; font-size: 19px; }
.kd-youtube-art small { font-weight: 700; font-size: 12px; }
.kd-trust h2 { font-size: 25px; line-height: 1.6; margin-block: 9px; }
.kd-trust-copy { font-size: 12px; color: var(--kd-muted); }
.kd-youtube-action { display: inline-flex; gap: 30px; color: var(--kd-deep); font-size: 12px; font-weight: 700; margin-top: 14px; }
.kd-trust-link:hover .kd-youtube-action { text-decoration: underline; text-underline-offset: 5px; }
.kd-about { display: grid; grid-template-columns: 1fr 1.08fr; gap: 60px; padding-block: 82px; }
.kd-about h2 { font-size: 34px; line-height: 1.6; margin-top: 17px; }
.kd-about-rule { display: block; width: 52px; height: 5px; border-radius: 4px; background: #dfaf5e; margin-top: 22px; }
.kd-about-copy { font-size: 13px; color: var(--kd-muted); line-height: 2.3; padding-top: 28px; }
.kd-about-copy p + p { margin-top: 18px; }
.kd-footer { border-top: 1px solid var(--kd-line); padding-block: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; justify-content: space-between; }
.kd-footer-brand { font: 700 20px/1.5 "Zen Kaku Gothic New", sans-serif; letter-spacing: .06em; }
.kd-footer-brand small { display: block; font-size: 10px; font-weight: 500; color: var(--kd-muted); }
.kd-footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 11px; color: var(--kd-muted); }
.kd-copyright { font-size: 10px; color: var(--kd-muted); }
@media (max-width: 900px) {
  .kd-hero { gap: 24px; }
  .kd-scene-note { right: 0; padding: 12px; bottom: 65px; }
  .kd-hero-lead { font-size: 12px; }
  .kd-section-label { display: block; }
  .kd-section-label > p { margin-top: 12px; }
  .kd-sample img { height: 210px; }
  .kd-product-head { padding-inline: 20px; }
  .kd-product-kind { font-size: 14px; }
  .kd-product-label { display: none; }
  .kd-real { padding-inline: 20px; }
}
@media (max-width: 640px) {
  .kd-wrap { width: calc(100% - 36px); }
  .kd-head { min-height: 80px; padding: 16px 18px; gap: 14px; }
  .kd-logo { font-size: 19px; gap: 10px; }
  .kd-logo small { font-size: 9px; letter-spacing: 0; }
  .kd-brand-mark { width: 36px; height: 36px; font-size: 24px; border-radius: 10px 10px 3px 10px; }
  .kd-nav { gap: 12px; font-size: 10px; }
  .kd-nav a:last-child { display: none; }
  .kd-hero { grid-template-columns: 1fr; gap: 12px; padding-block: 24px 20px; }
  .kd-eyebrow { font-size: 11px; }
  .kd-hero h1 { font-size: clamp(38px, 10.5vw, 48px); line-height: 1.45; margin-block: 12px; }
  .kd-hero-lead { font-size: 12px; line-height: 2; }
  .kd-main-action { padding: 15px 20px; margin-top: 22px; font-size: 12px; }
  .kd-hero-foot { margin-top: 13px; }
  .kd-scene { width: min(210px, 64%); margin-inline: auto; padding: 12px 8px 0; }
  .kd-scene-note { display: none; }
  .kd-scene-note strong { font-size: 11px; }
  .kd-note-symbol { width: 30px; height: 30px; }
  .kd-board-top, .kd-board-bottom { font-size: 9px; }
  .kd-products { padding-block: 24px 38px; }
  .kd-section-label { margin-bottom: 22px; }
  .kd-section-label h2 { font-size: 25px; line-height: 1.6; margin-top: 10px; }
  .kd-section-label > p { font-size: 11px; line-height: 1.8; margin-top: 10px; }
  .kd-mobile-break { display: initial; }
  .kd-grid { gap: 12px; }
  .kd-product { border-radius: 15px; }
  .kd-product-head { padding: 15px 12px 0; }
  .kd-product-kind { font-size: 12px; min-height: 40px; }
  .kd-real { padding: 12px 9px; }
  .kd-sample { padding: 3px; border-radius: 5px; }
  .kd-sample img { height: 112px; }
  .kd-real figcaption { font-size: 10px; line-height: 1.8; min-height: 54px; margin-top: 9px; }
  .kd-content { padding: 18px 12px; }
  .kd-for { font-size: 11px; line-height: 1.8; min-height: 40px; margin-bottom: 8px; }
  .kd-content h3 { font-size: 26px; }
  .kd-formal { font-size: 10px; min-height: 36px; line-height: 1.8; margin-top: 6px; }
  .kd-desc { font-size: 11px; margin-block: 15px 20px; line-height: 2; }
  .kd-action { padding: 12px 10px; font-size: 11px; min-height: 46px; border-radius: 8px; }
  .kd-note { font-size: 10px; align-content: flex-start; line-height: 1.8; min-height: 40px; margin-top: 14px; gap: 4px; }
  .kd-status { padding: 1px 7px; }
  .kd-trust-link { grid-template-columns: 1fr; gap: 18px; padding: 24px; border-radius: 18px; }
  .kd-youtube-art { min-height: 0; width: auto; flex-direction: row; justify-content: flex-start; background: none; gap: 12px; }
  .kd-youtube-art > span { width: 44px; height: 32px; border-radius: 9px; font-size: 14px; }
  .kd-youtube-art small { font-size: 15px; }
  .kd-trust h2 { font-size: clamp(17px, 5vw, 21px); margin-block: 12px; }
  .kd-trust-copy { font-size: 11px; }
  .kd-about { grid-template-columns: 1fr; gap: 24px; padding-block: 46px; }
  .kd-about h2 { font-size: 29px; margin-top: 13px; }
  .kd-about-rule { margin-top: 18px; }
  .kd-about-copy { padding-top: 0; font-size: 12px; line-height: 2.2; }
  .kd-desktop-break { display: none; }
  .kd-footer { padding-block: 24px; gap: 20px; }
  .kd-footer-brand { font-size: 18px; }
  .kd-footer nav { gap: 16px; }
  .kd-copyright { width: 100%; }
}
@media (max-width: 360px) {
  .kd-wrap { width: calc(100% - 28px); }
  .kd-content { padding-inline: 10px; }
  .kd-grid { gap: 9px; }
  .kd-content h3 { font-size: 24px; }
  .kd-logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Put the two lesson products inside the initial mobile viewport. */
.kd-mobile-product-name { display: none; }
@media (max-width: 640px) {
  .kd-head { min-height: 68px; padding-block: 12px; }
  .kd-hero { grid-template-columns: minmax(0, 1fr) 125px; gap: 12px 8px; padding-block: 20px 22px; }
  .kd-hero-copy { display: contents; }
  .kd-hero .kd-eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .kd-hero h1 { grid-column: 1; grid-row: 2; font-size: clamp(30px, 8.9vw, 38px); line-height: 1.45; margin: 0; }
  .kd-scene { grid-column: 2; grid-row: 2; width: 125px; margin: 0; padding: 7px 4px 0; }
  .kd-board { padding: 4px; border-radius: 7px; }
  .kd-board-top, .kd-board-bottom, .kd-spark { display: none; }
  .kd-people { width: 100%; }
  .kd-hero-lead { grid-column: 1 / -1; grid-row: 3; font-size: 11px; }
  .kd-main-action { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 2px; min-height: 44px; padding-block: 12px; }
  .kd-hero-foot { display: none; }
  .kd-products { padding-top: 22px; }
  .kd-section-label { margin-bottom: 18px; }
  .kd-section-label h2 { font-size: 23px; margin-top: 7px; }
  .kd-mobile-break { display: none; }
  .kd-section-label > p { margin-top: 7px; }
  .kd-product-head { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; }
  .kd-product-kind { min-height: 0; font-size: 10px; }
  .kd-mobile-product-name { display: block; font-size: 25px; line-height: 1.4; }
  .kd-content > h3 { display: none; }
}
@media (max-width: 360px) {
  .kd-hero { grid-template-columns: minmax(0, 1fr) 108px; }
  .kd-scene { width: 108px; }
  .kd-mobile-product-name { font-size: 23px; }
}
@media (max-width: 640px) {
  /* Products are directly below, so the extra jump link is redundant here. */
  .kd-main-action, .kd-section-label .kd-eyebrow, .kd-section-label > p { display: none; }
  .kd-section-label h2 { margin-top: 0; }
}

/* App introduction retains the established visual design. */
.kd-app-overview { display: grid; gap: 18px; min-width: 0; padding: 30px; border-radius: 30px; background: var(--kd-wash); }
.kd-app-overview > a { display: flex; align-items: center; gap: 16px; padding: 20px; min-width: 0; border-radius: 18px; background: #fff; box-shadow: 0 6px 24px #243f4a08; }
.kd-app-overview img { border-radius: 15px; flex-shrink: 0; }
.kd-app-overview > a > span { display: grid; gap: 4px; min-width: 0; }
.kd-app-overview small { color: var(--kd-teal); font-size: 10px; letter-spacing: .1em; }
.kd-app-overview strong { font-size: 16px; }
.kd-app-overview > a > span > span { color: var(--kd-muted); font-size: 11px; }
.kd-app-overview b { margin-left: auto; color: var(--kd-teal); }
.kd-app-home .kd-content h3 { font-size: 27px; }
.kd-all-apps { display: flex; justify-content: center; gap: 24px; margin-top: 28px; padding: 18px; border: 1px solid var(--kd-line); border-radius: 12px; color: var(--kd-deep); font-weight: 700; }
.kd-support-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 32px; background: var(--kd-wash); border-radius: 22px; }
.kd-support-panel h2 { font-size: 24px; margin: 10px 0; }
.kd-support-panel p:last-child { color: var(--kd-muted); font-size: 12px; }
.kd-support-panel nav { display: grid; gap: 10px; align-content: center; }
.kd-support-panel nav a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 10px; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) {
  .kd-app-overview { padding: 20px; }
  .kd-app-overview > a { padding: 16px; gap: 12px; }
  .kd-app-overview img { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .kd-app-home .kd-hero { display: block; padding-block: 24px; }
  .kd-app-home .kd-hero-copy { display: block; }
  .kd-app-home .kd-hero h1 { margin: 10px 0; }
  .kd-app-overview { display: none; }
  .kd-app-home .kd-section-label h2 { font-size: 20px; }
  .kd-app-home .kd-mobile-product-name { min-height: 46px; font-size: 16px; line-height: 1.45; }
  .kd-app-home .kd-product-head { padding-inline: 12px; }
  .kd-app-home .kd-product-kind { min-height: 32px; font-size: 9px; }
  .kd-app-home .kd-real { padding: 12px; }
  .kd-app-home .kd-sample img { height: 150px; }
  .kd-app-home .kd-real figcaption { font-size: 9px; }
  .kd-app-home .kd-desc { margin-block: 12px 18px; font-size: 11px; }
  .kd-app-home .kd-note { min-height: 36px; font-size: 9px; }
  .kd-all-apps { margin-top: 20px; font-size: 12px; }
  .kd-support-panel { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .kd-support-panel h2 { font-size: 20px; }
}
