/* ============================================================
 * OTONA BASE LP 専用 CSS
 * ------------------------------------------------------------
 * 設置先: wp-content/themes/{theme}/assets/otonabase/css/
 * 想定パス: ../images/, ../fonts/, ../mp4/ を相対参照
 *
 * 注: 元 LP の style.css をベースにしています。
 * ============================================================ */

:root {
    --ink: #3a3a3a;
    --paper: #f8f8f8;
    --cream: #eee4dc;
    --blue: #133993;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --jp: "Yu Gothic", "YuGothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --latin: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding-top: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--jp);
    font-feature-settings: "halt";
    line-height: 1.75;
    background-color: var(--paper);
    background-image: linear-gradient(rgba(58, 58, 58, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 58, 58, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

main {
  overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
 * LP 本体のレイアウト
 * ============================================================ */

.fv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 66px;
    padding: 60px 24px 80px;
    background: #fff;
    text-align: center;
}

.fv-logo-wrap {
    width: 1000px;
    max-width: calc(100vw - 48px);
}

.fv-logo {
    width: 100%;
    height: auto;
}

.fv-copy {
    display: block;
    width: 650px;
    max-width: calc(100vw - 48px);
    height: auto;
}

.movie-section {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-bottom: -38px;
    padding: 80px 24px 0;
    text-align: center;
}

.movie-back-text {
    position: absolute;
    bottom: 52px;
    right: 0;
    left: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.movie-text-line {
    overflow: hidden;
    height: var(--line-height);
    opacity: var(--line-opacity);
}

.movie-text-track {
    display: flex;
    width: max-content;
    animation: movieTextSlide var(--line-speed) linear infinite;
    will-change: transform;
}

.movie-text-track img {
    width: var(--line-width);
    height: auto;
    max-width: none;
    flex: 0 0 auto;
}

.movie-text-line.line-1 {
    --line-width: 1269px;
    --line-height: 45px;
    --line-speed: 28s;
    --line-opacity: 0.72;
}

.movie-text-line.line-2 {
    --line-width: 1692px;
    --line-height: 60px;
    --line-speed: 36s;
    --line-opacity: 0.72;
}

.movie-text-line.line-3 {
    --line-width: 2115px;
    --line-height: 75px;
    --line-speed: 44s;
    --line-opacity: 0.78;
}

.movie-text-line.line-4 {
    --line-width: 2538px;
    --line-height: 90px;
    --line-speed: 54s;
    --line-opacity: 0.82;
}

.movie-text-line:nth-child(even) .movie-text-track {
    animation-direction: reverse;
}

@keyframes movieTextSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.section-heading {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    text-align: center;
    animation: titleIn 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

@keyframes titleIn {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-heading {
        animation: none;
    }
}

.js .section-heading {
    animation: none;
}

.js .reveal-target {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.85s ease;
    will-change: opacity, transform, filter;
}

.js .reveal-target.is-inview {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.js .reveal-delay-1 {
    transition-delay: 0.08s;
}

.js .reveal-delay-2 {
    transition-delay: 0.16s;
}

.disable-hover .global-nav > a:hover::after,
.disable-hover .footer-nav a:hover::after {
    transform: scaleX(0);
}

.disable-hover .square-action:hover,
.disable-hover .portfolio-card:hover,
.disable-hover .portfolio-card:hover .card-arrow {
    transform: none;
}

.disable-hover .portfolio-card:hover {
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal-target {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.section-heading h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.section-heading p {
    margin: 0;
    font: 900 20px/0.95 var(--latin);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-heading.light {
    color: #fff;
}

.movie-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: min(720px, 86vw);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #d9d9d9;
    box-shadow: var(--shadow);
    object-fit: cover;
    overflow: hidden;
}

.about-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 140px 140px 100px;
    background: url("../images/naikan_bg_01.webp") center center / cover fixed;
}

.about-overlay {
    position: absolute;
    inset: 0;
}

.about-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.about-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.about-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    color: #fff;
}

.about-mark {
    width: 280px;
}

.about-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-text p {
    margin: 0 0 1.2em;
}

.portfolio-section {
    padding: 80px 140px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.08));
}

.portfolio-card {
    position: relative;
    display: flex;
    min-height: 340px;
    overflow: hidden;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.portfolio-card > img {
    width: 100%;
    aspect-ratio: 300 / 199;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.file-label {
    align-self: center;
    margin-top: -8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    line-height: 1.8;
}

.portfolio-title {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 8px 76px 32px 32px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.card-arrow {
    position: absolute;
    right: 32px;
    bottom: 42px;
    width: 37px;
    transition: transform 0.35s ease;
}

.portfolio-card:hover .card-arrow {
    transform: translateX(6px);
}

.faq-section {
    height: 0;
}

/* ============================================================
 * 詳細ページ用レイアウト (File.001 / 002 / 003)
 * ============================================================ */

.detail-main.detail-001 { --detail-bg: url("../images/naikan_bg_01.webp"); }
.detail-main.detail-002 { --detail-bg: url("../images/naikan_bg_02.webp"); }
.detail-main.detail-003 { --detail-bg: url("../images/naikan_bg_03.webp"); }

.detail-main {
    position: relative;
    isolation: isolate;
    background: var(--detail-bg) center top / cover fixed;
}

.detail-main::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.45);
    content: "";
}

.detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 120px 140px;
}

.detail-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.detail-title h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-align: center;
}

.detail-title span {
    display: inline-flex;
    padding: 7px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.detail-card {
    width: min(1000px, 100%);
    padding: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.lead-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lead-block h2 {
    margin: 0;
    padding: 12px 20px;
    border-left: 1px solid var(--ink);
    background: var(--paper);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: 0.04em;
}

.lead-block p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}

.separator {
    width: 200px;
    height: 1px;
    margin: 40px auto;
    background: var(--ink);
}

.photo-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

figure {
    margin: 0;
}

.photo-stack img {
    width: 100%;
    object-fit: cover;
}

.photo-stack .wide {
    width: 100%;
    max-width: 840px;
}

.photo-stack .wide img {
    height: 550px;
}

.photo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
}

.photo-row.equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-row img {
    height: 360px;
}

.detail-002 .photo-row img,
.detail-003 .photo-row img {
    height: 268px;
}

.photo-row .narrow img {
    height: auto;
    aspect-ratio: 3024 / 4032;
}

figcaption {
    padding: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.back-button {
    position: relative;
    display: flex;
    width: 320px;
    height: 60px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    background: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.back-button img {
    position: absolute;
    left: 26px;
    width: 37px;
    transform: rotate(180deg);
}

@media (max-width: 1280px) {
    .about-section,
    .portfolio-section,
    .detail-hero {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 980px) {
    .site-header {
        width: 100%;
        max-width: 100%;
        height: 52px;
        min-height: 52px;
        justify-content: space-between;
    }

    .brand {
        flex: 0 1 auto;
        padding: 11px 114px 11px 16px;
    }

    .brand img {
        width: 220px;
    }

    .global-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgba(58, 58, 58, 0.1);
        background: #fff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .global-nav a {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(58, 58, 58, 0.08);
    }

    .global-nav > a::after {
        display: none;
    }

    .nav-cta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
        background: #f8f8f8;
    }

    .nav-cta a {
        display: flex;
        min-height: 54px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 18px;
        border: 0;
        border-radius: 8px;
        font-weight: 800;
    }

    .nav-cta img {
        width: 22px;
        height: 22px;
    }

    .nav-request {
        background: var(--ink);
        color: #fff;
    }

    .nav-phone {
        background: var(--cream);
        color: var(--ink);
    }

    .menu-button {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        display: flex !important;
        width: 52px;
        height: 52px;
        min-height: 52px;
        flex: 0 0 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--ink);
        cursor: pointer;
    }

    .menu-button span {
        width: 24px;
        height: 2px;
        background: #fff;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .menu-state:checked + .menu-button + .global-nav {
        display: flex;
    }

    .menu-state:checked + .menu-button span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-state:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-state:checked + .menu-button span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .square-action {
        width: 52px;
        min-height: 52px;
    }

    .header-actions {
        display: none !important;
    }

    .fv {
        gap: 34px;
        overflow: hidden;
        padding: 44px 20px 54px;
    }

    .fv-copy {
        width: 650px;
        max-width: 100%;
        max-width: calc(100vw - 40px);
    }

    .section-heading h2 {
        font-size: clamp(30px, 6.6vw, 36px);
        line-height: 1.45;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .movie-section {
        padding-right: 20px;
        padding-left: 20px;
        padding-top: 56px;
        margin-bottom: -28px;
    }

    .movie-back-text {
        top: 190px;
        left: -35vw;
        width: 170vw;
    }

    .movie-text-line.line-1 {
        --line-width: 846px;
        --line-height: 30px;
    }

    .movie-text-line.line-2 {
        --line-width: 1128px;
        --line-height: 40px;
    }

    .movie-text-line.line-3 {
        --line-width: 1410px;
        --line-height: 50px;
    }

    .movie-text-line.line-4 {
        --line-width: 1692px;
        --line-height: 60px;
    }

    .movie-frame {
        width: 100%;
    }

    .about-section,
    .portfolio-section,
    .detail-hero {
        padding-right: 20px;
        padding-left: 20px;
    }

    .about-section {
        padding-top: 108px;
        padding-bottom: 80px;
    }

    .about-body {
        grid-template-columns: 1fr;
    }

    .about-mark {
        width: min(200px, 100%);
        margin: 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
    }

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 18px;
    }

    .footer-nav {
        margin-inline: auto;
    }

    .footer-contact {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    .footer-contact a {
        padding: 12px 18px;
        font-size: 18px;
    }

    .about-section,
    .detail-main {
        background-attachment: fixed;
    }

    .detail-hero {
        gap: 36px;
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .detail-card {
        padding: 28px 18px;
    }

    .detail-title h1 {
        font-size: 28px;
    }

    .lead-block {
        gap: 24px;
    }

    .lead-block h2 {
        font-size: 18px;
        line-height: 1.55;
    }

    .lead-block p {
        font-size: 14px;
    }

    .photo-stack .wide,
    .photo-row {
        width: 100%;
        max-width: none;
    }

    .photo-stack .wide img,
    .photo-row img,
    .detail-002 .photo-row img,
    .detail-003 .photo-row img {
        height: auto;
        aspect-ratio: 840 / 550;
    }

    .photo-row,
    .photo-row.equal {
        grid-template-columns: 1fr;
    }

    .back-button {
        width: min(320px, 82vw);
    }

    .header-actions .phone {
        display: none;
    }
}

@media (max-width: 560px) {
    .menu-button {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        display: flex !important;
        width: 52px;
        height: 52px;
    }

    .brand img {
        width: 170px;
    }

    .square-action {
        width: 52px;
        min-height: 54px;
    }

    .square-action img {
        width: 20px;
        height: 20px;
    }

    .fv-logo-wrap {
        width: 100%;
    }

    .fv-logo {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .section-heading h2 {
        font-size: 30px;
        line-height: 1.45;
    }

    .section-heading p {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .header-actions .phone {
        display: none;
    }

    .portfolio-title {
        padding-right: 70px;
    }

    .footer-nav {
        justify-content: center;
        gap: 14px 22px;
        font-size: 12px;
    }

    .footer-contact {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .footer-blue.layout-footer a {
        margin-inline: auto;
    }

    .footer-blue.layout-footer .copyright-area__inner {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
        gap: 12px;
    }

    .footer-blue.layout-footer .other-area {
        max-width: 204px;
        display: block;
        margin-inline: auto;
    }

    .footer-blue.layout-footer .other-area .recruit__btn a {
        font-size: 12px;
        width: 202px;
        height: 26px;
    }

    .footer-blue.layout-footer .other-area .flex.sns_g {
        flex-wrap: nowrap;
    }

    .footer-blue.layout-footer .other-area .flex.sns_g p {
        padding: 0;
    }

    .footer-blue.layout-footer p.copyright {
        font-size: 10px;
        transform: scale(0.86);
        transform-origin: center top;
    }

    .footer-blue.layout-footer p.copyright small {
        font-size: 10px;
    }

    .footer-blue.layout-footer .logo-area img {
        width: 79%;
        margin-inline: auto;
    }

    .footer-blue.layout-footer .other-area .cr-yt img {
        width: 22px;
        height: auto;
        margin-right: 10px;
    }

    .footer-blue.layout-footer .other-area .cr-fb img,
    .footer-blue.layout-footer .other-area .cr-line img {
        width: 19px;
        height: auto;
    }
}

body.is-smartphone .header-actions {
    position: fixed;
    top: 0;
    right: 52px;
    z-index: 99;
    display: flex !important;
    gap: 0;
}

body.is-smartphone .header-actions .document {
    display: none !important;
}

body.is-smartphone .header-actions .phone {
    display: grid !important;
    width: 52px;
    min-height: 52px;
}

body.is-smartphone .nav-cta .nav-phone {
    display: flex !important;
}

@media (max-width: 560px) {
    body.is-smartphone .header-actions .phone {
        width: 52px;
        min-height: 52px;
    }
}
