/*!
 * AWO Hero Section Styles
 * テーマ：「再起動（Reboot）の情景」夜明けの海
 *
 * カラーパレット
 *   Primary  : #D9E4EC (Morning Mist)
 *   Secondary: #F7F9FB (Pure Salt)
 *   Accent   : #4A5C6A (Deep Awa Blue)
 */

/* ============================================================
   Google Fonts インポート
   （functions.php でエンキューする場合はこの @import は不要）
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400&family=Noto+Sans+JP:wght@300;400&display=swap');

html {
    scroll-behavior : smooth;
}

/* ============================================================
   CSS カスタムプロパティ
   ============================================================ */
:root {
    --awo-color-primary   : #D9E4EC;
    --awo-color-secondary : #F7F9FB;
    --awo-color-accent    : #4A5C6A;
    --awo-color-white     : #FFFFFF;

    --awo-font-serif      : 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    --awo-font-sans       : 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    --awo-hero-overlay-opacity : 0.35;
    --awo-copy-max-width       : 900px;
    --awo-transition-base      : 2.5s ease;
}

/* ============================================================
   メインラッパー（hero-section.php 用）
   ============================================================ */
#awo-main {
    flex   : 1;
    margin : 0;
    padding: 0;
}

/* ============================================================
   Hero セクション ベース
   ============================================================ */
.awo-hero-section {
    position        : relative;
    width           : 100%;
    height          : 100dvh; /* dynamic viewport height */
    min-height      : 600px;
    overflow        : hidden;
    display         : flex;
    align-items     : center;
    justify-content : center;

    /* ヘッダー等の margin/padding リセット */
    margin          : 0;
    padding         : 0;
}

/* ============================================================
   背景動画
   ============================================================ */
.awo-hero__video-wrapper {
    position  : absolute;
    inset     : 0;          /* top/right/bottom/left: 0 */
    z-index   : 0;
    overflow  : hidden;
}

.awo-hero__video {
    position   : absolute;
    top        : 0;
    left       : 0;
    width      : 100%;
    height     : 100%;
    object-fit : cover;
    transform  : none;
}

/* ============================================================
   オーバーレイ（動画上の暗幕）
   ============================================================ */
.awo-hero__overlay {
    position   : absolute;
    inset      : 0;
    background : linear-gradient(
        180deg,
        rgba(74, 92, 106, calc(var(--awo-hero-overlay-opacity) * 0.6)) 0%,
        rgba(10, 20, 30, var(--awo-hero-overlay-opacity))               50%,
        rgba(74, 92, 106, calc(var(--awo-hero-overlay-opacity) * 0.8)) 100%
    );
    z-index    : 1;
}

/* ============================================================
   コンテンツエリア
   ============================================================ */
.awo-hero__content {
    position        : relative;
    z-index         : 2;
    width           : 100%;
    display         : flex;
    justify-content : center;
    align-items     : center;

    /* 画面中央よりやや上寄り */
    margin-top      : -8vh;
    padding         : 0 clamp(1.5rem, 5vw, 4rem);
}

.awo-hero__copy-wrapper {
    max-width  : var(--awo-copy-max-width);
    width      : 100%;
    text-align : center;
}

/* ============================================================
   メインコピー（Cormorant Garamond）
   ============================================================ */
.awo-hero__main-copy {
    font-family    : var(--awo-font-serif);
    font-weight    : 300;
    font-size      : clamp(1.75rem, 3.5vw, 3.25rem);
    line-height    : 1.55;
    letter-spacing : 0.04em;
    color          : var(--awo-color-white);

    margin         : 0 0 clamp(1rem, 2.5vw, 1.75rem);
    padding        : 0;

    /* テキストシャドウで視認性を高める */
    text-shadow    : 0 2px 24px rgba(10, 20, 30, 0.5),
                     0 1px  4px rgba(10, 20, 30, 0.3);

    /* フェードイン初期状態（JS で付与するクラスと連動） */
    opacity        : 0;
    transform      : translateY(20px);
    transition     : opacity var(--awo-transition-base),
                     transform var(--awo-transition-base);
}

.awo-hero__main-copy.is-visible {
    opacity   : 1;
    transform : translateY(0);
}

/* SP でルビ的な改行を調整 */
.awo-hero__br--sp {
    display : none;
}

/* ============================================================
   サブコピー（Inter）
   ============================================================ */
.awo-hero__sub-copy {
    font-family    : var(--awo-font-sans);
    font-weight    : 300;
    font-size      : clamp(0.875rem, 2vw, 1.375rem);
    line-height    : 1.4;
    letter-spacing : 0.2em;
    text-transform : uppercase;
    color          : var(--awo-color-primary); /* Morning Mist */

    margin         : 0;
    padding        : 0;

    text-shadow    : 0 1px 8px rgba(10, 20, 30, 0.4);

    /* フェードイン（メインコピーより少し遅れる） */
    opacity        : 0;
    transform      : translateY(16px);
    transition     : opacity var(--awo-transition-base) 0.2s,
                     transform var(--awo-transition-base) 0.2s;
}

.awo-hero__sub-copy.is-visible {
    opacity   : 1;
    transform : translateY(0);
}

/* ============================================================
   スクロールインジケーター
   ============================================================ */
.awo-hero__scroll-indicator {
    position        : absolute;
    bottom          : clamp(1.5rem, 4vh, 2.5rem);
    left            : 50%;
    transform       : translateX(-50%);
    z-index         : 2;
    display         : flex;
    flex-direction  : column;
    align-items     : center;
    gap             : 0.5rem;

    opacity         : 0;
    transition      : opacity var(--awo-transition-base) 1s;
}

.awo-hero__scroll-indicator.is-visible {
    opacity : 0.7;
}

.awo-hero__scroll-line {
    display          : block;
    width            : 1px;
    height           : 48px;
    background       : var(--awo-color-white);
    transform-origin : top center;
    animation        : awo-scroll-line 2s ease-in-out infinite;
}

.awo-hero__scroll-text {
    font-family    : var(--awo-font-sans);
    font-size      : 0.625rem;
    font-weight    : 400;
    letter-spacing : 0.25em;
    color          : var(--awo-color-white);
}

@keyframes awo-scroll-line {
    0%   { transform: scaleY(0); opacity: 0; }
    30%  { transform: scaleY(1); opacity: 1; }
    70%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0) translateY(100%); opacity: 0; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1024px) {
    .awo-hero__main-copy {
        font-size : clamp(1.625rem, 4vw, 2.75rem);
    }
}

/* スマートフォン */
@media (max-width: 640px) {
    .awo-hero__content {
        margin-top : -5vh;
    }

    .awo-hero__main-copy {
        font-size      : clamp(1.625rem, 7vw, 2.5rem);
        letter-spacing : 0.04em;
    }

    .awo-hero__br--sp {
        display : block;
    }

    .awo-hero__sub-copy {
        font-size      : clamp(0.75rem, 3.5vw, 1rem);
        letter-spacing : 0.15em;
    }
}

/* ============================================================
   共通セクション
   ============================================================ */

/* フェードイン共通（js-fade-in） */
.js-fade-in {
    opacity    : 0;
    transform  : translateY(28px);
    transition : opacity 0.7s ease, transform 0.7s ease;
}
.js-fade-in.is-visible {
    opacity   : 1;
    transform : translateY(0);
}

.awo-section {
    padding : clamp(5rem, 10vw, 9rem) 0;
}

.awo-section:nth-child(even) {
    background : var(--awo-color-secondary);
}

.awo-section__inner {
    max-width : 1080px;
    margin    : 0 auto;
    padding   : 0 clamp(1.5rem, 5vw, 4rem);
}

.awo-section__heading {
    font-family    : var(--awo-font-serif);
    font-weight    : 300;
    font-size      : clamp(2rem, 4vw, 3rem);
    letter-spacing : 0.06em;
    color          : var(--awo-color-accent);
    margin         : 0 0 clamp(2.5rem, 5vw, 4rem);
    padding-bottom : 1rem;
    border-bottom  : 1px solid var(--awo-color-primary);
}

/* ============================================================
   02. About
   ============================================================ */
.awo-about__body {
    max-width   : 720px;
    font-family : var(--awo-font-sans);
    font-weight : 300;
    font-size   : clamp(0.9375rem, 1.5vw, 1.0625rem);
    line-height : 2;
    color       : #3a3a3a;
}
.awo-about__body p + p {
    margin-top : 1.5em;
}

/* ============================================================
   03. Business
   ============================================================ */
.awo-business__grid {
    display               : grid;
    grid-template-columns : repeat(3, 1fr);
    gap                   : 2rem;
}

.awo-card {
    background     : var(--awo-color-white);
    border         : 1px solid var(--awo-color-primary);
    padding        : clamp(1.75rem, 3vw, 2.5rem);
    transition     : box-shadow 0.3s ease, transform 0.3s ease;
}
.awo-card:hover {
    box-shadow : 0 8px 32px rgba(74, 92, 106, 0.12);
    transform  : translateY(-4px);
}

.awo-card__title {
    font-family    : var(--awo-font-serif);
    font-weight    : 400;
    font-size      : clamp(1.125rem, 1.8vw, 1.375rem);
    letter-spacing : 0.04em;
    color          : var(--awo-color-accent);
    margin         : 0 0 1rem;
    line-height    : 1.4;
}

.awo-card__body {
    font-family : var(--awo-font-sans);
    font-weight : 300;
    font-size   : 0.9375rem;
    line-height : 1.85;
    color       : #4a4a4a;
    margin      : 0;
}
.awo-card__body + .awo-card__body {
    margin-top  : 1em;
}

/* ============================================================
   04. Philosophy
   ============================================================ */
.awo-philosophy__blocks {
    display        : flex;
    flex-direction : column;
    gap            : clamp(3rem, 5vw, 4.5rem);
    margin-bottom  : clamp(3rem, 5vw, 4.5rem);
}

.awo-philosophy__block {
    display               : grid;
    grid-template-columns : 200px 1fr;
    gap                   : 0 3rem;
    align-items           : start;
    padding-top           : 2rem;
    border-top            : 1px solid var(--awo-color-primary);
}

.awo-philosophy__en {
    font-family    : var(--awo-font-serif);
    font-weight    : 300;
    font-size      : 1.5rem;
    letter-spacing : 0.08em;
    color          : var(--awo-color-accent);
    margin         : 0 0 0.25rem;
}

.awo-philosophy__ja {
    font-family    : var(--awo-font-sans);
    font-size      : 0.75rem;
    font-weight    : 300;
    letter-spacing : 0.2em;
    color          : #888;
    margin         : 0;
}

.awo-philosophy__quote {
    font-family    : 'Yu Mincho', '游明朝', var(--awo-font-serif);
    font-weight    : 400;
    font-size      : clamp(1rem, 1.6vw, 1.1875rem);
    line-height    : 1.7;
    letter-spacing : 0.05em;
    color          : var(--awo-color-accent);
    margin         : 0 0 1rem;
    grid-column    : 2;
}

.awo-philosophy__body {
    font-family : var(--awo-font-sans);
    font-weight : 300;
    font-size   : 0.9375rem;
    line-height : 1.9;
    color       : #4a4a4a;
    margin      : 0;
    grid-column : 2;
}
.awo-philosophy__body + .awo-philosophy__body {
    margin-top  : 1em;
    grid-column : 2;
}

.awo-philosophy__values {
    display         : flex;
    flex-wrap       : wrap;
    gap             : 0.75rem;
    list-style      : none;
    margin          : 0;
    padding         : 0;
    grid-column     : 2;
}

.awo-philosophy__value-tag {
    font-family    : var(--awo-font-sans);
    font-size      : 0.875rem;
    font-weight    : 300;
    letter-spacing : 0.1em;
    color          : var(--awo-color-accent);
    border         : 1px solid var(--awo-color-accent);
    padding        : 0.5rem 1.25rem;
}

/* ============================================================
   05. Overview
   ============================================================ */
.awo-overview__list {
    max-width : 720px;
    margin    : 0;
    padding   : 0;
}

.awo-overview__row {
    display       : grid;
    grid-template-columns : 200px 1fr;
    gap           : 0 2rem;
    padding       : 1.5rem 0;
    border-bottom : 1px solid var(--awo-color-primary);
}
.awo-overview__row:first-child {
    border-top : 1px solid var(--awo-color-primary);
}

.awo-overview__term {
    font-family    : var(--awo-font-serif);
    font-weight    : 400;
    font-size      : 0.9375rem;
    letter-spacing : 0.08em;
    color          : var(--awo-color-accent);
}

.awo-overview__desc {
    font-family : var(--awo-font-sans);
    font-weight : 300;
    font-size   : 0.9375rem;
    line-height : 1.7;
    color       : #3a3a3a;
    margin      : 0;
}

/* ============================================================
   06. Contact
   ============================================================ */
.awo-contact__form {
    max-width      : 600px;
}

.awo-contact__field {
    margin-bottom : 2rem;
}

.awo-contact__label {
    display        : block;
    font-family    : var(--awo-font-sans);
    font-size      : 0.75rem;
    font-weight    : 400;
    letter-spacing : 0.2em;
    text-transform : uppercase;
    color          : var(--awo-color-accent);
    margin-bottom  : 0.5rem;
}

.awo-contact__input,
.awo-contact__textarea {
    width         : 100%;
    background    : transparent;
    border        : none;
    border-bottom : 1px solid var(--awo-color-accent);
    padding       : 0.625rem 0;
    font-family   : var(--awo-font-sans);
    font-size     : 0.9375rem;
    font-weight   : 300;
    color         : #3a3a3a;
    outline       : none;
    transition    : border-color 0.3s ease;
    box-sizing    : border-box;
}
.awo-contact__input:focus,
.awo-contact__textarea:focus {
    border-color  : var(--awo-color-accent);
}
.awo-contact__textarea {
    resize        : vertical;
    min-height    : 120px;
}

.awo-contact__submit-wrapper {
    margin-top : 2.5rem;
}

/* ============================================================
   Contact 送信結果通知
   ============================================================ */
.awo-contact__notice {
    padding        : 1rem 1.5rem;
    font-size      : 0.875rem;
    margin-bottom  : 2rem;
    letter-spacing : 0.05em;
}
.awo-contact__notice--success {
    background  : rgba(74, 92, 106, 0.08);
    color       : #4A5C6A;
    border-left : 3px solid #4A5C6A;
}
.awo-contact__notice--error {
    background  : rgba(180, 100, 100, 0.08);
    color       : #8B4444;
    border-left : 3px solid #8B4444;
}

.awo-contact__submit {
    font-family    : var(--awo-font-sans);
    font-size      : 0.8125rem;
    font-weight    : 400;
    letter-spacing : 0.25em;
    text-transform : uppercase;
    color          : var(--awo-color-white);
    background     : var(--awo-color-accent);
    border         : 1px solid var(--awo-color-accent);
    padding        : 0.875rem 3rem;
    cursor         : pointer;
    transition     : background 0.3s ease, color 0.3s ease;
}
.awo-contact__submit:hover {
    background : transparent;
    color      : var(--awo-color-accent);
}

/* ============================================================
   レスポンシブ（全セクション共通）
   ============================================================ */
@media (max-width: 1024px) {
    .awo-business__grid {
        grid-template-columns : repeat(2, 1fr);
    }
    .awo-philosophy__block {
        grid-template-columns : 160px 1fr;
    }
}

@media (max-width: 640px) {
    .awo-business__grid {
        grid-template-columns : 1fr;
    }

    .awo-philosophy__block {
        grid-template-columns : 1fr;
        gap                   : 0;
    }
    .awo-philosophy__quote,
    .awo-philosophy__body {
        grid-column : 1;
    }
    .awo-philosophy__en {
        margin-bottom : 0.125rem;
    }
    .awo-philosophy__ja {
        margin-bottom : 1rem;
    }

    .awo-overview__row {
        grid-template-columns : 1fr;
        gap                   : 0.25rem;
    }
    .awo-overview__term {
        font-size : 0.75rem;
        color     : #888;
    }
}

/* ============================================================
   ヘッダー レイアウト調整
   ============================================================ */
#nv-header {
    display     : flex;
    align-items : center;
    height      : 72px;
    padding     : 0;
}
.nv-header__inner {
    padding-top    : 0 !important;
    padding-bottom : 0 !important;
    width          : 100%;
}

/* WPツールバー表示時のオフセット（管理画面ログイン時のみ） */
body.admin-bar #nv-header {
    top : 32px;
}

/* ============================================================
   ナビゲーション リンク
   ============================================================ */
.nv-header__inner {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    width           : 100%;
    padding         : 0 48px;
    box-sizing      : border-box;
}

.awo-nav__links {
    display     : flex;
    align-items : center;
    gap         : 2rem;
    list-style  : none;
    margin      : 0;
    padding     : 0;
}

.awo-nav__item {
    color           : rgba(255, 255, 255, 0.85);
    text-decoration : none;
    font-family     : 'Inter', 'Noto Sans JP', sans-serif;
    font-size       : 0.75rem;
    letter-spacing  : 0.1em;
    text-transform  : uppercase;
    transition      : color 0.3s ease, opacity 0.3s ease;
    opacity         : 0.85;
    white-space     : nowrap;
}

.awo-nav__item:hover {
    color   : #ffffff;
    opacity : 1;
}

/* ヒーロー以外のセクション上ではナビ文字色を暗く */
.awo-nav--dark .awo-nav__item {
    color : rgba(74, 92, 106, 0.85);
}
.awo-nav--dark .awo-nav__item:hover {
    color : #4A5C6A;
}

/* ============================================================
   ナビゲーション ロゴ
   ============================================================ */
.awo-nav__logo-img {
    height     : 40px;
    width      : auto;
    display    : block;
    opacity    : 0.9;
    transition : opacity 0.3s ease;
}
.awo-nav__logo-img:hover {
    opacity : 1;
}

/* ============================================================
   フッター ロゴ
   ============================================================ */
.awo-footer__logo {
    display         : flex;
    justify-content : center;
    margin-bottom   : 1.5rem;
}
.awo-footer__logo-img {
    height  : 32px;
    width   : auto;
    opacity : 0.6;
}

/* ============================================================
   アクセシビリティ：モーション軽減設定
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .awo-hero__video {
        display : none;
    }

    .awo-hero__video-wrapper::before {
        content    : '';
        position   : absolute;
        inset      : 0;
        background : var(--awo-color-accent);
    }

    .awo-hero__main-copy,
    .awo-hero__sub-copy,
    .awo-hero__scroll-indicator {
        opacity    : 1;
        transform  : none;
        transition : none;
    }

    .awo-hero__scroll-line {
        animation : none;
        opacity   : 1;
    }
}
