/*
Theme Name: Inspiro Child
Template: inspiro
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ============================================================
   Kyujin page (ID:1087) - Hide header & footer
   ============================================================ */
.page-id-1087 #masthead,
.page-id-1087 .site-header,
.page-id-1087 header.site-header,
.page-id-1087 .header-wrap,
.page-id-1087 #colophon,
.page-id-1087 .site-footer {
    display: none !important;
}

.page-id-1087 #page,
.page-id-1087 .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-id-1087 .entry-content,
.page-id-1087 .post-content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ============================================================
   YSO page (ID:1274) - Hide header & footer
   ============================================================ */
.page-id-1274 #masthead,
.page-id-1274 .site-header,
.page-id-1274 header.site-header,
.page-id-1274 .header-wrap,
.page-id-1274 #colophon,
.page-id-1274 .site-footer {
    display: none !important;
}

.page-id-1274 #page,
.page-id-1274 .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-id-1274 .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.page-id-1274 .entry-header {
    display: none !important;
}

/* YSO page - animation fallback */
.page-id-1274 .fi {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.page-id-1274 .gi {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   Kyujin page - Main wrapper
   ============================================================ */
.kyujin-wrap {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
    color: #1d1d1f;
    background: #ffffff;
}

/* ============================================================
   Kyujin page - Mini nav
   ============================================================ */
.kyujin-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 18px 0;
    border-bottom: 0.5px solid #d2d2d7;
    margin-bottom: 0;
}

.kyujin-nav a {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.2s;
}

.kyujin-nav a:hover {
    color: #1d1d1f;
}

/* ============================================================
   Kyujin page - Hero
   ============================================================ */
.kyujin-hero {
    text-align: center;
    padding: 15px 0 44px;
    border-bottom: 0.5px solid #d2d2d7;
}

.kyujin-hero-logo {
    display: block;
    width: 25%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
}

.kyujin-logo-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.24em;
    color: #aeaeb2;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.kyujin-divider {
    width: 28px;
    height: 0.5px;
    background: #d2d2d7;
    margin: 0 auto 24px;
}

.kyujin-tagline {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.65;
    color: #1d1d1f;
    margin: 0 0 16px;
}

.kyujin-hero p {
    font-size: 14px;
    line-height: 2.0;
    color: #6e6e73;
    font-weight: 300;
    margin: 0;
}

/* ============================================================
   Kyujin page - Sections
   ============================================================ */
.kyujin-section {
    padding: 40px 0;
    border-bottom: 0.5px solid #d2d2d7;
}

.kyujin-section-label {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: #aeaeb2;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.kyujin-lead {
    font-size: 14px;
    line-height: 2.0;
    color: #6e6e73;
    font-weight: 300;
    margin: 0;
}

/* ============================================================
   Kyujin page - Contact Form 7
   ============================================================ */
.kyujin-wrap .wpcf7 {
    margin: 0 !important;
}

.kyujin-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.kyujin-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .kyujin-form-row-2 {
        grid-template-columns: 1fr;
    }
}

.kyujin-wrap .wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: #6e6e73;
    font-weight: 400;
}

.required-mark {
    color: #ff3b30;
    font-size: 10px;
    margin-left: 4px;
    letter-spacing: 0;
}

.kyujin-optional {
    font-size: 10px;
    color: #aeaeb2;
    margin-left: 6px;
    letter-spacing: 0;
}

.kyujin-wrap .wpcf7-form input[type="text"],
.kyujin-wrap .wpcf7-form input[type="email"],
.kyujin-wrap .wpcf7-form input[type="number"],
.kyujin-wrap .wpcf7-form input[type="tel"],
.kyujin-wrap .wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f5f5f7;
    border: 0.5px solid #d2d2d7;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.kyujin-wrap .wpcf7-form input[type="text"]:focus,
.kyujin-wrap .wpcf7-form input[type="email"]:focus,
.kyujin-wrap .wpcf7-form input[type="number"]:focus,
.kyujin-wrap .wpcf7-form textarea:focus {
    border-color: #86868b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.10);
}

.kyujin-wrap .wpcf7-form input::placeholder,
.kyujin-wrap .wpcf7-form textarea::placeholder {
    color: #c7c7cc;
    font-size: 13px;
}

.kyujin-wrap .wpcf7-form textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.8;
}

.kyujin-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kyujin-submit-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: #6e6e73;
    margin: 0;
}

.kyujin-submit-desc {
    font-size: 12px;
    line-height: 1.85;
    color: #aeaeb2;
    background: #f5f5f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
}

.kyujin-wrap .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 0.5px solid #d2d2d7;
    border-radius: 12px;
    overflow: hidden;
}

.kyujin-wrap .wpcf7-radio .wpcf7-list-item {
    margin: 0 !important;
    border-bottom: 0.5px solid #d2d2d7;
}

.kyujin-wrap .wpcf7-radio .wpcf7-list-item:last-child {
    border-bottom: none;
}

.kyujin-wrap .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    font-size: 13px;
    color: #1d1d1f;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s;
    background: #ffffff;
}

.kyujin-wrap .wpcf7-radio .wpcf7-list-item label:hover {
    background: #f5f5f7;
}

.kyujin-wrap .wpcf7-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1d1d1f;
    cursor: pointer;
    flex-shrink: 0;
}

.kyujin-wrap .wpcf7-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    background: #f5f5f7;
    border: 0.5px dashed #d2d2d7;
    border-radius: 10px;
    padding: 14px;
    font-size: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #6e6e73;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.kyujin-wrap .wpcf7-form input[type="file"]:hover {
    border-color: #86868b;
    background: #ebebf0;
}

.kyujin-wrap .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #ff3b30;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

.kyujin-wrap .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    border: 0.5px solid #d2d2d7 !important;
}

.kyujin-wrap .wpcf7-form input[type="submit"] {
    width: 100%;
    background: #1d1d1f;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-appearance: none;
    appearance: none;
}

.kyujin-wrap .wpcf7-form input[type="submit"]:hover {
    opacity: 0.80;
}

.kyujin-wrap .wpcf7-form input[type="submit"]:active {
    transform: scale(0.99);
}

/* ============================================================
   Kyujin page - Privacy & footer
   ============================================================ */
.kyujin-privacy {
    font-size: 11px;
    color: #aeaeb2;
    text-align: center;
    line-height: 1.85;
    margin-top: 8px;
}

.kyujin-privacy a {
    color: #6e6e73;
    text-decoration: none;
}

.kyujin-footer {
    padding: 44px 0 0;
    text-align: center;
}

.kyujin-footer-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: #6e6e73;
    margin: 0 0 10px;
}

.kyujin-footer-address {
    font-size: 12px;
    color: #aeaeb2;
    line-height: 2.0;
    margin: 0;
}

.kyujin-footer-group {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 0.5px solid #d2d2d7;
    font-size: 11px;
    color: #aeaeb2;
    letter-spacing: 0.12em;
}

/* ============================================================
   Kyujin page - Slider
   ============================================================ */
.kyujin-slider-wrap {
    margin: 0 0 48px;
}

.kyujin-slider-card {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 16px;
}

.kyujin-slider-card .kyujin-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.kyujin-slider-card .kyujin-slide.active {
    opacity: 1;
}

.kyujin-slider-card .kyujin-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kyujin-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.kyujin-slide-text {
    position: absolute;
    bottom: 48px;
    left: 48px;
    color: #ffffff;
}

.kyujin-slide-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin: 0 0 12px;
    opacity: 0.75;
}

.kyujin-slide-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.04em;
    margin: 0;
}

.kyujin-slider-dots {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 8px;
}

.kyujin-slider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    display: block;
    transition: background 0.4s;
}

.kyujin-slider-dots span.active {
    background: #ffffff;
}

@media (max-width: 480px) {
    .kyujin-slider-card {
        height: 320px;
        border-radius: 12px;
    }
    .kyujin-slide-text {
        bottom: 28px;
        left: 24px;
    }
    .kyujin-slide-title {
        font-size: 20px;
    }
    .kyujin-wrap {
        padding: 0 16px 48px;
    }
    .kyujin-tagline {
        font-size: 21px;
    }
}

/* ============================================================
   YSO page - Nav
   ============================================================ */
.yso-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 18px 0;
    border-bottom: 0.5px solid #d2d2d7;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.yso-nav a {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.2s;
}

.yso-nav a:hover {
    color: #1d1d1f;
}

/* ============================================================
   YSO page - Hero
   ============================================================ */
.yso-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yso-hero-slides {
    position: absolute;
    inset: 0;
}

.yso-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.yso-hero-slide.active {
    opacity: 1;
}

.yso-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-out;
    display: block;
}

.yso-hero-slide.active img {
    transform: scale(1);
}

.yso-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.yso-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #fff);
}

.yso-hero-text {
    position: relative;
    text-align: center;
    padding: 32px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.yso-hero-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.yso-hero-logo.show {
    opacity: 1;
    transform: translateY(0);
}

.yso-hero-tagline {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-size: clamp(15px, 2.2vw, 22px);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.7s, transform 1s ease 0.7s;
    margin: 0;
}

.yso-hero-tagline.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   YSO page - Wrapper & sections
   ============================================================ */
.yso-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.yso-sec {
    padding: 80px 0;
}

.yso-sec + .yso-sec {
    border-top: 0.5px solid #d2d2d7;
}

.yso-label {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: #aeaeb2;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.yso-h2 {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-size: clamp(18px, 2.5vw, 23px);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: #1d1d1f;
    margin: 0 0 24px;
}

.yso-body {
    font-size: 14px;
    line-height: 2.1;
    color: #6e6e73;
    font-weight: 300;
    margin: 0;
}

/* ============================================================
   YSO page - 2 column split
   ============================================================ */
.yso-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.yso-split-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

@media (max-width: 600px) {
    .yso-split {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   YSO page - Gallery 4-column grid
   ============================================================ */
.yso-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 32px;
}

.yso-grid-4 .gi {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.yso-grid-4 .gi.show {
    opacity: 1;
    transform: translateY(0);
}

.yso-grid-4 .gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.yso-grid-4 .gi:hover img {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .yso-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   YSO page - Interlude (catch copy between gallery rows)
   ============================================================ */
.yso-interlude {
    padding: 56px 0;
    text-align: center;
}

.yso-interlude p {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    line-height: 1.8;
    color: #1d1d1f;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.yso-interlude small {
    display: block;
    font-size: 13px;
    color: #6e6e73;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.04em;
}

/* ============================================================
   YSO page - Facilities
   ============================================================ */
.yso-facility {
    margin-bottom: 64px;
}

.yso-facility:last-child {
    margin-bottom: 0;
}

.yso-facility-logo {
    height: auto;
    width: 300px;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
}

.yso-facility-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 24px;
}

.yso-facility-photos img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ============================================================
   YSO page - Recruit band
   ============================================================ */
.yso-recruit-band {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 52px 32px;
    text-align: center;
    margin: 80px 0;
}

.yso-recruit-band p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 2.0;
    margin: 0 0 28px;
}

.yso-recruit-btn {
    display: inline-block;
    background: #1d1d1f;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.14em;
    padding: 14px 44px;
    border-radius: 99px;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    transition: opacity 0.2s;
}

.yso-recruit-btn:hover {
    opacity: 0.8;
    color: #ffffff;
}

/* ============================================================
   YSO page - Footer
   ============================================================ */
.yso-footer-inner {
    padding: 48px 0 64px;
    border-top: 0.5px solid #d2d2d7;
    text-align: center;
}

.yso-footer-name {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: #6e6e73;
    margin: 0 0 8px;
}

.yso-footer-addr {
    font-size: 12px;
    color: #aeaeb2;
    line-height: 2.0;
    margin: 0;
}

.yso-group {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 0.5px solid #d2d2d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.yso-group img {
    height: auto;
    width: 220px;
    object-fit: contain;
}

/* ============================================================
   YSO page - Fade-in animation
   ============================================================ */
.fi {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fi.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   YSO page - Responsive
   ============================================================ */
@media (max-width: 480px) {
    .yso-wrap {
        padding: 0 16px;
    }
    .yso-sec {
        padding: 56px 0;
    }
    .yso-recruit-band {
        padding: 36px 20px;
    }
    .yso-hero {
        height: 80vh;
    }
}

/* ============================================================
   Site footer - White base redesign
   ============================================================ */
.site-footer,
#colophon,
.site-footer .inner-wrap {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.custom-footer {
    background: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
}

.ft-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #0bb4aa 0%, #23d5c8 50%, #7eeee8 100%);
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.ft-top {
    padding: 48px 40px 0;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.ft-company-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.ft-company-info {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.9;
}

.ft-related-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #0bb4aa;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ft-banners {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.ft-banners img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.ft-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-links a {
    font-size: 11px;
    color: #6e6e73;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.ft-links a:hover {
    color: #0bb4aa;
}

.ft-bottom {
    margin-top: 40px;
    padding: 20px 40px;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.ft-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 0.5px;
    background: #d2d2d7;
}

.ft-logo img {
    height: 40px;
    width: auto;
}

.ft-copy {
    font-size: 11px;
    color: #aeaeb2;
    letter-spacing: 0.06em;
}

@media (max-width: 640px) {
    .ft-top {
        grid-template-columns: 1fr;
        padding: 32px 20px 0;
        gap: 28px;
    }
    .ft-bottom {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }
}