/* -----------------------------------
   変数・ベース設定
----------------------------------- */
:root {
    --primary-color: #0b1a2c;
    /* AIらしい深いブルー */
    --accent-color: #007bff;
    --text-color: #333;
    --bg-light: #f4f6f9;
    --header-bg: rgba(11, 26, 44, 0.95);
    --section-padding-pc: 100px 0;
    --section-padding-sp: 60px 0;
    --header-height: clamp(60px, 8vw, 100px);
    --logo-width: clamp(104px, 14vw, 174px);
    /* logo001.png(2134x737, 縦横比約2.8955)を基準に、ヘッダー高さの60%を占める幅を算出: 60px*0.6*2.8955=104px / 100px*0.6*2.8955=174px / 8vw*0.6*2.8955=14vw */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
li {
    list-style: none !important;
    /* ドット（中黒）を一切出さない */
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    overflow: hidden;
    /* 横揺れ防止 */
}

/* 共通タイトル */
.common_tit {
    text-align: center;
    margin-bottom: 50px;
}




h2 {
    font-size: clamp(1.25rem, 3vw, 3.75rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
}



p {
    font-size: clamp(0.875rem, 1.2vw, 1.375rem);
    color: #000;
    margin-bottom: 20px;
    margin-top: 50px;
}


hr {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border: none;
    margin: 0 auto;
}

/* -----------------------------------
   1. ヘッダー (追従グローバルナビ)
----------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    background: var(--header-bg);
    transition: background 0.3s;
    /* iOS Safariのバウンススクロールでfixedヘッダーの描画が崩れる既知のWebKit不具合への緩和策:
       専用の合成レイヤーに固定して、バウンス中の再描画でヒーローに被らないようにする */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.headercon {
    display: grid;
    grid-template-columns: var(--logo-width) 1fr;
    /* ロゴ(固定幅) / メニュー領域(お問合せ込み5項目、残り全部) */
    column-gap: 20px;
    align-items: center;
    padding-left: 5%;
    width: 100%;
    height: var(--header-height);
    /* 画面幅に合わせて高さを流動的に */
}

.logo-area {
    width: var(--logo-width);
    padding:10px 0 0 0 ;
    /* ロゴの領域として明示的に幅を確保する（headerconのGrid列とは別に、この要素自身にも持たせる） */
}

.menu-area {
    width: 100%;
    /* main-navigationの領域として明示的に幅を確保する（logo-areaと対になる要素） */
}

.logo {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    /* テキストロゴなのでフォントサイズを可変に */
    font-weight: 900;
    letter-spacing: 4px;
    display: block;
    width: auto;
    white-space: nowrap;
    /* 折り返しを防止 */
}

/*202605181724*/

.flow {
    width: 100%;
    text-align: center;
    margin: 20px auto 0;
    display: flex;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: var(--header-height);
    /* .logo-areaの幅計算がどこかで崩れても、ヘッダーの縦幅を超えて肥大化しないための保険 */
    object-fit: contain;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
}

.main-navigation li {
    position: relative;
    padding: 0 10px;
    flex: 1;
}

.main-navigation li:last-child {
    padding-right: 0;
    /* お問合せボタンをheaderconの真の右端まで密着させる */
}

.main-navigation a {
    color: #fff;
    font-size: clamp(16px, 1.5vw, 22px);
    /* フォントサイズも流動的に */
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: 0.3s;
    font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
    white-space: nowrap;
}

.main-navigation a span {
    font-size: clamp(10px, 1.1vw, 16px);
    font-weight: normal;
    color: #fff;
    margin-top: 5px;
}

.contact-btn {
    background: #fff;
    color: #000 !important;
    padding: 1.5vw 3vw !important;
    /* パディングを相対値に */
    font-size: clamp(16px, 1.5vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: #ccc;
    color: #000 !important;
}

/* モバイルメニューボタン */
.mobile-btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
    transition: 0.3s;
}

.mobile-btn span:nth-child(1) {
    top: 0;
}

.mobile-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-btn.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-btn.open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.sp-wrapper {
    display: none;
}

.lead-text {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 2;
    max-width: 800px;
}

/* -----------------------------------
   3. 各セクションレイアウト
----------------------------------- */
/* --- 共通レイアウト --- */
.section-padding {
    padding: var(--section-padding-sp);
}

@media screen and (min-width: 901px) {
    .section-padding {
        padding: var(--section-padding-pc);
    }
}

.section-lead {
    font-size: clamp(1rem, 1.4vw, 1.375rem);
    font-weight: bold;
}

/* 翻訳ソリューション事業セクション（原案の下書きに合わせ、テキストは中央寄せ・全幅） */
.translation-section {
    padding-bottom: 50px;
}

.translation-text-bg {
    width: 100%;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
    background-image: linear-gradient(rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.5)), url("../img/world.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.translation-text-bg p {
    max-width: clamp(1000px, 62vw, 1200px);
    margin: 0 auto 1.8em;
    text-align: center;
    color: #fff;
    text-shadow: 0.1vw 0.1vw 0.4vw rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

.translation-text-bg p:last-child {
    margin-bottom: 0;
}

/* 見出しも背景に載るため、サイズ・フォントはそのまま、色とシャドウだけ暗い背景向けに調整 */
.translation-text-bg h2 {
    color: #fff;
    text-shadow: 0.1vw 0.1vw 0.4vw rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

.translation-catch-tit {
    margin-top: 90px;
}

.translation-catch {
    margin-top: 10px;
}

/* RayRootセクション（独自ブランドの世界観を持ち込む） */
.rayroot-section {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.rayroot-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/rayroot-bg.png");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.rayroot-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.55);
}

.rayroot-inner {
    position: relative;
    z-index: 1;
    max-width: clamp(1100px, 66vw, 1300px);
    margin: 0 auto;
    padding: 0 clamp(0px, 5vw, 55px);
    text-align: center;
}

.rayroot-logo {
    width: min(360px, 70%);
    height: auto;
    margin: 0 auto 20px;
}

.rayroot-lead {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: bold;
    line-height: 1.6;
    color: #fff;
}

.rayroot-desc {
    max-width: clamp(700px, 42vw, 850px);
    margin: 0 auto 50px;
    color: #fff;
}

.rayroot-block {
    margin-top: 60px;
}

.rayroot-block-tit {
    color: #fff;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    margin-bottom: 25px;
}

/* フルAI動画制作セクション（RayRootと同じく、背景画像に暗いオーバーレイ＋半透明カードを重ねる構成） */
.ai-video-section {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.ai-video-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/ai-video-bg.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.ai-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.55);
}

.ai-video-inner {
    position: relative;
    z-index: 1;
    max-width: clamp(1100px, 66vw, 1300px);
    margin: 0 auto;
    padding: 0 clamp(0px, 5vw, 55px);
}

.ai-video-inner h2,
.ai-video-inner h3 {
    color: #fff;
    text-shadow: 0.1vw 0.1vw 0.4vw rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

.ai-video-inner .section-lead {
    color: #fff;
}

.ai-video-points {
    margin-top: 20px;
}

.ai-video-audience-tit {
    margin-top: 70px;
}

.ai-video-catch {
    text-align: center;
    max-width: clamp(700px, 42vw, 850px);
    margin: 50px auto 0;
    font-weight: bold;
    color: #fff;
    text-shadow: 0.1vw 0.1vw 0.4vw rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

/* セクション内のお問い合わせ誘導ボタン */
.cta-wrap {
    text-align: center;
    margin-top: 50px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1.2vw 4vw;
    border-radius: 4px;
    font-weight: bold;
    font-size: clamp(15px, 1.2vw, 20px);
    transition: opacity 0.3s;
}

.cta-btn:hover {
    opacity: 0.85;
}

/* 共通定義リストレイアウト (dl, dt, dd) */
.def-list {
    display: flex;
    border: 1px solid #d4d4d4;
    margin-bottom: -1px;
}

.def-list dt {
    width: clamp(150px, 25%, 300px);
    background: #f3f3f3;
    padding: 20px 2vw;
    border-right: 1px solid #d4d4d4;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.def-list dd {
    width: 100%;
    padding: 20px 2vw;
}

/* カードグリッド（受注翻訳／RayRoot、RayRootの機能一覧、フルAI動画制作の3ポイント等で使い回す） */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2vw;
    max-width: clamp(1100px, 66vw, 1300px);
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.card h3,
.card h4 {
    font-size: clamp(18px, 1.6vw, 22px);
    margin-bottom: 15px;
}

.card-desc {
    font-size: clamp(0.875rem, 1.1vw, 1.1rem);
    margin: 0;
}

/* リンクとして機能するカード（受注翻訳/RayRootカードのRayRoot側） */
.card-link {
    display: block;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
}

/* RayRootセクション内の暗い背景で使うカードの色反転バリエーション */
.card-dark {
    background: rgba(11, 26, 44, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.card-dark h4 {
    color: #fff;
}

.card-dark p {
    color: #fff;
    margin: 0;
    font-size: clamp(0.875rem, 1.1vw, 1.1rem);
}

.point-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

/* お問い合わせ (indexfive) */
.indexfive {
    background: #fff;
}

.contactform {
    max-width: clamp(1100px, 66vw, 1300px);
    margin: 0 auto;
}

.contactform input[type="text"],
.contactform input[type="email"],
.contactform select,
.contactform textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
}

.send-btn-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.submit-btn {
    background: #000;
    color: #fff;
    padding: 1.5vw 6vw;
    border: none;
    font-size: clamp(16px, 1.2vw, 22px);
    cursor: pointer;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

#contact-confirm-btn {
    background: var(--accent-color);
}

#contact-confirm-message {
    white-space: pre-wrap;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.form-message.is-success {
    color: #0a7a2f;
}

.form-message.is-error {
    color: #c62828;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
}

.footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.footer ul li {
    margin: 0 15px;
}

.footer p {
    font-size: 0.8rem;
    color: #666;
}

@media screen and (max-width: 900px) {
    .pc-only {
        display: none;
    }
}

/* -----------------------------------
   汎用アニメーションユーティリティ
----------------------------------- */

/* ベース設定: 初期状態で透明にするもの */
.fade-in,
.slide-up,
.slide-left,
.slide-right,
.fast-slide-left,
.mid-slide-left,
.heavy-slide-left,
.heavy-slide-right {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 表示時の共通状態 (自分自身が .is-visible または 親要素が .is-visible の場合) */
.is-visible.fade-in,
.is-visible .fade-in,
.is-visible.slide-up,
.is-visible .slide-up,
.is-visible.slide-left,
.is-visible .slide-left,
.is-visible.slide-right,
.is-visible .slide-right,
.is-visible.fast-slide-left,
.is-visible .fast-slide-left,
.is-visible.mid-slide-left,
.is-visible .mid-slide-left {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* 特殊な形状・移動を伴うもの (skew維持) */
.is-visible.heavy-slide-left,
.is-visible .heavy-slide-left {
    opacity: 1 !important;
    transform: skewX(-45deg) translateX(0) !important;
}

.is-visible.heavy-slide-right,
.is-visible .heavy-slide-right {
    opacity: 1 !important;
    transform: skewX(-45deg) translateX(0) !important;
}

/* 各クラスの初期位置と速度定義 */
.fade-in {
    transform: none;
}

.slide-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

/* ユーザー指定のカスタムクラス */
.fast-slide-left {
    transform: translateX(-50px);
    transition-duration: 0.4s;
}

.mid-slide-left {
    transform: translateX(-50px);
    transition-duration: 0.8s;
}

/* 以前 .home-solution-bg 等で使われていた大きな移動 */
.heavy-slide-left {
    transform: skewX(-45deg) translateX(-101%);
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.34, 0.96, 0.56, 0.99);
    /* 勢いをつけるためのイージング */
}

.heavy-slide-right {
    transform: skewX(-45deg) translateX(101%);
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.34, 0.96, 0.56, 0.99);
}

/* -----------------------------------
   レスポンシブ対応 (タブレット: 900px以下)
----------------------------------- */

.company-note {
    text-align: center;
    margin-top: 30px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

@media screen and (max-width: 900px) {

    :root {
        --header-height: 80px;
        --logo-width: 139px;
        /* 80px(このブレイクポイントのヘッダー高さ)*0.6*2.8955(logo001.pngの縦横比)=138.98→139px */
    }

    /* ヘッダー・メニューの切り替え */
    .header {
        height: var(--header-height);
    }

    .headercon {
        display: flex;
        justify-content: space-between;
        height: var(--header-height);
        padding: 0 20px;
    }

    .menu-area {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .mobile-btn {
        display: block;
    }

    /* ハンバーガーメニューの挙動 (タブレット・共通) */
    .wrapper {
        transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    }

    .wrapper.wrapper-move {
        transform: translateX(-200px);
    }

    .sp-wrapper {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100vh;
        background: #333;
        z-index: 999;
        transform: translateX(200px);
        transition: transform 0.4s;
    }

    .sp-wrapper.open {
        transform: translateX(0);
    }

    .sp-nav a {
        text-align: left;
        padding: 15px;
        border-bottom: 1px solid #444;
        display: block;
        color: #fff;
        font-size: 16px;
    }

    /* 翻訳ソリューション事業: 画像とテキストを縦積みに */
    .translation-inner {
        flex-direction: column;
        gap: 30px;
    }

    /* 会社概要・フォーム (タブレット) */
    .def-list dt {
        width: 200px;
    }

    /* 少し縮める */
    .def-list dd {
        width: calc(100% - 200px);
    }

    /* フッター (タブレット〜スマホ共通): 項目が画面端で潰れるのを防ぐ */
    .footer {
        padding: 60px 20px 20px;
    }

    .footer ul {
        flex-wrap: wrap;
        row-gap: 15px;
        column-gap: 10px;
    }

    .footer ul li {
        margin: 0 10px;
    }
}

/* -----------------------------------
   レスポンシブ対応 (スマートフォン: 480px以下)
----------------------------------- */
@media screen and (max-width: 480px) {

    :root {
        --header-height: 60px;
        --logo-width: 104px;
        /* 60px(このブレイクポイントのヘッダー高さ)*0.6*2.8955(logo001.pngの縦横比)=104.2→104px */
    }

    /* ヘッダー・メニュー (スマホ) */
    .header {
        height: var(--header-height);
    }

    .headercon {
        height: var(--header-height);
        padding: 0 15px;
    }

    /* 会社概要・フォーム (スマホ: 完全縦並び) */
    .def-list {
        flex-direction: column;
    }

    .def-list dt {
        width: 100% !important;
        padding: 10px 15px;
        border-right: none;
        border-bottom: 1px solid #d4d4d4;
    }

    .def-list dd {
        width: 100% !important;
        padding: 15px;
    }

    .submit-btn {
        padding: 14px 40px;
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 30px 20px;
    }

    /* フッター (スマホ): 単語の途中で折り返らないよう項目単位で縦積みにする */
    .footer {
        padding: 50px 15px 20px;
    }

    .footer ul {
        flex-direction: column;
        align-items: center;
        row-gap: 12px;
        column-gap: 0;
    }

    .footer ul li {
        margin: 0;
    }
}
