@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');


body {
    background:#1a1a1a;
    background-size: cover;
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Arial, sans-serif;
    margin: 0;
    color: #ffffff;
}


header {
    display: flex;
    justify-content: center; /* 中央揃え */
    align-items: center;
    background-color: #3b3939;
    padding: 20px 0px; /* 大きめに表示 */
    position: fixed; /* スクロールに合わせて固定 */
    width: 100%;
    top: 0;
    z-index: 1000; /* 他の要素より前面に表示 */
    transition: padding 0.3s; /* スクロール時にスムーズに変化 */
    opacity: 0.9;
}

header.shrink {
    padding: 10px 20px; /* 小さくなった時のパディング */
}

.logo {
    margin-right: 100px; /* ロゴとナビゲーションの間にスペースを追加 */
}
.logo a{ display:inline-block; line-height:0; } 
.logo img {
    display: block;
    max-height: 50px; /* ロゴの最大高さを設定 */
    height: auto;
    width: auto;
    transition: max-height 0.3s; /* スクロール時にスムーズに変化 */
}

header.shrink .logo img {
    max-height: 30px; /* 小さくなった時のロゴの最大高さ */
}



/*ナビメニュー*/

/* PCと大きなデバイス用のスタイル */
.navbar ul {
    display: flex; /* 横並び表示 */
    justify-content: center; /* 中央揃え */
    padding: 0;
    margin: 0;
    gap: 20px;
}

.navbar ul li {
    list-style: none; /* リストスタイルなし */
    padding: 10px 12px; /* パディングで間隔を開ける */
}

.navbar ul li a {
    text-decoration: none; /* アンダーラインなし */
    color: white; /* 文字色 */
    font-size: 18px; /* 文字サイズ */
}

/* トリガー（テキストリンク） */
/* トリガー（a） */
.webcatalog-trigger{
  position: relative;
  display: inline-block;

}

/* プレビュー（初期は非表示） */
.webcatalog-trigger .webcatalog-preview{
  position: absolute;
  top: 100%;                /* ← テキスト直下にぴったり */
  left: 50%;
  transform: translateX(-50%); /* 縦方向は動かさない（隙間を作らない） */
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;     /* クリック可（同じa内なので同一遷移） */
  transition: opacity .18s ease;
  background: rgba(0,0,0,.75);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 1000;
}

.webcatalog-trigger .webcatalog-preview::before{
  content:"";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(0,0,0,.75);
}

.webcatalog-trigger .webcatalog-preview img{
  display: block;
  width: 220px;   /* お好みで */
  height: auto;
  border-radius: 6px;
}

/* 表示トリガー：ホバーのみ（クリック後に残らない） */
.webcatalog-trigger:hover .webcatalog-preview{
  opacity: 1;
  visibility: visible;
}

/* キーボード操作でも出したいなら、:focus-visible を足す（マウスクリックでは発火しない） */
.webcatalog-trigger:focus-visible .webcatalog-preview{
  opacity: 1;
  visibility: visible;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none; /* デフォルトでは非表示 */
    cursor: pointer;
    padding: 20px; /* クリックしやすくするためのパディング */
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}



.navbar ul li a:hover {
    color: #ddd;
}

/*サイド固定カタログ*/
#webCatalogLink {
    position: fixed;
    top: 30%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: #585858;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 0px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#webCatalogLink img {
    padding-top: 15px;
    width: 100px;
    height: 150px;
    object-fit: cover;
}

#webCatalogLink.hidden {
    opacity: 0;
    pointer-events: none;
}

#webCatalogLink a {
    text-align: center;
    color: #fff; /* 白文字 */
    text-decoration: none; /* アンダーラインを外す */
    transition: color 0.3s;
}

#webCatalogLink p:hover {
    color: #ddd; /* ホバー時の色を変更 */
}

#closeCatalog {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute; /* 位置を固定 */
    top: -10px; /* 上部に配置 */
    right: -8px; /* 右端に配置 */
}

#verticalCatalogLink {
    position: fixed;
    top: 30%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: #333;
    border-radius: 8px 0 0 8px;
    padding: 10px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スライドショーのスタイル */
.slideshow-container {
    margin: 90px auto 0 auto; /* ヘッダーの高さ分の余白を追加し、水平中央揃え */
    max-width: 100%;
    height: 90vh; /* 高さを固定 */
    position: relative;
    overflow: hidden; /* コンテナの外にはみ出さないようにする */
    display: flex; /* 中央揃えのためにフレックスボックスを適用 */
    justify-content: center; /* 中央揃え */
    align-items: center; /* 縦方向中央揃え */
}

.mySlides {
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex; /* 画像を中央揃え */
    justify-content: center;
    align-items: center;
}

.mySlides img,
.mySlides picture {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の縦横比を保ちながらコンテナにフィットさせる */
    display: block; /* ブロック要素として中央揃え */
    margin: 0 auto; /* 水平方向の中央揃え */
}

/* オーバーレイテキストのスタイル */
.overlay-text {
    position: absolute;
    bottom: 50px; /* 下から50pxの位置 */
    right: 20px; /* 右から20pxの位置 */
    font-size: 36px; /* テキストのサイズ */
    color: white; /* テキストの色 */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.8); /* 黒い外光 */
    font-weight: bold;
    z-index: 15; /* スライドショーより前面に表示 */
    text-align: right; /* テキストを右揃え */
}

/* Show current slide */
.mySlides.show {
    opacity: 1;
}

.slideshow-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    z-index: 20;
    text-align: center;
    max-width: 20%;
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slideshow-info .news-header {
    font-weight: bold; /* 太字 */
    margin-bottom: 0.5rem; /* 下部に余白 */
    color: #ffcc00; /* 目立つ黄色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* 視認性向上 */
}

.news-header{
    margin-top: 0;
}

.news-title{
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.slideshow-info .article-image {
    width: 50%;
    max-width: 300px;
    height: auto;
    margin: 0.5rem auto;
    display: block; /* ブロック要素にして縦に配置 */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slideshow-info .read-article-btn {
    display: block; /* ボタンをブロック要素に */
    width: 50%;
    margin: 0 auto;
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.5rem; /* ボタンに余白を追加 */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center; /* テキストを中央揃え */
}

.slideshow-info .read-article-btn:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.2); /* ホバー時に背景色を少し明るく */
}

/* 閉じるボタン */
.slideshow-info .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.slideshow-info .close-btn:hover {
    color: #ffcc00;
}

.slideshow-container:has(.mySlides.show:first-child) .overlay-text {
  opacity: 0; pointer-events: none; /* もしくは display:none; */
}
/* Next & previous buttons */
.prev, .next {
    all: unset; /* ボタンのデフォルトスタイルをリセット */
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 縦方向の中央揃え */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20; /* 他の要素より前面に表示 */
}

.prev {
    left: 10px; /* 左の余白を設定 */
    border-radius: 3px 0 0 3px;
}

.next {
    right: 10px; /* 右の余白を設定 */
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* The dots/bullets/indicators */
/* The dots/circles */
.dot-container {
    position: absolute;
    bottom: 20px; /* 画像の下端から20pxの位置に設定 */
    width: 100%;
    text-align: center;
    z-index: 10; /* 他の要素より前面に表示 */
}

.dot {
    all: unset; /* デフォルトのスタイルをリセット */
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb; /* ドットの背景色 */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    
}

.dot.active, .dot:hover {
    background-color: #717171; /* アクティブまたはホバー時の背景色 */
}

/* Section styles */
section {
    padding: 60px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* セクションのh2タグを中央揃え */
section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* メインコンテンツ */
main {
    text-align: center;
}

h1, h2 {
    color: #f0f0f0;
    overflow: hidden;
    display: inline-block;
    position: relative;
    text-align: center;
}

h1 span, h2 span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

h1 span:nth-child(1), h2 span:nth-child(1) { transition-delay: 0.10s; }
h1 span:nth-child(2), h2 span:nth-child(2) { transition-delay: 0.15s; }
h1 span:nth-child(3), h2 span:nth-child(3) { transition-delay: 0.20s; }
h1 span:nth-child(4), h2 span:nth-child(4) { transition-delay: 0.25s; }
h1 span:nth-child(5), h2 span:nth-child(5) { transition-delay: 0.30s; }
h1 span:nth-child(6), h2 span:nth-child(6) { transition-delay: 0.35s; }
h1 span:nth-child(7), h2 span:nth-child(7) { transition-delay: 0.40s; }
h1 span:nth-child(8), h2 span:nth-child(8) { transition-delay: 0.45s; }
h1 span:nth-child(9), h2 span:nth-child(9) { transition-delay: 0.50s; }
h1 span:nth-child(10), h2 span:nth-child(10) { transition-delay: 0.55s; }
h1 span:nth-child(11), h2 span:nth-child(11) { transition-delay: 0.60s; }
h1 span:nth-child(12), h2 span:nth-child(12) { transition-delay: 0.65s; }
h1 span:nth-child(13), h2 span:nth-child(13) { transition-delay: 0.70s; }
h1 span:nth-child(14), h2 span:nth-child(14) { transition-delay: 0.75s; }
h1 span:nth-child(15), h2 span:nth-child(15) { transition-delay: 0.80s; }
h1 span:nth-child(16), h2 span:nth-child(16) { transition-delay: 0.85s; }
h1 span:nth-child(17), h2 span:nth-child(17) { transition-delay: 0.90s; }
h1 span:nth-child(18), h2 span:nth-child(18) { transition-delay: 0.95s; }
h1 span:nth-child(19), h2 span:nth-child(19) { transition-delay: 1.00s; }
h1 span:nth-child(20), h2 span:nth-child(20) { transition-delay: 1.05s; }
h1 span:nth-child(21), h2 span:nth-child(21) { transition-delay: 1.10s; }


h1.visible span, h2.visible span {
    transform: translateY(0);
    opacity: 1;
}

/* 特徴セクションの幕が上がるアニメーション */
.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(475px, 1fr));
    max-width: 1000px;
    margin: 60px auto;
    gap: 20px;
    align-items: stretch; /* アイテムの高さを揃える */
}

.features-list li {
    padding: 20px;
    width: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #1a1a1a; /* 最初は黒 */
}

.features-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ececec;
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out;
}

.features-list li:nth-child(1)::before { transition-delay: 1.2s; }
.features-list li:nth-child(2)::before { transition-delay: 1.8s; }
.features-list li:nth-child(3)::before { transition-delay: 2.0s; }
.features-list li:nth-child(4)::before { transition-delay: 2.4s; }

.features-list li.visible::before {
    transform: translateX(0);
}

.features-list li.visible {
    transition: color 0.5s ease-in-out 0.5s;
}

.feature-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #1a1a1a; /* 白色で表示 */
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2; /* 他の要素より前に */
    opacity: 1; /* 非表示になっていないか確認 */
}

.feature-title {
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    min-height: 75px; /* すべてのタイトルの高さを統一 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-desc {
    font-size: 16px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    min-height: 40px; /* 説明の高さを統一 */
    display: flex;
    align-items: center;
    justify-content: center;
}


.feature-icon {
    width: 200px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.feature-icon img {
    width: 100%;
    height: auto;
}



/* 商品リストの初期状態 */
.product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding-bottom: 40px;
}

.product-item-container{
    width: 80%;
    background: rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    margin: 10px auto;
    transform: translateY(50px);
    padding: 0 10px 60px;
}

.product-item-container img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
}

.product-item-container h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.product-item-container h3 ruby rt {
    line-height: 1.3;
    padding-bottom: 5px;
}

.product-img-type {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}


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

.left-content{
    width: 40%;
    position: sticky; /* スクロールに追従 */
    top: 20%; /* 上部からの距離（固定開始位置） */
    align-self: start; /* フレックス要素の位置調整（必要に応じて） */
}

.right-content{
    width: 50%;
}


.product-description {
    width: auto;
    text-align: left;
}

.product-description p{
    font-size: 14px;
    margin: 5px 0 5px 0;
}

.product-description strong{
    font-weight: bold;
    font-size: 16px;
}

.product-description ul{
    padding: 10px;
}

.product-description li{
    margin-top: 15px;
}

.product-description table{
    margin: 0px 0 20px auto;
    width: 100%;
    border-collapse: collapse; /* 枠線を重ねない */
}

.product-description th {
    text-align: left; /* 左揃え */
    font-weight: bold; /* 太字 */
    padding: 8px 0; /* 上下の余白 */
    color: #fff; /* ヘッダーの色 */
}

.product-description td {
    padding: 3px; /* 上下の余白 */
}

.product-description tr:not(:last-child) {
    border-bottom: 1px solid transparent; /* 余白で区切る感覚を演出 */
    margin-bottom: 10px; /* 行間に余白 */
}

.detail-image{
    margin: 25px 0;
}

.detail-image img{
    width: 45%;
}

.detail-image strong{
    background-color: #fff;
    color: #000000;
    padding: 5px 30px;
}

.detail-image p{
    margin: 20px 0 10px 0;
}
/* アイコンコンテナ（自動折り返し＆列数可変） */
.icon-container{            /* ← これが肝 */
  gap: 10px;
  justify-content: start;
  align-items: center;
  margin-bottom: 30px;
}

/* アイコン画像 */
.icon-container img{
  width: 50px;                   /* 既存のサイズのまま */
  height: auto;
  transition: transform .3s ease;
}

/* Flooring Grade セクション */
.grade-section {
    display: flex; /* 横並びに配置 */
    justify-content: flex-start; /* 左寄せに配置 */
    align-items: center; /* 垂直方向に中央揃え */
    gap: 10px; /* アイコン間のスペースを10px */
    margin-top: 20px; /* 上のセクションとの余白 */
    text-align: center; /* セクション全体を中央揃え */
}

.grade-icons {
    display: flex; /* アイコンを横並びに配置 */
    justify-content: center; /* 中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 10px; /* アイコン間のスペース */
}

.grade-icons img {
    width: 80px; /* アイコンの幅 */
    height: auto; /* 縦横比を維持 */
    transition: transform 0.3s ease; /* ホバー時のアニメーション */
}

.left-content,
.right-content {
    opacity: 0; /* 初期状態を非表示 */
    transform: translateY(50px); /* 下に少しズラしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}



/*カラーレパートリー*/
.color-circle-container {
    position: relative;
    width: 400px;
    height: 300px;
    margin: auto;
    perspective: 1000px; /* 3D効果 */
  }
  
  .color-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* 画像のスタイル（3D配置） */
.color-circle img {
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* 画像と名前をまとめたコンテナ */
.color-entry {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    width: 150px;
    height: auto;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  }

/* 画像 */
.color-entry img {
    margin-top: -65px;
    width: 100px;
    height: auto;
}

/* 色の名前 */
.color-label {
    position: absolute;
    top: 130%;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: white;
    transition: opacity 0.5s ease-in-out;
  }

.color-entry.active .color-label {
  opacity: 1;
  font-weight: bold;
}


/* クリック時に大きくなる */
/* === カラーカードの並び（GRID版） === */
.color-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* デフォ3列 */
  gap: 20px;
  width: 80%;
  margin: 0 auto;
}

/* 各カード */
.color-item{
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,.1);
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease;
}
.color-item:hover{ transform: scale(1.03); }

/* 画像は横幅いっぱいでトリミング */
.color-item img{
  width: 100%;
  aspect-ratio: 4 / 3;     /* 比率固定（対応ブラウザ） */
  object-fit: cover;
  border-radius: 8px;
}

/* タイトル */
.color-item p{
  font-size: 12px;
  text-align: center;
  margin: 0;
}

.color-item p{
    font-size: 12px;
    text-align: center;
}

.color-item:hover {
    transform: scale(1.05);
}

.color-item img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

.color-item.active {
    background: rgba(255, 255, 255, 0.3); /* 背景を少し明るく */
    transform: scale(1.1); /* 少し拡大 */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5); /* 光るような効果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ナビゲーションボタン */
button.color-prev,
button.color-next {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  font-size: 18px;
  width: 50px;
  border-radius: 5px;
}

button.color-prev {
  left: 10px;
}

button.color-next {
  right: 10px;
}


/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
#bona{
    max-width: 960px;
    margin: 0 auto;
}

:root{
/* アクセント色はここで調整（ロゴのオレンジに近い色） */
--accent: #ea6b2a;
--accent-ink: #4a2b12;
--bg: #ffffff;
--line: #e8e8e8;
--text: #222;
--muted: #666;
}

.table-wrap{
max-width: 1080px;
margin: 1.5rem auto;
overflow-x: auto;            /* スマホで横スクロール */
-webkit-overflow-scrolling: touch;
}

.coating-table{
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: var(--bg);
color: var(--text);
box-shadow: 0 10px 28px rgba(0,0,0,.08);
border-radius: 14px;
overflow: hidden;            /* 角丸を効かせる */
}

/* 1行キープ（<br> は効く） */
.coating-table th,
.coating-table td{
  white-space: nowrap;     /* 行の折り返し禁止、<br> は改行される */
  word-break: normal;      /* 変な途中改行を防ぐ保険 */
  overflow-wrap: normal;
}

.coating-table caption{
    text-align: center;
    padding: .85rem 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #000000;
    background: linear-gradient(180deg,#fafafa,#f4f4f4);
    border-bottom: 1px solid var(--line);
}

.coating-table thead th{
    padding: .9rem 1rem;
    text-align: center;
    background: linear-gradient(180deg,#f9f9f9,#f1f1f1);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    white-space: nowrap;
    font-size: 1rem;
}

.coating-table tbody th,
.coating-table tbody td{
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 1rem;
}

.coating-table tbody th[scope="row"]{
    background: #fcfcfc;
    font-weight: 600;
    text-wrap: balance;
}

/* 交互の薄い背景（行を読みやすく） */
.coating-table tbody tr:nth-child(even) td,
.coating-table tbody tr:nth-child(even) th[scope="row"]{
background: #fafafa;
}

/* ── BonaUV 列の“おしゃれ強調” ───────────────── */
/* ヘッダーセル：グラデ＋バッジ */
.coating-table thead .col-bona{
position: relative;
color: #000000;
background: linear-gradient(135deg,#fff3e8 0%, #ffe6d3 100%);
border-left: 3px solid var(--accent);
border-right: 3px solid var(--accent);
box-shadow: inset 0 0 0 9999px rgba(255,140,64,0.04);
}

/*
.coating-table thead .col-bona::after{
content: "おすすめ";
position: relative;
top: -1px;
margin-left: .5rem;
display: inline-block;
font-size: .72rem;
line-height: 1;
padding: .25rem .55rem;
border-radius: 999px;
background: var(--accent);
color: #fff;
box-shadow: 0 4px 14px rgba(234,107,42,.35);
}
*/

/* データセル：淡いグラデ＋左境界＋軽い浮き */
.coating-table td.bona{
background: linear-gradient(180deg,#fffaf5 0%, #fff1e8 100%);
border-left: 3px solid var(--accent);
border-right: 3px solid var(--accent);
font-weight: 700;
letter-spacing: .2px;
position: relative;
box-shadow:
    inset 0 0 0 9999px rgba(255,140,64,0.035),
    inset 0 1px 0 rgba(255,255,255,.6);
}

/* 4列目全体の文字を少し大きく */
.coating-table td.bona,
.coating-table thead .col-bona{
font-size: 1.15rem;
}


.bona-attention{
    text-align: left;
    margin: 0 auto;
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/


/* 施工事例スライドショーのスタイル */
.case-slideshow-container {
    position: relative;
    width: 80%;
    overflow: hidden;
    margin: 30px auto;
}

.case-slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.caseSlides {
    min-width: 20%; /* 5枚表示するために20% */
    box-sizing: border-box;
    padding: 10px;
}

.case-image {
    width: 100%;
    height: 300px;
    cursor: pointer;
    object-fit: cover;
}

.case-caption {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.85rem;
}

.case-prev, .case-next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 10px 20px;
    color: white;
    font-weight:1000;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.case-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.case-next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.case-prev:hover, .case-next:hover {
    background-color: rgba(0,0,0,0.8);
}


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

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

/* お問い合わせフォームのスタイル */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box; /* 余白を含むボックスサイズにする */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    padding: 0 10px; /* 左右に余白を追加 */
    box-sizing: border-box; /* 余白を含むボックスサイズにする */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    text-align: left; /* 左揃え */
}

.form-group .required,
.form-group .optional {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 15px; /* 左右を丸く */
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px; /* フォームグループ間の余白を設定 */
}

.dimensions-input {
    display: flex;
    align-items: center;
    gap: 10px; /* 入力フィールド間のスペースを設定 */
}

.dimension {
    display: flex;
    align-items: center;
}

.dimension input {
    width: 80px; /* 入力フィールドの幅を設定 */
    padding: 5px;
    margin-right: 5px; /* 入力フィールドと単位の間のスペースを設定 */
}

.unit {
    font-size: 14px;
    color: #666; /* 単位のテキスト色 */
}

.range {
    position: absolute;
    padding-top: 55px;
    font-size: 12px;
    color: #888; /* 範囲表示のテキスト色 */
    margin-top: 2px; /* 範囲表示と入力フィールドの間のスペースを設定 */
}

.dimensions-input input {
    width: 100px; /* 入力フィールドの幅を設定 */
    padding: 5px;
}


.form-group .required {
    background-color: #9e1212; /* 柔らかい赤色 */
}

.form-group .optional {
    background-color: #155b94; /* 柔らかい青色 */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #555;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

/* チェックボックスとラジオボタンにはwidthを指定しない */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    accent-color: #155b94;  /* ←色指定（任意、なくてもOK） */
    margin-right: 7px;
}

#coating-fc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(70px, 1fr));
    gap: 0 16px;   /* 行間・列間のスペース */
    margin-bottom: 6px;
}

/* チェックボックスリスト横並び or 縦並びの調整 */
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px; /* 上下 左右の間隔 */
    margin-top: 6px;
    margin-bottom: 2px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0; /* デフォルトの下余白を消す */
    gap: 6px; /* チェックボックスとラベルの間 */
}

.checkbox-list input[type="checkbox"] {
    accent-color: #298dff;  /* お好みでチェック色調整 */
    width: 18px;
    height: 18px;
    margin: 0; /* 変な余白除去 */
    vertical-align: middle;
}

.radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px; /* 上下 左右の間隔 */
    margin-top: 15px;
    margin-bottom: 2px;
}

.note{
    text-align: left;
    margin: 0;
    font-size: 0.8rem;
}

.limit-note{
  color:#cfd3da;
  font-size:.92rem;
  margin:.5rem 0 1rem;
  text-align: left;
}

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

#estimate-range-text{
    text-align: left;
}

/* プレビュー全体を縦並びに（デフォ） */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 16px;
  min-width: 320px;
  width: 100%;
  max-width: 420px;
}

/* 1ファイル分の枠 */
.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #444;
  border-radius: 8px;
  box-shadow: 0 2px 6px #2225;
  width: 90%;
  min-width: 0;
}

/* サムネ画像・アイコン */
.preview-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

.preview-name {
  flex: 1 1 0;
  font-size: 0.75em;
  color: #fff;
  word-break: break-all;
  margin-right: 6px;
}

/* ボタンは小さめに・横並びで */
.preview-btns {
  display: flex;
  flex-direction: row;
  gap: 6px;
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/

/*商品選択*/
.product-preview{
  margin: 5px auto 20px auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.product-preview img{
  width: 240px;      /* お好みで調整 */
  height: 240px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.preview-meta{
  flex: 1;
  min-width: 220px;
}
.preview-meta h4{
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}
.meta-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.meta-list li{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  text-align: left;
}
.meta-list li span{
  color: #ccc;
}
.meta-list li strong{
  font-weight: 700;
  font-size: 0.85rem;
}

/* 親からはみ出さないように：プレビュー枠の固定幅を解除 */
#image-group.product-preview{
  width: 100% !important;     /* ← 500px を上書き */
  max-width: 100% !important;
  box-sizing: border-box;
  display: flex;              /* 画像＋テキストの横並び想定 */
  flex-wrap: wrap;            /* 狭い時は次の行へ回す */
  gap: 12px;
}

/* 子要素は縮められるように。min-width:0 が超重要（flex 子のはみ出し防止） */
#image-group.product-preview > *{
  min-width: 0;
}

/* 画像は親を超えない */
#image-group.product-preview img{
  max-width: 100%;
}

/* テキストが長い時の折返し（英数や長い単語対策） */
#image-group.product-preview,
#image-group.product-preview *{
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}


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

.coating-container{
    align-items: flex-start;
    max-width: 100%;
}

.coating-clear-container{
    padding: 10px;
    background-color: #555;
}

#coating-checkbox-list label {
    min-width: 58px;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1em;
    font-weight: normal;
    white-space: nowrap;
}

#coating-estimate-radio{
    background-color: #555;
    padding: 10px;
}
#coating-estimate-fc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(70px, 1fr));
    gap: 0 16px;   /* 行間・列間のスペース */
    margin-bottom: 6px;

}

/* ── “カラー”のラジオ（このブロックだけ適用） ───────────────── */
#coating-group .radio-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)); /* 2列 */
  gap: 12px 14px;
}

/* 1つ目（マリブ・ナチュラル〈クリア〉）だけ1行フル幅 */
#coating-group .radio-list > label:first-child{
  grid-column: 1 / -1;
}

/* ラベルをカード風にしてクリック範囲を広げる */
#coating-group .radio-list > label{
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* ラジオ自体の見た目（対応ブラウザではアクセント色） */
#coating-group .radio-list input[type="radio"]{
  accent-color: #ea6b2a; /* 対応ブラウザのみ */
}


/* ── #coating-group 内の色サンプルだけを対象 ── */
#coating-group .sample-img > div{
  padding: 8px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
  transition: opacity .2s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* 画像の比率をそろえて崩れ防止（任意） */
#coating-group .sample-img > div img{
  width: 100%;
  aspect-ratio: 4 / 3; /* 正方形にしたい場合は 1 / 1 */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* 選択中のカード（強調） */
#coating-group .sample-img > div.is-active{
  opacity: 1;
  filter: none;
  border-color: #ea6b2a;
  box-shadow: 0 0 0 3px rgba(234,107,42,1), 0 6px 16px rgba(0,0,0,.06);
}

/* 非選択カード（淡く） */
#coating-group .sample-img > div.is-dim{
  opacity: .45;
  filter: grayscale(55%);
}

/* ホバー時は少しだけ見やすく（非選択でも） */
#coating-group .sample-img > div:hover{
  opacity: .8;
  filter: grayscale(20%);
}

/* 小さめボタン用 */
.btn-sm {     
    font-size: 0.85em;
    padding: 4px 10px;
    height: 30px;
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* 色（任意） */
.secondary {
  background: #666;
  color: #fff;
}



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


/* プレビュー全体を縦並びに（デフォ） */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 16px;
  min-width: 320px;
  width: 100%;
  max-width: 420px;
}

/* 1ファイル分の枠 */
.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #444;
  border-radius: 8px;
  box-shadow: 0 2px 6px #2225;
  width: 90%;
  min-width: 0;
}

/* サムネ画像・アイコン */
.preview-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

.preview-name {
  flex: 1 1 0;
  font-size: 0.75em;
  color: #fff;
  word-break: break-all;
  margin-right: 6px;
}

/* ボタンは小さめに・横並びで */
.preview-btns {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.preview-btns button {
  background: #37b34a;
  border: none;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.92em;
  cursor: pointer;
  transition: background 0.2s;
}

.preview-btns button:hover { background: #218838; }

.btn-add {
  background: #298dff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 0.95em;
  margin-right: 10px;
  cursor: pointer;
}
.btn-add:disabled { background: #888; }


.summary-block {
  background: #f7fafc;
  border-radius: 6px;
  margin-bottom: 13px;
  font-size: 0.97em;
  color: #333;
}

.summary-block button {
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 0.9em;
}

#add-estimate-block-btn {
    display: block;         /* ←コレで解決 */
    margin: 14px auto 16px auto;
    width: 60%;
    background-color: #37b34a; /* 通常時 */
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 1.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

#add-estimate-block-btn:hover {
    background-color: #218838;  /* ホバー時 */
}

#estimate-blocks-list {
    position: absolute;
    top: 0;
    right: -340px; /* 必要に応じて調整 */
    width: 300px;
    height: auto;
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    display: none; /* 初期状態で非表示 */
}

#contact {
  position: relative; /* ★絶対必要 */
}

.contact-form {
    position: relative;
}

.sample-img{
display: grid;                 /* 2カラムのグリッドに */
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.sample-img > div{
display: flex;
flex-direction: column;
align-items: center;
}
.sample-img img{
width: 100%;                   /* セル幅いっぱい */
max-width: 160px;              /* 少し小さめに（お好みで調整） */
height: auto;
display: block;
}
.sample-img p{
margin-top: 6px;
font-size: 12px;               /* 文字も少しだけ小さく */
text-align: center;
}

label:has(> input[name="specification_sample"]) br,
label:has(> input[name="coating_sample"]) br{
  display:none;
}

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

textarea {
    resize: vertical;
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.required {
    color: red;
}

#product-image-container {
    display: none; /* デフォルトでは非表示 */
    margin-top: 20px;
    text-align: center;
}

#product-image {
    width: 40%; /* 画像サイズ調整 */
    max-width: 400px;
    height: auto;
}

#color-image-container {
    display: none;
    margin-top: 20px;
    text-align: center;
}

#color-image {
    width: 50%; /* 画像サイズ調整 */
    max-width: 400px;
    height: 100px;
}


#sending-overlay {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4);
  z-index: 9999;
}
#sending-overlay .so-box {
  background: #fff; color:#333; text-align: center;
  padding: 20px 24px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  min-width: 220px;
}
#sending-overlay .so-spinner {
  width: 32px; height: 32px; margin: 0 auto 10px;
  border: 3px solid #ddd; border-top-color: #333; border-radius: 50%;
  animation: so-spin 1s linear infinite;
}
@keyframes so-spin { to { transform: rotate(360deg); } }


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


/* ===== モバイル用サマリー（#contact 内でスクロール追従） ===== */
#mobile-summary-bar {
  position: sticky;          /* セクション内で追従 */
  top: 60px;                 /* ヘッダーに被らないよう余白 */        /* 左に少し寄せる */
  width: fit-content;
  display: none;             /* 初期は非表示（JSで .visible 付与） */
  gap: 8px;
  z-index: 1100;
}

#mobile-summary-bar.visible { 
  display: flex;  /* ← 表示にする */
}

#mobile-summary-bar .pill {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.7);
  color: #fff; 
  border: 0; 
  border-radius: 999px;
  font-size: 14px; 
  line-height: 1; 
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

#mobile-summary-bar .pill .count-badge {
  min-width: 1.8em; 
  padding: 3px 6px; 
  text-align: center;
  background: #ffcc00; 
  color: #222; 
  border-radius: 999px; 
  font-weight: 700;
}

/* ===== モーダル ===== */
#blocks-modal {
  position: fixed; 
  inset: 0; 
  display: none;
  align-items: center; 
  justify-content: center;
  background: rgba(0,0,0,.45); z-index: 1200;
  color: #333;
}

#blocks-modal.open { 
    display: flex; 
}

#blocks-modal .modal-dialog {
  position: relative;
  width: min(92vw, 720px);
  max-height: 80vh; 
  overflow: auto;
  background: #fff; 
  border-radius: 14px; 
  padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

#blocks-modal .modal-close {
  position: absolute; 
  top: 10px; 
  right: 12px;
  font-size: 26px; 
  background: transparent; 
  border: none; 
  cursor: pointer;
  color: #333;
}

#blocks-modal h4 { 
    margin: 0 0 10px; 
    font-size: 18px; 
}

/* モバイル用モーダルの中のカード */
#blocks-modal .modal-card{
  background:#fff;
  border-radius:12px;
  margin:16px 0;
  padding:16px;
  box-shadow:0 1px 6px rgba(0,0,0,.08);
}

#blocks-modal .modal-card__title{
  background:#555;
  color:#fff;
  font-weight:700;
  margin:-16px -16px 12px;
  padding:10px 12px;
  border-radius:12px 12px 0 0;
}

#blocks-modal .modal-dl{
    display:grid;
    text-align: left;
    margin: 0;
    row-gap:.4rem;
    column-gap:1rem;
}

#blocks-modal .modal-dl dt{
    color:#666;
}


#blocks-modal .modal-ctrls{
    display:flex;
    gap:8px;
    justify-content:flex-end;
    margin-top:12px;
}

#blocks-modal .modal-ctrls .modal-edit,
#blocks-modal .modal-ctrls .modal-del{
  border:1px solid #999;
  background:#f7f7f7;
  border-radius:6px;
  padding:6px 10px;
  cursor:pointer;
}

#blocks-modal .modal-ctrls .modal-del{
    border-color:#b00020;
    color:#b00020;
    background:#fff;
}

#blocks-modal .modal-block {
  background: #fafafa; 
  border: 1px solid #eee; 
  border-radius: 10px;
  padding: 12px; 
  margin: 10px 0;
}

#blocks-modal .modal-block dl { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px 10px; 
}

#blocks-modal .modal-block dt { 
    font-weight: 700; 
    width: 7em; 
}

#blocks-modal .modal-dl dd{
    margin: 0;
}

.modal-card__actions{
  display:flex; gap:8px; margin-top:8px; justify-content:flex-end;
}
.btn-xs{ font-size:.875rem; padding:.3rem .6rem; border-radius:6px; }
.btn-xs.danger{ color:#fff; background:#d33; border:0; }

/* ===== Modal ===== */

/* モーダルの基本スタイル */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding-top: 50px;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

/* モーダルコンテンツ */
.modal-content {
    position: relative;
    background: black;
    text-align: center;
    max-width: 70%;
    padding: 50px;
    animation: fadeIn 0.3s ease-in-out;
}

/* 画像 */
.modal-content img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

/* タイトル */
.modal-content p {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

/* 閉じるボタン */
.close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* モーダル全体 */
#caseModal.open {
  display: flex;
  flex-direction: column;   /* ←縦並びに */
  align-items: center;      /* 中央寄せ */
  justify-content: flex-start;
  padding: 20px;
}

/* 画像 */
#caseModalImage {
  max-width: 90%;
  max-height: 60vh;
  margin-bottom: 20px;      /* キャプションとの間隔 */
  object-fit: contain;
}

/* キャプション */
#caseCaption {
  max-width: 90%;
  color: #fff;
  text-align: left;         /* 左寄せなら */
  line-height: 1.6;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 80px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

#caseModal .modal-content {
    max-width: 80%;
    height: auto;
    max-height: 70vh; /* 高さを画面の70%に設定 */
    object-fit: cover; /* 縦横比を保持しつつトリミング */
    padding: 0;
    padding-top: 50px;
}

#modalDetail {
    position: relative; /* relative にして他の要素との位置関係を調整 */
    width: 60%; /* 横幅を80%に設定 */
    color: white; /* テキストの色を白にする */
    background-color: rgba(0, 0, 0, 0.7); /* 背景を黒の半透明に設定 */
    padding: 10px; /* テキストの周りに余白を追加 */
    border-radius: 5px; /* 角を少し丸める */
    font-size: 16px; /* 説明文のフォントサイズを調整 */
    z-index: 20; /* 他の要素より前面に表示 */
    text-align: left; /* テキストを左揃えにする */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
}

/* 施工事例モーダルの説明文のスタイル */
.case-detail {
    display: none;
}

#caseCaption {
    margin: 20px auto;
    text-align: left;
    width: 50%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    margin-bottom: 100px;
}


/* 背景クリック領域は選択不可に */
#imageModal, #caseModal {
  user-select: none;
  -webkit-user-select: none;
}
/* 中身（テキストや説明）は選択OKのまま */
#imageModal .modal-content,
#caseModal .modal-content {
  user-select: text;
  -webkit-user-select: text;
}

#caseModalImage { max-height: 70vh; width: auto; }

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


/*---------------------------------------------------------------------------------------*/
/* フッターのスタイル */
footer {
    background-color: #3b3939;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.exterior img{
    padding-top: 22px;
    max-width: 240px;
    max-height: 180px;
    object-fit: cover;
}

.footer-container > div {
    margin: 10px 30px;
    text-align: left; /* 左揃えに変更 */
}

.footer-center {
    margin:10px 50px ;
}

/* 会社情報のセクションを広く取る */
.footer-company {
    flex: 2; /* 2倍の幅を取る */
}

.footer-container h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-container p,
.footer-container ul {
    margin: 0;
    padding: 0;
}

.footer-container ul {
    list-style: none;
}

.footer-container ul li {
    margin: 5px 0;
}

.footer-container ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-container ul li a:hover {
    color: #ddd;
}

.footer-bottom {
    background-color: #2a2a2a;
    padding: 10px 0;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* 外部リンクセクション */
.footer-external-links {
    flex: 1;
}

.footer-external-links ul {
    text-align: left;
}

.footer-external-links ul li a {
    display: inline-block;
}

/* フッター内のリンクのスタイル */
footer a {
    color: #fff; /* 白文字 */
    text-decoration: none; /* アンダーラインを外す */
    transition: color 0.3s;
}

footer a:hover {
    color: #ddd; /* ホバー時の色を変更 */
}

/*追加アニメーション*/

/* フェードインアニメーション用 */
.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
}


/*入力フォームメールアドレスドメイン予測*/
#suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    color: #000000;
    max-width: 100%;
    z-index: 1000;
    font-size: 14px;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#suggestions div:hover {
    background-color: #f0f0f0;
}
