body {
    background: -webkit-linear-gradient(145deg, #000000, #1a1a1a, #2a2a2a);
    background: -moz-linear-gradient(145deg, #000000, #1a1a1a, #2a2a2a);
    background: linear-gradient(145deg, #000000, #1a1a1a, #2a2a2a);
    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; /* 小さくなった時のロゴの最大高さ */
}

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

/*ナビメニュー*/

/* 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; /* コンテナの外にはみ出さないようにする */
}

.mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

img {
    width: 100%;
    height: 100%; /* 画像をコンテナの高さに合わせる */
    object-fit: cover; /* 画像の縦横比を保ちながらコンテナにフィットさせる */
    vertical-align: middle;
}

/* オーバーレイテキストのスタイル */
.overlay-text {
    position: absolute;
    bottom: 50px; /* 下から50pxの位置 */
    right: 20px; /* 右から20pxの位置 */
    font-size: 40px; /* テキストのサイズ */
    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; /* テキストを右揃え */
}

.overlay-text.centered {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -60%);
    bottom: auto;      /* 右下配置を打ち消す */
    right: auto;       /* 右下配置を打ち消す */
    text-align: center;
    width: min(90%, 1200px);
    font-size: clamp(28px, 4vw, 64px); /* 既存より少し大きめ＆レスポンシブ */
    line-height: 1.3;
}

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

.overlay-text .overlay-lead {
  font-size: .75em;         /* 1行目だけ 80% に */
  line-height: 1.2;
  display: inline-block;    /* 行高の制御が安定します */
  letter-spacing: .02em;    /* お好みで */
  opacity: .95;             /* お好みで軽くトーン調整 */
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/

.slideshow-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #585858;
    padding: 1rem;
    border-radius: 8px;
    z-index: 20;
    text-align: center;
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding-right: 2.8rem;  /* ← ここで見出しとボタンの重なりを回避 */  
}


.news-header {
    font-size: clamp(14px, 1.2vw, 18px); /* テキストサイズ調整 */
    font-weight: bold; /* 太字 */
    margin: 0;
    color: #ffcc00; /* 目立つ黄色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* 視認性向上 */
    margin-top: 0;
}


.news-title{
    font-size: clamp(10px, 1.2vw, 18px); /* テキストサイズ調整 */
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

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

.read-article-btn {
    display: block; /* ボタンをブロック要素に */
    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; /* テキストを中央揃え */
    font-size: clamp(12px, 1vw, 16px);
}


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


.slideshow-info .toggle-btn{
  position: absolute;
  top: 15px;
  right: 6px;
  left: auto !important;     /* 万一 left を当てる別スタイルがあっても無効化 */
  z-index: 21;

  background: transparent !important;
  border: none !important;
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.5rem;         /* お好みで */
  cursor: pointer;
  box-shadow: none;          /* グレーの丸背景が付く場合の保険 */
}

.slideshow-info .toggle-btn.close-btn{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

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

/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*newsモーダル*/
.slideshow-modal {
    display: none; /* 初期は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 背景を半透明に */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.slideshow-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    width: 100%; /* モーダルの幅を画面に応じて調整 */
    height: 90%;
    overflow: auto; /* 画面サイズに収まらない場合はスクロール可能に */
}

.slideshow-modal .modal-close {
    position: fixed;
    top: 8%; /* 上から10px */
    right: 2.5%; /* 右から10px */
    font-size: 45px; /* ボタンのフォントサイズを少し大きく */
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    z-index: 1001; /* ボタンを最前面に */

}

/*newsモーダル拡大縮小*/
.slideshow-modal .modal-image {
    max-width: 90%;
    height: auto;
    margin: 20px auto;
    display: block;
    transition: transform 0.3s ease; /* アニメーション */
    cursor: zoom-in; /* 拡大アイコン */
    transform-origin: top left; /* 拡大時に中央を基準にする */
}

.slideshow-modal .modal-image.zoomed {
    transform: scale(2); /* 2倍拡大 */
    cursor: zoom-out; /* 縮小アイコン */
    transform-origin: top left; /* 拡大時に中央を基準にする */
}

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


/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px 20px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 36px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

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

.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 {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb; /* ドットの背景色 */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171; /* アクティブまたはホバー時の背景色 */
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/* Section styles */
section {
    padding: 60px 0px;
    margin: 20px 0px;
    background-color: #222;
}

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

/* JUST PANEL説明文 */
.aboutjp {
    width: 50%;
    margin:auto;
    text-align: left;
}


.specification {
    display: flex; /* Flexboxを使用して横並びにする */
    justify-content: center; /* 中央揃えにする */
    align-items: flex-start; /* 上部揃えにする */
    gap: 50px; /* 画像間のスペースを設定 */
    padding: 20px; /* 外側の余白を設定 */
}


.spec-item {
    text-align: center; /* テキストを中央揃えにする */
}

.nonflammable{
    padding: 5px 15px;
    margin-left: 10px;
    background-color: white;
    color: black;
}
.spec-name {
    font-weight: bold; /* 仕様名を太字にする */
    margin-bottom: 10px; /* 画像との間の余白を設定 */
}

.spec-desc {
    margin-top: 10px; /* 画像との間の余白を設定 */
    font-size: 14px; /* 説明文のフォントサイズを設定 */
    width: 300px;
    color: #666; /* 説明文の色を少し薄く設定 */
}


.specification img{
    width: 300px;
    height: auto;
}


/* 商品ラインナップのグリッド */

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 商品カードのスタイル */
.product-card {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    width: 500px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

/* 1) 実例写真（カード直下の先頭IMG）＝固定高＋幅フィット */
.product-card > img.product-hero,
.product-card > img:first-of-type {
  display: block;
  width: 100%;       /* カード幅いっぱい */
  height: 300px;     /* 高さ固定 */
  object-fit: cover; /* 横幅に合わせてトリミングして綺麗に見せる */
  margin: 20px auto; /* 既存の余白をCSSへ移設 */
}

.product-card img {
    width: auto;
    height: 200px;
}

.product-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: #fff;
}

.product-card p {
    color: #bbb;
}

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

ruby {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

rt {
    font-size: 0.5em;
    color: #ccc;
}
/* ボタン */
.design-open-btn{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #006ad1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px #0002;
}
.design-open-btn:hover{ filter: brightness(0.95); }

/* デザインモーダル */

.design-modal{
  position: fixed; 
  inset: 0;
  background: rgba(51,51,51,.92);
  display: none; 
  align-items: center; 
  justify-content: center;
  z-index: 2000;
}

.design-modal.open{ display:flex; }
.design-modal-content{
  max-width: min(1000px, 92vw);
  max-height: 88vh; 
  overflow:auto;
  background:#333; 
  border-radius:12px; 
  padding:24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.design-modal .modal-close{
  position:absolute; 
  top:12px; 
  right:16px; 
  font-size:28px;
  background:none; 
  border:0; 
  color:#fff; 
  cursor:pointer;
  z-index: 1000;
}

.design-open-btn:hover{ filter: brightness(0.95); }

/* モーダル内のカード体裁 */
.design-modal .product-card h3{
  font-size: 1.6rem; margin: 0 0 12px;
}
.design-modal .product-hero{
  width: 100%; height: auto; margin: 8px 0 16px;
}
.design-modal .product-card picture img{
  width: 100%; height: auto;
}
.design-modal .product-card p{
  line-height: 1.8;
}
/*---------------------------------------------------------------------------------------*/


/* 樹種紹介のグリッド */
.species-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 樹種カードのスタイル */
.species-card {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    width: 80%;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      scroll-margin-top: 80px; /* 固定ヘッダーの高さ＋余白分 */
}

.species-card.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.species-card h3 {
    margin: 30px 0 10px;
    font-size: 2rem;
    color: #fff;
}

.species-card p {
    color: #fff;
    font-weight: bold;
    margin: 30px auto 50px auto;
}

/* 樹種上画像のスタイル */
.example-image {
    margin: 0 auto 50px;
    width: 100%;
    max-width: 500px;
}

.optional-example-image{
    display: flex;
    justify-content: center;
    max-width: 500px;
    height: 400px;
    margin: 0 auto 50px auto;
}

.optional-example-image img{
    padding: 0 10px;
}


.example-image img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 幅と高さが同じになる */
}

/*注釈文*/
.annotation-text {
    font-size: 1em; /* 小さな文字サイズ */
    margin-bottom: 15px; /* 下部の余白 */
    text-decoration: underline;
}

.acacia-notice-text{
    text-align: right; /* 初期は右寄せ */

}

.acacia-notice-text small{
    font-weight: lighter;
}

.notice-text {
  text-align: right; /* 初期は右寄せ */
  font-size: 16px;   /* 好きな標準サイズ */
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/

/* 樹種画像のスタイル */
/* species-imagesのスタイル */
.species-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* ギャップを維持 */
    justify-content: center; /* 全体を中央揃え */
    justify-items: center; /* 子要素も中央揃え */
    margin-bottom: 15px;
    text-align: center;
}

@media (max-width: 1715px) {
    .species-images {
        width: 60%;
        margin: 0 auto; /* 中央揃え */
    }
}

@media (max-width: 1450px) {
    .species-images {
        width: 45%;
        margin: 0 auto; /* 中央揃え */
    }
}

@media (max-width: 1140px) {
    .species-images {
        width: 60%;
        margin: 0 auto; /* 中央揃え */
    }
}

@media (max-width: 865px) {
    .species-images {
        width: 80%;
        margin: 0 auto; /* 中央揃え */
    }
}

@media (max-width: 660px) {
    .species-images {
        width: 100%;
        margin: 0 auto; /* 中央揃え */
    }
}

/* species-itemのスタイル */
.species-item {
    width: 150px;
    height: 200px;
    margin-bottom: 50px;
}

.species-item img {
    width: 120px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border 0.3s ease;
}

.species-item img:hover {
    transform: scale(1.1);
    border: 2px solid #007bff; /* ボーダーを追加 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* シャドウも追加 */
}

.species-item p {
    color: #ccc;
    margin-top: 5px;
    font-size: 0.75rem;
}

/*
#grid .species-images img{
    width: 200px;
    height: 200px;
}
*/

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


/* 施工事例スライドショーのスタイル */
.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;
    position: relative;
}

.case-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6); /* 半透明黒 */
    color: #fff;                     /* 白文字 */
    font-size: 14px;
    padding: 4px 8px;
    z-index: 10;
}
/* 施工事例サムネのダブルタップ拡大や選択を抑止 */
.caseSlides .case-image {
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;           /* ダブルタップズーム抑止系 */
    -webkit-tap-highlight-color: transparent;
}

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

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

.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;
    margin: -22px 10px 0 10px;
    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-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

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


/* ===== モーダル全体（既存があれば追記でOK） ===== */
#caseModal .modal-content{
  display:block;
  max-width:min(1100px,92vw);
  width:auto; height:auto;
  margin:0 auto 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}

/* キャプションの外枠（ガラス調のカード） */
#caseCaption{
  max-width:min(1100px,92vw);
  margin:0 auto 24px;
  padding:16px 18px;
  border-radius:12px;
  background:rgba(10,10,10,.65);
  backdrop-filter:blur(4px);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  color:#fff;
}

/* ラベル → 小さめバッジ */
#caseCaption .modal-label{
  display:inline-block;
  font-size:16px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  background:white;
  color: #000000;
  border:1px solid rgba(255,255,255,.18);
  font-weight: bold;
}

/* タイトル（キャプション） */
#caseCaption .modal-title{
  font-size:18px;
  font-weight:700;
  line-height:1.5;
  margin:20px 0 20px;
  letter-spacing:.02em;
  position:relative;
}
#caseCaption .modal-title::after{
  content:"";
  display:block;
  height:2px;
  width:100%;
  margin-top:8px;
  background:linear-gradient(90deg,#fff,rgba(255,255,255,.0));
  opacity:.85;
}

/* 詳細カード */
#caseCaption .modal-detail{
  margin-top:12px;
  padding:14px 16px;
  line-height:1.5;
  font-size:16px;
  white-space:pre-line; /* <br> も \n も両対応 */
}

/* 詳細内の「【 ～ 】」は少し強調（任意） */

#caseCaption .modal-detail b,
#caseCaption .modal-detail strong{ color:#fff; }

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

/* お問い合わせフォームのスタイル */
.contact-form {
    position: relative;
    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;
}

.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;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #298dff;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #145daf;
}

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


#selected-image {
    width: 100px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 20px auto;
}

#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: 16px 28px; /* 上下 左右の間隔 */
    margin-top: 6px;
    margin-bottom: 2px;
}

#species-sample {
    width: 100%;
    background: #555;
    color: #fff;
    border-radius: 4px;
    border: 1px solid #444;
    font-size: 1rem;
    padding: 8px;
    box-sizing: border-box;
}

#species-checkbox-list {
    max-width: 100%;
    background-color: #555;
    padding: 10px;
}

.species-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 6px;
}

.species-label {
    display: flex;
    align-items: center;
    width: 50%;          /* ←半々幅 */
    min-width: 0;        /* はみ出し防止 */
    margin-right: 0;     /* 間はスペースいらない場合 */
    color: #fff;
    font-size: 1em;
    font-weight: normal;
    white-space: nowrap; /* テキスト改行させたくない場合はこのまま */
}

.species-label span {
    line-height: 1.1;    /* 2行用に少し詰める場合（お好み） */
}


.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;

}


/* プレビュー全体を縦並びに（デフォ） */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  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.8em;
  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;  /* ホバー時 */
}

#add-sample-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;
}

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

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


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

#estimate-blocks-list {
    position: absolute;
    top: 0;
    right: -340px; /* 必要に応じて調整 */
    transform: translate(0,-20%); /* 中央に完全に配置 */
    width: 300px;
    height: auto;
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    display: none; /* 初期状態で非表示 */
    flex-direction: column;
    justify-content: center; /* 中央揃え */
    align-items: center; /* 水平中央揃え */
}

#sample-blocks-list {
    position: absolute;
    top: 0;
    right: -340px; /* 必要に応じて調整 */
    transform: translate(0,-20%); /* 中央に完全に配置 */
    width: 300px;
    height: auto;
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    display: none; /* 初期状態で非表示 */
    flex-direction: column;
    justify-content: center; /* 中央揃え */
    align-items: center; /* 水平中央揃え */
}

#contact {
  position: relative; /* ★絶対必要 */
  margin-bottom: 0;
}

.note{
    font-size: 0.8em; /* フォントサイズを小さく */
}


.coating-radio-list {
    display: grid;
    gap: 0px 32px;  /* 行間, 列間 */
    background-color: #555;
    padding: 10px 10px 5px 10px;
}
.coating-radio-list label {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1em;
}
.coating-radio-list input[type="radio"] {
    margin-right: 8px;
}

.coating-note {
    color: #fff;
    font-size: 1em;
    margin-top: 10px;
    line-height: 1.7;
    display:flex;
    align-items:flex-start;
    gap:16px;
    /* お好みで背景を濃いグレーや透明度ありで目立たせてもOK */
    /* background: rgba(40,40,40,0.7); */
}

.sample-coating-note {
    color: #fff;
    font-size: 1em;
    margin-top: 10px;
    line-height: 1.7;
    /* お好みで背景を濃いグレーや透明度ありで目立たせてもOK */
    /* background: rgba(40,40,40,0.7); */
}

.coating-note strong {
    font-weight: bold;
    color: #fff;   /* 強調部分も白 */
    /* さらに目立たせたい場合は下線や影もOK（必要に応じて） */
    /* text-shadow: 0 1px 6px #333; */
}

.coating-note__text{
  line-height:1.7;
  flex:1;                  /* テキスト側を広げる */
}

/* 右側の画像 */
.coating-note__img{
  width:50%;
  object-fit:contain;
  box-shadow:0 1px 4px rgba(0,0,0,.15);
}

.radio-list{
    background-color: #555;
    padding: 10px;

}

.radio-list label {
    margin-bottom: 0;
}

/* フリーサイズ行のレイアウト */
#free-size-options .dimensions-input{
  display:flex;
  align-items:center;
  gap:12px;
}

/* 各入力の枠 */
#free-size-options .dimension{
  position:relative;
  flex:1;
}

/* 入力欄は右に余白（mm分）を空ける */
#free-size-options .dimension input{
  width:100%;
  padding-right:44px;
  position:relative; /* 念のため */
  z-index:1;         /* 装飾より前面でもOK */
}

/* 右端の「mm」は重ねるがタップを素通りさせる */
#free-size-options .dimension .unit{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#999;
  pointer-events:none;   /* ←重要 */
}

/* 中央の「×」もタップを奪わないように */
#free-size-options .dimensions-input > span{
  pointer-events:none;   /* ←重要 */
}

/* 下のレンジ表記も素通り */
#free-size-options .dimension .range{
  display:block;
  margin-top:6px;
  color:#999;
  pointer-events:none;   /* ←重要 */
}


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

.total-size {
  color: #0080ff;
  font-size: 1em;
}


.loader {
  width:24px; height:24px;
  border:4px solid #0080ff;
  border-right:4px solid #eee;
  border-radius:50%;
  display:inline-block;
  animation: spin 1s linear infinite;
  vertical-align:middle;
  margin-right:12px;
}
@keyframes spin {
  100% { transform: rotate(360deg);}
}
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/
/* トップに戻るボタンのスタイル */
#backToTopBtn {
    display: none; /* 初期状態で非表示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 70px;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}


#backToTopBtn:hover {
    background-color: #555;
}

/* 矢印画像のスタイル */
.arrow-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 20px;
}

#backToTopBtn:hover {
    background-color: #555;
}

/* モーダルのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 400px; /* 横幅を400pxに固定 */
    max-height: 80vh; /* 画面の80%の高さに設定 */
    object-fit: cover; /* 縦横比を保持しつつトリミング */
}

.species-detail {
    display: none;
}

#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;
}


/* grid モーダル */
#gridModal .modal-content {
    width: 500px;
    height: 500px;
    object-fit: cover; /* 縦横比を保持しつつトリミング */
}

/* rough-tone モーダル */
#roughToneModal .modal-content {
    max-height: 70vh;
    width: auto;
    object-fit: cover; /* 縦横比を保持しつつトリミング */
}


#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 樹種の画像ホバー効果を追加 */
.species-item img {
    width: 120px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s; /* スムーズな変化 */
}

.species-item img:hover {
    transform: scale(1.05); /* 画像を若干大きくする */
}

/* 施工事例モーダルのスタイル */
#caseModal .modal-content {
    max-width: 80%;
    height: auto;
    max-height: 70vh; /* 高さを画面の70%に設定 */
    object-fit: cover; /* 縦横比を保持しつつトリミング */
}

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

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

.modal-caption {
    font-size: 2rem; /* フォントサイズを大きく */
    font-weight: bold; /* フォントを太字に */
}


/* フッターのスタイル */
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 {
    padding-top: 22px;
    max-width: 240px;
    max-height: 180px;
    object-fit: cover;
}


.footer-container > div {
    margin: 10px 50px;
    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-center ul,
.footer-external-links ul{
    text-align: left;
    margin: 0;
    padding-left: 1rem;         /* 箇条書きのインデントが欲しければ */
}
.footer-left h3:nth-of-type(2),
.footer-left p{
    padding-left: 1rem;
}

.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;
}

/* ナビゲーションリンクの下線アニメーション */
.underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #fff;
    animation: underline-grow 0.3s forwards;
}

@keyframes underline-grow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}


/*商品カードのスライドインアニメーション*/
.product-card {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/*フェードイン＆スライドアップアニメーション*/



/* 各セクションのタイトル下のラインスタイル */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    background: none; /* 背景色を透明に */
    color: #fff; /* 文字色を白に */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px; /* タイトルの下に配置 */
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.6s ease, left 0.6s ease;
}

.section-title.active::after {
    width: 30%; /* ラインの幅を指定 */
    left: 35%;
    margin-bottom: 10px;
}

.contact-note{
    color: #fff;
    font-size: 0.9em;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

/*入力フォームメールアドレスドメイン予測*/
#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;
}

.error-msg {
  display:block;      /* あるいは inline-block で調節 */
  margin-top:4px;     /* 位置がずれる場合はここを調整 */
}

