/* ============================================
   PDF ONE - Main Stylesheet
   ============================================ */

/* Base Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    overflow-x: hidden;
}

/* 固定ヘッダーのテキストリンク: 暗い背景とのコントラスト確保（白縁） */
.global-nav-link {
    color: rgb(30 41 59);
    text-shadow:
        -1px -1px 0 #ffffffbf,
        1px -1px 0 #ffffffbf,
        -1px 1px 0 #ffffffbf,
        1px 1px 0 #ffffffbf,
        0 -1px 0 #ffffffbf,
        0 1px 0 #ffffffbf,
        -1px 0 0 #ffffffbf,
        1px 0 0 #ffffffbf;
}

/* Mesh Gradient Background - Apple Intelligence Inspired */
.mesh-gradient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #ffffff;
    overflow: hidden;
}

.mesh-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: move 25s infinite alternate ease-in-out;
}

/* 右上からの光（シアン・ブルー系） */
.ball-1 { 
    width: 50vw; 
    height: 50vw; 
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 80%); 
    top: -20%; 
    right: -10%; 
    animation-duration: 30s; 
}

/* 左下からの光（パープル・ピンク系）- ロゴ周りを避けるため位置調整 */
.ball-2 { 
    width: 60vw; 
    height: 60vw; 
    background: radial-gradient(circle, rgba(216, 70, 239, 0.25) 0%, rgba(168, 85, 247, 0.1) 60%, transparent 80%); 
    bottom: -30%; 
    left: -20%; 
    animation-duration: 35s; 
    animation-delay: -5s; 
}

/* 右下からの光（オレンジ・イエロー系） */
.ball-3 { 
    width: 55vw; 
    height: 55vw; 
    background: radial-gradient(circle, rgba(251, 146, 60, 0.25) 0%, rgba(249, 115, 22, 0.1) 60%, transparent 80%); 
    bottom: -15%; 
    right: -15%; 
    animation-duration: 40s; 
    animation-delay: -10s; 
}

/* 左上奥からの光（淡いティール系）- ロゴの視認性を邪魔しない配置 */
.ball-4 { 
    width: 45vw; 
    height: 45vw; 
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.05) 60%, transparent 80%); 
    top: -15%; 
    left: 10%; 
    animation-duration: 28s; 
    animation-delay: -2s; 
    opacity: 0.4;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.1); }
    100% { transform: translate(-20px, -20px) scale(0.95); }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Bento Card Styles */
.bento-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

/* Mask Gradient */
.mask-gradient {
    mask-image: linear-gradient(to top, transparent, black 20%);
}

/* Image Slider Styles */
.slider-image {
    transition: opacity 1.5s ease-in-out, transform 2s ease-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Full Width Visual Section */
.full-visual-section {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.full-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/macimage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.6;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.full-visual-section:hover .full-visual-bg {
    transform: scale(1);
}

.visual-catchphrase {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
}

.specs-section {
    width: 100%;
    background-color: #0f172a;
    color: #fff;
}

.specs-inner {
    padding: 6rem 1.5rem;
}

.spec-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 3rem;
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.2);
}

.spec-card .text-slate-400 {
    color: #64748b !important;
}

.specs-license {
    margin-top: 3.5rem;
    text-align: center;
    color: #e2e8f0;
}

.specs-license-text {
    color: #cbd5f5;
    font-weight: 200;
}
.specs-license-text .text-yellow {
    color: rgb(255, 248, 50);
    font-weight: 600;
}

.specs-license-card {
    margin: 2.5rem auto 0;
    padding: 2.5rem;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.6);
}

.specs-license-card-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.specs-license-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-slate-400 {
    --tw-text-opacity: 1;
    color: rgb(22 44 76)!important;
}

.btn_logo {
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

/* App Showcase Section */
.app-window {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.5s ease;
}

.app-window:hover {
    transform: translateY(-5px);
}

.window-header {
    background: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.screen-container {
    position: relative;
    width: 100%;
    /* アスペクト比を維持するためのpadding-topなどは画像サイズ次第だが、今回はimgタグで制御 */
}

.app-screen {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.app-screen.hidden-screen {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.app-screen.active-screen {
    opacity: 1;
    position: relative;
    z-index: 10;
}

/* Tab Switcher Apple Style */
.tab-switcher {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 999px;
    padding: 4px;
    display: inline-flex;
    position: relative;
    margin-top: 3rem;
}

.tab-btn {
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Float Animation for UI */
@keyframes floatui {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-ui {
    animation: floatui 6s ease-in-out infinite;
}

.graText{
    --gradient-start: #022640;
    --gradient-end: #db1f71;
    background-image: linear-gradient(90deg, #a30b0b, var(--gradient-end));
    width: fit-content;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px!important;
}

.conceptArea{
    max-width: 700px;
}

.featuresArea1{
    max-width: 845px;
}

.featuresArea1 .glass{
    z-index: 10;
}

.featuresArea1 .bgimg{
    z-index: 1;
    max-width: none;
    position: absolute;
    top: 185px;
    right: -480px;
}

/* 「PDF ONEのここがすごい」: Apple 風ベント（非対称 12 カラム + 2 行ホットゾン） */
.amazing-bento__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .amazing-bento__grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 1.25rem;
    }

    .amazing-bento__cell--1 {
        grid-column: 1 / span 7;
        grid-row: 1 / span 2;
    }

    .amazing-bento__cell--2 {
        grid-column: 8 / span 5;
        grid-row: 1 / span 1;
    }

    .amazing-bento__cell--3 {
        grid-column: 8 / span 5;
        grid-row: 2 / span 1;
    }

    .amazing-bento__cell--4 {
        grid-column: 1 / span 4;
        grid-row: 3 / span 1;
    }

    .amazing-bento__cell--5 {
        grid-column: 5 / span 4;
        grid-row: 3 / span 1;
    }

    .amazing-bento__cell--6 {
        grid-column: 9 / span 4;
        grid-row: 3 / span 1;
    }
}

.amazing-bento__card {
    position: relative;
    height: 100%;
    min-height: 240px;
    border-radius: 1.75rem;
    overflow: hidden;
    background: #0c1220;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 24px 48px -12px rgba(15, 23, 42, 0.35);
    transition: box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 1024px) {
    .amazing-bento__cell--1 .amazing-bento__card {
        min-height: 0;
    }
}

.amazing-bento__cell--1 .amazing-bento__card {
    min-height: 300px;
}

.amazing-bento__card:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 32px 64px -16px rgba(15, 23, 42, 0.45);
    transform: translateY(-2px);
}

.amazing-bento__index {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    z-index: 3;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.amazing-bento__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.amazing-bento__card:hover .amazing-bento__img {
    transform: scale(1.045);
}

.amazing-bento__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 42%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.amazing-bento__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1rem 1rem 1.15rem;
    text-align: center;
    /* 白文字の可読性: 下帯に黒 50%（カード下端に合わせて角丸） */
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem 0.5rem 1.65rem 1.65rem;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .amazing-bento__text {
        padding: 1.15rem 1.25rem 1.35rem;
    }
}

.amazing-bento__title {
    font-size: 1.0625rem;
    line-height: 1.4;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}

/* 大きい 01 以外: キャッチをほんの少し大きく */
.amazing-bento__cell:not(.amazing-bento__cell--1) .amazing-bento__title {
    font-size: 1.125rem;
}

@media (min-width: 640px) {
    .amazing-bento__title {
        font-size: 1.25rem;
    }

    .amazing-bento__cell:not(.amazing-bento__cell--1) .amazing-bento__title {
        font-size: 1.3125rem;
    }
}

@media (min-width: 1024px) {
    .amazing-bento__cell--1 .amazing-bento__title {
        font-size: 1.5rem;
    }

    .amazing-bento__cell:not(.amazing-bento__cell--1) .amazing-bento__title {
        font-size: 1.375rem;
    }
}

.amazing-bento__title-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.amazing-bento__cell:not(.amazing-bento__cell--1) .amazing-bento__title-sub {
    font-size: 0.875rem;
}

/* new.html メインビジュアル */
.main-visual-hero {
    position: relative;
    background-color: #f0f9ff;
    background-image: url('../img/newmainbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * 女性ビジュアル: ヒーロー全面に対して右側へ absolute。
 * 高さは section の上端〜下端まで（top: 0; bottom: 0）。
 * 4 カードは z-index で女性の前面に出すため、女性は z-index を低めに。
 */
.main-visual-hero__figure {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(58%, 850px);
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

.main-visual-hero__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
}

/* タブレット以下: 画像は控えめに（テキストの邪魔をしない） */
@media (max-width: 1023px) {
    .main-visual-hero__figure {
        width: min(72%, 460px);
        z-index: 0;
        opacity: 0.55;
    }

    .main-visual-hero__img {
        height: auto;
        max-height: 100%;
        width: 100%;
    }
}

/* ロゴ群（ロゴ＋OSバッジ） */
.main-visual-hero__logo-block {
    position: relative;
}

/* OS表記: ロゴ幅の右端に揃え（ONE 側の上に来る） */
.main-visual-hero__os-ribbon {
    position: absolute;
    right: 0;
    left: auto;
    bottom: 100%;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .main-visual-hero__os-ribbon {
        font-size: 0.8125rem;
    }
}
