/*
Theme Name: HERACLASS JP
Description: 日本向けHERACLASSの単一講座ホーム。Elementor・Tutor LMS不要。
Version: 0.4.1
Requires at least: 6.6
Requires PHP: 8.3
Author: HERACLASS
Text Domain: heraclass-jp
License: GPL-2.0-or-later
*/

:root{--jp-font:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;--jp-bg:#fff;--jp-surface:#f4f7f5;--jp-text:#171b19;--jp-muted:#596660;--jp-mint:#2da892;--jp-action:#176b5b;--jp-hover:#115244;--jp-hero:#182922;--jp-line:#dce5e0;--jp-input:#7c8982;--jp-error:#b42318;--jp-radius:8px;--jp-width:1132px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:24px}
body{margin:0;background:var(--jp-bg);color:var(--jp-text);font-family:var(--jp-font);font-size:1rem;line-height:1.75;letter-spacing:0;line-break:strict;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:var(--jp-action);text-underline-offset:.22em}
a:hover{color:var(--jp-hover)}
button,input,select,textarea{font:inherit}
button,a,input,textarea,select{touch-action:manipulation}
:focus-visible{outline:3px solid var(--jp-action);outline-offset:4px}
.jp-button:focus-visible{outline-color:var(--jp-action);box-shadow:0 0 0 2px #fff}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.jp-skip:focus{clip-path:none;width:auto;height:auto;left:16px;top:16px;margin:0;padding:12px 20px;background:#fff;z-index:99999}
.jp-container{width:min(var(--jp-width),calc(100% - 48px));margin-inline:auto}
.jp-header{background:#fff;border-bottom:1px solid var(--jp-line)}
.jp-header__inner{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:8px}
.jp-brand{display:inline-flex;align-items:center;gap:8px;color:var(--jp-text);text-decoration:none;flex-shrink:0}
.jp-brand img{width:136px;height:auto;max-height:40px;object-fit:contain}
.jp-brand__locale{font-size:.75rem;line-height:1;font-weight:500}
.jp-header__nav{display:flex;align-items:center;gap:24px}
.jp-header__nav a{display:flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:500;color:var(--jp-text);text-decoration:none}
.jp-header__nav a:hover{text-decoration:underline}
.jp-header__courses{display:none!important}
.jp-hero{background:var(--jp-hero);color:#fff}
.jp-hero__inner{display:grid;grid-template-columns:1fr;padding-top:28px}
.jp-hero__copy{position:relative;z-index:1;padding-bottom:24px}
.jp-hero h1{font-size:1.625rem;line-height:1.4;font-weight:700;margin:0;white-space:pre-line;overflow-wrap:normal;word-break:normal}
.jp-hero p{font-size:.875rem;line-height:1.65;font-weight:400;color:#edf5f0;margin:12px 0 0;max-width:34em}
.jp-hero__photo{margin:0 calc(-1 * 24px);height:156px;overflow:hidden}
.jp-hero__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 46%}
.jp-courses{padding-block:32px 48px}
.jp-courses__heading{max-width:440px;margin-inline:auto;font-size:1.25rem;line-height:1.5;margin:0 auto 24px;font-weight:700}
.jp-course{max-width:440px;margin-inline:auto}
.jp-course__photo{display:block;border-radius:var(--jp-radius);overflow:hidden;background:var(--jp-surface);aspect-ratio:16/9}
.jp-course__photo img{width:100%;height:100%;object-fit:cover}
.jp-course h3{font-size:1.125rem;line-height:1.5;margin:16px 0 8px;font-weight:700;white-space:pre-line}
.jp-course h3 a{color:inherit;text-decoration:none}
.jp-course h3 a:hover{text-decoration:underline}
.jp-course__instructor{font-size:.875rem;color:var(--jp-muted);margin:0}
.jp-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;border:1px solid transparent;border-radius:var(--jp-radius);padding:11px 24px;background:var(--jp-action);color:#fff;text-decoration:none;font-size:1rem;font-weight:500;line-height:1.5;text-align:center;cursor:pointer}
.jp-button:hover{background:var(--jp-hover);color:#fff}
.jp-course .jp-button{width:100%;margin-top:24px}
.jp-course__pending{margin:24px 0 0;padding:12px 16px;border:1px solid var(--jp-line);border-radius:var(--jp-radius);font-size:.875rem;color:var(--jp-muted);text-align:center}
.jp-footer{padding:32px 0 24px;background:var(--jp-surface);border-top:1px solid var(--jp-line)}
.jp-footer__top{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.jp-footer .jp-brand img{width:128px}
.jp-footer__links{display:flex;flex-wrap:wrap;gap:0 24px;max-width:680px;list-style:none;margin:0;padding:0}
.jp-footer__links li{margin:0;padding:0}
.jp-footer__links a{display:flex;align-items:center;min-height:44px;color:var(--jp-muted);font-size:.875rem;line-height:1.6;text-decoration:none}
.jp-footer__links a:hover{text-decoration:underline;color:var(--jp-action)}
.jp-footer__business{font-size:.875rem;color:var(--jp-muted);white-space:pre-line;margin:24px 0 0}
.jp-footer__copyright{font-size:.875rem;color:var(--jp-muted);margin:24px 0 0}
.jp-page{max-width:760px;padding-block:40px 64px;min-height:50vh}
.jp-page h1{font-size:1.625rem;line-height:1.4;margin:0 0 32px}
.jp-page h2{font-size:1.25rem;line-height:1.5;margin:32px 0 16px}
.jp-page h3{font-size:1.125rem;line-height:1.5}
.jp-page p{margin-block:0 24px}
.jp-page input:not([type=checkbox]):not([type=radio]):not([type=submit]),.jp-page textarea,.jp-page select{max-width:100%;min-height:48px;border:1px solid var(--jp-input);border-radius:8px;padding:10px 12px;background:#fff;font-size:1rem;color:var(--jp-text)}
.jp-page input[type=submit]{min-height:48px;background:var(--jp-action);color:#fff;border:0;border-radius:8px;padding:12px 24px;cursor:pointer}
.jp-page iframe,.jp-page video{max-width:100%}
.jp-page table{display:block;max-width:100%;overflow-x:auto}
.jp-pagination{display:flex;gap:16px;margin-top:32px}
.jp-login{max-width:448px}
.jp-login > h1{text-align:center}
body .hc-auth{font-family:var(--jp-font);--hc-fg:var(--jp-text);--hc-muted:var(--jp-surface);--hc-muted-fg:var(--jp-muted);--hc-border:var(--jp-input);--hc-accent:var(--jp-action);--hc-ring:rgba(23,107,91,.25);opacity:1!important;animation:none}
body .hc-auth .hc-card{max-width:400px;padding:0}
body .hc-auth .hc-input,body .hc-auth .hc-btn{min-height:48px;height:auto;font-size:1rem}
body .hc-auth .hc-input{padding:10px 12px}
body .hc-auth .hc-label,body .hc-auth .hc-row,body .hc-auth .hc-link,body .hc-auth .hc-check-label,body .hc-auth .hc-subtitle,body .hc-auth .hc-footer-text,body .hc-auth .hc-error,body .hc-auth .hc-success{font-size:.875rem;line-height:1.6}
body .hc-auth .hc-title{font-size:1.25rem;font-weight:700}
body .hc-auth .hc-row{flex-wrap:wrap;gap:8px 16px}
body .hc-auth .hc-row a,body .hc-auth .hc-check-label{min-height:44px;display:inline-flex;align-items:center}
body .hc-auth .hc-btn:focus-visible,body .hc-auth .hc-input:focus-visible{outline:3px solid var(--jp-action);outline-offset:3px}
body .hc-auth .hc-error{color:var(--jp-error)}
@media(min-width:768px){.jp-header__inner{min-height:64px}.jp-brand img{width:152px}.jp-header__nav a{font-size:1rem}.jp-header__courses{display:flex!important}.jp-hero__inner{grid-template-columns:1fr 1fr;min-height:340px;padding-top:0;align-items:stretch;gap:32px}.jp-hero__copy{align-self:center;padding-block:48px}.jp-hero h1{font-size:2.5rem}.jp-hero p{font-size:1rem}.jp-hero__photo{margin:0;height:auto;min-height:340px;position:relative}.jp-hero__photo img{position:absolute;inset:0;object-position:65% center}.jp-courses{padding-block:48px 64px}.jp-courses__heading{font-size:1.5rem;margin-bottom:32px}.jp-course h3{font-size:1.25rem}.jp-footer__top{flex-direction:row;justify-content:space-between;gap:48px}.jp-page{padding-block:56px 80px}.jp-page h1{font-size:2rem}.jp-page h2{font-size:1.5rem}}
@media(max-width:359px){.jp-container{width:calc(100% - 32px)}.jp-hero__photo{margin-inline:-16px}.jp-brand img{width:128px}.jp-header__inner{gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Policy pages: readable on narrow Japanese screens, no wide legal tables. */
.jp-legal-details{margin:24px 0 32px;border-top:1px solid var(--jp-line)}
.jp-legal-details dt{font-weight:700;padding-top:18px;margin:0 0 6px}
.jp-legal-details dd{margin:0;padding-bottom:18px;border-bottom:1px solid var(--jp-line)}
.jp-policy-draft{padding:16px;border:1px solid #b8c9bf;border-radius:8px;background:var(--jp-surface);font-size:.875rem}
.jp-page__content ul,.jp-page__content ol{padding-inline-start:1.5em}
.jp-page__content li{margin-block:8px}

/* Shared FIT composition, with restrained Japanese typography and one course. */
.jp-header__inner{min-height:60px}
.jp-header__nav .jp-header__account{background:#171b19;color:#fff;border-radius:6px;padding:0 18px;min-height:40px;font-size:.875rem}
.jp-header__nav .jp-header__account:hover{background:#323b36;text-decoration:none}
.jp-hero__label{display:inline-block;margin-bottom:16px;border:1px solid #6a8377;border-radius:4px;padding:3px 9px;color:#e1ebe6;font-size:.6875rem;line-height:1.6;letter-spacing:.08em}
.jp-hero__button{display:inline-flex;align-items:center;gap:28px;margin-top:24px;background:#fff;color:#17251e;padding:10px 20px;min-height:44px;border-radius:5px;font-size:.875rem;font-weight:700;text-decoration:none}
.jp-hero__button:hover{background:#eaf2ed;color:#17251e}
.jp-hero__button:focus-visible{outline-color:#fff}
.jp-hero__copy{padding-bottom:28px}
.jp-hero__photo{height:180px}
.jp-eyebrow{font-size:.6875rem;letter-spacing:.14em;font-weight:700;color:#51766a;line-height:1.5;margin:0 0 6px}
.jp-courses__heading{max-width:none;margin:0 0 24px}
.jp-course-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.jp-course{max-width:none;margin:0;border:1px solid #e8ece9;border-radius:8px;overflow:hidden;background:#fff}
.jp-course__photo{border-radius:0}
.jp-course__body{padding:16px}
.jp-course__tags{font-size:.75rem;color:#69716c;margin:0 0 5px;line-height:1.8}
.jp-course h3{font-size:1.125rem;line-height:1.45;margin:4px 0 8px;white-space:normal}
.jp-course__instructor{font-size:.875rem;color:#666e69}
.jp-course .jp-button{margin-top:16px;padding:9px 0;min-height:44px;width:auto;background:transparent;color:var(--jp-action);border:0;border-radius:0;font-size:.875rem;text-align:left}
.jp-course .jp-button::after{content:"→";margin-left:12px}
.jp-course .jp-button:hover{text-decoration:underline}
.jp-course__pending{margin:16px 0 0;padding:0;border:0;border-radius:0;text-align:left;font-size:.8125rem;color:#69716c}
.jp-footer{background:#fff;border-top:1px solid #e8ece9;padding:36px 0 24px}
.jp-footer__top{display:grid;grid-template-columns:1fr;gap:28px}
.jp-footer__heading{font-size:.75rem;letter-spacing:.06em;margin:0 0 10px;font-weight:700;color:#303630}
.jp-footer__contact a{display:block;min-height:40px;line-height:1.6;padding-block:8px;color:var(--jp-muted);font-size:.8125rem;text-decoration:none}
.jp-footer__contact a:hover{text-decoration:underline}
.jp-footer__links{display:flex;flex-direction:column;gap:0;max-width:none}
.jp-footer__links a{font-size:.8125rem;min-height:36px;padding-block:6px}
.jp-footer__business{font-size:.75rem;margin-top:16px}
.jp-footer__copyright{font-size:.75rem;margin-top:28px;color:#69716c}
@media(min-width:600px){.jp-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-footer__top{grid-template-columns:1fr 1fr}.jp-footer__brand{grid-column:1/-1}}
@media(min-width:768px){.jp-brand img{width:140px}.jp-header__inner{min-height:60px}.jp-header__nav a{font-size:.875rem}.jp-hero__inner{min-height:380px;gap:40px}.jp-hero__copy{padding-block:48px}.jp-hero__photo{min-height:380px;height:auto}.jp-hero h1{font-size:2.5rem}.jp-hero__label{font-size:.75rem}.jp-courses{padding-block:48px 64px}.jp-course h3{font-size:1.25rem}.jp-footer__top{grid-template-columns:1.1fr 1fr 1fr;gap:48px}.jp-footer__brand{grid-column:auto}}
@media(min-width:1024px){.jp-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
