.course-hero{background:linear-gradient(115deg,#e5f1ff 0%,#fbfdff 52%,#fff2c2 100%)}
.course-hero h1{font-size:clamp(2.15rem,3.9vw,3.25rem);line-height:1.38;text-wrap:balance;overflow-wrap:anywhere}
.course-hero-art{position:relative;align-self:stretch;min-height:390px;border:2px solid #a5c4ec;border-radius:28px;background:radial-gradient(circle at 50% 45%,#fff 0 25%,#e4f2ff 60%,#fff1c6 100%);overflow:hidden}
.course-hero-art img{position:absolute;display:block;height:auto;object-fit:contain;filter:drop-shadow(0 7px 10px rgba(24,64,127,.18))}
.course-hero-art .hero-student-a{width:31%;left:2%;bottom:0}.course-hero-art .hero-teacher{width:27%;left:28%;bottom:3%}.course-hero-art .hero-roboron{width:28%;left:49%;bottom:2%}.course-hero-art .hero-student-b{width:31%;right:0;bottom:0}
.hero-symbol{position:absolute;top:7%;left:7%;color:rgba(23,71,155,.12);font:950 clamp(7rem,19vw,14rem)/1 Meiryo,sans-serif}
.term-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.term-row>strong{margin-right:4px;color:var(--deep);font-size:.83rem}.term-row .term{padding:4px 8px;border:1px solid #a8c4ea;border-radius:8px;background:#f1f7ff;font-size:.82rem}
.generated-section .talk{margin:22px 0 28px}.example-caption{display:flex;justify-content:space-between;gap:15px;align-items:baseline;margin:0 0 8px}.example-caption strong{color:var(--deep);font-size:.9rem}.example-caption span{color:#526d90;font-size:.76rem;font-weight:850}.lesson-code{margin-top:0}.result-card{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;margin-top:13px;padding:12px 16px;border:2px solid #b4d2f0;border-radius:11px;background:#eaf4ff}.result-card strong{color:var(--blue);font-size:.82rem}.result-card span{color:var(--deep);font-weight:900}.explain-line{margin:15px 0 0;font-weight:750}.explain-line strong{color:var(--red)}
.learning-figure{margin:25px 0 0;padding:22px;background:#fff;border:2px solid var(--blue);border-radius:20px;box-shadow:7px 7px 0 #dbe9ff}.step-flow{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin-top:18px}.step-card{position:relative;display:flex;flex:1 1 115px;min-width:0;flex-direction:column;justify-content:center;padding:13px 14px;background:#f0f6ff;border:2px solid #a7c5ec;border-radius:13px;text-align:center}.step-card:nth-child(even){background:#fff5ce;border-color:#e0bd59}.step-card span{color:var(--red);font-size:.72rem;font-weight:950}.step-card strong{color:var(--deep);font-size:clamp(.92rem,1.4vw,1.12rem);line-height:1.45;overflow-wrap:anywhere}.step-card small{display:block;margin-top:5px;color:#455e7f;font-size:.75rem;font-weight:850;line-height:1.5;overflow-wrap:anywhere}.learning-figure figcaption{margin-top:17px;padding-top:11px;border-top:1px solid var(--line);color:#425c7d;font-size:.83rem}
.coffee-break{scroll-margin-top:100px;margin:55px 0 50px;padding:24px 27px;border:2px solid #e0bc53;border-radius:22px;background:linear-gradient(125deg,#fff4c9,#fffdf5);box-shadow:6px 6px 0 #f2e4b4}.coffee-break h2{margin:5px 0 17px;color:var(--deep);font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.4}.coffee-dialogue{display:grid;grid-template-columns:95px minmax(0,1fr);gap:14px}.coffee-dialogue img{width:95px;height:95px;object-fit:contain}.coffee-dialogue p{margin:0 0 9px;font-size:.91rem}.coffee-dialogue strong{color:var(--blue)}.lesson-prev-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.lesson-prev-next a{display:flex;min-width:0;min-height:54px;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:2px solid var(--blue);border-radius:10px;background:#fff;color:var(--deep);font-weight:950;line-height:1.5;text-align:center;text-decoration:none;overflow-wrap:anywhere}.lesson-prev-next a:last-child{background:var(--blue);color:#fff}.lesson-prev-next a:hover{box-shadow:4px 4px 0 var(--yellow)}
.practice-block{margin-top:34px;padding:23px 27px;background:#fff;border:2px solid #a4c3eb;border-radius:18px}.practice-heading{display:flex;align-items:center;gap:12px}.practice-heading img{width:70px;height:70px;object-fit:contain}.practice-heading h2{margin:2px 0;color:var(--deep);font-size:clamp(1.3rem,2.5vw,1.7rem);line-height:1.4}.practice-block>p{margin:12px 0}.practice-hint{padding:9px 12px;background:#edf5ff;border-left:4px solid var(--blue)}.practice-block details{margin-top:16px}.practice-block summary{padding:11px 14px;border:2px solid var(--blue);border-radius:9px;color:var(--deep);font-weight:950;cursor:pointer}.practice-answer{margin-top:13px}.practice-block details p{font-weight:750}
.advanced-topics{margin-top:40px;padding:20px 23px;background:#f8fbff;border:2px dashed #9bbde8;border-radius:17px}.advanced-topics h3{margin:8px 0 14px;color:var(--deep);font-size:1.4rem}.advanced-topics details{margin-top:11px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:10px}.advanced-topics summary{color:var(--blue);font-weight:950;cursor:pointer}.advanced-topics pre{margin-top:11px}.advanced-topics details p{margin:10px 0 2px;font-size:.87rem;font-weight:750}
.additional-lessons{padding-top:20px}.additional-grid .future-tile{display:grid;grid-template-columns:145px minmax(0,1fr);min-height:215px}.additional-grid .future-tile:nth-child(even){background:#fffcf4}.additional-grid .future-tile:last-child:nth-child(odd){grid-column:auto;display:grid;grid-template-columns:145px minmax(0,1fr)}.future-tile-art{position:relative;display:flex;align-items:end;justify-content:center;min-height:100%;padding:10px;background:linear-gradient(145deg,#dcecff,#fdf6d7);overflow:hidden}.future-tile-art img{position:relative;z-index:1;max-width:100%;max-height:150px;object-fit:contain}.future-tile-number{position:absolute;top:6px;left:6px;color:rgba(23,71,155,.28);font:950 4.8rem/1 Arial,sans-serif}.additional-grid .tile-body{padding:18px 20px}.additional-grid .tile-body h3{font-size:1.34rem;margin:4px 0 6px}.additional-grid .tile-body p{min-height:0;font-size:.85rem;line-height:1.6}.additional-grid .tile-body a{margin-top:13px;font-size:.84rem}
@media(max-width:1100px){.additional-grid .future-tile,.additional-grid .future-tile:last-child:nth-child(odd){grid-template-columns:110px minmax(0,1fr)}.future-tile-art img{max-height:125px}}
@media(max-width:760px){.course-hero-art{width:min(100%,620px);min-height:330px;justify-self:center}.additional-lessons{padding-top:15px}.additional-grid .future-tile,.additional-grid .future-tile:last-child:nth-child(odd){grid-template-columns:130px minmax(0,1fr)}.coffee-break{scroll-margin-top:15px}}
@media(max-width:650px){.lesson-prev-next{grid-template-columns:minmax(0,1fr)}.lesson-prev-next a{width:100%}}
@media(max-width:520px){.course-hero-art{min-height:250px}.course-hero h1{font-size:clamp(2.3rem,9vw,3.25rem)}.step-card{flex-basis:calc(50% - 7px)}.learning-figure{padding:16px}.coffee-break{padding:18px}.coffee-dialogue{grid-template-columns:1fr}.coffee-dialogue img{width:68px;height:68px}.additional-grid .future-tile,.additional-grid .future-tile:last-child:nth-child(odd){display:block}.future-tile-art{min-height:130px;height:130px;align-items:end}.additional-grid .tile-body{padding:18px}.lesson-prev-next a{font-size:.9rem;padding:10px 12px}}
@media print{.course-hero-art{display:none}.lesson-prev-next,.term-row{display:none}.learning-figure,.coffee-break{box-shadow:none}}
.coffee-dialogue{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
.coffee-dialogue .bubble{max-width:none}
.coffee-dialogue .bubble>img{width:68px;height:68px;object-fit:contain}
@media(max-width:520px){.coffee-dialogue .bubble>img{width:52px;height:52px}}
.learning-picture{display:block;margin-top:18px;overflow:hidden;border-radius:14px;background:linear-gradient(125deg,#f7fbff,#fffdf2)}
.learning-picture img{display:block;width:100%;height:auto;margin:0 auto}
.generated-section .note.with-robot{display:flex;align-items:center;gap:14px}
.generated-section .note.with-robot img{flex:none;width:74px;height:74px;object-fit:contain}
.generated-section .note.with-robot p{margin:5px 0 0}
@media(max-width:520px){.generated-section .note.with-robot{align-items:flex-start}.generated-section .note.with-robot img{width:56px;height:56px}}
