@charset "UTF-8";

/* ============================================================
   common.css - 株式会社ヨクト 全ページ共通スタイル
   ============================================================

   このファイルには、複数のHTMLページで共通して使用する
   CSSクラスを定義しています。

   【収録内容】
   1. CSS変数（カラーパレット）
   2. セクションタイトル (.section-title)
   3. CTAボタン (.btn-cta)
   4. ページヘッダー (.page-header) ※ privacy/sdgs/infosecurity ページ共通
   5. お問い合わせエリア (.contact-section) ※ 各サービスページ共通

   ============================================================ */


/* ============================================================
   1. CSS変数（カラーパレット）
   ============================================================ */
:root {
    --yokuto-blue: #003366;   /* メインカラー（紺色） */
    --yokuto-green: #00BFA5;  /* アクセントカラー（緑） */
    --text-dark: #333;        /* 本文テキスト色 */
    --bg-light: #f9f9f9;      /* 薄いグレー背景 */
}


/* ============================================================
   2. セクションタイトル
   ============================================================
   各セクションの見出し。下部にグリーンのアンダーラインが付く。
   使用ページ: company / dx / nearshor / ai / appli / recruit
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--yokuto-blue);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

/* 見出し下のグリーンの装飾ライン */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--yokuto-green);
    margin: 20px auto 0;
}


/* ============================================================
   3. CTAボタン
   ============================================================
   ヒーローエリア等に配置するグリーンの行動喚起ボタン。
   使用ページ: dx / nearshor
   ============================================================ */
.btn-cta {
    display: inline-block;
    background: var(--yokuto-green);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    background: #008f7a;
    color: #fff;
}


/* ============================================================
   4. ページヘッダー
   ============================================================
   テキストコンテンツページ（方針・SDGs等）のトップビジュアル。
   画像の上に半透明の紺色オーバーレイを重ねたデザイン。
   使用ページ: privacy / infosecurity / sdgs
   ============================================================ */
.page-header {
    background-image: url('../img/company_hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

/* 半透明の紺色オーバーレイ */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 31, 63, 0.75);
}

/* オーバーレイより手前に表示するための内部ラッパー */
.page-header-inner {
    position: relative;
    z-index: 1;
}


/* ============================================================
   5. お問い合わせエリア
   ============================================================
   各サービスページ下部に配置する共通のお問い合わせセクション。
   背景画像の上にメッセージとボタン画像を重ねたデザイン。
   使用ページ: company / dx / nearshor / ai / appli
   ============================================================ */
.contact-section {
    background-image: url('../img/contact_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: transparent !important;
    color: #fff !important;
    text-align: center;
    padding: 20px 0 !important;
    margin: 0 !important;
}

/* コンテナの上下パディングをリセット */
.contact-section .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* メッセージエリア：背景・影・枠線を除去してフラットに表示 */
.contact-section .conMes {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto 10px auto !important;
    padding: 0 !important;
}

.contact-section .conMes h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff !important;
    font-weight: bold;
    line-height: 1.2;
}

.contact-section .conMes p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: #fff !important;
}

/* ボタン群を横並びに配置するラッパー */
.contact-section .othBox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;   /* スマートフォンで折り返し */
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    height: auto !important;
}

/* ボタン外枠：角丸・影付き。親CSSによる拡大アニメーションを無効化 */
.contact-section .othBox2 {
    position: relative;
    width: 260px;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    border-radius: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    transform: none !important;          /* 親CSSの拡大を無効化 */
    transition: box-shadow 0.3s !important;
    -webkit-transform: none !important;
}

/* ホバー時：移動・拡大は行わず、光彩のみ */
.contact-section .othBox2:hover {
    transform: none !important;
    -webkit-transform: none !important;
    margin-top: 0 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    opacity: 1;
}

/* ボタン内のリンク：光エフェクトを角丸でマスク処理 */
.contact-section .othBox2 a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 40px;
    overflow: hidden !important;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* ボタン画像：親CSSによるアニメーションを完全に無効化 */
.contact-section .othBox2 img {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
    border-radius: 40px;
    transform: none !important;
    transition: none !important;
}

.contact-section .othBox2:hover img {
    transform: none !important;
}

/* ホバー時に流れるキラリと光るエフェクト（疑似要素） */
.contact-section .othBox2 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.contact-section .othBox2:hover a::after {
    animation: shine 0.5s linear;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/* テキストラベルは非表示（ボタン画像のみ表示） */
.contact-section .othBox2 p {
    display: none !important;
}


/* ============================================================
   レスポンシブ対応
   ============================================================ */
@media (max-width: 768px) {

    /* お問い合わせエリアのボタンを縦並びに変更 */
    .contact-section .othBox {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
