/* --- 強制上書き：色選択ボタン中央配置 --- */
.color-select-btn-wrap {
  text-align: center !important;
  margin-top: 32px;
}

/* --- 強制上書き：色選択ボタン --- */
.btn-color-select {
  background: linear-gradient(90deg, #00B5E2, #00A0D1) !important;
  color: #fff !important;
  padding: 14px 38px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  border: none !important;
  display: inline-block !important;
  transition: background 0.3s !important;
  cursor: pointer !important;
}
.btn-color-select:hover {
  background: linear-gradient(90deg, #00A0D1, #00B5E2) !important;
  color: #fff !important;
}
/*
 Theme Name:   TBVH-Theme
 Theme URI:    https://example.com/
 Author:       俊資
 Author URI:   https://example.com/
 Description:  Apple風アニメーション＋業務自動化＋SNS連携テーマ
 Version:      1.0
 Text Domain:  tbvh-theme
*/

/* 業者専用ログインフォームのラベル調整 */
.agency-login-page label[for="user_login"] {
  font-weight: bold;
  letter-spacing: 0.05em;
}
/* ボタン文字色を青色系に統一 */
/* ボタン文字色を水色系に統一 */
.tab-button,
.button.button-primary {
  color: #00B5E2 !important;
}
.tab-button.active {
  color: #00A0D1 !important;
}
.button.button-primary:hover {
  color: #00A0D1 !important;
}
/* 利用規約スクロール必須仕様 */
.tos-content {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 16px;
  background: #fafcff;
}
.tos-agree input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tos-agree input[type="checkbox"]:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}
/* フォームの有効・無効状態の見た目を明示 */
.estimate-form fieldset[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.estimate-form fieldset:not([disabled]) {
  opacity: 1;
  pointer-events: auto;
}
#btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#btn-next:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}
/* 製品カテゴリサブタイトル */
.product-category-title {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 40px 0 18px 0;
  text-align: left;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

/* カテゴリごとのグリッド間隔調整 */
.product-list .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .product-list .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-list .grid {
    grid-template-columns: 1fr;
  }
}


:root {
  --accent: #00B5E2;
  --accent-dark: #00A0D1;
  --text: #333;
  --bg-light: #f0fbff;
}


body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: var(--text);
  /* removed global horizontal padding to allow full-width layout */
  box-sizing: border-box;
}

header.site-header, .site, .site-main, .content {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* メニュー */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: transparent;
  transition: background-color 0.4s ease;
  border-bottom: 1px solid #ddd;
  padding-left: 50px;
  padding-right: 50px;
}
.main-nav.scrolled {
.btn-color-select {
  background: linear-gradient(90deg, #00B5E2, #00A0D1) !important;
  color: #fff !important;
  padding: 14px 38px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  border: none !important;
  display: inline-block !important;
  transition: background 0.3s !important;
  cursor: pointer !important;
}
.btn-color-select:hover {
  background: linear-gradient(90deg, #00A0D1, #00B5E2) !important;
  color: #fff !important;
}
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1100;
}
.hamburger span {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* メニュー本体（PC） */
.nav-menu {
  display: flex;
  gap: 15px;
}
.nav-menu > ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-menu li {
  margin: 0 15px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: var(--accent);
}

/* メニュー本体（スマホ） */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .main-nav {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
}

/* ヒーローセクション */
.hero {
  text-align: center;
  padding: 100px 20px;
}
.hero h1.site-title {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h2 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
}
.btn-secondary {
  background-color: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

/* 技術構造セクション */
.structure-section {
  text-align: center;
  padding: 80px 20px;
}
.structure-section .section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--text);
}
.slider-container {
  position: relative;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
}
.slideimg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  animation: slideAnime 9s infinite;
}
.slideimg:nth-of-type(1) {
  background-image: url('images/layer-wall.jpg');
  animation-delay: 0s;
}
.slideimg:nth-of-type(2) {
  background-image: url('images/layer-beads.jpg');
  animation-delay: 3s;
}
.slideimg:nth-of-type(3) {
  background-image: url('images/layer-titanium.jpg');
  animation-delay: 6s;
}
@keyframes slideAnime {
  0%, 30%, 100% { opacity: 0; }
  10%, 20% { opacity: 1; }
}

/* Instagramセクション */
.instagram-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}
.instagram-section .section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--text);
}

/* CTAセクション */
.cta-section {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.login-box {
  background-color: var(--bg-light);
  padding: 30px;
  margin-top: 40px;
  border-radius: 10px;
  text-align: center;
}
.login-box h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* フッターサイトマップ */
.footer-sitemap {
  background-color: var(--bg-light);
  padding: 40px 20px;
}
.footer-sitemap-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-sitemap-list li {
  margin: 0 15px 10px;
}
.footer-sitemap-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-sitemap-list a:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  .footer-sitemap-list {
    flex-direction: column;
    align-items: center;
  }
  .footer-sitemap-list li {
    margin: 5px 0;
  }
}

/* 会社情報 */
.footer-info {
  background-color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text);
}
.footer-info p {
  margin: 5px 0;
}
/* ナビ内のロゴエリア */
.site-logo {
  display: flex;
  align-items: center;
}

/* ロゴ画像サイズ調整 */
.site-logo img {
  max-height: 60px;
  width: auto;
}

/* nav-inner を左右に展開 */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
/* 言語スイッチャー */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 20px;
  right: 70px; /* ハンバーガーアイコンと重ならないよう調整 */
  z-index: 1100;
}

.language-switcher .lang-btn,
.language-switcher a[hreflang] {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.language-switcher .current-lang,
.language-switcher a[aria-current="language"] {
  background-color: var(--accent);
  color: #fff;
}

.language-switcher .lang-btn:hover,
.language-switcher a:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

/* スマホ版（必要に応じて調整） */
@media (max-width: 768px) {
  .language-switcher {
    right: 60px; 
  }
}
/* 更新情報セクション */
.update-section {
  background-color: var(--bg-light);
  padding: 40px 20px;
  text-align: center;
}
.update-section .section-title {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.update-section ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}
.update-section li {
  margin-bottom: 10px;
}
.update-section a {
  color: var(--text);
  text-decoration: none;
}
.update-section .date {
  color: #666;
  font-size: 0.9rem;
}

/* 最新施工事例 */
.latest-works {
  margin: 0 auto 30px;
  max-width: 600px;
  text-align: left;
}
.latest-works h4 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.latest-works ul {
  list-style: none;
  padding: 0;
}
.latest-works li {
  margin-bottom: 8px;
}
.latest-works a {
  color: var(--text);
  text-decoration: none;
}
.latest-works a:hover {
  color: var(--accent);
}
/* サブメニュー */
.menu-item-has-children {
  position: relative;
}
.menu-item-has-children > .has-sub::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.8em;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 160px;
  z-index: 1000;
}
.sub-menu li {
  margin: 0;
}
.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s;
}
.sub-menu a:hover {
  background-color: var(--bg-light);
}

/* PC：ホバーで開く */
@media (min-width: 769px) {
  .menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

/* スマホ：クリックで開閉 */
@media (max-width: 768px) {
  .sub-menu.active {
    display: block;
  }
}
/* サブメニューは常に隠す */
.sub-menu {
  display: none;
}

/* PC： hover で開く */
@media (min-width: 769px) {
  .menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

/* スマホ：click で .active を付けたときだけ表示 */
@media (max-width: 768px) {
  .sub-menu.active {
    display: block;
  }
}
/* 製品一覧 */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 40px 20px;
}
.product-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.product-list-image {
  margin-bottom: 10px;
}
.product-item h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
}
.product-item .excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

/* 製品詳細 */
.product-detail .product-image {
  text-align: center;
  margin-bottom: 30px;
}
/* 詳細ページ：説明＋画像の横並び */
  .product-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
  }
.product-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}
.product-image-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-detail-title {
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
  display: block;
  text-align: left;
}
.product-image-name img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
  width: 100%;
  height: auto;
}

/*
 * 製品詳細画像（.product-detail-img）を全デバイスで同じ最大幅に
 * NOTE: 子テーマ側で `css/single-product-overrides.css` にて商品詳細ページの見た目を管理しているため、
 *       親テーマ側のグローバル指定は干渉源になりやすい。
 *       まずはコメントアウトして挙動確認する。
 */
/*
.product-detail-img {
  max-width: 400px !important;
  width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 800px) {
  .product-detail-img {
    max-width: 400px !important;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .product-detail-img {
    max-width: 400px !important;
    width: 100%;
  }
}
*/
.product-detail .product-content {
  line-height: 1.6;
  margin-bottom: 40px;
}
/* PC表示時のCTAボタン高さ・中央揃え調整 */
.product-cta {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.product-cta .btn-secondary,
.product-cta .btn-primary {
  height: 48px;
  line-height: 48px;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .product-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .product-cta .btn-secondary,
  .product-cta .btn-primary {
    width: 100%;
    max-width: 320px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0;
    display: block;
    text-align: center;
  }
}
.product-spec table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  border-collapse: collapse;
}
.product-spec th,
.product-spec td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.product-spec th {
  background: var(--bg-light);
  width: 30%;
}
.product-cta {
  text-align: center;
  margin: 40px 0;
}
.product-cta .btn-secondary {
  margin-right: 20px;
}
.product-colors ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}
.product-colors li {
  text-align: center;
}
.color-swatch {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  margin: 0 auto 6px;
}
.product-custom-color {
  margin-top: 30px;
  text-align: center;
}
.product-custom-color p {
  font-size: 1rem;
  color: var(--text);
}
/* 一覧の下にタイトル＋価格 */
.product-item .product-name {
  margin: 12px 0 4px;
  font-size: 1.1rem;
}
.product-item .product-price {
  color: var(--accent);
}

/* 詳細ページ：説明＋画像の横並び */
.product-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.product-summary .product-image-center,
.product-summary .product-description {
  flex: 1;
}

/* モバイルでは縦並び */
@media (max-width: 640px) {
  .product-summary {
    flex-direction: column;
  }
  .product-detail-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .product-detail-img {
    max-width: 100%;
  }
}
/* 製品詳細タイトルを画像上部・画面左側に */
.product-title-left {
  width: 100%;
  text-align: left;
  margin-bottom: 12px;
}
.product-detail-title {
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

/*
 * 製品スペック：画像＋表の横並び
 * NOTE: 子テーマ側で `css/single-product-overrides.css` に移管し、商品詳細ページはそちらで管理する。
 * 親テーマ側の定義は競合の原因になるため無効化。
 */
/*
.product-spec-flex {
  display: flex;
  gap: 32px;
  align-items: center;
}
.product-spec-image {
  flex: none;
  max-width: 320px;
  padding-left: 0;
}
.product-spec-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-spec-table {
  flex: 1;
}
@media (max-width: 800px) {
  .product-spec-flex {
    flex-direction: column;
    gap: 20px;
  }
  .product-spec-image {
    max-width: 100%;
  }
}
*/

/* 製品一覧：横並び3個ずつ */
/* 製品一覧全体の余白調整 */
.product-list {
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}
/* 会社情報ページ：枠線スタイル */
.company-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 各セクションに枠線を追加 */
.company-info section {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
  background-color: #fafafa;
}

/* 会社概要テーブルの枠線 */
.company-info .company-overview table {
  width: 100%;
  border-collapse: collapse;
}

.company-info .company-overview th,
.company-info .company-overview td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

/* 見出しを目立たせる */
.company-info .company-details h2 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

/* 企業理念の段落調整 */
.company-info .company-mission p {
  margin: 0;
  line-height: 1.6;
}
/* タブ切替 */
.purchase-tabs {
  text-align: center;
  margin-bottom: 30px;
}
.tab-button {
  padding: 16px 36px;
  margin: 0 8px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 30px;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-button.active {
  background: #fff;
  border-bottom: 2px solid #007cba;
}

/* 利用規約ボックス */
.tos-box {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
}
.tos-content {
  max-height: 200px;
  overflow: auto;
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 10px;
}
.tos-agree {
  display: block;
  margin-top: 10px;
}

/* フォーム */
.estimate-form fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 20px;
}
.estimate-form label {
  display: block;
  margin-bottom: 15px;
}
.estimate-form input {
  width: 320px;
  max-width: 100%;
  padding: 6px 10px;
  box-sizing: border-box;
}

/* ZIP検索ボタン */
#btn-zip-search {
  margin-top: 5px;
}

/* 次へボタン */
#btn-next {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 18px auto;
  border-radius: 30px;
  padding: 18px 0;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Override: remove section horizontal paddings for full-width layout */
.hero, .update-section, .structure-section, .instagram-section, .cta-section, .footer-sitemap, .product-list {
  padding-left: 0 !important;
  padding-right: 0 !important;
}