/* ==========================================================================
   1. 基本設定（Reset & Base Styles）
   ========================================================================== */
:root {
    --primary-color: #0056b3; /* メインブランドカラー */
    --primary-color-light: #007AC2;
    --text-color: #333333;
    --bg-light: #f0f8ff;
    --border-color: #dee2e6;
    --font-family: 'Noto Sans JP', sans-serif;
    --header-height: 80px ;
    --letter-spacing: 0.4em ;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: var(--header-height) ;
    scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}
a.normal-link {
    color: blue;
    text-decoration: underline;
}

/* 共通コンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-sm {
    max-width: 600px;
}
.container-wide {
    width: 80%;       /* 画面幅の80%をキープしつつ */
    max-width: 1400px; /* どれだけ画面が大きくなっても、最大1400pxでストップして余白を保つ */
    margin: 0 auto;    /* 左右中央寄せ（必須） */
}

/* 共通セクション */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.wide-text {
  letter-spacing: var(--letter-spacing) ;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-block {
    display: block;
    width: 100%;
}

/* レイアウト用のグリッド */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* ==========================================================================
   2. 各コンポーネントのスタイル
   ========================================================================== */

/* ヘッダー */
.header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}
.logo img.logoimg {
    width: 60px;
    vertical-align: top;
    margin-top: 2px;
}
.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    white-space: nowrap ;
}
.nav ul li {
    margin-left: 24px;
}
.nav ul li a {
    white-space: nowrap; /* ★文字の途中での崩れ・変な改行を防止 */
}
.nav ul li a:hover {
    color: var(--primary-color);
}
.btn-nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: opacity 0.3s;
}
.btn-nav:hover {
    opacity: 0.9;
}

/* メインビジュアル */
.hero {
    background: linear-gradient(to bottom, #C8E8FF 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-container h2 {
    font-size: 2.0rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-container p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* 強み (Card) */
.card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* サービス紹介 */
.service-item {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* サービス概要カードの中の詳細リンクボタン */
.btn-detail {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.2s, color 0.2s;
}

.btn-detail:hover {
    color: #003d82; /* ホバー時に少し暗い青にする */
    transform: translateX(5px); /* 右に少し動いてリンク感をアピール */
}

/* 会社概要 (Table) */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.table th, .table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    width: 30%;
    text-align: left;
    background-color: var(--bg-light);
    font-weight: bold;
}
.table td {
    width: 70%;
}

/* お問い合わせフォーム */
.contact-lead {
    text-align: center;
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group .required {
    color: red;
    font-size: 0.8rem;
    vertical-align: middle;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==========================================================================
   3. フッター（白・ライトグレー基調のモダンサイトマップ）
   ========================================================================== */
.footer {
    background-color: #f8f9fa; /* 💡 完全な白ではなく、ほんの少しグレーを混ぜて境界を上品に見せます */
    color: #333333;            /* 文字色は読みやすいダークグレーに */
    padding: 60px 0 40px 0;
    font-size: 14px;
    text-align: left;
    border-top: 1px solid #dee2e6; /* 💡 メインコンテンツとの境目に、極薄い境界線を引いて引き締めます */
}

/* フッター内のコンテナ（Grid構成は維持） */
.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* 左側：会社情報（gapを調整してバランスを取ります） */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 要素同士の間隔を少しタイトにして美しくまとめます */
}

/* ★セキュリティマークのスタイル */
.footer-security-mark {
    margin-top: 5px; 
    display: inline-block;
}

.footer-security-mark a {
    display: inline-block;
}

.footer-security-mark img {
    display: block;
    max-width: 100px; 
    width: 100%;
    height: auto;
}

/* 💡 ロゴ画像：白背景のJPGがフッターの背景（#f8f9fa）に綺麗に溶け込みます */
.footer-logo img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    filter: contrast(120%) brightness(100%);
}

.copyright {
    color: #868e96; /* コピーライトは少し控えめなグレーに */
    font-size: 0.8rem;
    margin: 0;
}

/* 右側：目次グループ全体 */
.footer-nav-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 各目次グループ */
.footer-nav-group h3 {
    color: #111111; /* 見出しはハッキリした黒に */
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6; /* 💡 目次の区切り線も明るいグレーに変更 */
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 💡 フッターナビゲーション内のリンク */
.footer-nav-group ul li a {
    font-size: 0.8rem;
    color: #495057; /* 通常時は落ち着いたダークグレー */
    border-left: 4px solid var(--primary-color); /* 💡 お気に入りの「青い縦線」はそのまま美しく映えます！ */
    padding-left: 12px;
    display: inline-block;
    transition: color 0.2s ease;
}

/* ホバー時にブランドカラーの青に変化させる */
.footer-nav-group ul li a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   5. お知らせ・新着情報（News）
   ========================================================================== */
.news-list {
    list-style: none;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* 角丸をはみ出さないように */
}

.news-item {
    display: grid;
    grid-template-columns: auto 120px 1fr;
    align-items: center;
    gap: 20px; 
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #6c757d;
    font-family: monospace;
    margin-right: 0;
    white-space: nowrap;
}

.news-category {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 0; 
    text-align: center;
    white-space: nowrap;
}

/* カテゴリごとの色分け */
.category-info {
    background-color: #e2e3e5;
    color: #383d41;
}
.category-crit {
    background-color: #f8d7da;
    color: #721c24;
}
.category-news {
    background-color: #cce5ff;
    color: #004085;
}

/* タイトル・リンク */
.news-title {
    text-overflow: ellipsis;
    overflow: hidden;
    /* white-space: nowrap; */
    color: var(--text-color);
    transition: color 0.2s;
    font-weight: bold;
}

.news-title:hover {
    color: var(--primary-color);
}

.news-text {
    /* 💡 本文は強制的に次の行（横幅100%）に落とす */
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   6. 会社概要＆地図（About & Map）
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.map-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: underline;
}
.map-link:hover {
    text-decoration: none;
    font-weight: bold;
}

.map-container {
    position: relative;
    width: 100%;
    padding-top: 75%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   7. サービス概要から詳細へのメイン導線
   ========================================================================== */
.services-more {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 40px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

/* ==========================================================================
   8. 規約・ポリシーページ（Policy Page Styles）
   ========================================================================== */
.policy-content {
    padding: 20px 0;
}

.policy-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.policy-meta {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-bottom : 40px ;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.policy-meta p {
    margin-bottom: 4px;
}

.policy-meta-noborder {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-bottom : 40px ;
}

.policy-lead {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: #495057;
}

/* セクションごとの間隔 */
.policy-section {
    margin-bottom: 32px;
}

/* 見出し（1. 法令・ガイドライン〜） */
.policy-section h3 {
    font-size: 1.15rem;
    font-weight: bold;
    color: #1a202c;              /* 真っ黒よりほんの少しやわらかいダークグレー */
    margin-bottom: 10px;        /* 本文とのすき間 */
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0; /* 薄い下線を引いて区切りを分かりやすく */
}

/* 本文 */
.policy-section p,
.policy-section div {
    font-size: 0.95rem;
    color: #4a5568;              /* 少しグレーにして見出しとの強弱をつける */
    line-height: 1.8;            /* 行間を広げて読みやすく */
    margin: 0;
}

.policy-section ul {
    margin-top: 10px;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
    color: #4a5568;
    line-height: 1.6;
}
.policy-section a {
    color: blue ;
    text-decoration: underline ;
}


/* お問合せカード全体の枠 */
.policy-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

/* カード内のテキスト行間・余白調整 */
.policy-card p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 8px; /* 各行のすき間 */
}

.policy-card p:last-child {
    margin-bottom: 0; /* 最後の行だけ余白を消す */
}

/* リンクカラー（全体の青色に合わせる） */
.policy-section a {
    color: #0056b3;
    text-decoration: underline;
    font-weight: bold;
}

/* 親リスト */
.policy-list {
    list-style-type: decimal; 
    padding-left: 20px;    /* 少し右にずらしてインデントをつける */
    margin-top: 8px;       /* 親の文章との間のスキマ */
    margin-bottom: 8px;
}

.policy-list li {
    margin-bottom: 4px;    /* ●同士の上下のすき間 */
}

/* 子リスト（●のリスト）の見た目を調整 */
.sub-policy-list {
    list-style-type: disc; /* ● マークにする設定（デフォルトで●になります） */
    padding-left: 20px;    /* 少し右にずらしてインデントをつける */
    margin-top: 8px;       /* 親の文章との間のスキマ */
    margin-bottom: 8px;
}

.sub-policy-list li {
    margin-bottom: 4px;    /* ●同士の上下のすき間 */
}

/* リード文全体の調整 */
.strength-lead {
    max-width: 100%;             /* 横に広がりすぎないよう幅を制限 */
    margin: 0 auto 40px auto;     /* 中央寄せ＆下（カード）との余白40px */
    font-size: 1.05rem;           /* 少し文字を大きく */
    line-height: 1.8;             /* ゆったりとした行間で読みやすく */
    color: #4a5568;               /* 真っ黒ではなく少しやわらかいダークグレー */
    text-align: center;           /* タイトルに合わせて中央揃え */
    overflow-wrap: break-word;
    /* text-wrap: balance; */
}

/* 太字部分の強調 */
.strength-lead strong {
    color: var(--primary-color, #0056b3); /* テーマの青色などを指定 */
    font-weight: 700;
}

/* マーカー線風のハイライト（お好みで！） */
.strength-lead .highlight {
    background: linear-gradient(transparent 60%, #e0f2fe 60%); /* 水色のアンダーライン風 */
    font-weight: bold;
}

/* 表を囲むラッパー（横スクロール対策・余白） */
.policy-table-wrapper {
    margin-top: 15px;
    overflow-x: auto; /* スマホで表がはみ出た際に横スクロール可能に */
}

/* 表全体のスタイル */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #4a5568;
}

/* ヘッダー（表の見出し） */
.policy-table th {
    background-color: var(--bg-light, #f8fafc);
    color: #1a202c;
    font-weight: bold;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    white-space: nowrap; /* ヘッダーの変な改行を防ぐ */
}

/* 各セル */
.policy-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    line-height: 1.6;
}

/* 幅の比率調整（必要に応じて） */
.policy-table th:nth-child(1),
.policy-table td:nth-child(1) {
    width: 40%; /* 左列の幅 */
}

.policy-table th:nth-child(2),
.policy-table td:nth-child(2) {
    width: 60%; /* 右列の幅 */
}

.policy-dl {
    margin-top: 15px;
}

/* 項目名（太字＋少し文字色を濃く） */
.policy-dl dt {
    font-weight: bold;
    color: #1a202c;
    font-size: 0.95rem;
    margin-top: 16px;
    margin-bottom: 4px;
}

/* 最初の項目だけ上の余白を消す */
.policy-dl dt:first-child {
    margin-top: 0;
}

/* 内容（インデントを入れてすき間を空ける） */
.policy-dl dd {
    margin-left: 0;            /* 必要に応じて少しずらす場合は 12px など */
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 12px;
}

.policy-dl dd:last-child {
    border-bottom: none;       /* 最後の線の消去 */
}
/* ==========================================================================
    実績
   ========================================================================== */

.works-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #e2e8f0;
}

.works-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

/* ホバーでうっすら背景色を変えてインタラクティブに */
.works-item:hover {
    background-color: #f8fafc;
}

.works-category {
    font-weight: bold;
    width: 25%;            /* 幅を揃える */
    color: #1a202c;
    white-space: nowrap;
}

.works-detail {
    width: 75%;
    color: #4a5568;
}

.works-link {
    width: 0%;
    text-align: right;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

.works-group-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
    padding-left: 0; /* 💡 左の余白をリセットしてリストの左端と綺麗に揃える */
    margin: 40px 0 15px 0;
}

/* 最初の見出しの上余白だけ詰める */
.works-group-title:first-child {
    margin-top: 0;
}

/* ==========================================================================
   サービス詳細ページ
   ========================================================================== */

/* セクション全体の余白 */
.service-detail-section {
    margin-bottom: 40px;
}

/* 大項目タイトル（インフラサービスなど） */
.service-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a202c;
    padding-left: 14px;
    border-left: 5px solid #0056b3; /* ブランドカラーのアクセントバー */
    margin-bottom: 24px;
}

/* カードを並べるグリッドレイアウト */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* レスポンシブ対応 */
    gap: 20px; /* カード同士の間隔 */
    align-items: stretch;
}

/* 個別サービスカード */
.service-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0056b3; /* 上部に鮮やかなアクセントライン */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* うっすら影で立体感 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* ホバー時に少し浮き上がるかっこいいアニメーション */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 小カードの見出し（機器設定など） */
.service-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 12px;
}

/* 本文 */
.service-card-text {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* 補足・注釈テキスト */
.service-note {
    margin-top: 14px;
    padding: 10px 12px;
    background-color: #f7fafc;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.5;
    margin-top: auto;
}

/* ==========================================================================
   製品（トップ)
   ========================================================================== */

/* カード全体：幅を絞って中央寄せ */
.product-single-card {
    width: 80%;       /* 画面幅の80%をキープしつつ */
    max-width: 1400px; /* どれだけ画面が大きくなっても、最大1400pxでストップして余白を保つ */
    margin: 40px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px 32px;
    text-align: center;
}

/* ロゴ表示エリア */
.product-logo-wrapper {
    margin-bottom: 24px;
}

.product-logo {
    max-width: 240px; /* ロゴの大きさに合わせて調整 */
    height: auto;
    display: inline-block;
}

/* カテゴリバッジ */
.product-badge {
    display: inline-block;
    background-color: #e6f0fa;
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* タイトル */
.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2b2c2d;
    margin-bottom: 16px;
}

/* 説明文 */
.product-description {
    line-height: 1.8;
    color: #4a5568;
    text-align: left; /* 長文テキストは左揃えが読みやすい */
    max-width: 90%;
    margin: 0 auto 24px;
}

/* 特徴タグリスト */
.product-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.product-features li {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 4px;
}

/* アクションボタン（並列表示） */
.product-action {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

/* メインボタン（お問い合わせ） */
.btn-primary {
    background-color: #0056b3;
    color: #fff;
}
.btn-primary:hover {
    background-color: #004085;
}

/* サブボタン（詳細ページへ） */
.btn-outline {
    border: 2px solid #0056b3;
    color: #0056b3;
    background: transparent;
}
.btn-outline:hover {
    background-color: #e6f0fa;
}

/* ==========================================================================
   実績リスト崩れ防止・縦並び修正CSS
   ========================================================================== */

/* リスト領域の全幅指定 */
.results-list-category {
    width: 100% !important;
}

/* カテゴリタイトル */
.results-category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    padding-bottom: 8px;
    border-bottom: 2px solid #0056b3;
    /* margin-bottom: 24px; */
}

/* 各実績アイテム（内側要素を確実に縦並びにする） */
.results-item {
    display: block !important; /* 横並びを解除して縦並びに */
    width: 100% !important;
    padding: 20px 0 24px 0 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    box-sizing: border-box !important;
}

.results-item:last-child {
    border-bottom: none !important;
}

/* 1行目：タイトルとバッジの並び */
.results-item-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

.results-item-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3748;
    margin: 0 !important;
}

.results-badge {
    background-color: #0056b3;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block !important;
}

/* 2行目：文章（幅いっぱいに自然な改行） */
.results-item-text {
    display: block !important;
    width: 100% !important;
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 10px 0 14px 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* リスト全体の余白調整 */
.results-item-list {
    margin: 0;
    padding-left: 1.5em; /* 中丸（・）が親要素内に収まるように左余白を指定 */
    list-style-type: disc; /* 黒丸を表示 */
    font-size: 0.92rem;
    color: #4a5568;
}

/* 各項目のスタイル */
.results-item-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* 3行目：タグ一覧 */
.results-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.tag {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    display: inline-block !important;
}

/* 4行目：補足リンク */
.results-link {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.results-link a {
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: underline;
}

/* ==========================================================================
   〇次導入：位置ズレ絶対解消CSS
   ========================================================================== */

.results-history {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 20px 8px !important;
    border-left: none !important;
}

.results-history li {
    position: relative !important;
    padding-left: 24px !important;
    margin-bottom: 16px !important;
    font-size: 0.9rem;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important; /* 子要素を上下中央揃え */
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.results-history li:last-child {
    margin-bottom: 0 !important;
}

/* 💡 丸（ドット）を「〇次導入」バッジの高さへ強制固定 */
.results-history .step-label {
    position: relative; /* 基準にする */
    display: inline-block;
    background-color: #e2e8f0;
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 青い丸（バッジを基準にして左側に配置する） */
.results-history .step-label::before {
    content: "";
    position: absolute;
    left: -20px; /* バッジの左側に配置 */
    top: 50%;
    transform: translateY(-50%); /* バッジの上下中央にピッタリ合わせる */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0056b3;
    border: 2px solid #ffffff;
    box-sizing: border-box;
    z-index: 2;
}

/* 縦線（`li`を基準に引く） */
.results-history li::after {
    content: "";
    position: absolute;
    left: 8px; /* 丸の中心を通る位置 */
    top: 12px; /* 1行目の丸の位置からスタート */
    bottom: -20px; /* 次の行まで伸ばす */
    width: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}

.results-history li:last-child::after {
    display: none !important; /* 最後の項目の縦線を消す */
}

.results-link {
    width: 15%;
    text-align: right;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================================================
   お問い合わせ窓口：レスポンシブ対応CSS（max-width版）
   ========================================================================== */

/* 【基本：PC表示（デフォルトで2列）】 */
.inquiry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 20px;
    width: 100%;
}

.inquiry-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 32px 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    width: 100%;
}

/* PC表示の時だけ「その他」を横長（2列分の幅）＆左右並びにする */
.inquiry-card-full {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
}

.inquiry-card-full h3 {
    margin-bottom: 0;
}


/* 【画面幅 900px 以下：スマホ・狭い画面表示（1列に切り替え）】 */
@media (max-width: 900px) {
    .inquiry-grid {
        grid-template-columns: 1fr; /* 1列で上から順に並べる */
        gap: 16px;
    }

    .inquiry-card {
        padding: 24px 20px;
    }

    /* 900px以下では「その他」も他のカードと同様に縦並びに調整 */
    .inquiry-card-full {
        flex-direction: column;
        align-items: flex-start;
    }

    .inquiry-card-full h3 {
        margin-bottom: 20px;
    }
}

/* ホバー時に浮き上がる演出 */
.inquiry-card:hover {
    border-color: #0056b3;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.1);
    transform: translateY(-2px);
}

.inquiry-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 20px;
}

/* ボタン風デザインにする */
.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    color: #0056b3;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.inquiry-card:hover .btn-detail {
    background-color: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

/* 5つ目（奇数最後）のカードを全幅にする */
@media (min-width: 900px) {
    .inquiry-card-full {
        grid-column: 1 / -1; /* 2列分つなげる */
        flex-direction: row; /* 横並びにして高さを抑える */
        align-items: center;
    }
    .inquiry-card-full h3 {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   お問い合わせ：同意チェックボックス・非活性ボタン
   ========================================================================== */
.privacy-check-group {
    text-align: center;
    margin: 30px 0 20px;

    border: 1px solid #b8c7d9;
    border-radius: 6px;
    padding: 10px 16px;
}
.privacy-check-group p {
    font-size: 0.75em ;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    user-select: none; /* ★テキスト選択を無効化 */
    -webkit-user-select: none; /* Safari / Chrome 向け */
    padding: 10px 16px;
    font-size: 1.2em ;

    background-color: transparent;
    /* border: 1px solid #b8c7d9; */
    border-radius: 6px;
    transition: all 0.2s ease;
}
.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color); /* チェックした時の色を合わせる */
    margin: 0;
    vertical-align: middle;
}
.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.privacy-link:hover {
    text-decoration: none;
}

/* 非活性（Disabled）時の確認ボタン */
.btn-primary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* ==========================================================================
   問い合わせ確認画面
   ========================================================================== */

/* --- 確認画面のテーブル・リストスタイル --- */
.confirm-list {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.confirm-list dt {
    font-weight: bold;
    font-size: 0.9em;
    color: #4a5568;
    margin-top: 16px;
}

.confirm-list dt:first-child {
    margin-top: 0;
}

.confirm-list dd {
    margin-left: 0;
    margin-top: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 1.05em;
    color: #1a202c;
    word-break: break-word; /* 長いメールアドレス等の溢れ防止 */
    white-space: pre-wrap; /* お問い合わせ内容の改行をそのまま表示 */
}

/* 最後の項目だけ下線を消す */
.confirm-list dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- ボタンエリアの調整 --- */
.button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* 共通ボタン基本スタイル */
.button-group button {
    padding: 12px 36px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 修正するボタン (サブボタン) */
.button-group button[onclick="history.back()"] {
    background-color: #ffffff;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.button-group button[onclick="history.back()"]:hover {
    background-color: #edf2f7;
}

/* 送信するボタン (メインボタン) */
#send-btn {
    background-color: #0056b3; /* サイトのテーマカラーに合わせて変更してください */
    color: #ffffff;
    border: none;
}

#send-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* ==========================================================================
   製品詳細画面(きゃりぽす)
   ========================================================================== */
/* 製品1つ分を囲む大枠コンテナ */
.product-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.product-item:last-child {
    margin-bottom: 0;
}

/* ヒーロー（ヘッダー）エリアの背景色と文字色の変更 */
.product-item .product-hero {
    /* 深みのあるダークブルーのグラデーション背景 */
    /* background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); */
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color-light) 100%);
    
    /* カード上部の角丸に合わせて綺麗に切り抜く */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    
    /* カード外枠の内側にぴったり収めるためのネガティブマージン */
    margin: -40px -40px 32px -40px;
    padding: 40px 24px;
    
    text-align: center;
    border-bottom: none; /* 点線を破棄してすっきり見せる */
}

/* ロゴエリアのサイズ調整 */
.product-item .product-hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* ロゴとイラストの間隔を少し広げてゆったり配置 */
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* メインロゴ（コレ! きゃりんぐPOS） */
.product-item .product-hero-logos img:first-child {
    width: 100%;
    max-width: 380px; /* ★ 260px から 380px に拡大 */
    height: auto;
}

/* 右側のイラスト（ハンディ端末） */
.product-item .product-hero-logos img:last-child {
    width: 100%;
    max-width: 110px; /* ★ 80px から 110px に拡大してバランスを統一 */
    height: auto;
}


/* ヒーローエリア内のキャッチコピー（青文字から白文字へ変更） */
.product-item .product-hero-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff; /* 濃い背景に合わせて白色へ変更 */
    margin: 0;
    line-height: 1.5;
    /* 文字が見やすくなるよう微かな影を追加 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* 見出しラベル */
.product-item .product-section-label {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a202c;
    text-align: center;
    margin-bottom: 24px;
}

/* 特徴グリッド表示 */
.product-item .product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-item .product-feature-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0056b3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item .product-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.product-item .product-feature-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.product-item .product-feature-title::before {
    content: "★";
    color: #0056b3;
    flex-shrink: 0;
}

.product-item .product-feature-text {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* 機器構成ブロック */
.product-item .product-config-block {
    margin-bottom: 40px;
}

.product-item .product-img-wrapper {
    text-align: center;
    margin: 20px 0 30px;
}

.product-item .product-img-wrapper img {
    max-width: 90%;
    height: auto;
    display: inline-block;
}

/* ご注意・注釈エリア */
.product-item .product-notice-box {
    background-color: #f1f5f9;
    border-left: 4px solid #64748b;
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
}

.product-item .product-notice-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #334155;
}

.product-item .product-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item .product-notice-list li {
    position: relative;
    padding-left: 14px;
    line-height: 1.6;
}

.product-item .product-notice-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* CTAエリア */
.product-item .product-cta-box {
    text-align: center;
    background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 32px 20px;
    border: 1px solid #cbd5e1;
}

.product-item .product-cta-text {
    font-size: 1.05rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==========================================================================
   4. レスポンシブ対応 (Mobile Devices)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        padding-top: 56.25%;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    .logo {
        margin-bottom: 15px;
    }
    .nav ul {
        flex-wrap: wrap;         /* 折り返しを許可 */
        justify-content: center; /* メニューを中央寄せる */
        gap: 10px 15px;          /* 上下左右のすき間 */
    }
    .nav li {
        margin: 0 10px;
    }
   
    .nav li a {
        font-size: 0.85rem;      /* 文字サイズを少しキュッと小さく */
        padding: 5px 8px;        /* 余白も小さく */
    }
    .hero-container h2 {
        font-size: 2rem;
    }
    .hero-container p {
        text-align: left ;
    }

    .table th, .table td {
        display: block;
        width: 100%;
    }
    .table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .grid-2 {
        /* スマホでは1列（縦並び）にする */
        grid-template-columns: 1fr;
    }

    .grid-3 {
        /* スマホでは1列（縦並び）にする */
        grid-template-columns: 1fr;
    }

    /* スマホ表示時のフッター調整（すべて縦1列に綺麗に並べる） */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav-groups {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info {
        order: 2; /* 会社情報とコピーライトを一番下に回り込ませる */
        border-top: 1px solid #dee2e6;
        padding-top: 25px;
    }
    .container-wide {
      width:100% ;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
    }

    .pc-only {
        display: none;
    }
    .strength-lead {
        text-align: left; /* スマホでは左寄せにすると読みやすいです */
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .works-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .works-category, .works-detail, .works-link, results-link {
        width: 100%;
        text-align: left;
    }

    .inquiry-grid {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 16px;
    }

    .inquiry-card {
        padding: 24px 20px;
    }

    /* 💡「その他」も他カードと完全に同じ縦並びレイアウトへリセット */
    .inquiry-card-full {
        flex-direction: column !important;
        align-items: stretch !important; /* 横幅いっぱいに広げる */
    }

    /* ボタン要素の横幅を100%にして全カードで見た目を統一 */
    .btn-detail {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important; /* スマホ時はボタン内テキストを中央寄せ */
        margin-top: 16px;
    }

    .product-single-card {
        width: 100%;       /* 画面幅の80%をキープしつつ */
    }

    .product-item {
        padding: 24px 16px;
    }
    .product-item .product-hero-title {
        font-size: 1.25rem;
    }
    .product-item .product-features-grid {
        grid-template-columns: 1fr;
    }

    .product-item .product-hero {
        margin: -24px -16px 24px -16px;
        padding: 32px 16px;
    }
    .product-item .product-hero-logos img:first-child {
        max-width: 60%; /* スマホでははみ出さないサイズに縮小 */
    }
    .product-item .product-hero-logos img:last-child {
        max-width: 80px;
    }

}


