/* ==========================================
   1. 基本設定とスムーズスクロール
   ========================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body { 
    font-family: 'Inter', 'Noto Sans JP', sans-serif; 
    margin: 0; 
    padding: 0; 
    color: #1e293b; 
    background-color: #f8fafc; 
    -webkit-font-smoothing: antialiased; 
}

/* ==========================================
   2. ヘッダー（上部固定ナビゲーション）
   ========================================== */
header { 
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.header-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 18px 24px; 
}

.logo { 
    font-size: 22px; 
    font-weight: 700; 
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* 【新規追加】ロゴ画像がヘッダーに綺麗に収まるようにサイズを調整 */
/* ロゴ画像がヘッダーに綺麗に収まるようにサイズを調整 */
.logo-img {
    height: 48px;      /* 横長ロゴがしっかり読めるよう、高さを48pxに少し拡大して最適化 */
    width: auto;       /* 横幅は画像の比率に合わせて自動計算されます */
    display: block;
}

/* ロゴのリンク範囲を適正化し、クリックできる指マークにします */
.logo a {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* ロゴにマウスをのせた時に少しだけ優しく透過させる今風のエフェクト */
.logo a:hover {
    opacity: 0.85;
}

.logo-accent {
    color: #005caf; 
    margin-right: 2px;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 28px; 
    margin: 0; 
    padding: 0; 
    align-items: center;
}

.nav-links a { 
    text-decoration: none; 
    color: #64748b; 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

/* 文字メニューにマウスをのせた時の色 */
.nav-links a:not(.btn-contact):hover {
    color: #005caf; 
}

/* 現在表示中の文字メニューの見た目（青文字＋美しい下線） */
.nav-links a:not(.btn-contact).current {
    color: #005caf; 
    font-weight: 700;
}

.nav-links a:not(.btn-contact).current::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #005caf;
    border-radius: 2px;
}

/* お問い合わせボタン専用スタイル */
.btn-contact { 
    background-color: #005caf !important; 
    color: #ffffff !important; 
    padding: 10px 22px !important; 
    border-radius: 6px; 
    box-shadow: 0 4px 10px rgba(0, 92, 175, 0.15);
    font-weight: 600 !important;
}

.btn-contact:hover,
.btn-contact.current {
    background-color: #004485 !important; 
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 92, 175, 0.25);
}

.btn-contact::after,
.btn-contact.current::after {
    display: none !important; 
}

/* ==========================================
   3. メインビジュアル（背景1枚・文字フェード）
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 550px; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 【センスUP】スクロール時に背景がわずかに遅れて動く高級感エフェクト */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 切り替わるテキストの基本設定 */
.slide-text {
    position: absolute;
    color: #ffffff; 
    max-width: 800px;
    padding: 0 24px;
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(10px); /* 少し下から浮かび上がらせる */
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out; 
    z-index: 10;
}

/* アクティブ（表示中）なテキストの演出 */
.slide-text.active {
    opacity: 1; /* クッキリ表示 */
    transform: translateY(0); /* 定位置へ戻る */
}

.slide-text h2 { 
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem; 
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 16px 0; 
    text-shadow: 0 2px 15px rgba(15, 23, 42, 0.4); /* 文字の後ろの影を調整して視認性を確保 */
}

.slide-text p { 
    font-size: 1.3rem; 
    font-weight: 400;
    opacity: 0.95;
    margin: 0; 
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.4);
}

/* ==========================================
   4. 共通レイアウト・セクション設定
   ========================================== */
.content-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 80px 24px; 
}

.concept-section { 
    text-align: center; 
    margin-bottom: 100px; 
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.section-subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #005caf;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.concept-section h3, .section-title-container h3, .notice-section h3 { 
    color: #0f172a; 
    font-size: 2.2rem; 
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
}

.concept-lead {
    font-size: 1.1rem;
    line-height: 2;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   5. 製品情報・サービス・ソリューション
   ========================================== */
.products-section {
    margin-bottom: 100px;
}

.section-title-container {
    text-align: center;
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 50px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #005caf;
    border-radius: 50%;
}

.category-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.01), 0 10px 15px -3px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 25px -5px rgba(0, 92, 175, 0.1), 0 10px 10px -5px rgba(0, 92, 175, 0.04);
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.product-badge.blue { background-color: #eff6ff; color: #1d4ed8; }
.product-badge.green { background-color: #f0fdf4; color: #166534; }

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #0f172a;
}

.en-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 4px;
}

.product-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.product-link {
    font-size: 0.95rem;
    color: #005caf;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

.product-link:hover {
    color: #004485;
    transform: translateX(4px);
}

/* ==========================================
   6. お知らせ（Notice）セクション
   ========================================== */
.notice-section { 
    background-color: #fff; 
    border: 1px solid #e2e8f0; 
    padding: 50px 40px; 
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    margin-bottom: 100px;
}

.notice-item {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    gap: 30px;
    align-items: baseline;
}

.notice-date { 
    font-family: 'Inter', sans-serif;
    color: #94a3b8; 
    font-weight: 600;
    font-size: 0.95rem; 
    min-width: 100px;
}

.notice-text { 
    font-weight: 500; 
    margin: 0;
    color: #1e293b;
}

/* ==========================================
   7. フッター
   ========================================== */
footer { 
    background-color: #0f172a; 
    color: #94a3b8; 
    padding: 70px 24px; 
}

.footer-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 縦の配置を上揃えに修正 */
    flex-wrap: wrap;
    gap: 40px;
}

/* 【新規追加】フッターメニューのスタイル */
.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* リンクを上から下へ縦に並べる設定 */
    gap: 12px;              /* 縦のメニュー同士のちょうどいい隙間 */
}

.footer-nav-links a {
    color: #94a3b8; 
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;  /* マウスが反応する範囲を適正化 */
}

.footer-nav-links a:hover {
    color: #ffffff; /* マウスをのせると白く光ります */
}
.footer-info h4 { 
    margin: 0 0 20px 0; 
    font-size: 1.4rem; 
    color: #ffffff;
}

.footer-info p { 
    margin: 8px 0; 
    color: #94a3b8; 
    font-size: 0.95rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================
   8. お問い合わせフォーム用スタイル
   ========================================== */
.contact-form { background-color: #ffffff; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: #1e293b; }
.form-group label .required { background-color: #ef4444; color: #ffffff; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 500; vertical-align: middle; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 1rem; color: #0f172a; background-color: #fff; box-sizing: border-box; transition: all 0.2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #005caf; box-shadow: 0 0 0 4px rgba(0, 92, 175, 0.1); }
.contact-form ::placeholder { color: #94a3b8; }
.form-submit { text-align: center; margin-top: 35px; }
.btn-submit { background-color: #005caf; color: #ffffff; border: none; padding: 14px 40px; font-size: 1rem; font-weight: 600; border-radius: 6px; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 92, 175, 0.15); transition: all 0.3s ease; width: 100%; max-width: 320px; }
.btn-submit:hover { background-color: #004485; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 92, 175, 0.25); }

/* ==========================================
   9. 【新規追加】会社概要（テーブル）＆ 沿革（タイムライン）
   ========================================== */
.company-table {
    width: 100%;
    max-width: 840px;
    margin: 40px auto;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.01), 0 10px 15px -3px rgba(15, 23, 42, 0.03);
    border: 1px solid #cbd5e1;
}

.company-table tr {
    transition: background-color 0.2s ease;
}

.company-table tr:hover {
    background-color: #f8fafc;
}

.company-table th,
.company-table td {
    padding: 22px 28px;
    font-size: 1rem;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

.company-table td {
    border-right: none;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 28%;
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.5px;
}

.company-table td {
    color: #475569;
    line-height: 1.7;
    font-weight: 500;
}


/* 会社概要テーブル: 取引銀行など長い項目を1行で見せる */
.company-overview-table {
    max-width: 1040px;
}

.company-overview-table td {
    white-space: nowrap;
}
/* 沿革（タイムライン）の設定 */
.timeline { 
    max-width: 800px; 
    margin: 0 auto; 
    position: relative; 
    padding: 20px 0; 
}

.timeline::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 140px; 
    width: 2px; 
    background-color: #e2e8f0; 
}

.timeline-item { 
    display: flex; 
    margin-bottom: 40px; 
    position: relative; 
}

.timeline-item:last-child { 
    margin-bottom: 0; 
}

.timeline-date { 
    width: 120px; 
    text-align: right; 
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
    color: #005caf; 
    font-size: 1.05rem; 
    padding-top: 2px; 
}

.timeline-item::after { 
    content: ''; 
    position: absolute; 
    left: 137px; 
    top: 8px; 
    width: 8px; 
    height: 8px; 
    background-color: #005caf; 
    border-radius: 50%; 
    border: 2px solid #f8fafc; 
    z-index: 10; 
}

.timeline-content { 
    margin-left: 50px; 
    flex: 1; 
}

.timeline-content h5 { 
    margin: 0 0 8px 0; 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #0f172a; 
}

.timeline-content p { 
    margin: 0; 
    font-size: 0.95rem; 
    color: #475569; 
    line-height: 1.7; 
}

/* ==========================================
   10. ISMS認証マークのレイアウト
   ========================================== */
.isms-badge-flex {
    display: flex;
    align-items: center; /* 縦方向を中央揃えに */
    gap: 40px;           /* 文章とロゴの間の程よいすき間 */
    width: 100%;
}

.isms-badge-text {
    flex: 1; /* 文章エリアを広く取る */
}

/* ロゴ画像を囲む白い枠（台座） */
.isms-badge-img-box {
    background-color: #ffffff;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); /* ほんのりとした柔らかい影 */
    flex-shrink: 0; /* 画面が狭くなっても画像が潰れないように固定 */
}

/* 認証ロゴ自体のサイズと見栄えの調整 */
.isms-cert-img {
    width: 180px;      /* 横幅を180pxに固定してセンスのいいサイズに */
    height: auto;
    display: block;
}

/* スマホなど画面が狭い時のレスポンシブ調整 */
@media (max-width: 768px) {
    .isms-badge-flex {
        flex-direction: column; /* スマホ時は縦並びにする */
        gap: 24px;
    }
    .isms-badge-img-box {
        margin: 0 auto; /* ロゴを中央寄せにする */
    }
}


/* ==========================================
   11. モバイル端末（スマホ）向けの調整
   ========================================== */
@media (max-width: 768px) {
    .header-container { 
        flex-direction: column; 
        gap: 15px; 
        padding: 15px; 
    }
    .nav-links { 
        gap: 16px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .main-visual-text h2 { 
        font-size: 2.2rem; 
    }
    .concept-section, .notice-section { 
        padding: 40px 20px; 
    }
    .concept-section h3, .section-title-container h3, .notice-section h3 { 
        font-size: 1.8rem; 
    }
    .product-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .product-card { 
        padding: 25px; 
    }
    .notice-item { 
        flex-direction: column; 
        gap: 8px; 
    }
    .footer-container { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 30px; 
    }
    .timeline::before { 
        left: 10px; 
    }
    .timeline-item { 
        flex-direction: column; 
        padding-left: 30px; 
    }
    .timeline-item::after { 
        left: 7px; 
    }
    .timeline-date { 
        width: auto; 
        text-align: left; 
        margin-bottom: 8px; 
    }
    .timeline-content { 
        margin-left: 0; 
    }
    .company-table th { 
        width: 30%; 
        padding: 15px; 
    }
    .company-table td { 
        padding: 15px; 
    }


    /* プロックパス詳細ページのスマホ用文字サイズ調整 */
    .concept-section h4 {
        font-size: 1.25rem !important; /* スマホ画面に合わせて文字を少しキュッと小さくします */
        line-height: 1.5 !important;   /* 改行された時にも文字が重ならないように行間を適正化 */
        margin-top: 20px !important;
        margin-bottom: 15px !important;
        text-align: center;            /* スマホ時は中央寄せにすると全体のバランスが綺麗になります */
    }

    /* 左右並びだったトップカードをスマホ時は縦並びにするための追加修正 */
    .product-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

     /* （省略）最下部の @media (max-width: 768px) { ... } の中にある記述です */

    .product-card .product-img-box {
        width: 100% !important;        /* スマホ時は画面いっぱいに広げます */
        max-width: 350px !important;   /* 【修正】変更された350pxに合わせて、スマホ時の上限も350pxに広げて最適化 */
        height: 200px !important;      /* 高さは変えずに綺麗にフィットさせます */
        margin-top: 20px;
    }



}

/* ==========================================
   12. スクロール連動：セクション全体の背景色変化エフェクト
   ========================================== */

/* 対象となる各セクションに、変化を滑らかにする設定をあらかじめ追加 */
#products, #services, #solutions, #isms-info, #notice {
    transition: background-color 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 1.2s ease, 
                border-color 1.2s ease;
    border-radius: 16px; /* 角をほんのり丸くして、色がついた時に美しく見せます */
    padding: 60px 40px;  /* 内側の余白を整えて色の広がりを上品に */
    box-sizing: border-box;
}

/* ──────────────────────────────────────────
   各エリアに進入した（active-bgがついた）際の色指定
   ────────────────────────────────────────── */

/* 【製品情報】に入った時：洗練された薄いクリアブルー */
#products.active-bg {
    background-color: #f0f7ff; 
    border: 1px solid rgba(0, 92, 175, 0.08);
    box-shadow: inset 0 0 40px rgba(0, 92, 175, 0.02);
}

/* 【サービス】に入った時：優しく知的な薄いミントグリーン */
#services.active-bg {
    background-color: #f5fdfb; 
    border: 1px solid rgba(19, 115, 51, 0.06);
    box-shadow: inset 0 0 40px rgba(19, 115, 51, 0.02);
}

/* 【ソリューション】に入った時：プレミアム感のある薄いロイヤルパープルブルー */
#solutions.active-bg {
    background-color: #f7f9fc; 
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 0 40px rgba(15, 23, 42, 0.02);
}

/* 【ISMSについて】に入った時：信頼感を与えるすっきりとしたシアングレー */
#isms-info.active-bg {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 92, 175, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

/* 【お知らせ】に入った時：落ち着きのある暖かみのあるウォームホワイト */
#notice.active-bg {
    background-color: #fafafa;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

/* スマホ表示時の余白微調整 */
@media (max-width: 768px) {
    #products, #services, #solutions, #isms-info, #notice {
        padding: 40px 20px;
    }
}

/* ==========================================
   13. 製品カード内・イメージ画像のセンスアップデザイン
   ========================================== */
.product-img-box {
    width: 100%;
    height: 180px;          /* 画像を表示する高さを180pxに美しく固定 */
    border-radius: 8px;     /* 画像の四隅をカードに合わせて丸くします */
    overflow: hidden;       /* はみ出た画像を綺麗にカット */
    margin-bottom: 20px;    /* 下のバッジやテキストとの程よい隙間 */
    border: 1px solid #e2e8f0; /* 薄いグレーの枠線で画像を引き締める */
    background-color: #f1f5f9;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 横長画像を枠線の中に比率を崩さず綺麗にフィットさせる魔法の指示 */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* 拡大アニメーションを滑らかに */
}

/* カード自体にマウスが載った時、画像だけが「じわっと大きく」なる今風の演出 */
.product-card:hover .product-img-box img {
    transform: scale(1.05); /* 1.05倍にふんわり拡大 */
}

/* ==========================================
   14. プロックパス詳細：フロー図と解説の左右並びデザイン
   ========================================== */
.flow-flex-container {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 40px;               /* 図とカードエリアの間のすき間 */
    margin-top: 30px;
    width: 100%;
}

/* 左側：図を囲むボックス */
.flow-image-box {
    flex: 1.1;               /* 図の表示エリアを少しだけ広く取る */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-image-box img {
    width: 100%;
    max-width: 440px;        /* 図が大きくなりすぎてボケるのを防ぐサイズ制限 */
    height: auto;
    display: block;
}

/* 右側：ステップ解説を縦に並べるボックス */
.flow-steps-box {
    flex: 1;                 /* 解説エリア */
    display: flex;
    flex-direction: column;
    gap: 20px;               /* カード同士の上下のすき間 */
}

/* 縦並び用にカードの余白や見栄えを微調整 */
.product-card.flow-step-card {
    width: 100%;
    padding: 24px 28px;
    margin-top: 0 !important; /* 個別のマージンをリセット */
}

.product-card.flow-step-card h5 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.product-card.flow-step-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* スマホなど画面が狭い時のレスポンシブ調整 */
@media (max-width: 900px) {
    .flow-flex-container {
        flex-direction: column; /* タブレット・スマホ時は縦並びにする */
        gap: 30px;
    }
    .flow-image-box {
        width: 100%;
    }
}

/* ==========================================
   15. 企業情報ページ：背景画像融合ヒーローエリア
   ========================================== */
.company-hero-section {
    width: 100%;
    margin-bottom: 80px; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 【演出】スクロール時に背景のビルがわずかに遅れて動くパララックス効果 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.hero-inner-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px; /* 上下に広い余白をとってダイナミックに魅せる */
    text-align: center;
}

/* 企業情報ページの大きなタイトル */
.company-hero-section h3 {
    font-size: 2.5rem !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 白背景用の見出しスタイルを打ち消し、透明な中に美しく浮かび上がらせる */
.company-hero-section h3::after {
    display: none !important; /* 下線を消してスマートに */
}

/* 背景画像の上でもハッキリ読める純白のリード文 */
.company-hero-lead {
    font-size: 1.1rem;
    line-height: 2;
    color: #f8fafc; /* 優しい純白 */
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.5); /* 文字の背面に薄い影を入れて可読性を確保 */
}

/* スマホ表示時の余白・文字サイズ調整 */
@media (max-width: 768px) {
    .hero-inner-content {
        padding: 50px 20px;
    }
    .company-hero-section h3 {
        font-size: 1.8rem !important;
    }
    .company-hero-lead {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* ==========================================
   16. スマートティー茶詳細: フロー図の大判化・見やすさ最優先レイアウト
   ========================================== */
#smarttea-flow-section .flow-flex-container {
    display: block;
    width: 100%;
}
#smarttea-flow-section .flow-image-box {
    width: 100%;
    max-width: 840px;
    margin: 0 auto 40px auto;
    padding: 40px;
    box-sizing: border-box;
}
#smarttea-flow-section .flow-image-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
#smarttea-flow-section .flow-steps-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
#smarttea-flow-section .flow-step-card {
    padding: 24px;
}
@media (max-width: 900px) {
    #smarttea-flow-section .flow-steps-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    #smarttea-flow-section .flow-image-box {
        padding: 20px;
    }
}

/* ==========================================
   17. プロックパス詳細: フロー図の大判化・見やすさ最優先レイアウト
   ========================================== */
#procpath-flow-section .flow-flex-container {
    display: block;
    width: 100%;
}
#procpath-flow-section .flow-image-box {
    width: 100%;
    max-width: 840px;
    margin: 0 auto 40px auto;
    padding: 40px;
    box-sizing: border-box;
}
#procpath-flow-section .flow-image-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
#procpath-flow-section .flow-steps-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
#procpath-flow-section .flow-step-card {
    padding: 24px;
}
@media (max-width: 900px) {
    #procpath-flow-section .flow-steps-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    #procpath-flow-section .flow-image-box {
        padding: 20px;
    }
}

/* ==========================================
   18. 【完全解決】S3Browserの画像ボケ・文字潰れを強制上書き修正
   ========================================== */
.s3browser-large-img-box {
    width: 100% !important;
    max-width: 840px !important;
    margin: 0 auto 25px auto !important;
    background-color: #0b132b !important;
    border-radius: 12px !important;
    border: 1px solid #1e293b !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.s3browser-large-img-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important; /* 1ピクセルも文字を欠けさせない指示 */
    
    /* ブラウザの縮小ボケを強力に打ち消し、文字の輪郭をクッキリ立たせる命令 */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}


/* ==========================================
   S3Browserカード専用調整
   ========================================== */

.s3browser-thumb {
    object-fit: contain !important;
    object-position: center center;
    background: #f8fbff;
    padding: 6px;
    box-sizing: border-box;
}

/* S3Browserだけ高さを少し大きくする */
.product-card .product-img-box.s3browser-box {
    height: 220px;
    background: linear-gradient(
        135deg,
        #f7fbff 0%,
        #edf5ff 100%
    );
}
/* ==========================================
   19. 公開前調整: モバイル表示と読みやすさの安定化
   ========================================== */
@media (max-width: 768px) {
    .slider-container {
        height: 420px;
        background-attachment: scroll;
    }

    .slide-text h2 {
        font-size: 2rem;
        line-height: 1.25;
    }

    .slide-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .content-container {
        padding: 56px 18px;
    }

    .company-hero-section {
        background-attachment: scroll;
    }

    .company-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .company-table th,
    .company-table td {
        min-width: 150px;
        vertical-align: top;
    }

    .product-card[style*="flex-direction: row"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .product-card[style*="flex-direction: row"] .product-img-box {
        width: 100% !important;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px 12px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .btn-contact {
        padding: 8px 14px !important;
    }

    .product-name {
        font-size: 1.18rem;
    }

    .en-name {
        display: block;
        margin: 4px 0 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Solution card link layout */
.product-link-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
}

.product-link-row .product-link {
    margin-top: 0;
}

.product-link-secondary {
    color: #475569;
}

.product-link-secondary:hover {
    color: #005caf;
}

@media (max-width: 480px) {
    .product-link-row {
        justify-content: center;
        gap: 12px 16px;
    }
}
/* Case page layout */
.cases-hero {
    margin-bottom: 80px;
}

.cases-title {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
}

.case-category-section {
    scroll-margin-top: 110px;
}

.case-grid {
    align-items: stretch;
}

.case-card {
    gap: 0;
}

.case-card .product-name {
    line-height: 1.5;
}

.case-client-link {
    margin: -4px 0 22px 0;
    font-size: 0.92rem;
}

.case-client-link a {
    color: #005caf;
    font-weight: 600;
    text-decoration: none;
}

.case-client-link a:hover {
    text-decoration: underline;
}

.case-detail-block {
    width: 100%;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    margin-top: 18px;
}

.case-detail-block h5 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 1rem;
}

.case-detail-block p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
}

.case-wide-card {
    width: auto;
    display: block;
    text-align: left;
}

.case-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-placeholder {
    background-color: #f8fafc;
}

@media (max-width: 900px) {
    .case-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .cases-title {
        font-size: 1.8rem;
    }
}
/* Masuda Cooking case images */
.case-main-visual-link {
    display: block;
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
}

.case-main-visual {
    display: block;
    width: 100%;
    height: auto;
}

.case-flow-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.case-flow-card {
    appearance: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.case-flow-card:hover {
    transform: translateY(-2px);
    border-color: #005caf;
    box-shadow: 0 10px 20px rgba(0, 92, 175, 0.08);
}

.case-flow-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 10px;
}

.case-flow-card span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.case-image-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.case-image-modal.is-open {
    display: flex;
}

.case-image-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.case-image-modal__dialog {
    position: relative;
    width: min(1100px, 96vw);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    overflow: auto;
}

.case-image-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.case-image-modal__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
}

.case-image-modal__caption {
    margin: 12px 44px 0 0;
    color: #475569;
    font-weight: 600;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .case-flow-gallery {
        grid-template-columns: 1fr;
    }
}
/* Business section layout */
.business-section {
    scroll-margin-top: 110px;
}

.business-lead-card {
    width: auto;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.business-grid .product-card {
    min-height: 100%;
}

.business-summary-section {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 42px 36px;
    margin: -60px 0 100px 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.business-summary-section h3 {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
}

.business-summary-section .product-link {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .business-summary-section {
        padding: 34px 20px;
        margin: -50px 0 80px 0;
    }

    .business-summary-section h3 {
        font-size: 1.7rem;
    }
}
.case-detail-grid-four {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
}

.case-result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.case-result-list span {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .case-detail-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-detail-grid-four {
        grid-template-columns: 1fr;
    }

    .case-result-list span {
        width: 100%;
        border-radius: 8px;
    }
}
/* Notice pages layout */
.notice-text a {
    color: #1e293b;
    text-decoration: none;
}

.notice-text a:hover {
    color: #005caf;
}

.notice-more-link {
    margin-top: 28px;
    text-align: right;
}

.notice-page-title {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
}

.notice-empty {
    margin: 20px 0 0;
    color: #64748b;
}

.notice-detail-card h1 {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.45;
    margin: 12px 0 26px;
}

.notice-detail-date {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.notice-detail-body {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    margin-bottom: 30px;
}

.notice-detail-body p {
    color: #475569;
    line-height: 1.9;
    margin: 0 0 18px;
}

@media (max-width: 768px) {
    .notice-page-title,
    .notice-detail-card h1 {
        font-size: 1.7rem;
    }

    .notice-more-link {
        text-align: left;
    }
}
