/* =========================================================
   基本設定
   → ページ全体の初期状態や背景、フォントなどを定義する重要なセクション
========================================================= */

/* モーダルが開いているときにスクロールを禁止する設定
   html と body の両方に適用することで、スマホでも確実にスクロールを止める */
html.modal-open,
body.modal-open {
    overflow: hidden; /* スクロールバーを消してスクロール不可にする */
    height: 100%;     /* 高さを固定し、スクロールを完全に封じる */
}

/* body に position: fixed を付けることで
   モーダル中にページ位置がズレるのを防ぐ（スマホ対策として非常に重要） */
body.modal-open {
    position: fixed;
    width: 100%; /* 固定時に横幅が縮むのを防ぐ */
}

/* ページ全体の基本スタイル */
body {
    margin: 0; /* デフォルトの余白を消す */
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; /* 日本語に強いフォント */
    line-height: 1.7; /* 読みやすい行間 */
    color: #333; /* 標準文字色 */
    background-color: #F5F5F8; /* 背景色（画像が読み込めない時の保険） */

    /* 背景画像の設定 */
    background-image: url("../img/BG.png");
    background-repeat: no-repeat; /* 画像を繰り返さない */
    background-size: cover; /* 画面いっぱいに拡大縮小 */
    background-position: center; /* 中央に配置 */
    background-attachment: fixed; /* スクロールしても背景を固定（パララックス風） */
}

/* body の背景画像を固定するための疑似要素
   → iOS Safari では background-attachment: fixed が効かないため、
      擬似要素で固定背景を再現するテクニック */
body::before {
    content: "";
    position: fixed; /* 常に画面に固定 */
    inset: 0; /* top, right, bottom, left を 0 にする省略記法 */
    background-image: url("../img/BG.png");
    background-size: cover;
    background-position: center;
    z-index: -1; /* 背景として最背面に配置 */
}

/* 画像の基本設定 */
img {
    max-width: 100%; /* 親要素からはみ出さないようにする（レスポンシブ対応） */
    display: block;  /* 画像下の余白（行間）を消すため block にする */
}

/* 各セクションの共通デザイン */
section {
    scroll-margin-top: 120px; /* アンカーリンクで飛んだ時にヘッダーと重ならないよう余白を確保 */
    padding: 10px 20px 40px 20px; /* 内側余白 */
    max-width: 1100px; /* 読みやすい横幅に制限 */
    margin: 56px auto; /* 上下余白＋中央寄せ */
    background: #FFFFFF; /* 白背景で読みやすく */
    border-radius: 8px; /* 角丸で柔らかい印象に */
}

/* スマホ時のセクション調整 */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 80px; /* ヘッダーが小さくなるので調整 */
        margin: 40px auto; /* 上下余白を少し減らす */
    }
}

/* =========================================================
   fade-in アニメーション
   → スクロール時にふわっと表示させる演出
========================================================= */

/* 初期状態：透明＋下に30pxずらす */
.fade-in {
    opacity: 0; /* 完全に透明 */
    transform: translateY(30px); /* 下から浮かび上がるように見せる */
    transition: opacity 0.8s ease, transform 0.8s ease; /* なめらかなアニメーション */
}

/* 表示状態：透明度100%＋位置を元に戻す */
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   見出しデザイン
========================================================= */

h1 { 
    color: #FFFFFF; /* 白文字（背景画像の上に置く想定） */
}

h2 {
    font-size: 2rem; /* 大きめの見出し */
    margin-top: 0;
    margin-bottom: 10px;
    color: #259FBB; /* ブランドカラー系の青 */
}

h3 {
    margin-top: 15px;
    font-size: 1.3rem;
}

/* =========================================================
   ヘッダー
========================================================= */

.header {
    display: flex; /* 横並びレイアウト */
    justify-content: space-between; /* 左右に配置 */
    align-items: center; /* 垂直方向の中央揃え */
    padding: 15px 30px; /* 内側余白 */
    background: #fff; /* 白背景 */
    border-bottom: 1px solid #ddd; /* 下線で区切り */
    position: sticky; /* スクロールしても上部に固定 */
    top: 0; /* 固定位置 */
    z-index: 4000; /* メニューよりも上に表示 */
}

header nav {
    margin-left: auto; /* ロゴの右側に寄せる */
    margin-right: 40px;
}

.logo {
    display: flex; /* ロゴ画像と文字を横並び */
    align-items: center;
    gap: 10px; /* 画像と文字の間隔 */
    font-size: 1.4rem;
    font-weight: bold;
}

.logo img {
    height: 40px; /* ロゴ画像の高さを統一 */
}

/* ロゴリンクの見た目を通常テキストのようにする
   → 色や下線を消し、ブランドロゴとして自然に見せる */
a.logo,
a.logo:link,
a.logo:visited,
a.logo:hover,
a.logo:active {
    text-decoration: none !important; /* 下線を完全に消す */
    color: inherit !important; /* 親要素の色を継承 */
    cursor: pointer; /* リンクであることは示す */
}

/* 子要素（画像や文字）にクリック判定を持たせない
   → a 要素全体をクリック領域にするためのテクニック */
a.logo img,
a.logo span {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none; /* 子要素はクリック不可にして a 全体をクリック領域に */
}

/* =========================================================
   PCメニュー
========================================================= */

.nav > ul {
    list-style: none; /* 点を消す */
    display: flex; /* 横並び */
    gap: 35px; /* メニュー間の余白 */
    margin: 0;
    padding: 0;
}

.nav > ul > li {
    position: relative; /* サブメニューの absolute の基準にする */
    cursor: pointer;
}

.nav a {
    text-decoration: none;
    color: #333;
}

/* サブメニューのリストスタイルを完全に無効化 */
.dropdown,
.dropdown li {
    list-style: none !important;
}

/* =========================================================
   PCサブメニュー（ホバーで開く）
========================================================= */
@media (min-width: 769px) {

    .dropdown {
        opacity: 0; /* 初期状態は透明 */
        visibility: hidden; /* 完全に非表示（クリック不可） */
        transform: translateY(10px); /* 下にずらしておく */
        transition: 0.25s; /* アニメーション */
        position: absolute;
        top: 30px; /* 親 li の下に表示 */
        left: 0;
        background: #fff;
        border: 1px solid #ddd;
        padding: 10px 0;
        width: 200px; /* サブメニューの幅 */
        z-index: 1000;
        display: flex;
        flex-direction: column; /* 縦並び */
    }

    .dropdown li {
        padding: 10px 15px;
        white-space: nowrap; /* 長い文字でも折り返さない */
    }

    .dropdown li:hover {
        background: #f0f0f0; /* ホバー時の背景色 */
    }

    /* 親 li にホバーしたらサブメニューを表示 */
    .nav li:hover > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* =========================================================
   エントリーボタン（右上の青い丸ボタン）
========================================================= */

.entry-btn {
    margin-left: 20px;
    padding: 10px 18px;
    background: #00118F; /* 濃い青 */
    color: #fff;
    text-decoration: none;
    border-radius: 9999px; /* 完全な pill 型 */
    font-weight: bold;
    transition: 0.2s; /* ホバー時のアニメーション */
    white-space: nowrap; /* 改行させない */
}

.entry-btn:hover {
    background: #000C6A; /* 少し暗くしてホバー感を出す */
}

/* PC/スマホ切り替え */
.nav-pc { display: block; }
.nav-sp { display: none; }

/* スマホ時のメニュー切り替え */
@media (max-width: 768px) {
    .nav-pc { display: none; } /* PCメニュー非表示 */
    .nav-sp {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 3000;
        overflow-y: auto; /* メニューが長い場合スクロール可能に */
    }
    .entry-btn {
        display: none !important; /* スマホでは非表示 */
    }
}

/* =========================================================
   ハンバーガーメニュー
========================================================= */

.hamburger {
    display: none; /* PCでは非表示 */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 4000; /* ヘッダーより上に表示 */
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s; /* アニメーション */
}

/* ハンバーガーが active のとき（×に変形） */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0; /* 真ん中の線を消す */
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================================
   オーバーレイ（スマホメニューの背景の黒い半透明）
========================================================= */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5); /* 半透明の黒 */
    opacity: 0; /* 初期状態は透明 */
    pointer-events: none; /* クリック不可 */
    transition: 0.35s;
    z-index: 1000;
}

.overlay.active {
    opacity: 1; /* 表示 */
    pointer-events: auto; /* クリック可能に */
}

/* =========================================================
   スマホメニュー
========================================================= */

@media (max-width: 768px) {

    .header { padding: 10px 15px; } /* スマホ用に余白調整 */
    .logo img { height: 32px; } /* ロゴ縮小 */
    .logo span { font-size: 1rem; }

    .hamburger {
        order: 2; /* ロゴの右側に配置 */
        display: flex !important;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -260px; /* 初期状態は画面外に隠す */
        width: 260px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 10px rgba(0,0,0,0.1);
        transition: 0.35s;
        opacity: 0;
        z-index: 3000;
        margin-right: 0px;
    }

    .nav.active {
        right: 0; /* 画面内にスライドイン */
        opacity: 1;
    }

    .nav ul {
        flex-direction: column; /* 縦並び */
    }

    .nav > ul > li {
        margin: 5px 0;
    }

    .nav > ul {
        gap: 0px;
    }

    /* スマホでは PC のホバー式サブメニューを無効化 */
    .dropdown {
        display: none !important;
        padding-left: 15px;
    }

    /* JSで .open が付いたときだけ表示 */
    .nav li.open > .dropdown {
        display: block !important;
    }
}

/* スマホメニューのカテゴリタイトル */
.sp-group-title {
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* スマホメニューのカテゴリタイトル（デザイン強化） */
.sp-group-title {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #00118F; /* ブランドカラー */
    font-size: 1.05rem;
}
/* =========================================================
   スマホメニューのリンク
   → スマホ表示時のメニュー項目の見た目を整える
========================================================= */
@media (max-width: 768px) {
    .nav ul li a {
        display: block;        /* aタグ全体をクリック領域にする（UX向上） */
        padding: 8px 0;        /* 上下に余白をつけてタップしやすくする */
        font-size: 1rem;       /* スマホで読みやすい文字サイズ */
        color: #333;           /* 標準的な濃いグレー */
    }
}

/* =========================================================
   オーバーレイとナビゲーションのZ-index調整
   → スマホメニューの重なり順を制御
========================================================= */
#overlay {
    position: fixed; /* 画面全体を覆うため固定配置 */
    z-index: 1000;   /* メニューより下、ヘッダーより下 */
}
#nav {
    position: fixed; /* スライドインメニューのため固定配置 */
    z-index: 3000;   /* オーバーレイより上に表示 */
}

/* =========================================================
   ファーストビュー（トップの動画エリア）
========================================================= */
.fv {
    position: relative; /* テキストを絶対配置するための基準 */
    width: 100%;        /* 横幅いっぱい */
    overflow: hidden;   /* 動画がはみ出さないようにする */
    max-width: none !important; /* セクションの max-width を無効化 */
    margin: 0 !important;       /* セクションの余白を消す */
    padding: 0 !important;      /* 内側余白も消す */
}

/* 背景動画の設定 */
.fv video {
    width: 100%;        /* 横幅いっぱいに広げる */
    height: 100%;       /* 高さも100%に */
    object-fit: cover;  /* 画面いっぱいにトリミングして表示（最も美しい表示方法） */
}

/* ファーストビュー中央のテキスト */
.fv-text {
    position: absolute; /* 動画の上に重ねる */
    top: 50%;           /* 縦中央 */
    left: 50%;          /* 横中央 */
    transform: translate(-50%, -50%); /* 完全中央寄せ */
    width: 90%;         /* スマホでも収まるように幅を調整 */
    max-width: 100%;
    text-align: center; /* 中央揃え */
}

/* ファーストビューの大見出し */
.fv-text h1 {
    font-size: 72px;    /* 大きなタイトル */
    font-weight: 700;   /* 太字 */
    margin-bottom: 25px;
    letter-spacing: 2px; /* 文字間隔を広げて高級感を出す */
    color: #FFFFFF;

    /* テキストを読みやすくするための強めの影（動画背景でも視認性を確保） */
    text-shadow:
        0 0 8px rgba(0,0,0,0.9),
        0 0 15px rgba(0,0,0,0.7),
        2px 2px 4px rgba(0,0,0,0.8);
}

/* ファーストビューのサブテキスト */
.fv-text p {
    font-size: 28px;
    font-weight: 500;
    line-height: 2.4; /* 読みやすい行間 */
    color: #fff;
    text-shadow:
        0 0 8px rgba(0,0,0,0.9),
        0 0 15px rgba(0,0,0,0.7),
        2px 2px 4px rgba(0,0,0,0.8);
}

/* 右下の注意書き（動画の著作権など） */
.fv-note {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 0.75rem;
    color: #fff;
    text-shadow:
        0 0 6px rgba(0,0,0,0.9),
        0 0 12px rgba(0,0,0,0.7),
        2px 2px 4px rgba(0,0,0,0.8);
    opacity: 0.9; /* 少し薄くして主張を弱める */
    pointer-events: none; /* クリック不可（動画操作を邪魔しない） */
}

/* =========================================================
   ファーストビューのレスポンシブ調整
========================================================= */

/* 1680px以下 */
@media (max-width: 1680px) {
    .fv-text h1 { font-size: 64px; }
    .fv-text p { font-size: 24px; }
    .fv-note {
        font-size: 0.7rem;
        right: 13px;
        bottom: 13px;
    }
}

/* 1280px以下 */
@media (max-width: 1280px) {
    .fv-text h1 { font-size: 56px; }
    .fv-text p { font-size: 20px; }
    .fv-note {
        font-size: 0.65rem;
        right: 11px;
        bottom: 11px;
    }
}

/* 1080px以下（タブレット〜スマホ） */
@media (max-width: 1080px) {
    .fv-text h1 { font-size: 30px; } /* 大幅に縮小 */
    .fv-text p { font-size: 14px; }
    .fv-note {
        font-size: 0.65rem;
        right: 10px;
        bottom: 10px;
    }

    /* 高さを固定して動画の縦横比を維持 */
    .fv {
        position: relative;
        width: 100%;
        height: 607px;
    }

    .fv-text {
        width: 78%; /* スマホで改行しやすくする */
        word-break: auto-phrase; /* 日本語の自然な改行を優先 */
    }
}

/* =========================================================
   会社概要（About）
========================================================= */

/* シンプルな表（会社概要の基本情報） */
.simple-table {
    width: 90%;
    border-collapse: collapse; /* 罫線を重ねてスッキリ見せる */
    margin-top: 20px;
    margin-left: 40px;
}

.simple-table th,
.simple-table td {
    padding: 12px 10px; /* 読みやすい余白 */
    border-bottom: 1px solid #ccc; /* 行ごとの区切り線 */
    text-align: left;
}

/* 会社概要のレイアウト（画像＋表） */
.about-content {
    display: flex; /* 横並び */
    gap: 40px;     /* 画像と表の間隔 */
    align-items: flex-start;
    margin-top: 25px;
}

.about-content table {
    flex: 1; /* 表を広く使う */
}

.about-image {
    flex: 0 0 350px; /* 固定幅の画像エリア */
}

.about-img-pc { display: block; }
.about-img-sp { display: none; }

/* スマホ時のレイアウト調整 */
@media (max-width: 768px) {
    .about-content { display: block; } /* 縦並びに変更 */

    /* ▼ simple-table を中央寄せ＋左右4px */
    .simple-table {
        margin-left: 4px !important;
        margin-right: 4px !important;
        margin-inline: auto;
        width: calc(100% - 8px); /* 左右4pxずつ引いた幅 */
    }

    /* ▼ about-image も中央寄せ＋左右4px */
    .about-image {
        text-align: center;
        margin-top: 20px;
        margin-left: 4px !important;
        margin-right: 4px !important;
        margin-inline: auto;
        width: calc(100% - 8px);
        display: block;
    }

    /* ▼ about-image 内の img も中央寄せ */
    .about-image img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* PC画像を非表示、スマホ画像を表示 */
    .about-img-pc { display: none !important; }
    .about-img-sp { display: block !important; }
}

/* =========================================================
   技術紹介（Tech）
========================================================= */

.tech-wrapper {
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 40px; /* 各技術項目の間隔 */
}

.tech-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item img {
    width: 100%;
    background: #eee; /* 読み込み前の背景色 */
}

#tech h3 {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 技術紹介の中の「事業例」ボックス */
.business-examples,
.business-examples-dev {
    background: #f0f0f0;
    padding: 25px 20px;
    border-radius: 8px;
    margin-top: 5px !important;
}

/* 事業例のタイトル */
.business-title,
.business-title-dev {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    color: #000000;
}

/* 事業例の2カラムレイアウト */
.business-columns,
.business-columns-dev {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 25px 40px; /* 行25px、列40px */
}

.business-col p,
.business-col-dev p {
    margin-bottom: 18px;
    line-height: 1.7;
}

/* スマホでは1カラムに変更 */
@media (max-width: 768px) {
    .business-columns,
    .business-columns-dev {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   scroll-animate（横からスライドして表示）
========================================================= */

.scroll-animate {
    opacity: 0; /* 初期状態は透明 */
    transform: translateX(50%); /* 右からスライドイン */
    transition: all 1.2s ease-out; /* ゆっくり滑らかに表示 */
}

.scroll-animate.show {
    opacity: 1;
    transform: translateX(0); /* 元の位置に戻る */
}

@media (max-width: 480px) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
    .tech-item img {
        width: 100%;
        height: auto;
        display: block; /* 余計な隙間防ぐ */
    }
    .scroll-animate {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.8s ease-out;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   特徴と強み（Strength）
   → 企業の強みを紹介するセクションのレイアウト
========================================================= */

/* 強みブロック全体（画像＋説明文） */
.strength-block {
    display: flex;              /* 縦方向に並べる（column） */
    flex-direction: column;
    gap: 15px;                  /* 画像と説明文の間隔 */
    margin-bottom: 40px;        /* セクション間の余白 */
}

.strength-block img {
    width: 100%;                /* 横幅いっぱいに表示 */
    height: auto;               /* アスペクト比を維持 */
}

/* 強み一覧（3カラムのグリッド） */
.strength-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列均等 */
    gap: 30px 40px;            /* 行30px、列40pxの余白 */
    margin: 30px 0;
}

/* 各強みアイテム（アイコン＋説明） */
.strength-item {
    display: flex;             /* 横並び */
    align-items: flex-start;   /* 上揃え */
    gap: 20px;                 /* アイコンと説明の間隔 */
}

.strength-item img {
    width: 120px;              /* アイコンの固定幅 */
}

/* 説明文（箇条書き） */
.strength-desc {
    margin: 0;
    padding-left: 18px;        /* 箇条書きのインデント */
}

.strength-desc li {
    line-height: 1.6;          /* 読みやすい行間 */
}

/* =========================================================
   強みのフロー図（横に重ねるデザイン）
   → 右側に重なる矢印型のブロックを作る
========================================================= */

/* 横並びレイアウト */
.strength-flow {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
}

/* 各フローアイテム（矢印型の背景） */
.strength-flow .flow-item {
    flex: 1;                   /* 均等幅 */
    text-align: center;
    padding: 40px 0;
    color: #fff;
    font-weight: 500;
    font-size: 1.5em;
    border-radius: 6px;
    position: relative;

    /* clip-path で矢印型の形状を作る */
    clip-path: polygon(
        0 0,
        80% 0,
        100% 50%,
        80% 100%,
        0 100%
    );

    margin-right: -60px;       /* 右側に重ねるためにマイナスマージン */
    padding-left: 15px;        /* テキストの位置調整 */
}

/* 左が最前面、右へ行くほど奥へ（重なり順） */
.strength-flow .flow-item:nth-child(1) { z-index: 5; }
.strength-flow .flow-item:nth-child(2) { z-index: 4; }
.strength-flow .flow-item:nth-child(3) { z-index: 3; }
.strength-flow .flow-item:nth-child(4) { z-index: 2; }
.strength-flow .flow-item:nth-child(5) { z-index: 1; }

/* 最後の枠は重ねない */
.strength-flow .flow-item:last-child {
    margin-right: 0;
}

/* 左から右へ色を濃くする（視覚的な流れを作る） */
.strength-flow .flow-item:nth-child(1) { background-color: #749AF0; }
.strength-flow .flow-item:nth-child(2) { background-color: #3869F1; }
.strength-flow .flow-item:nth-child(3) { background-color: #013FD0; }
.strength-flow .flow-item:nth-child(4) { background-color: #001F89; }
.strength-flow .flow-item:nth-child(5) { background-color: #000C5C; }

/* =========================================================
   スマホ時の強みフロー（縦書きに変形）
========================================================= */
@media (max-width: 768px) {

    .strength-flow .flow-item {
        writing-mode: vertical-rl; /* 縦書き（右→左） */
        text-orientation: upright; /* 文字を縦向きに整える */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        position: relative;
        overflow: visible; /* clip-path の影響を受けないように */
    }

    .strength-flow .flow-item span {
        display: block;
        transform: translateX(-30%); /* 縦書き時の位置調整 */
    }
}

/* スマホ時は説明文を非表示にして画像中心に */
@media (max-width: 768px) {
    .strength-desc {
        display: none;
    }

    .strength-item {
        width: 100%;
    }

    .strength-item img {
        width: 80%;              /* 大きめに表示 */
        height: auto;
        max-width: none;
        display: block;
        margin: 0 auto;          /* 中央寄せ */
    }
}

/* =========================================================
   社員紹介（Interview）
========================================================= */

/* カードを自動フィットするグリッド */
.interview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* auto-fit → 可能な限りカードを詰める
       minmax → 最小220px、最大1fr */
    gap: 25px;
}

/* 社員カード */
.interview-card {
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: 0.2s; /* ホバー時のアニメーション */
}

.interview-card:hover {
    background: #f5f5f5; /* 少し明るくしてホバー感 */
}

.interview-card p {
    margin: 4px 0;
    text-align: left;
}

.interview-card p:first-of-type {
    font-weight: bold;
    font-size: 1.15rem;
    color: #000;
}

/* 画像の拡大アニメーション */
.interview-card img {
    transition: transform 0.3s ease;
}

.interview-card:hover img {
    transform: scale(1.08);
}

/* =========================================================
   スマホ時の社員紹介カード（横並びレイアウト）
========================================================= */
@media (max-width: 768px) {

    /* カード全体を横並びに変更 */
    #interview .interview-card {
        display: flex;
        flex-direction: row;
        align-items: center; /* 画像とテキストを上下中央に揃える */
        gap: 12px;
    }

    /* 画像の幅（40%を固定） */
    #interview .interview-card .zoom-wrap {
        flex: 0 0 40%;
    }

    /* テキスト部分（p3つ）を縦並び＋中央寄せ */
    #interview .interview-card .profile-text {
        display: flex;
        flex-direction: column;
        justify-content: center; /* 上下中央に配置 */
    }

    /* テキストのサイズ調整 */
    #interview .interview-card .profile-text p {
        margin: 0 0 6px 0;
        font-size: 16px;
        line-height: 1.5;
    }

    /* 画像を枠いっぱいにフィット */
    #interview .interview-card img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* =========================================================
   オフィス紹介（Office）
========================================================= */

/* 2カラムのグリッド */
.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#office figure figcaption {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 8px;
}

#office img {
    transition: transform 0.3s ease;
}

#office img:hover {
    transform: scale(1.08); /* ホバーで拡大 */
}

#office figure {
    cursor: pointer; /* クリック可能（モーダル表示） */
}

/* モーダル（画像拡大表示） */
.office-modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    z-index: 10000;
    text-align: center;

    /* JSでサイズを動的に変更するため固定値を外す */
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

/* =========================================================
   スマホ時のオフィス紹介
========================================================= */
@media (max-width: 768px) {

    /* figure の margin を完全に上書き */
    #office .office-grid figure {
        margin: 4px !important;
        margin-inline-start: 4px !important;
        margin-inline-end: 4px !important;
        margin-block-start: 4px !important;
        margin-block-end: 4px !important;
    }

    /* 画像を 2列3行にする */
    #office .office-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px; /* figure margin と合わせて調整 */
    }

    /* 画像を枠いっぱいに広げる */
    #office .office-grid img {
        width: 100%;
        height: auto;
        display: block;
    }
}
/* =========================================================
   人材育成（Training）
   → 研修制度・キャリアパスを説明するセクション
========================================================= */

#training {
    padding: 10px 20px 40px 20px; /* セクション全体の余白 */
}

.training-lead {
    margin-bottom: 30px; /* リード文の下に余白 */
    line-height: 1.8;    /* 読みやすい行間 */
}

/* 研修ボックスを横並びにする（PCレイアウト） */
.training-wrapper {
    display: flex;
    justify-content: space-between; /* 均等配置 */
    gap: 30px;                      /* ボックス間の余白 */
    flex-wrap: nowrap;              /* 折り返さない（PCでは横並び維持） */
}

/* 各研修ボックス（カード） */
.training-box {
    flex: 1;                        /* 均等幅 */
    background: #f7f9fc;            /* 薄い青みの背景（清潔感） */
    padding: 20px;
    border-radius: 8px;             /* 角丸 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* ふんわり影 */
    position: relative;             /* 疑似要素（…）の基準 */
}

/* PC時：矢印の代わりに「…」で流れを表現 */
.training-box:not(:last-child)::after {
    content: "…";                   /* 次のボックスへの流れを示す */
    position: absolute;
    right: -30px;                   /* ボックス右側に配置 */
    top: 50%;
    transform: translateY(-50%);    /* 垂直中央揃え */
    font-size: 26px;
    color: #AAAAAA;
    font-weight: bold;
}

/* 3番目のボックスだけ特殊な位置に「…」を追加（デザイン調整） */
.training-box:nth-child(3)::before {
    content: "…";
    position: absolute;
    right: -30px;
    top: 18%;                       /* 上寄り */
    font-size: 24px;
    color: #AAAAAA;
}

.training-box:nth-child(3)::after {
    content: "…";
    position: absolute;
    right: -30px;
    top: 55%;                       /* 少し下寄り */
    font-size: 24px;
    color: #AAAAAA;
}

/* ボックス内の見出し */
.training-box h3 {
    font-size: 1.3rem;
    margin: 5px 0 10px 0;
}

/* アイコン画像 */
.training-icon {
    width: 95%;
    margin: 5px auto 15px auto;
}

/* リストのデフォルトスタイルを完全に無効化 */
#training ul,
#training ul li,
#training ul ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* キャリアパスのボックス（縦並び） */
.career-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* キャリア項目の見出し */
.career-item h4 {
    font-size: 1.1rem;
    margin: 5px 0;
    color: #00118F; /* ブランドカラー */
}

/* キャリアパスのまとめ部分 */
.training-bottom {
    margin-top: 15px;
    padding: 12px 20px;
    background: #eef3ff;            /* 薄い青背景 */
    border-left: 5px solid #00118F; /* 左側に強調ライン */
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* タイトル色のバリエーション */
.title-specialist {
    color: #00A3BF !important; /* スペシャリスト色 */
}

.title-manager {
    color: #00118F !important; /* マネージャー色 */
}

/* PC：career-box は縦並び */
.training-box.career-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.training-box.career-box .career-item {
    width: 100%;
}

/* 親枠：PCでは縦並び */
.career-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* career-box には PC では「…」を出さない */
.training-box.career-box::after,
.training-box.career-box::before {
    content: none !important;
}

/* =========================================================
   スマホレイアウト（Training）
   → 縦並びに変更し、矢印を縦方向の「…」に変更
========================================================= */
@media (max-width: 768px) {

    /* career-wrapper はスマホでも縦並び */
    .career-wrapper {
        display: flex;
        flex-direction: column !important;
        gap: 20px;
    }

    /* 各 career-box の幅を100%に戻す */
    .career-wrapper .training-box.career-box {
        width: auto !important;
        position: relative;
        top: 0 !important;
    }

    /* PCの「…」をすべて無効化 */
    .training-box::before,
    .training-box::after {
        content: none !important;
    }

    /* スマホでは training-wrapper を縦並びに */
    .training-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }

    /* スマホ用 training-box */
    .training-box {
        width: 100%;
        padding: 20px 25px;
        padding-bottom: 60px; /* 下に余白（縦「…」のため） */
        box-sizing: border-box;
        position: relative;
    }

    /* ▼ スマホでは縦方向の「…」を表示（次のボックスへの流れ） */
    .training-box:not(:last-child)::after {
        content: "…";
        writing-mode: vertical-rl;   /* 縦書き */
        text-orientation: upright;   /* 文字を縦向きに */
        position: absolute;
        left: 50%;
        top: 100%;                   /* ボックスの下に配置 */
        transform: translateX(-50%);
        font-size: 28px;
        color: #AAAAAA;
        font-weight: bold;
        line-height: 1;
        right: 50%;
    }

    /* ▼ 3番目の特殊配置もスマホでは統一して縦点々に */
    .training-box:nth-child(3)::before {
        content: "…" !important;
        writing-mode: vertical-rl;
        text-orientation: upright;
        position: absolute;
        top: 100%;
        font-size: 28px;
        color: #AAAAAA;
        font-weight: bold;
        line-height: 1;
    }

    .training-box:nth-child(3)::after {
        content: "……………………" !important; /* 長い縦点々 */
        writing-mode: vertical-rl;
        text-orientation: upright;
        position: absolute;
        left: 80%;
        top: 100%;
        right: 30%;
        font-size: 28px;
        color: #AAAAAA;
        font-weight: bold;
        line-height: 1;
    }

    /* before の位置調整 */
    .training-box:nth-child(3)::before {
        left: 20%;
        top: 100%;
        right: 70%;
    }

    /* after の位置調整 */
    .training-box:nth-child(3)::after {
        left: 80%;
        top: 100%;
        right: 30%;
    }

    /* training-box 全体の下余白を極小に */
    .training-box,
    .training-box.career-box {
        padding-bottom: 4px !important;
    }

    /* スマホでは training-box の “…” を表示（下中央） */
    .training-box::after {
        content: "…" !important;
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        font-size: 20px;
        color: #ccc;
    }

    /* career-box はスマホでも PC でも “…” を出さない */
    .training-box.career-box::after {
        content: none !important;
    }

    /* 1つ目（技術スペシャリスト） → 左寄せ */
    .career-wrapper .training-box.career-box:nth-child(1) {
        margin-left: 0;
        margin-right: auto;
        width: 80%;
    }

    /* 2つ目（プロジェクトマネージャー） → 右寄せ */
    .career-wrapper .training-box.career-box:nth-child(2) {
        margin-left: auto;
        margin-right: 0;
        width: 80%;
    }
}
/* =========================================================
   キャリアパス（Career Path）
   → 各専門分野ごとの成長ステップを視覚的に示すセクション
========================================================= */

#career {
    padding: 10px 20px 40px 20px; /* セクション全体の余白 */
}

.career-lead {
    font-size: 1.1rem; /* 少し大きめの説明文 */
    margin: 5px 0 5px 0;
}

/* 2カラムのグリッド（PCレイアウト） */
.career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列均等 */
    gap: 25px; /* カード間の余白 */
}

/* 各キャリア領域（機構・電気・制御・ソフト） */
.career-area {
    background: #f7f9fc; /* 薄い青背景で柔らかい印象 */
    padding: 10px 5px;
    border-radius: 8px;
    border: 1px solid #ddd; /* 薄い枠線 */
}

/* キャリア領域のタイトル（アイコン＋文字） */
.area-title {
    display: flex;
    align-items: center;
    gap: 8px; /* アイコンとの間隔 */
    font-weight: bold;
    font-size: 1.6rem;
    margin: 0 0 10px 10px;
}

.area-icon {
    width: 28px;
    height: 28px;
    object-fit: contain; /* アイコンの比率を維持 */
}

/* 各分野ごとのテーマカラー */
.area-a { color: #00A2BE; } /* 機構 */
.area-b { color: #01B375; } /* 電気 */
.area-c { color: #FFAE00; } /* 制御 */
.area-d { color: #5821FF; } /* ソフト */

/* =========================================================
   キャリアパス：背景色カスタム（ステップごとに濃淡を変える）
========================================================= */

/* --- A. 機構 --- */
.career-area:nth-child(1) .step-4 { background: #2BC8E4; } /* 最上位：濃い色 */
.career-area:nth-child(1) .step-3 { background: #99F2FF; }
.career-area:nth-child(1) .step-2 { background: #E9F7F9; }
.career-area:nth-child(1) .step-1 { background: #F5F5F8; } /* 初級：薄い色 */

/* --- B. 電気 --- */
.career-area:nth-child(2) .step-4 { background: #2BE4A3; }
.career-area:nth-child(2) .step-3 { background: #97FFDB; }
.career-area:nth-child(2) .step-2 { background: #E4FFF6; }
.career-area:nth-child(2) .step-1 { background: #F5F5F8; }

/* --- C. 制御 --- */
.career-area:nth-child(3) .step-4 { background: #FFC342; }
.career-area:nth-child(3) .step-3 { background: #FFDE94; }
.career-area:nth-child(3) .step-2 { background: #FFF4DA; }
.career-area:nth-child(3) .step-1 { background: #F5F5F8; }

/* --- D. ソフト --- */
.career-area:nth-child(4) .step-4 { background: #A081FF; }
.career-area:nth-child(4) .step-3 { background: #C2AEFF; }
.career-area:nth-child(4) .step-2 { background: #E5DDFF; }
.career-area:nth-child(4) .step-1 { background: #F5F5F8; }

/* 各ステップの基本デザイン */
.step {
    border: 1px solid #ccc;
    padding: 10px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
}

/* ステップのラベル（例：STEP 1） */
.step-label {
    font-weight: bold;
    font-size: 20px !important;
    margin: 0 0 4px 0;
}

.step p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
}

/* リストのデフォルトスタイルを完全に無効化 */
#career li {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.3;
}

/* 左余白調整（箇条書きのインデント調整） */
#career ul {
    padding-left: 0.3em !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

#career li {
    padding-left: 0.3em !important;
    text-indent: -0.3em !important; /* 疑似インデント */
}

#career li::before {
    content: "" !important; /* デフォルトの点を消す */
}

/* =========================================================
   PC：階段レイアウト（ステップを右上がりに配置）
========================================================= */

.career-area .step {
    width: 60%; /* 各ステップの幅 */
    display: block;
    box-sizing: border-box;
}

/* ④ → 一番右（最上位） */
.career-area .step-4 {
    margin-left: auto;
    margin-right: 0;
}

/* ③ → 少し左 */
.career-area .step-3 {
    margin-left: 25%;
}

/* ② → さらに左 */
.career-area .step-2 {
    margin-left: 12%;
}

/* ① → 一番左（初級） */
.career-area .step-1 {
    margin-left: 0;
}

/* PC：矢印画像の位置（階段の右側に配置） */
.step-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    object-fit: contain;
    pointer-events: none; /* クリック不可 */
}

.career-area .step {
    position: relative; /* 矢印の基準 */
}

.career-area .step-1 .step-arrow { right: -20%; }
.career-area .step-2 .step-arrow { right: -20%; }
.career-area .step-3 .step-arrow { right: -20%; }

/* PCではスマホ用矢印を非表示 */
.career-arrow-sp {
    display: none !important;
}

/* =========================================================
   スマホレイアウト（Career）
   → 縦並びに変更し、矢印もスマホ用に切り替え
========================================================= */
@media (max-width: 768px) {

    /* グリッドを1列に */
    .career-grid {
        grid-template-columns: 1fr;
    }

    /* キャリア領域を縦並びにし、右側に矢印スペースを確保 */
    .career-area {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-right: 50px; /* 矢印のスペース */
    }

    /* スマホ専用矢印（画像） */
    .career-arrow-sp {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 32px;
        height: auto;
        z-index: 10;
    }

    /* PCの階段レイアウト解除（全て左寄せ） */
    .career-area .step {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* スマホでは順番を強制（①→②→③→④） */
    .career-area .step-1 { order: 1 !important; }
    .career-area .step-2 { order: 2 !important; }
    .career-area .step-3 { order: 3 !important; }
    .career-area .step-4 { order: 4 !important; }

    /* PC用矢印を非表示 */
    .step-arrow {
        display: none !important;
    }
}

/* =========================================================
   選考プロセス（Process）
========================================================= */

.process-step {
    display: block;
    padding: 0 80px; /* 左右に広めの余白 */
    margin: 35px 0;
}

.process-step-inner {
    display: flex;
    align-items: flex-start;
    gap: 35px; /* アイコンとテキストの間隔 */
}

.process-icon img {
    width: 70px; /* アイコンサイズ */
}

.process-text h3 {
    color: #00118F; /* ブランドカラー */
    font-weight: bold;
    font-size: 1.6rem;
    margin: 5px 0;
}

.process-text p {
    margin: 0;
    line-height: 1.6;
}

.process-step hr {
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 15px 0 5px 0;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .process-step {
        padding: 0 25px; /* 余白を縮小 */
    }
    .process-icon img {
        width: 55px; /* アイコン縮小 */
    }
    .process-text h3 {
        font-size: 1.4rem;
    }
}
/* =========================================================
   募集要項・採用情報（Recruit）
   → simple-table のレイアウト調整
========================================================= */

/* simple-table の th 幅を固定、td を可変に */
.simple-table {
    width: 90%;                 /* セクション幅いっぱいに広げる */
    border-collapse: collapse;  /* 罫線を重ねてスッキリ見せる */
    margin-top: 20px;
}

.simple-table th {
    width: 120px;               /* ★ 固定幅：項目名の幅を揃える */
    white-space: nowrap;        /* 折り返し防止（レイアウト崩れ防止） */
    vertical-align: middle;        /* 上下中央揃えで読みやすく */
}

.simple-table td {
    width: calc(90% - 120px);   /* ★ 残りの幅を可変にする */
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

/* 給与テーブル（ラベル＋金額の2列構成） */
.salary-table .row {
    display: grid;
    grid-template-columns: max-content min-content; /* ラベルは必要幅、金額は最小幅 */
    gap: 8px;
    padding: 2px 0;
}

.salary-table .label {
    white-space: nowrap;        /* 折り返し防止 */
    width: 200px;               /* ラベル幅を固定 */
    overflow: hidden;           /* 長すぎる場合は…で省略 */
    text-overflow: ellipsis;
}

.salary-table .price {
    white-space: nowrap;
    text-align: left;
}

/* =========================================================
   エントリーフォーム（Entry Form）
========================================================= */

.entry-form {
    display: flex;
    flex-direction: column;
    gap: 2px;                   /* ラベルと入力欄の間隔 */
}

.entry-form label {
    display: block !important;  /* ラベルをブロック化して上に配置 */
    font-weight: 400;
    margin-bottom: 4px !important;
}

.entry-form input,
.entry-form textarea,
.entry-form select {
    margin-top: 2px !important;
    margin-bottom: 10px !important;
}

.entry-form input,
.entry-form textarea {
    padding: 10px;              /* 入力しやすい余白 */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.entry-form textarea {
    min-height: 4.5em;          /* 適度な高さ */
    line-height: 1.5;
}

.entry-form button {
    width: 200px;
    padding: 12px;
    background: #0078d7;        /* Microsoft系の青 */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.entry-form button:hover {
    background: #005fa3;        /* ホバーで濃くする */
}

.entry-form h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* チェックボックスのグループ */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;            /* 横並び＋折り返し */
    gap: 12px 20px;
    margin-bottom: 20px;
}

.checkbox-title {
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 0px;
}

/* チェックボックス1つのまとまり */
.entry-check {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;        /* 改行させない */
}

/* プライバシーポリシー */
.privacy-note {
    font-size: 0.9rem;
    margin: 8px 0 6px;
}

.privacy-text {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
    height: 180px;              /* 固定高さ（スクロール可能） */
    overflow-y: auto;           /* スクロールバー表示 */
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-agree {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 1rem;
    text-align: center;
}

.submit-btn {
    display: block;
    margin: 15px auto 0;
}

/* 必須バッジ */
.required {
    display: inline-block;
    background: #d90000;        /* 赤背景 */
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 6px;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================================================
   フッター（Footer）
========================================================= */

.footer {
    background: #f5f5f5;
    padding: 30px;
    text-align: center;
    margin-top: 60px;
}

.footer .sitemap a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
}

.copy {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* =========================================================
   モーダル（社員紹介）
========================================================= */

#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* 半透明の黒背景 */
    z-index: 9000;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1080px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    z-index: 10000;
    max-height: 80vh;           /* 画面の80%まで */
    overflow-y: auto;           /* 内容が多い場合スクロール */
}

.modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.modal-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.modal-profile-img {
    width: 40%;
    max-width: 260px;
    border-radius: 6px;
}

.modal-profile-texts {
    flex: 1;
}

.modal-title {
    color: #259FBB;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.modal-content-inner {
    white-space: pre-line;      /* 改行をそのまま反映 */
}

.modal-pr {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0px;
    color: #259FBB;
}

.modal-profile-texts p {
    margin: 0px !important;
}

/* =========================================================
   スマホ時のモーダル調整
========================================================= */
@media (max-width: 768px) {

    .modal-content-inner {
        white-space: normal; /* スマホでは通常の折り返し */
    }

    .modal-profile-texts p {
        margin: 30px 0px !important;
    }

    .modal-profile img {
        width: 100% !important;
        max-width: 768px;
    }

    /* 1行目（p2 + p3）を横並びに */
    .profile-row-1 {
        display: flex;
        justify-content: flex-start;
        gap: 0px !important;
        width: 70%;
    }

    .profile-row-1 p {
        flex: 1;
        margin: 10px 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    /* 2行目（p1）は単独で */
    .profile-row-2 p {
        margin: 2px 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        text-align: left;
        width: 100%;
    }
}
/* =========================================================
   オフィス紹介：画像モーダル
   → オフィス写真をクリックした際に拡大表示するモーダル
========================================================= */

#office-modal-overlay {
    display: none;                 /* 初期状態は非表示（JSで表示） */
    position: fixed;               /* 画面全体を覆う */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);  /* 背景を暗くして写真を強調 */
    z-index: 9000;                 /* モーダル本体より下、他要素より上 */
}

.office-modal {
    display: none;                 /* 初期状態は非表示 */
    position: fixed;
    top: 50%;                      /* 画面中央 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;                    /* 画面幅の95%まで */
    max-width: 1080px;             /* PCでは最大1080px */
    background: transparent;       /* 背景は透明（画像を際立たせる） */
    z-index: 10000;                /* 最前面 */
    text-align: center;
}

.office-modal-inner img {
    width: 100%;                   /* モーダル内の画像を最大化 */
    border-radius: 6px;            /* 角丸で柔らかい印象 */
}

.office-modal-title {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;                   /* 白文字で背景に映える */
}

.office-modal-desc {
    margin-top: 8px;
    font-size: 1rem;
    color: #ddd;                   /* 少し薄い白で主張を弱める */
    white-space: pre-line;         /* 改行をそのまま反映 */
}

.office-modal-close {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    text-shadow:
        0 0 4px rgba(0,0,0,0.8),
        2px 2px 4px rgba(0,0,0,0.7); /* 視認性を高める影 */
}

/* スマホ時の閉じるボタン調整 */
@media (max-width: 768px) {
    .office-modal-close {
        font-size: 26px;
        top: 10px;
        right: 10px;
        text-shadow:
            0 0 3px rgba(0,0,0,0.7);
    }
}

/* 画面が横に狭い（高さが低い）場合の調整 */
@media (max-height: 800px) {
    .office-modal {
        top: 30% !important;       /* 少し上に寄せる */
        width: auto !important;
        height: auto !important;
        max-width: 50% !important; /* 小さめに表示 */
        max-height: 50% !important;
    }
}

@media (max-height: 500px) {
    .office-modal {
        top: 20% !important;
        width: auto !important;
        height: auto !important;
        max-width: 30% !important; /* さらに小さく */
        max-height: 30% !important;
    }
}

/* =========================================================
   ローディング・プログレスダイヤル
   → ページ読み込み時に表示する円形の進捗アニメーション
========================================================= */

#loader-overlay {
    position: fixed;
    inset: 0;                      /* top, right, bottom, left = 0 */
    background: #0b1020;           /* 濃紺の背景（未来感） */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;                /* 全要素の最前面 */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader-overlay.hidden {
    opacity: 0;                    /* フェードアウト */
    visibility: hidden;            /* 完全に非表示 */
}

.loader-wrapper {
    text-align: center;
    color: #fff;
}

/* 円形のプログレスダイヤル */
.loader-dial {
    width: 120px;
    height: 120px;
    border-radius: 50%;            /* 完全な円 */
    background:
        conic-gradient(
            #00c4ff var(--progress, 0%), /* 進捗部分（青） */
            #444 var(--progress, 0%)     /* 残り部分（グレー） */
        );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(0, 196, 255, 0.5); /* 光るエフェクト */
}

/* ダイヤル内の小円（数字表示） */
.loader-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0b1020;           /* 背景と同じ色でくり抜き風 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.loader-text {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* =========================================================
   共通：画像ズーム用のラッパー
========================================================= */

.zoom-wrap {
    overflow: hidden;              /* 画像がはみ出さないように */
    display: block;
    border-radius: 6px;            /* 角丸 */
}

/* ズームアニメーション（ホバーで拡大） */
.zoom-wrap img {
    transition: transform 0.4s ease;
    transform-origin: center center; /* 拡大の中心を中央に */
}

.zoom-wrap:hover img {
    transform: scale(1.12);        /* 12%拡大 */
}
