/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* ごく薄いノイズテクスチャのオーバーレイ（※dataURLはシンプルな1pxノイズ用） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADklEQVR42mNUtWr/HAADlgH+E+psDAAAAAElFTkSuQmCC');
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* コンテナ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
header {
    padding: 20px 0;
    position: fixed; /* スクロール追従を有効にする */
    top: 0; /* 上部に固定 */
    left: 0;
    width: 100%; /* ヘッダーを画面全幅に */
    z-index: 1000; /* 他の要素より前面に表示 */
    background-color: #fff; /* 背景色を指定 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 視覚的な分離感を追加 */
}

header a img{
    max-width: 1200px;
    height: 110px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}
header nav ul li a:hover {
    color: #F59E0B;
}

/* ファーストビュー */
.hero {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADklEQVR42mNUtWr/HAADlgH+E+psDAAAAAElFTkSuQmCC');
    opacity: 0.05;
    pointer-events: none;
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    max-width: 50%;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #F59E0B, #FCD34D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: fit-content;
}
.hero-image {
    position: relative;
    z-index: 2;
    max-width: 40%;
    margin-left: 30px;
}
.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    /* border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

/* 共通CTAボタン */
.cta-button {
    display: inline-block;
    background: #F59E0B;
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
    font-size: 20px;
    text-align: center;
    width: 320px;
}
.cta-button:hover {
    background: #FCD34D;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* プライマリCTAボタン */
.primary-cta {
}

/* セカンダリCTAボタン */
.secondary-cta {
    background-color: #F59E0B;
    color: #fff;
    border: 2px solid #F59E0B;
}
.secondary-cta:hover {
    background-color: #FCD34D;
    border-color: #FCD34D;
}

/* 産業用PCの特徴 */
.product-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff, #f9f9f9);
    position: relative;
}
.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #FCD34D;
    margin-top: 5px;
}
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.feature-card {
    background: #fff;
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* リコーの産業用コンピュータ製品 */
.product {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9, #fff);
}
.product-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-item h3 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #1E3A8A;
}

.product-item p {
    font-size: 16px;
    color: #333;
}

.product-text {
    flex: 1;
    margin-right: 20px;
}

.product-image{
    width: 100%;
    max-width: 500px; /* 必要に応じて最大幅を設定 */
    height: 0;
    padding-bottom: 40%; /* アスペクト比に応じたパディングを設定 */
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 最終CTAセクション */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}
.cta-final {
    background: #F59E0B;
    color: #fff;
}

/* フッター */
footer {
    padding: 20px 0;
    background: #333;
    color: #ccc;
    text-align: center;
}
footer p {
    font-size: 14px;
}

/* マイクロインタラクション：スクロール時のフェードイン */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    .hero {
        text-align: center;
        padding: 60px 0;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-content {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 32px;
        margin-left: 0;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        gap: 10px;
        width: 100%;
    }
    .cta-button {
        width: 100%;
    }
    .hero-image {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .container {
        width: 80%;
    }
}

/* セクション間の余白調整 */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.subsection-title {
  font-size: 24px;
  color: #1E3A8A;
  margin-bottom: 15px;
}


/*表のレイアウト調整のためコメントアウト*/
/* 比較表のスタイル
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* 角丸を適用するために必要
    border: 1px solid #e0e0e0;
}

.comparison-table thead th {
    background-color: #f0f0f0;
    color: #333;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    font-weight: bold;
}

.comparison-table tbody tr:nth-child(odd) {
    background-color: #f8f8f8;
}

.comparison-table tbody td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: bold;
    color: #333;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
*/

.comparison-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    min-width: 700px;
    font-weight: bold;
    text-align: center;
  }
  .comparison-table thead th {
    padding: 1em .8em;
    border-right: 2px solid#fff;
  }
  .comparison-table td {
    color: #4d9bc1;
    padding: 1em;
  }
  .comparison-table thead th:not(:first-child) {
    background: #4d9bc1;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5em;
  }
  .comparison-table thead th span {
    font-size: .8rem;
  }
  .comparison-table thead th:nth-child(2) {
    background-color: #f88400;
    position: relative;
  }
  .comparison-table thead th:nth-child(2)::before {
    content: '';
    width: 100%;
    height: 10px;
    position: absolute;
    background-color: #f88400;
    left: 0;
    bottom: 100%;
  }
  .comparison-table thead th:nth-child(2)::after {
    content: '製造業などでオススメ！';
    width: max-content;
    color: #f88400;
    font-size: .8rem;
    padding: 0.3em 1em;
    background: #fff;
    border: 2px solid #f88400;
    border-radius: 100vh;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
  }
  .comparison-table tbody th, .comparison-table tbody td {
    border: 2px solid #fff;
  }
  .comparison-table tbody th {
    background-color: #4d9bc1;
    color: #fff;
  }
  .comparison-table tbody td {
    background-color: #e6f1f6;
  }
  .comparison-table td:nth-child(2) {
    color: #f88400;
    background: #fef1e3;
  }
  /* カーソルを合わせるとホバー＋着色 */
  /*.comparison-table td:hover {
      transform: scale(1.05);
      outline: 2px solid #4d9bc1;
  }
  .comparison-table td:nth-child(2):hover {
      transform: scale(1.05);
      outline: 2px solid #f88400;
  }*/
  @media screen and (max-width: 787px) {
    .table-scroll {
      overflow-x: auto;
    }
  }

/* レスポンシブ対応（768px以下） */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .comparison-table thead,
    .comparison-table tbody tr,
    .comparison-table th,
    .comparison-table td {
        display: block;
    }
    .comparison-table thead {
        display: none;
    }
    .comparison-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 120px;
        margin-right: 10px;
        text-align: left;
    }
    .comparison-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: auto;
        margin-right: 5px;
        text-align: left;
    }
    .comparison-table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .comparison-table td {
        border: none;
        border-bottom: 1px solid #eee;
        padding-left: 140px;
        text-align: left;
        position: relative;
    }
    .comparison-table td:before {
        position: absolute;
        left: 0;
        top: 0;
        padding: 10px;
    }
    .comparison-table tbody tr td:first-child {
        font-weight: bold;
    }
}
