/* 起動ビデオを全画面表示 */
#startup-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#startup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



------------------------------ */

/* 全体のフォント設定 */
html {
    scroll-behavior: smooth;
}

/* 全体で横スクロールを抑止 */
html,
body {
    overflow-x: hidden;
}


body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin: 0;
    /* ブラウザ標準の余白をリセット */
    padding: 0;
    background-color: #fff;
    /* 完全な黒ではなく少し柔らかい黒 */
    color: #121212;
    /* 文字色は純白ではなく薄いグレー */
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6600;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;

    /* 中央寄せの最小限指定 */
    display: block;
    margin: 0 auto;
    width: fit-content;
}




.cta-button:hover {
    background-color: #e65500;
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 70%;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-button {
    display: block;
    /* 画像だけ表示するから block に */
    width: 150px;
    /* 現在のボタンと同じくらいのサイズに調整 */
    height: auto;
    /* 縦横比を維持 */
}

.floating-button img {
    width: 100%;
    height: auto;
    border-radius: 10px;

    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: filter 0.3s ease;
    /* ここをtransformからfilterに変える */
}

.floating-button:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
    /* ちょっと拡大する */
}




/* 見出しとホームセクションのフォント */

h1,
h3 {
    font-family: 'Roboto Slab', serif;
}

/* h2 要素を中央揃え＆黒色にする */
h2 {
    text-align: center;
}

company-info h2 {
    color: #121212
}




services h2 {
    color: #121212
}

p,
li {
    font-family: 'Open Sans', sans-serif;
}


/* ------------------------------
   ナビゲーションバー
------------------------------ */
/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    color: #121212;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* ロゴのスタイル */
.navbar .logo {
    height: 80px;
    width: auto;
    vertical-align: middle;
    margin-right: 350px;
    /* ここで間隔を調整 */
}

/* リストの整列 */
.navbar ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

/* 各リンク */
.navbar ul li a {
    color: inherit;
    text-decoration: none;
    position: relative;
    font-size: 1em;
    padding: 5px 10px;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    /* 縦に配置 */
    align-items: center;
    text-align: center;
}

/* メインの日本語テキスト */
.navbar ul li a span {
    font-size: 1.1em;
    font-weight: bold;
}

/* 小さい英語テキスト */
.navbar ul li a small {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 2px;
}

/* 下線スライドアニメーション */
.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.4s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* CTAボタン */
.cta-button {
    background: #ff6600;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s;
    font-weight: bold;
    color: #fff !important;
}

.cta-button:hover {
    background: #e65500;
}

.scroll-anchor {
    scroll-margin-top: 120px;
    /* ← ナビバーの高さ分 */
}

/* ------------------------------
   ホームセクション
------------------------------ */
/* デフォルト（PC）用 */
.hero {
    background-image: url('/KamHp/images/top.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.3);*/
    /* ← 薄くする */
    z-index: 1;
}

.hero-logo {
    max-width: 1950px;
    width: 100%;
    height: auto;
    margin: -50px auto 0 auto;
    display: block;
    filter: brightness(6);
    /* ロゴだけ明るく補正 */
}

:root {
    --mobile-img-width: 1080;
    /* モバイル用画像の実際の幅 */
    --mobile-img-height: 600;
    /* モバイル用画像の実際の高さ */
}




section {
    padding: 60px 20px;
}



.greeting-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    position: relative; /* ロゴを重ねるため */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.greeting-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* ロゴより前 */
}

.greeting-title {
    font-size: 2rem;
    margin: 0 auto 40px;
    color: #333;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #ccc;
    display: table;
}

.greeting-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
    position: relative;
    z-index: 1;
}

.greeting-text .highlight {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 30px;
}



.greeting-logo {
    position: absolute;
    top: 160px; /* 下に移動 */
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: auto;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}


#services {
    background-image: url("/KamHp/images/black_00010.jpg");
    /* ここを修正！ */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #ffffff;
    /* ちょっと明るめの黒 */
    padding: 60px 20px;
    
}

.services-subtext {
    font-size: 1.2em;
    color: #E0E0E0;
    /* 文字を優しく見せる */
    text-align: center;
    max-width: 900px;
    margin: 20px auto;
    /* センター寄せ */
    line-height: 1.6;
    /* 行間を広げて読みやすく */
}







.service-item,
.equipment-images img {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

/* ポップアップアニメーション */
@keyframes pop-up {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ------------------------------
   業務内容セクション
------------------------------ */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
    text-align: center;
}



#services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #eeeeee;
}

#services h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ff6600;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* サービス項目のデザイン */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 30px;
    background: linear-gradient(135deg, #222, #111);
    color: white;
    width: 60%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 番号のデザイン */
.service-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff6600;
    padding: 15px;
    border: 2px solid #ff6600;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Font Awesome 5 Free';
    /* アイコンフォント用 */
}

/* テキストエリア */
.service-text {
    flex: 1;
    text-align: left;
}

.service-text h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.service-text p {
    font-size: 1em;
    color: #ccc;
}

/* 画像のデザイン */
.service-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.support-banner-section {
    background: linear-gradient(135deg, #ff7e2d, #f95700); /* オレンジ系グラデーション */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
    
    
}

.support-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.support-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.support-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}



.support-description {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* モバイル対応 */
@media (max-width: 600px) {
    .support-box {
        width: 100%;
        font-size: 1rem;
    }

    .support-title {
        font-size: 1.5rem;
    }
}



/* 設備紹介セクション */
#equipment-intro {
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f9fa;
}

/* 設備紹介のタイトル */
#equipment-intro h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    color: #121212 !important;
}

/* グリッドレイアウト */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    /* 画像の間隔を広げる */
    max-width: 1100px;
    margin: 0 auto;
}

/* 設備ごとのカード */
.equipment-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* 画像スタイル */
.equipment-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.equipment-card:hover img {
    transform: scale(1.05);
}

/* テキストスタイル */
.equipment-card p {
    font-size: 1.3em;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
}

/* 詳細ページリンク */
.equipment-details-link {
    margin-top: 30px;
}

.equipment-details-link .cta-button {
    background: #ff6600;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
}

.equipment-details-link .cta-button:hover {
    background: #e65500;
}

.equipment-scroll {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.equipment-scroll-track {
    display: flex;
    width: fit-content;
    animation: scroll-left 50s linear infinite;
}

.equipment-scroll-track img {
    flex-shrink: 0;
    width: 260px;
    height: 200px;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

#equipment-details {
    padding-top: 75px; /* ← ナビゲーションバーの高さ分＋α */
}


/* ------------------------------

/* 会社情報セクション */

#company-info {
    background-color: #fff;
    /* 白でメリハリをつける */
}

#company-info {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    color: #000;
    /* ← 文字色を黒に上書き！ */
    border: 2px solid #000;

}

#company-info h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

#company-info h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background-color: #333;
    margin: 10px auto 0;
}

#company-info .info-row {
    display: flex;
    align-items: stretch;
    /* ← stretchで高さ揃える */
    margin-bottom: 10px;
}

#company-info .info-row h3 {
    margin: 0;
    padding: 10px 0;
    /* ← 上下に余白をつけて文字位置合わせ */
    width: 200px;
    border-bottom: 2px solid #aaa;
    text-align: left;
    box-sizing: border-box;
    line-height: 1.6;
    display: flex;
    align-items: center;
    /* ← 垂直中央揃えで見た目一致 */
}

#company-info .info-row p {
    margin: 0;
    padding: 10px 0;
    width: calc(100% - 200px);
    border-bottom: 2px solid #aaa;
    text-align: left;
    white-space: pre-line;
    box-sizing: border-box;
    line-height: 1.6;
    display: flex;
    align-items: center;
    /* ← こっちも！ */
}





.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    /* カラム幅を調整 */
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #000;
}





.estimate-request {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}


.estimate-request p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.estimate-request .urgent {
    color: #e65500;
    font-weight: bold;
    margin-bottom: 25px;
}

.estimate-request .cta-button {
    padding: 12px 28px;
    font-size: 1.2em;
}



/* ------------------------------
   ログインページ用スタイル
------------------------------ */
.login-container {
    max-width: 400px;
    margin: 120px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #333;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container input[type="submit"]:hover {
    background-color: #e65500;
}



/* お見積りフォーム全体 */
.estimate-main {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: #ffffff;
    /* 白背景 */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #000;
    /* テキストは完全な黒 */
}

/* タイトルとノート */
.estimate-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #000;
}

.estimate-note {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

/* 送信結果メッセージ */
.success {
    color: #27ae60;
    /* 緑 */
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.error {
    color: #c0392b;
    /* 赤 */
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* フォーム */
.estimate-main {
    padding-top: 120px;
    /* ← ナビバーの高さ + 余裕をここに入れる！！ */
    padding-left: 20px;
    padding-right: 20px;
}


.estimate-form {
    display: grid;
    gap: 20px;
}

.estimate-form label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #000;
}

.estimate-form label span {
    margin-bottom: 8px;
}

.estimate-form input,
.estimate-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    color: #000;
}

.estimate-form input[type="file"] {
    padding: 6px;
}

/* 送信ボタン（固定オレンジ） */
.estimate-submit {
    background-color: #ff6600;
    /* オレンジ */
    color: #fff;
    font-size: 1.1rem;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.estimate-submit:hover {
    background-color: #e65500;
}

.estimate-info {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-width: 300px;
    font-size: 0.85rem;
    /* 少し小さく */
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.estimate-info p {
    margin: 8px 0;
    /* 少し余裕をもたせる */
}

/* ——— お知らせセクション ——— */
#news {
    background-color: #f9f9f9;
    padding: 2rem 1rem;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

news h2 {
    color: #121212
}

/* リスト全体 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 各アイテム */
.news-item {
    padding: 0;
    margin: 0;
}



/* ——— 中身コンテナ（統合済み） ——— */
.news-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75em;
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    background-color: #f5f0e6;
    border: 1px solid #000;
    border-left: 4px solid #ff9933;
    transition: background 0.3s ease;
}

/* レイアウト： 日付・本文・PDFを同じ行に */
.news-content>* {
    margin: 0;
}



/* 日付と本文 */
.news-date,
.news-text {
    white-space: nowrap;
    color: #000;
}

/* ——— タイトルリンク ——— */
.news-title-link {
    color: #66ccff;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-title-link:hover {
    color: #ffcc00;
    /* ← 明るい黄色で目立たせる */
}

/* ——— 🔗マーク付きリンク ——— */
.news-link-icon {
    color: #66ccff;
    text-decoration: underline;
    /* ← 下線を追加して視認性UP */
    font-size: 1.1em;
    transition: color 0.3s ease;
}


/* ——— PDFリンク（ボタン風） ——— */
.pdf-link {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 0.5em 0.75em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.pdf-link:hover {
    background-color: #e65500;
}




.archive-text {
    padding-top: 100px;
    /* ナビバー分の余白 */
    text-align: center;
    color: #fff;
}

/* 会社情報セクションの地図を中央寄せ */
.map-container iframe {
    display: block;
    /* ブロック要素化 */
    margin: 0 auto;
    /* 左右マージン自動で中央寄せ */
}

/* ------------------------------
   ログインページ専用
------------------------------ */
.login-container {
    max-width: 400px;
    margin: 150px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.login-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff6600;
}

.login-container label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    background: #2e2e2e;
    color: #fff;
    font-size: 1em;
}

.login-container input[type="submit"] {
    background-color: #ff6600;
    color: white;
    padding: 12px;
    width: 100%;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container input[type="submit"]:hover {
    background-color: #e65500;
}

.login-container p {
    margin-top: 20px;
}

/* ------------------------------ */
/* PC（1025px以上）は横並びナビ */
/* ------------------------------ */
@media (min-width: 1025px) {

    html,
    body {
        overflow-x: hidden;
    }

    .hamburger {
        display: none;
    }

    .menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        gap: 30px;
        width: auto;
        transform: none !important;
        transition: none;
    }
}

/* ------------------------------ */
/* スマホ／タブレット（1024px以下） */
/* ------------------------------ */
@media (max-width: 1024px) {




    .navbar {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    /* 2) ハンバーガーメニュー本体 */
    .hamburger {
        display: block;
        font-size: 1.8em;
        cursor: pointer;
        color: #E0E0E0;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    .menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80vw;
        max-width: 300px;
        background: #ffffff;
        padding-top: 80px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        flex-direction: column;
        gap: 20px;
    }

    .menu.show {
        transform: translateX(0);
    }

    .menu li {
        margin: 0;
        padding: 0;
    }

    .menu li a {
        display: block;
        padding: 12px 20px;
        color: #E0E0E0;
        font-size: 1.2em;
    }

    .menu li a:hover {
        background: rgba(255, 102, 0, 0.2);
    }

    /* 浮動ボタンの位置とサイズ調整 */
    .floating-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        right: 10px;
        top: 37%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .floating-button {
        width: 90px;
        /* 以前より少し大きめ */
        height: auto;
    }

    .floating-button img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .hero {
        background-image: url('/KamHp/images/top.JPG');
        /* モバイル用画像に切り替え */
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: top center;
        background-attachment: scroll;

        /* 高さ調整ロジック：画面幅に対して縦横比を維持 */
        height: auto;
        padding-top: calc((var(--mobile-img-height) / var(--mobile-img-width)) * 100%);
    }

    .hero-logo {
        position: absolute;
        top: 10%;
        width: 80%;
        max-width: 800px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    /* サービスコンテナ中央寄せ */
    .services-container {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 100%;
        max-width: 768px;
        margin: 0;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        background: linear-gradient(135deg, #222, #111);
        border-radius: 8px;
    }

    .services-container .cta-button,
    .news-button-container .cta-button,
    .equipment-details-link .cta-button,
    .estimate-request .cta-button {
        display: inline-block;
        margin: 16px auto 0 auto;
    }

    .news-button-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }


    /* 地図レスポンシブ */
    .map-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .map-container iframe {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    /* 起動アニメ非表示 */
    #startup-video-container {
        display: none !important;
    }



    /* ナビバー内ロゴ非表示 */
    .navbar .logo {
        display: none;
    }

    /* box-sizing 安定化 */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }


}

/* ------------------------------ */
/* スマホ幅さらに狭い調整 */
/* ------------------------------ */
@media (max-width: 600px) {
    .floating-buttons {
        right: 8px;
        top: 28%;
        transform: translateY(-50%);
    }

    .floating-button {
        width: 70px;
        /* 小さい画面でも少し大きめに */
    }

    .hero {
        background-image: url('/KamHp/images/top.JPG');
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: top center;
        background-attachment: scroll;
        height: auto;
        padding-top: calc((var(--mobile-img-height) / var(--mobile-img-width)) * 100%);
    }

    .hero-logo {
        position: absolute;
        top: 7%;
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    .services-container {
        padding: 0 10px;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: none;
    }

    .service-item .service-text {
        text-align: left;
    }

    #company-info .info-row {
        flex-direction: column;
    }

    #company-info .info-row h3,
    #company-info .info-row p {
        width: 100%;
        border-bottom: 1px solid #aaa;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        padding-bottom: 75%;
    }

    /* 画面外浮動ボタンはもともと隠れるため追加不要 */
    .cta-button {
        width: 100%;
        font-size: 1em;
        padding: 10px;
    }
}

/* -------------------------------- */
/* スマホ／タブレット（1024px以下）*/
/* -------------------------------- */
@media (max-width: 1024px) {
    /* フォームの横幅やパディング調整はそのまま */

    .estimate-form {
        max-width: 90vw;
        padding: 15px;
    }

    .estimate-form label {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .estimate-form input,
    .estimate-form textarea {
        font-size: 1.1rem;
        padding: 12px;
    }

    .estimate-submit {
        font-size: 1.2rem;
        padding: 14px;
        max-width: 100%;
    }

    /* ← ここから下が今回新しく追加するブロックです ↓ */

    .estimate-info {
        position: static !important;
        /* 固定を解除 */
        margin: 20px auto;
        /* フォームとの隙間 */
        padding: 15px 20px;
        background-color: #f7f9fc;
        border-radius: 6px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
        width: 90vw;
        max-width: 600px;
        color: #333;
        font-size: 1rem;
        line-height: 1.5;
        z-index: auto;
    }

    /* もしフォーム直後のプライバシーリンクも調整したければ */
    main.estimate-main>div[style] a.cta-button {
        margin-top: 1.5em;
        display: inline-block;
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}