:root{color-scheme:light;--bg:#f8f6f6;--white:#fff;--ink:#281d27;--muted:#6c5d68;--quiet:#82747f;--line:#eae2e7;--plum:#6c305e;--plum-dark:#4b2042;--tint:#f5eaf1;--coral:#b94e54;--green:#226b55;--radius:18px;--shadow:0 10px 28px #441e3910;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-width:320px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b86ca5;outline-offset:3px}h1,h2,h3,p{margin:0}p{line-height:1.65}img{max-width:100%;height:auto}strong{font-weight:700}[hidden]{display:none!important}
.shell{width:min(100%,1560px);margin:auto;display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:38px;padding:32px 22px 22px;background:#fff;border-right:1px solid var(--line);z-index:2}.brand{display:inline-flex;align-items:center;gap:11px;width:max-content}.brand-symbol{width:43px;height:43px;border-radius:13px;background:var(--plum);color:white;display:grid;place-items:center;font-family:"Yu Mincho","Hiragino Mincho ProN","Songti SC",serif;font-size:24px;font-weight:700;box-shadow:inset 0 0 0 1px #fffa}.brand strong,.brand small{display:block}.brand strong{font-size:15px;letter-spacing:.03em}.brand small{color:var(--quiet);font-size:12px;margin-top:3px;letter-spacing:.18em}.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:11px;padding:12px;border-radius:11px;color:var(--muted);font-size:15px}.nav a:hover,.nav a[aria-current=page]{color:var(--plum-dark);background:var(--tint);font-weight:680}.icon{font-family:system-ui,sans-serif;display:inline-grid;place-items:center;width:22px;min-width:22px;line-height:1;font-size:19px}.sidebar-foot{margin-top:auto;display:grid;gap:13px;font-size:14px}.sidebar-foot a,.side-link{padding:10px 12px;border-radius:10px;text-align:left;color:var(--muted);border:0;background:transparent}.sidebar-foot a:hover,.side-link:hover{background:var(--tint);color:var(--plum-dark)}.workspace{min-width:0;padding:29px clamp(22px,4vw,60px) 52px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:23px}.topbar strong{font-size:15px}.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mobile-brand,.mobile-menu{display:none}.page-header{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:7px 0 23px}.page-header h1{font-size:clamp(28px,4vw,44px);line-height:1.23;letter-spacing:-.035em}.page-header p{margin-top:7px;color:var(--muted);font-size:15px}.breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--muted);margin:4px 0 17px}.breadcrumb a:hover{text-decoration:underline;color:var(--plum)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:9px 15px;border:1px solid transparent;border-radius:10px;font-size:14px;line-height:1.3;font-weight:680;background:var(--plum);color:#fff;text-align:center;white-space:nowrap}.button:hover{background:var(--plum-dark)}.button.soft{background:var(--tint);color:var(--plum-dark)}.button.soft:hover{background:#ecd7e7}.button.outline{background:#fff;color:var(--plum-dark);border-color:var(--line)}.button.outline:hover{border-color:#c58ab7}.button.invert{background:#fff;color:var(--plum-dark)}.button.invert:hover{background:#fbeaf5}.button.danger{background:#fff;color:#942940;border-color:#eccfd6}.button.danger:hover{background:#fff0f2}.text-link{font-size:14px;color:var(--plum);font-weight:660}.text-link:hover{text-decoration:underline}.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:7px;background:var(--tint);color:var(--plum-dark);font-size:13px;font-weight:650;line-height:1.25}.tag.ok{background:#e4f3ed;color:#22664e}.tag.neutral{background:#f2edf0;color:#554a54}.tag.wait{background:#fbefdd;color:#755019}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:316px;border-radius:23px;color:white;padding:clamp(24px,5vw,51px);display:flex;align-items:center;background:#361b32 radial-gradient(ellipse at 82% 30%,#8a404f 0%,#4d2948 42%,#2e1a30 75%);box-shadow:var(--shadow)}.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#261529f7 3%,#2e1736d5 40%,#2d13284f 77%,#2d13282b),url('/assets/kyoto-hero.jpg') 65% 52%/cover no-repeat;z-index:-1}.hero-copy{max-width:530px}.hero h1{font-size:clamp(32px,5.1vw,57px);font-weight:730;line-height:1.22;letter-spacing:-.045em;margin:11px 0 13px}.hero p{font-size:16px;color:#f3e6ef;max-width:430px}.hero-actions{display:flex;gap:12px;align-items:center;margin-top:24px;flex-wrap:wrap}.hero .tag{color:white;background:#ffffff24}.hero .secondary-on-dark{color:white;font-size:14px;padding:9px 3px}.hero .secondary-on-dark:hover{text-decoration:underline}
.section{margin-top:32px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}.section-heading h2{font-size:23px;letter-spacing:-.021em}.section-heading p{font-size:14px;color:var(--muted);margin-top:4px}.steps,.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.step{display:flex;align-items:center;gap:11px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px}.step-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:11px;background:var(--tint);color:var(--plum)}.step:nth-child(2) .step-icon{background:#fbe9e9;color:#923845}.step:nth-child(3) .step-icon{background:#eeeafb;color:#5d4a8a}.step strong,.step small{display:block}.step small{font-size:13px;color:var(--muted);margin-top:3px}.course-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:white;transition:border-color .15s,box-shadow .15s}.course-card:hover{border-color:#cdabca;box-shadow:var(--shadow)}.course-art{height:114px;position:relative;overflow:hidden;padding:13px 15px;display:flex;align-items:flex-end;isolation:isolate;background:var(--cover-bg,#e9e3f5);color:var(--cover-ink,#55376f)}.course-art::before,.course-art::after{content:"";position:absolute;border:1px solid currentColor;border-radius:50%;opacity:.16;z-index:-1}.course-art::before{width:145px;height:145px;right:-12px;top:-40px;box-shadow:0 0 0 13px var(--cover-bg,#e9e3f5),0 0 0 14px currentColor,0 0 0 29px var(--cover-bg,#e9e3f5),0 0 0 30px currentColor}.course-art::after{width:8px;height:8px;right:28px;bottom:20px;background:currentColor}.course-art[lang=ja]{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(17px,2.1vw,26px);font-weight:650}.tone-zero{--cover-bg:#ede6f7;--cover-ink:#55376f}.tone-scene{--cover-bg:#f6e1e1;--cover-ink:#823647}.tone-daily{--cover-bg:#e0eee9;--cover-ink:#235951}.tone-real{--cover-bg:#e3ebf6;--cover-ink:#2f4775}.tone-news{--cover-bg:#f6edd9;--cover-ink:#6d5121}.card-body{padding:15px}.card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px}.card-body h3{font-size:18px;line-height:1.4;margin:9px 0 4px}.card-body p{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.filters a{padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:white;font-size:14px}.filters a[aria-current=page]{background:var(--tint);border-color:#d9bed3;color:var(--plum-dark);font-weight:700}.searchbar{display:flex;gap:9px;align-items:end;margin-bottom:18px}.searchbar input{min-width:0;flex:1;max-width:400px}.input,select,textarea,input:not([type=checkbox]):not([type=range]):not([type=file]){width:100%;padding:10px 12px;border:1px solid #dbced8;border-radius:9px;background:#fff;color:var(--ink);min-height:42px}select{appearance:none;background:#fff linear-gradient(45deg,transparent 50%,var(--plum) 50%) calc(100% - 15px) 52%/6px 6px no-repeat;background-image:linear-gradient(45deg,transparent 50%,var(--plum) 50%),linear-gradient(135deg,var(--plum) 50%,transparent 50%);background-position:calc(100% - 15px) 53%,calc(100% - 9px) 53%;background-size:6px 6px;background-repeat:no-repeat;padding-right:26px}textarea{min-height:93px;resize:vertical}.form-grid{display:grid;gap:14px}.form-grid label{display:grid;gap:6px;font-size:14px;font-weight:650}.form-grid .check{display:flex;gap:8px;align-items:center}.form-grid .hint,.hint{font-size:13px;color:var(--muted);font-weight:400}.form-message{color:#a32342;font-size:14px;min-height:1.2em}.auth{max-width:440px;margin:42px auto;width:100%;padding:27px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:var(--shadow)}.auth h1{font-size:29px;margin-bottom:4px}.auth>p{font-size:14px;color:var(--muted);margin:0 0 20px}.auth .form-grid{margin-bottom:14px}.auth .button{width:100%}.panel,.empty{background:white;border:1px solid var(--line);border-radius:15px;padding:20px}.empty{text-align:center;padding:38px 21px}.empty h2{font-size:20px}.empty p{font-size:15px;color:var(--muted);margin:7px 0 14px}.detail{max-width:770px;background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden}.detail .course-art{height:176px;padding:24px;font-size:clamp(24px,4.7vw,49px)}.detail-copy{padding:24px}.detail-copy h1{font-size:clamp(27px,4vw,40px);margin:9px 0}.detail-copy>p{margin:0 0 20px;color:var(--muted)}.detail-copy .tag{margin-right:7px}.split{display:grid;grid-template-columns:1.28fr 1fr;gap:18px;align-items:start}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat{background:#fff;padding:16px;border:1px solid var(--line);border-radius:12px}.stat strong{font-size:31px;color:var(--plum-dark);display:block}.stat span{color:var(--muted);font-size:14px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:13px}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th,td{padding:12px 13px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-weight:670;background:#fbf8fa;white-space:nowrap}tr:last-child td{border-bottom:0}td p{margin-top:4px;color:var(--muted);font-size:13px}.row-actions,.inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-item p{color:var(--muted);font-size:14px;margin-top:4px}
.learn-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(260px,.82fr);gap:16px;align-items:start}.learn-box{display:grid;gap:13px;min-width:0}.player{padding:14px;border:1px solid var(--line);background:#fff;border-radius:15px;overflow:hidden}.player audio,.video-player{width:100%;display:block}.video-player{aspect-ratio:16/9;border:0;background:#231a24}.play-options{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:9px}.play-options label{display:flex;gap:6px;align-items:center;font-size:14px}.play-options select{width:auto;min-height:34px;padding:5px 25px 5px 8px}.focus-line{padding:18px;background:#fff;border:1px solid #e2cfdf;border-radius:14px;overflow-wrap:anywhere}.focus-line .jp{font-size:clamp(22px,3vw,34px);line-height:1.5;font-weight:690;letter-spacing:.01em;margin:6px 0}.focus-line .reading{font-size:14px;color:var(--plum)}.focus-line .translation{color:var(--muted);margin-top:6px}.focus-line .teaching{margin-top:14px;border-top:1px solid var(--line);padding-top:11px;font-size:14px}.focus-line .teaching summary{color:var(--plum);cursor:pointer;font-weight:660}.focus-line .teaching p{margin-top:6px}.timeline{background:white;border:1px solid var(--line);border-radius:14px;padding:7px;max-height:64vh;overflow:auto}.line-button{background:#fff;color:var(--ink);padding:9px;display:flex;gap:9px;align-items:start;text-align:left;border:1px solid transparent;border-radius:8px;width:100%;font-size:15px}.line-button:hover,.line-button[aria-current=true]{background:var(--tint);color:var(--plum-dark);border-color:#e2cfde}.line-time{white-space:nowrap;color:var(--muted);font-size:12px;padding-top:3px}.record-tools,.dictation{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:9px}.record-tools p,.dictation p{font-size:14px;color:var(--muted)}.record-tools audio{max-width:100%;height:43px}.record-tools .recording{background:#982b47;color:#fff}.caption-tools{display:flex;flex-wrap:wrap;gap:7px}.caption-tools label{display:flex;align-items:center;gap:6px;font-size:14px}.caption-tools select{width:auto;padding:5px 24px 5px 8px;min-height:34px}.learn-end{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.boot{display:grid;place-items:center;min-height:60vh;color:var(--muted)}.toast{position:fixed;right:18px;bottom:18px;z-index:10;background:var(--plum-dark);color:white;border-radius:12px;padding:12px 17px;max-width:calc(100% - 36px);box-shadow:var(--shadow);font-size:14px}.toast.error{background:#942940}.data-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.data-grid .span{grid-column:1/-1}.segment-editor{display:grid;gap:12px}.segment-edit{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.segment-edit h3{font-size:16px}.segment-edit .row-actions{justify-content:space-between;margin-bottom:8px}.subhead{font-size:20px;margin:20px 0 9px}.top-notice{background:#fff5e9;color:#694622;padding:9px 13px;border-radius:9px;font-size:14px}.footer{margin-top:36px;padding-top:15px;border-top:1px solid var(--line);color:var(--quiet);font-size:13px}.tool-switch{display:flex;gap:7px;flex-wrap:wrap}.tool-switch button[aria-pressed=true]{background:var(--plum);color:#fff}
@media(max-width:1030px){.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-inline:16px}.workspace{padding-inline:23px}.learn-layout{grid-template-columns:1fr}.timeline{max-height:340px}.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){.shell{display:block}.sidebar{display:none;height:auto;position:fixed;top:63px;left:0;right:0;padding:15px 20px;box-shadow:var(--shadow)}.sidebar.open{display:flex;gap:12px}.sidebar>.brand{display:none}.sidebar-foot{margin-top:0}.workspace{padding:17px 16px 36px}.topbar{padding-bottom:16px}.topbar>.desk-title{display:none}.mobile-brand,.mobile-menu{display:inline-flex}.mobile-menu{order:-1}.top-actions{gap:6px;justify-content:flex-end}.top-actions>.text-link{display:none}.brand-symbol{width:35px;height:35px}.brand strong{font-size:14px}.brand small{font-size:10px}.hero{min-height:290px}.hero::before{background-position:62% 51%}.steps{gap:7px}.step{display:block;padding:10px 8px}.step-icon{height:27px;width:27px;margin-bottom:8px}.step strong{font-size:13px}.step small{font-size:12px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.course-art{height:88px}.card-body{padding:12px}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.card-grid{grid-template-columns:1fr}.hero .button{font-size:13px}.data-grid{grid-template-columns:1fr}.data-grid .span{grid-column:auto}.top-actions .button{padding-inline:9px}}
.tone-travel{--cover-bg:#e1edf6;--cover-ink:#2e5879}
.tone-work{--cover-bg:#ebebf4;--cover-ink:#4d476e}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.category-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:18px 17px 15px;border:1px solid var(--line);border-top:5px solid var(--cover-bg);border-radius:16px;background:#fff;transition:border-color .15s,box-shadow .15s}
.category-card:hover,.category-card:focus-within{border-color:#cdabca;border-top-color:var(--cover-bg);box-shadow:var(--shadow)}
.category-card h2{font-size:21px;line-height:1.3;margin-bottom:7px}
.category-title::after{content:"";position:absolute;inset:0;border-radius:16px}
.category-title:hover,.category-courses a:hover{color:var(--plum);text-decoration:underline;text-underline-offset:4px}
.category-card p{color:var(--muted);font-size:14px}
.category-card .category-topics{align-self:start;margin-top:10px;padding:3px 7px;border-radius:7px;background:var(--cover-bg);color:var(--cover-ink);font-size:13px;font-weight:650}
.category-courses{margin-top:auto;padding-top:13px}
.category-status{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:11px;color:var(--quiet);font-size:13px;font-weight:600}
.category-courses ul{display:grid;gap:5px;margin:7px 0 0;padding-left:19px;color:var(--plum-dark);font-size:14px;line-height:1.45}
.category-courses a{position:relative;z-index:1;overflow-wrap:anywhere}
@media(max-width:930px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.category-grid{grid-template-columns:1fr;gap:12px}.category-card{padding:14px}.course-search .button{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
