/* Shared chrome. Home keeps the overlay treatment; product pages use a light header. */
.header-overlay{color:#fff}.header-default{position:relative;color:#002841}.header-default .menu-toggle{background:#d8eeff}.header-default .menu-toggle span{background:var(--blue)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.product-title-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}.product-title-link:hover{color:var(--blue)}
.course-card h3 button{text-align:left;padding:0;font:inherit;letter-spacing:inherit}.course-card h3 button:hover{text-decoration:underline;text-underline-offset:4px}

/* Header navigation underline grows from left to right. */
.desktop-nav>a{position:relative}
.desktop-nav>a::after{content:'';position:absolute;left:0;right:0;bottom:-5px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left center;transition:transform .25s ease}
.desktop-nav>a:hover::after,.desktop-nav>a:focus-visible::after{transform:scaleX(1)}
@media(prefers-reduced-motion:reduce){.desktop-nav>a::after{transition:none}}

/* Fade to a gradient with more teal, without moving the button or adding a shadow. */
.gradient-button{position:relative;isolation:isolate}
.gradient-button::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(100deg,#0055b9 0%,#00d2e6 55%,#00d2e6 100%);opacity:0;transition:opacity .25s ease;pointer-events:none}
.gradient-button:hover::before{opacity:1}
@media(prefers-reduced-motion:reduce){.gradient-button::before{transition:none}}

.desktop-nav>a{transition:opacity .2s ease}
.desktop-nav>a:hover{opacity:.8;filter:none}
@media(prefers-reduced-motion:reduce){.desktop-nav>a{transition:none}}
/* 外部リンクのアイコン: 文字色(トップ=白 / 固定時・下層=濃紺)に追従させる */
.desktop-nav .external-icon{display:inline-block;width:12px;height:10px;background-color:currentColor;-webkit-mask:url('../images/common/d4064.svg') center/contain no-repeat;mask:url('../images/common/d4064.svg') center/contain no-repeat}

/* A short, one-time reveal using only opacity and transform. */
@keyframes section-fade-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.section-reveal{animation:section-fade-up .55s ease-out both}
@media(prefers-reduced-motion:reduce){.section-reveal{animation:none}}
@media print{.section-reveal{animation:none}}

/* A seamless, leftward photo loop; only its track is animated. */
.photo-strip-viewport{position:relative;overflow:hidden;height:340px;margin-top:100px}
.photo-strip-viewport>.photo-strip{margin-top:0}
.photo-strip-track{display:flex;gap:20px;width:max-content;height:100%;animation:photo-drift-left var(--photo-duration,54s) linear infinite;animation-play-state:paused}
.photo-strip-track>.photo-strip{flex:none;margin:0;left:0;transform:none}
.photo-strip-viewport[data-photo-running="true"] .photo-strip-track{animation-play-state:running}
@keyframes photo-drift-left{from{transform:translateX(0)}to{transform:translateX(calc(-1 * var(--photo-cycle)))}}

@media(max-width:800px){.photo-strip-viewport{height:200px;margin-top:60px}.photo-strip-track{gap:12px}}
@media(prefers-reduced-motion:reduce){.photo-strip-track{animation:none}.photo-strip-track>[aria-hidden="true"]{display:none}}
@media print{.photo-strip-track{animation:none}.photo-strip-track>[aria-hidden="true"]{display:none}}

/* A restrained, staggered entrance for the main visual copy. */
@keyframes hero-copy-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 .hero-copy.is-pending{opacity:0}
 .hero-copy.is-ready .hero-eyebrow,.hero-copy.is-ready .hero-lines>span{animation:hero-copy-in .55s ease-out var(--hero-copy-delay,0s) both}
 .hero-copy.is-ready>.hero-description{opacity:0}
 .hero-copy.is-ready.is-description-ready>.hero-description{animation:hero-copy-in .55s ease-out both}
 .hero-copy .hero-eyebrow{--hero-copy-delay:.08s}
 .hero-copy .hero-lines>span:nth-of-type(1){--hero-copy-delay:.16s}
 .hero-copy .hero-lines>span:nth-of-type(2){--hero-copy-delay:.24s}
 .hero-copy .hero-lines>span:nth-of-type(3){--hero-copy-delay:.32s}
}
@media print{.hero-copy.is-pending{opacity:1}.hero-copy .hero-eyebrow,.hero-copy .hero-lines>span,.hero-copy>.hero-description{animation:none}}

/* Subtle dropdown entrance without adding a UI framework. */
@keyframes menu-dropdown-in{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.site-menu:not([hidden]){transform-origin:top right;animation:menu-dropdown-in .16s cubic-bezier(0,0,.2,1)}
@media(prefers-reduced-motion:reduce){.site-menu:not([hidden]){animation:none}}

/* About text and feature cards enter independently, with a smaller movement. */
@keyframes item-fade-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.item-reveal{animation:item-fade-up .45s ease-out both}
@media(prefers-reduced-motion:reduce){.item-reveal{animation:none}}
@media print{.item-reveal{animation:none}}

/* Stagger feature cards so Learn, Practice, Assess and Advance read in order. */
.feature-grid>.feature.item-reveal:nth-child(2){animation-delay:.16s}
.feature-grid>.feature.item-reveal:nth-child(3){animation-delay:.32s}
.feature-grid>.feature.item-reveal:nth-child(4){animation-delay:.48s}

@keyframes feature-fade-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.feature-grid>.feature.item-reveal{animation-name:feature-fade-up}

.feature-grid>.feature.is-waiting{opacity:0}
@media(prefers-reduced-motion:reduce){.feature-grid>.feature.is-waiting{opacity:1}}
@media print{.feature-grid>.feature.is-waiting{opacity:1}}

.footer a,.footer-nav button,.footer-bottom button,.socials button{transition:opacity .2s ease}
.footer a:hover,.footer-nav button:hover,.footer-bottom button:hover,.socials button:hover{opacity:.8;filter:none}
@media(prefers-reduced-motion:reduce){.footer a,.footer-nav button,.footer-bottom button,.socials button{transition:none}}

.menavi.promotion:disabled{cursor:default;opacity:1;filter:none;pointer-events:none}

.mock-sample{transition:opacity .2s ease}
@media(hover:hover){.mock-sample:hover{opacity:.8;filter:none}}
@media(prefers-reduced-motion:reduce){.mock-sample{transition:none}}

/* Draw at the final size and animate toward 1:1 rather than enlarging the layer. */
@keyframes hero-photo-zoom{from{transform:scale(.97799511)}to{transform:scale(1)}}
.hero-photo{transform-origin:78% top}
@media(prefers-reduced-motion:no-preference){
 .hero-photo.is-ready{left:-1.755%;right:auto;bottom:auto;width:102.25%;height:102.25%;animation:hero-photo-zoom 3s ease-out both}
}
@media(max-width:430px) and (prefers-reduced-motion:no-preference){.hero-photo.is-ready{height:87.935%}}
@media print{.hero-photo.is-ready{animation:none;transform:none;left:0;right:0;width:auto;height:100%}}

/* Start transparent, then reveal the original gradient from dark to light. */
@keyframes hero-shade-in{from{opacity:0;clip-path:var(--shade-hidden,inset(0 8% 0 0))}to{opacity:var(--shade-opacity,1);clip-path:inset(0 0 0 0)}}
/* A faint teal wash shifts within the existing blue shade. */
@keyframes hero-shade-drift{from{transform:scale(var(--shade-scale-x,1.02),var(--shade-scale-y,1)) skewX(.25deg)}to{transform:scale(1) skewX(0deg)}}
.hero-shade::after{transform-origin:left center}
@keyframes hero-shade-color{from{background-position:0% 50%;opacity:.35}to{background-position:100% 50%;opacity:1}}
.hero-shade::before{--shade-opacity:.35;opacity:.35;content:'';position:absolute;z-index:1;pointer-events:none;inset:0 auto 0 0;width:calc(50% + 130px);background:linear-gradient(110deg,transparent 25%,rgba(0,210,230,.44) 50%,transparent 75%) 0% 50%/280% 100% no-repeat;-webkit-mask:url('../images/common/010f2.svg') center/100% 100% no-repeat;mask:url('../images/common/010f2.svg') center/100% 100% no-repeat}
@media(max-width:800px){
 .hero-shade::after{--shade-hidden:inset(8% 0 0 0);--shade-scale-x:1;--shade-scale-y:1.02;transform-origin:center bottom}
 .hero-shade::before{top:340px;width:100%;-webkit-mask-image:linear-gradient(0deg,#000d,#0008 60%,transparent);mask-image:linear-gradient(0deg,#000d,#0008 60%,transparent)}
}
@media(prefers-reduced-motion:no-preference){
 .hero.is-photo-pending .hero-shade::after,.hero.is-photo-pending .hero-shade::before{opacity:0}
 .hero.is-photo-ready .hero-shade::after{animation:hero-shade-in .45s ease-out both,hero-shade-drift 8s .45s cubic-bezier(.42,0,.58,1) both;animation-play-state:var(--hero-motion-state,running)}
 .hero.is-photo-ready .hero-shade::before{animation:hero-shade-in .45s ease-out both,hero-shade-color 5s .45s ease-in-out infinite alternate;animation-play-state:var(--hero-motion-state,running)}
}
@media print{.hero.is-photo-ready .hero-shade::after,.hero.is-photo-ready .hero-shade::before{animation:none}}

/* Extend the existing course action over the full card. */
#course-panel .course-card{position:relative}
#course-panel .course-card h3 button::after{content:'';position:absolute;inset:0}
#course-panel .course-card:focus-within{outline:3px solid #f6a52a;outline-offset:5px}
#course-panel .course-card h3 button:focus-visible{outline:none}
#course-panel .course-card h3 button:hover{filter:none}
/* Issue 037: keep the complete supplied artwork visible at every card width. */
.page-home #course-panel .course-card picture{display:block;min-width:0}
.page-home #course-panel .course-card .course-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.page-home #course-panel .course-card h3 a{font:inherit;letter-spacing:inherit;color:inherit;text-decoration:none}
.page-home #course-panel .course-card h3 a::after{content:'';position:absolute;inset:0}
.page-home #course-panel .course-card h3 a:hover{text-decoration:underline;text-underline-offset:4px;filter:none}
.page-home #course-panel .course-card h3 a:focus-visible{outline:none}

.voice-detail{padding-top:20px;padding-bottom:50px;min-height:60vh}
.voice-detail-breadcrumbs{font-size:12px;margin-bottom:60px}
.voice-detail-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.voice-detail-breadcrumbs li+li:before{content:'/';margin-right:10px}
.voice-detail h1{font:700 32px/1.4 var(--heading);color:var(--blue);margin-top:16px;margin-bottom:30px}
.voice-detail article>p:not(.eyebrow){margin-top:20px}
.voice-detail>.outline-button{margin-top:50px}
@media(max-width:800px){.voice-detail{padding-top:13px;padding-bottom:33px}.voice-detail-breadcrumbs{margin-bottom:40px;font-size:12px}.voice-detail h1{font-size:22px}}

/* Use the desktop navigation instead of a duplicate menu at PC widths. */
@media(min-width:1151px){.menu-toggle,#site-menu{display:none}}

/* Keep the circle still while its arrow exits right and re-enters from the left. */
:where(.arrow-gradient,.arrow-blue){position:relative}
.arrow-gradient,.arrow-blue{overflow:hidden;border-radius:50%;background-image:var(--arrow-circle)}
.arrow-gradient{--arrow-circle:url('../images/common/arrow-gradient-circle.svg');--arrow-glyph:url('../images/common/arrow-gradient-glyph.svg')}
.arrow-blue{--arrow-circle:url('../images/common/arrow-blue-circle.svg');--arrow-glyph:url('../images/common/arrow-blue-glyph.svg')}
.arrow-blue.small{--arrow-circle:url('../images/common/arrow-blue-small-circle.svg');--arrow-glyph:url('../images/common/arrow-blue-small-glyph.svg');background-image:var(--arrow-circle)}
.arrow-gradient::after,.arrow-blue::after{content:'';position:absolute;inset:0;background:var(--arrow-glyph) center no-repeat;background-size:inherit;pointer-events:none}
.footer-nav a::before,.footer-nav button::before{background-image:url('../images/common/arrow-footer-circle.svg')}
.footer-nav a::after,.footer-nav button::after{content:'';position:absolute;left:0;top:0;width:20px;height:20px;background:url('../images/common/arrow-footer-glyph.svg') center/36px 36px no-repeat;clip-path:circle(50%);pointer-events:none}
@keyframes link-arrow-slide{0%,100%{transform:translateX(0);opacity:1}45%{transform:translateX(65%);opacity:0}46%{transform:translateX(-65%);opacity:0}}
@keyframes footer-arrow-slide{0%,100%{background-position:50% 50%;opacity:1}45%{background-position:calc(50% + 10px) 50%;opacity:0}46%{background-position:calc(50% - 10px) 50%;opacity:0}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 :is(a[href],button:not(:disabled)):hover :is(.arrow-gradient,.arrow-blue)::after{animation:link-arrow-slide .65s cubic-bezier(.4,0,.2,1)}
 .footer-nav a[href]:hover::after,.footer-nav button:not(:disabled):hover::after{animation:footer-arrow-slide .65s cubic-bezier(.4,0,.2,1)}
}
/* Fixed header. 下層ページ(.header-default)は sticky: 上に固定したまま、元の高さ(PC100px / スマホ76px)は残す。
   トップ(.header-overlay)はこれまでどおり本文に重ねたまま fixed。スクロールしたら .is-scrolled(site.js)で白い背景になる。 */
.header{z-index:50;transition:background-color .2s ease,color .2s ease}
.header-overlay{position:fixed}
.header-default{position:sticky;top:0}
.header.is-scrolled{background:#fff}
/* スクロール後のトップは、下層のヘッダーと同じ色味にする（ロゴは site.js が色付きに替える） */
.header-overlay.is-scrolled{color:#002841}
.header-overlay.is-scrolled .menu-toggle{background:#d8eeff}
.header-overlay.is-scrolled .menu-toggle span{background:var(--blue)}
.menu-toggle{transition:background-color .2s ease}
/* 固定されたとき(PC): ロゴとナビを、ヘッダーの上下中央に置く。スクロール前は、これまでどおり下寄せ */
@media(min-width:801px){.header.is-scrolled{align-items:center}.header.is-scrolled .desktop-nav{margin-bottom:0}}
/* 固定されたとき: ヘッダーを低くする(PC 100→80px / スマホ 76→64px)。ボタン・メニュー・ロゴも比率を保って縮める。
   下層ページ(sticky)は margin-bottom で元の高さ分の場所を残し、スクロールしても本文がずれないようにする */
.header,.header-default{transition:background-color .2s ease,color .2s ease,height .2s ease,margin-bottom .2s ease}
.header .brand img,.header .account-links a,.header .menu-toggle,.header .menu-toggle span{transition:width .2s ease,height .2s ease,padding .2s ease,gap .2s ease,transform .2s,opacity .2s,background-color .2s}
.header.is-scrolled{height:80px}
.header-default.is-scrolled{margin-bottom:20px}
.header.is-scrolled .brand img{width:134px}
.header.is-scrolled .account-links a{height:40px}
.header.is-scrolled .menu-toggle{width:80px;height:80px;padding:24px;gap:8px}
.header.is-scrolled .menu-toggle span{width:32px}
.header.is-scrolled .menu-toggle span:nth-child(2){width:24px}
.header.is-scrolled .menu-toggle span:nth-child(3){width:16px}
.header.is-scrolled .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(10px) rotate(45deg)}
.header.is-scrolled .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-10px) rotate(-45deg);width:32px}
@media(max-width:1350px){.header.is-scrolled .brand img{width:119px}.header.is-scrolled .menu-toggle{width:68px;padding:19px}.header.is-scrolled .menu-toggle span{width:30px}.header.is-scrolled .menu-toggle span:nth-child(2){width:22px}.header.is-scrolled .menu-toggle span:nth-child(3){width:14px}.header.is-scrolled .menu-toggle[aria-expanded=true] span:last-child{width:30px}}
@media(max-width:800px){.header.is-scrolled{height:64px}.header-default.is-scrolled{margin-bottom:12px}.header.is-scrolled .brand img{width:118px}.header.is-scrolled .menu-toggle{width:64px;height:64px;padding:16px;gap:6px}.header.is-scrolled .menu-toggle span{width:28px}.header.is-scrolled .menu-toggle span:nth-child(2){width:22px}.header.is-scrolled .menu-toggle span:nth-child(3){width:15px}.header.is-scrolled .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(8px) rotate(45deg)}.header.is-scrolled .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-8px) rotate(-45deg);width:28px}}
@media(prefers-reduced-motion:reduce){.header,.header-default,.header .brand img,.header .account-links a,.header .menu-toggle,.header .menu-toggle span{transition:none}}
/* メニューはヘッダーに合わせて、画面に固定する */
.site-menu{position:fixed;z-index:60}
/* ページ内リンクで移動したとき、固定ヘッダーの下に見出しが隠れないようにする（ヘッダー + 24px） */
html{scroll-padding-top:104px}
@media(max-width:800px){html{scroll-padding-top:88px}}
@media(prefers-reduced-motion:reduce){.header,.menu-toggle{transition:none}}

/* Preserve the header logo ratio when the brand column narrows. */
.header .brand img{display:block;max-width:100%;height:auto}

/* SP_menu: a scrollable, modal navigation shared by all pages. */
html.menu-open{overflow:hidden;scroll-behavior:auto}
.menu-open body{position:fixed;top:var(--menu-scroll-top);width:100%;overflow:hidden}
.site-menu{display:none;position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:rgba(0,85,170,.94);color:#fff;box-shadow:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff66 transparent}
.site-menu[open]{display:block}
.site-menu::backdrop{background:transparent}
.site-menu:not([hidden]){animation:none}
.site-menu[open]{animation:site-menu-in .16s ease-out}
@keyframes site-menu-in{from{opacity:0}to{opacity:1}}
.site-menu a{border:0;padding:0;color:#fff;letter-spacing:0}
.site-menu-header{position:sticky;top:0;z-index:1;min-height:70px;background:#0055aa}
.site-menu .site-menu-brand{display:block;width:140px;margin-left:20px;padding-top:15px}
.site-menu-brand img{max-width:none}
.site-menu-close{position:absolute;top:0;right:0;width:70px;height:70px;padding:0;background:#fff;color:var(--ink)}
.site-menu-close span{position:absolute;left:23px;top:34px;width:24px;height:2px;background:currentColor;transform:rotate(45deg)}
.site-menu-close span+span{transform:rotate(-45deg)}
.site-menu-content{padding:30px 20px max(28px,env(safe-area-inset-bottom));max-width:640px;margin-inline:auto}
.site-menu-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:6px;overflow:hidden}
.site-menu-accounts a{min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ink);font-size:16px;line-height:1.4;font-weight:500}
.site-menu-accounts a+a{background:var(--teal)}
.site-menu-accounts img{flex-shrink:0}
.site-menu-primary{display:grid;gap:10px;margin-top:30px}
.site-menu .site-menu-primary a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:12px 14px 12px 24px;border:1px solid #ffffff33;border-radius:6px;background:#ffffff14;font-size:15px;font-weight:500;line-height:1.6}
.site-menu-arrow{position:relative;display:block;flex:0 0 30px;width:30px;height:30px}
.site-menu-arrow img{position:absolute;left:-8px;top:-8px;max-width:none}
.site-menu-secondary{margin-top:30px}
.site-menu .site-menu-secondary a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:61px;padding:13px 0 17px;font-size:15px;line-height:1.6;font-weight:500}
.site-menu .site-menu-secondary a+a{border-top:1px solid #ffffff33}
.site-menu-socials{display:flex;justify-content:center;gap:15px;margin-top:19px}
.site-menu .site-menu-socials a{display:block;flex:0 0 50px;padding:0}
.site-menu a:focus-visible,.site-menu button:focus-visible{outline:3px solid #f6a52a;outline-offset:-3px}
@media(max-width:360px){.site-menu-accounts a{gap:7px;font-size:14px}.site-menu .site-menu-primary a{padding-left:18px}}
@media(min-width:1151px){.site-menu[open]{display:none}}
@media(prefers-reduced-motion:reduce){.site-menu[open]{animation:none}}
/* Menu hover effects apply to mouse input, regardless of viewport width. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .site-menu .site-menu-primary a,.site-menu-accounts a{transition:background-color .2s ease}
 .site-menu .site-menu-primary a:hover{background-color:#ffffff24}
 .site-menu-accounts a:hover{background-color:#003472}
 .site-menu-accounts a+a:hover{background-color:#0096aa}
 .site-menu-arrow:has(img[src*="menu-arrow.svg"]){border-radius:50%;background:#fff;box-shadow:0 0 12px #5a78991a;overflow:hidden}
 .site-menu-arrow img[src*="menu-arrow.svg"]{visibility:hidden}
 .site-menu-arrow:has(img[src*="menu-arrow.svg"])::after{content:'';position:absolute;left:10.5px;top:9px;width:10.5px;height:12px;background:var(--teal);clip-path:polygon(100% 50%,0 0,34% 50%,0 100%)}
 .site-menu a:hover .site-menu-arrow:has(img[src*="menu-arrow.svg"])::after{animation:link-arrow-slide .65s cubic-bezier(.4,0,.2,1)}
}

/* TOP sample lectures use the existing accessible detail dialog. */
.page-home .detail-dialog .home-sample-player{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0;margin-top:24px;background:#000}
