@charset "utf-8";
/* CSS Document */

/* 基本設定とリセット */
:root {
    --primary-color: #0d2c54;  /* 信頼感のある濃いネイビーブルー */
    --secondary-color: #f8f9fa; /* 清潔感のある明るいグレー */
    --accent-color: #28a745;   /* 技術力や安心感を示すグリーン */
    --text-color: #333;
    --base-font-size: 16px;
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

* {
    box-sizing: border-box;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.header-nav li {
    margin-left: 25px;
}

.header-nav a {
    color: var(--primary-color);
    font-weight: bold;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 22%; /* ★PCでの高さを指定。この数値を20%や24%などに変えて好みの高さに調整できます */
    overflow: hidden;
    background-color: var(--primary-color);
    color: #fff;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}
.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 汎用セクションスタイル */
.section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.text-center {
    text-align: center;
}

/* 製品セクション */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card01 {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.3s;
}
.product-card01:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin-bottom: 15px;
}

/* 製品画像のプレースホルダー */
.placeholder-img {
    width: 100%;
    height: 180px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 強みセクション */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-item h3 {
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}
.btn-primary {
    background-color: var(--primary-color);
}

/* フッター */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.footer-nav {
    margin-bottom: 15px;
}
.footer-nav a {
    color: #fff;
    margin: 0 15px;
    opacity: 0.8;
}
.footer-nav a:hover {
    opacity: 1;
}
.copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* レスポンシブ対応 (768px以下で適用) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .header .container {
        flex-direction: column;
    }
    .header-nav {
        margin-top: 15px;
    }
    .header-nav li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
    
    .product-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
/* --- スライダー設定 (ここから追記) --- */

/* ヒーローセクションのスタイル変更 */
.hero {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 26.04%; /* (500 ÷ 1920) * 100 = 26.0416... */
    overflow: hidden;
    background-color: var(--primary-color);
    color: #fff;
}

/* スライドのラッパー */
.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 各スライドのスタイル */
.slide {
    position: absolute;
    top: -57px;
    left: 58px;
    width: 100%;
    height: 100%;
    background-size: cover;     /* 画像をエリア全体に表示 */
    background-position: center; /* 画像を中央に配置 */
    opacity: 0;                 /* 最初は非表示 */
    transition: opacity 1.5s ease-in-out; /* 1.5秒かけてフェードイン/アウト */
    z-index: 1;
}

/* 表示中のスライド */
.slide.active {
    opacity: 1; /* 表示中のスライドだけ表示 */
    z-index: 2;
}

/* スライド上のテキストコンテンツ（左上配置） */
.hero-content {
    position: absolute;
    top: 30px;    /* 上からの位置 */
    left: 30px;   /* 左からの位置 */
    bottom: auto;
    right: auto;
    transform: none;
    z-index: 3;
    text-align: left; /* テキストを左揃えに */
    width: auto;
    max-width: 45%; /* 横幅が広がりすぎないように調整 */
}
.hero-content h2 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* 左右のナビゲーションボタン */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.prev {
    left: 20px;
}
.next {
    right: 20px;
}


/* 768px以下の画面サイズ用の調整 */
@media (max-width: 768px) {
    .hero {
        height: 400px; /* スマホでは少し高さを抑える */
    }
    .hero-content h2 {
        font-size: 2rem;
    }
}

/* --- (ここまで追記) --- */
/* --- YouTube動画レスポンシブ対応 (ここから追記) --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 のアスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* assets/css/style.css の一番下にあるこのブロックの中に追記します */

@media (max-width: 768px) {
    /* （他の設定...） */

    .hero {
        padding-bottom: 75%; /* スマホでは4:3の比率に変更 */
    }

    /* （他の設定...） */
}
  /* --- ヘッダーレイアウト --- */
.header .container {
    display: flex;
    justify-content: space-between; /* ロゴとナビを両端に配置 */
    align-items: center;
}

.header-logo img {
    height: 45px; /* ロゴの高さを指定 */
    vertical-align: middle;
}  
html {
  scroll-behavior: smooth;
}
/* --- トップへ戻るボタン --- */

/* ページ内リンクをスムーズに動かす */
html {
  scroll-behavior: smooth;
}

.back-to-top-btn {
  /* 見た目の設定 */
  background-color: orange;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  border-radius: 20px; /* 角の丸み */
  
  /* テキストを上下左右中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;

  /* PCでのサイズ */
  width: 80px;
  height: 80px;

  /* 画面右下に固定 */
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100; /* 他の要素より手前に表示 */

  /* 影をつけて立体感を出す */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* ホバー時のエフェクト */
  transition: opacity 0.3s;
}

.back-to-top-btn:hover {
  opacity: 0.8; /* マウスを乗せたら少し薄くする */
}


/* --- モバイルでの表示 --- */
@media (max-width: 768px) {
  .back-to-top-btn {
    /* モバイルでのサイズ */
    width: 80px;
    height: 80px;
    font-size: 14px;
    border-radius: 15px;

    /* モバイルでの位置 */
    right: 15px;
    bottom: 15px;
  }
}

/* --- 製品注文テーブル --- */
.product-order-table {
  font-family: sans-serif;
  margin: 0.5em 0;
}

.product-order-table table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #a8a8a8;
}

.product-order-table th,
.product-order-table td {
  border: 1px solid #a8a8a8;
  padding: 12px;
  vertical-align: middle;
}

/* 1行目：操作ボタン */
.actions-header {
  background-color: #f0f0f0;
  text-align: right; /* ボタンを右寄せ */
}
.info-text {
  float: left; /* テキストを左寄せ */
  font-weight: normal;
  font-size: 0.9em;
  padding: 6px;
  border: 1px solid #a8a8a8;
  background-color: white;
}
.header-btn {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  margin-left: 5px;
  font-size: 0.9em;
  font-weight: bold;
  border: 1px solid #666;
}
.fax-btn { background-color: #d9534f; }
.contact-btn { background-color: #5bc0de; }
.quote-btn { background-color: #f0ad4e; }

/* 2行目：項目名 */
.table-header {
  background-color: #d2f5c2; /* 薄い緑 */
}
.product-col { width: 75%; }
.price-col { width: 25%; }

/* 3行目：製品データ */
.product-cell-content {
  display: flex;
  align-items: center;
  gap: 15px;
}
.product-image {
  max-width: 80px;
  height: auto;
}
.product-code {
  font-size: 0.9em;
  color: #555;
  margin: 0 0 5px 0;
}
.product-name {
  font-weight: bold;
  margin: 0;
}
.quote-link {
  font-weight: bold;
}


/* --- レスポンシブ対応 (スマホ表示) --- */
@media (max-width: 768px) {
  .product-order-table .table-header {
    display: none; /* PC用のヘッダー行を隠す */
  }
  .product-order-table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 2px solid #5bc0de;
  }
  .product-order-table td {
    display: block;
    text-align: right; /* テキストを右寄せ */
    border-bottom: 1px dotted #ccc;
    position: relative;
    padding-left: 50%;
  }
  .product-order-table td:before {
    /* データラベルを左側に表示 */
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
  }
  .product-order-table td:last-child {
    border-bottom: 0;
  }
  .actions-header {
    text-align: center;
  }
  .info-text {
    float: none;
    display: block;
    margin-bottom: 10px;
  }
  .product-cell-content {
    flex-direction: column; /* 画像とテキストを縦に並べる */
    align-items: flex-end; /* 右寄せ */
    text-align: right;
  }
}
/* 2行目（項目名）の行の高さを調整 */
.table-header th {
  padding-top: 1px;
  padding-bottom: 1px;
}
/* 3行目「お見積依頼」リンクに下線を追加 */
.quote-link {
  text-decoration: underline;
}

/* マウスを乗せたら下線を消す場合（任意） */
.quote-link:hover {
  text-decoration: none;
}

/* 特長セクションのグリッドレイアウト */
.features-grid {
    display: grid;
    /* 2つのカラムを作成し、それぞれ同じ幅(1fr)にする */
    grid-template-columns: 1fr 1fr; 
    gap: 20px; /* アイテム間の隙間 */
}

/* 各特長アイテムのレイアウト */
.feature-item {
    display: flex; /* 画像とテキストを横並びにする */
    align-items: center; /* 上下中央揃え */
    gap: 15px; /* 画像とテキストの間の隙間 */
    background-color: #f9f9f9; /* アイテムの背景色（任意） */
    padding: 15px; /* アイテムの内側の余白（任意） */
    border-radius: 8px; /* 角を丸くする（任意） */
}

/* 画像のスタイル */
.feature-item img {
    width: 100px; /* 画像の幅を固定 */
    height: 100px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像がコンテナに収まるように調整 */
    flex-shrink: 0; /* 画像が縮まないようにする */
}

/* テキスト部分のスタイル */
.feature-item h3 {
    margin-top: 0; /* h3の上部の余白をリセット */
    font-size: 1.1em; /* 文字サイズを少し大きく */
}

.feature-item p {
    margin-bottom: 0; /* pの下部の余白をリセット */
    font-size: 0.9em; /* 文字サイズを少し小さく */
    color: #555; /* 文字色を少し薄く */
}

/* スマートフォンなどの画面が小さい場合の調整（メディアクエリ） */
@media (max-width: 768px) {
    .features-grid {
        /* 画面が狭い場合は1列にする */
        grid-template-columns: 1fr;
    }
}
/* --- セット内容・アクセサリー用テーブル --- */
.accessory-table {
  width: 100%;
  border-collapse: collapse;
  margin:  0;
  font-size: 0.9em;
}

.accessory-table th,
.accessory-table td {
  padding: 10px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
  vertical-align: middle;
}

.accessory-table thead th {
  background-color: #f7f7f7;
  font-weight: bold;
}

/* 1列目と3列目（画像列）のスタイル */
.accessory-table td:nth-child(1),
.accessory-table td:nth-child(3) {
  width: 80px;
}

.accessory-table img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* --- レスポンシブ対応 (スマホ表示) --- */
@media (max-width: 768px) {
  /* スマホでは2列（画像｜製品名）のレイアウトに変更 */
  .accessory-table thead {
    display: none; /* PC用のヘッダーは隠す */
  }
  .accessory-table tr {
    display: flex; /* 1行を1つのフレックスコンテナにする */
    flex-wrap: wrap; /* 必要に応じて折り返す */
    border-bottom: 2px solid #007bff;
    margin-bottom: 15px;
  }
  .accessory-table td {
    border: none;
    width: 100%; /* tdをブロック要素のように扱う */
    display: flex; /* 画像とテキストを横並びにする */
    align-items: center;
  }
  
  /* 1行で2製品を表示していたのを、それぞれ別の行のように見せる */
  .accessory-table td:nth-child(1),
  .accessory-table td:nth-child(2) {
    width: 100%;
    flex-basis: 100%;
  }
  .accessory-table td:nth-child(3),
  .accessory-table td:nth-top_img_prompt {
    width: 100%;
    flex-basis: 100%;
  }
  
  /* 画像セルの幅を調整 */
  .accessory-table td:nth-child(1),
  .accessory-table td:nth-child(3) {
      width: auto;
      flex-basis: 80px;
  }
}
/* --- 同梱品リストのスタイル --- */
.included-items {
  list-style: none; /*箇条書きの黒丸を消す*/
  padding: 0; /*ブラウザ標準の余白を消す*/
  margin: 5px 0 0 0; /*製品名との間に少しだけ余白をとる*/
  font-size: 0.85em; /*文字を少し小さくする*/
  color: #555; /*文字色を少し薄くする*/
  line-height: 1.4;
}

.included-items li {
  display: inline; /*項目を縦並びから横並びにする*/
}

/* 最後の項目以外の後ろに区切り文字「/」を入れる */
.included-items li:not(:last-child)::after {
  content: ' / ';
  margin: 0 0.2em;
}
/* 「セット内容」見出しの下の余白を調整 */
#set-contents {
  padding-bottom: 20px;
}

/* --- 関連商品スライダー --- */
.related-products-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}
