.sp-br {
  display: block;
}

/* PC表示（768px以上）では改行タグを非表示にする */
@media screen and (min-width: 768px) {
  .sp-br {
    display: none;
  }
}


/****** 会社概要 *****/
main.company {
padding-top: 11rem;	
}
.company .page-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.company h3 {
  position: relative;
  display: flex; 
  align-items: center; 
  height: 60px;
  color: #fff;
  z-index: 1;
}
.company h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 100%;
  height: 24px;
  background-color: #d2bf7a; 
  z-index: -1;
}
.company h3::after {
  position: absolute;
  content: "";
  display: inline-block;
  width: 100%;
  height: 50px;
  background-image: url(/assets/images/company/vecter1.svg);
  background-size: contain;
  background-repeat: no-repeat;
  top: 30px;
  left: 0;
  z-index: -2;
}
.company h3 span {
  position: relative;
  top: 13px;
  left: 30px; 
  margin-left: 8px;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 1.3rem;
}
.company h3 span:first-of-type {
  top: 10px;
}
.company section {
  margin-bottom: 60px;
}

  /* 会社情報テーブル */
.company .info-section .info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fafafa;
}
.company .info-section .info-table th,
.company .info-section .info-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  background-color: #ffffff;
}

.company .info-section .info-table th {
  width: 35%;
  color: #c6ac4d;
  font-weight: bold;
  vertical-align: top;
  background-color: #f8fafc;
  border-bottom: 1px solid #fff;
}
.company .access-grid,
.company .branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
  background-color: #f8fafc;
}
.company .access-item h4,
.company .branch-card h4 {
  color: #b09a50;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
}

.company .access-section .access-item .note {
  font-size: 0.9em;
  color: #666;
}
.company .access-section .access-item:first-of-type {
  position: relative;
  left: 50px;
}
.company .access-section .access-item:first-of-type::before {
  content: url("/assets/images/company/train-icon.svg");
  position: absolute;
  left: -50px;
  top: -12px;
  display: block;
  width: 50px;
  height: 50px;
}
.company .access-section .access-item:last-of-type {
  position: relative;
  left: 100px;
}
.company .access-section .access-item:last-of-type::before {
  content: url("/assets/images/company/car-icon.svg");
  position: absolute;
  left: -50px;
  top: -12px;
  display: block;
  width: 50px;
  height: 50px;
}
.company .branch-section .branch-grid {
  grid-template-columns: 1fr 1fr;
}
.company .branch-section .branch-grid .branch-card {
  font-size: 14px;
	  position: relative;
  left: 30px;
}
.company .branch-section .branch-grid .branch-card::before {
  content: url("/assets/images/company/house-icon2.svg");
  position: absolute;
  left: -52px;
  top: -12px;
  display: block;
  width: 50px;
  height: 50px;
}
	.company .access-section h3+div{
		margin-top:5rem;
	}
@media (max-width: 991px) {
  .company .access-grid,
  .company .branch-section .branch-grid {
    grid-template-columns: 1fr;
  }
  .company .info-section .info-table th,
  .company .info-section .info-table td {
    display: block;
    width: 100%;
  }
  .company .info-section .info-table th {
    padding-bottom: 0;
    border-bottom: none;
  }
	.company .access-section .access-item:last-of-type::before {
		  left: -50px;
	}
	.company .access-section .access-item:last-of-type {
  left: 50px;
}
}


/* **** DISCOVER **** */
.discover .discover-hero{
background-color: #ffd900;
}
.discover .discover-hero .hero-content{
    padding-top: 8rem;
	padding-bottom: 4rem;
	position:relative;
}
.discover .discover-hero .hero-content div:first-of-type{
	 position: absolute;
  top: 46%;
  left: 27%;
/*   transform: translate(-50%, -50%); */
}
.discover .discover-hero .hero-content div:last-of-type{
    position: absolute;
    top: 40%;
    left: 90%;
}
.discover .type-grid-section .type-grid .type-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--theme-color, #ddd); /* 変数がない場合はグレー */
    padding: 0;
    text-align: center;
    margin-top: 25px;
    overflow: visible;
    transition: transform 0.3s ease;
    height: 100%; /* 高さを揃える場合 */
}
/* 上部の数字アイコン */
.discover .type-grid-section .type-grid .type-card .type-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--theme-color);
    z-index: 10;
}
/* 画像エリア */
.discover .type-grid-section .type-grid .type-card .type-img {
    background: radial-gradient(circle, #fdf5e6 0%, #f3e5ab 100%);
    border-radius: 11px 11px 0 0;
    padding: 30px 10px;
}

.discover .type-grid-section .type-grid .type-card .type-img img {
    max-width: 100%;
    height: auto;
}

/* テキスト情報 */
.discover .type-grid-section .type-grid .type-card .type-info {
    padding: 20px;
}

.discover .type-grid-section .type-grid .type-card .type-info h3 {
    color: var(--theme-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.discover .type-grid-section .type-grid .type-card .type-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    margin-bottom: 25px;
}

/* 検索ボタン */
.discover .type-grid-section .type-grid .type-card .btn-search {
    display: inline-block;
    padding: 8px 30px;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.discover .type-grid-section .type-grid .type-card .btn-search:hover {
    background: var(--theme-color);
    color: #fff;
}
.discover .list-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.discover .list-grid .list-card {
position: relative;
  flex: 0 0 25%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--theme-color, #ddd);
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.discover .list-grid .list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
@media (max-width: 991px) {
.discover .list-grid {
 	display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
  }
}
@media (max-width: 767px) {
.discover .list-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 4vw, 1.5rem);
  }
}

/* 上部の数字丸アイコン */
.discover .list-grid .list-card .type-number {
    position: absolute;
    top: -20px;
    left: -18px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--theme-color);
    z-index: 2;
}

/* 画像エリア（背景グラデーション） */
.discover .list-grid .list-card .type-img {
    background: radial-gradient(circle, #fdf5e6 0%, #f3e5ab 100%);
    border-radius: 11px 11px 0 0;
        padding: 20px;

	/* 高さを固定（ビールの画像に合わせて調整してください） */
    height: 250px; 
    
    /* 中の画像を中央に配置 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover .list-grid .list-card .type-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* テキスト情報エリア */
.discover .list-grid .list-card .type-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.discover .list-grid .list-card .type-info h3 {
    color: var(--theme-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.discover .list-grid .list-card .type-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1; /* テキスト量に関わらずボタン位置を揃える */
}

/* ボタンのデザイン */
.discover .list-grid .list-card .btn-search {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: center;
}

.discover .list-grid .list-card .btn-search:hover {
    background: var(--theme-color);
    color: #fff !important;
}


@media (max-width: 991px) {
	.discover .discover-hero .hero-content div:last-of-type {
    top: 46%;
    left: 87%;
    font-size: 0.8rem;
}
    .discover .list-grid .list-card .list-card {
        flex: 0 0 100%; 
        margin-bottom: 30px;
    }
	.discover .list-grid .list-card .type-number {
    left: -7px;
}

		.discover .list-grid .list-card:first-of-type {
		margin-top:10px;
	}
	.discover .discover-hero .hero-content div:first-of-type {
    top: 39%;
    left: 2%;
		font-size:0.8rem;
}
}
.discover .color-1  { --theme-color: #a3d9f1; } /* 水色 */
.discover .color-2  { --theme-color: #e6c14a; } /* ゴールド */
.discover .color-3  { --theme-color: #8b7355; } /* ブラウン */
.discover .color-4  { --theme-color: #c4a787; } /* ライトブラウン */
.discover .color-5  { --theme-color: #a6937c; } /* グレージュ */
.discover .color-6  { --theme-color: #ec6d9c; } /* ピンク */
.discover .color-7  { --theme-color: #f19e73; } /* オレンジ */
.discover .color-8  { --theme-color: #e28e8e; } /* ローズ */
.discover .color-9  { --theme-color: #7d7d7d; } /* ダークグレー */
.discover .color-10 { --theme-color: #f6b654; } /* イエローオレンジ */
.discover .color-11 { --theme-color: #72d4f3; } /* シアン */
.discover .color-12 { --theme-color: #c9b078; } /* オリーブゴールド */
.discover .color-13 { --theme-color: #f7a072; } /* テラコッタ */
.discover .color-14 { --theme-color: #88d09a; } /* グリーン */
.discover .color-15 { --theme-color: #d14d5d; }/* フルーツ・ランビック（深みのあるベリーレッド） */
.discover .color-16 { --theme-color: #f2d06b; } /* スペシャル・ブロンド（輝きのある濃い目のゴールド） */
.discover .color-17 { --theme-color: #4a372d; } /* スペシャル・ダーク（ロースト感のある深いブラウン） */
.discover .color-18 { --theme-color: #b56535; } /* スペシャル・アンバー（赤みがかった琥珀色） */
.discover .color-19 { --theme-color: #85c1e0; } /* スチールブルー（1番の少し深め） */
.discover .color-20 { --theme-color: #d4a0c8; } /* ラベンダーピンク（6番の淡め） */
.discover .color-21 { --theme-color: #9ecf8a; } /* ライトグリーン（14番の明るめ） */
.discover .color-22 { --theme-color: #e8b89a; } /* ピーチ（7番の淡め） */
.discover .color-23 { --theme-color: #6b9e78; } /* フォレストグリーン（14番の深め） */
.discover .color-24 { --theme-color: #d4956a; } /* ダークテラコッタ（13番の深め） */
.discover .color-25 { --theme-color: #b8a090; } /* ウォームグレー（5番の明るめ） */
.discover .color-26 { --theme-color: #e8d5a0; } /* クリームゴールド（2番の淡め） */
.discover .color-27 { --theme-color: #c8706e; } /* ダスティローズ（8番の深め） */
.discover .color-28 { --theme-color: #7ab8d4; } /* ダスキーブルー（11番の落ち着いた） */
.discover .color-29 { --theme-color: #a07850; } /* ウォームブラウン（3番と18番の中間） */
.discover .color-30 { --theme-color: #e8a030; } /* ディープアンバーゴールド（10番の深め） */
	
/* 　**************  ビアスタイル 各ページ ************** */	
.type-grid-section{
	padding-top: 10rem;
}
.type-grid-section .bstyle-item .type-img{
    height: 300px;
}

.type-grid-section .bstyle-item .type-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.type-grid-section .bstyle-item .type-info h4{
font-size:1.2rem;
	text-align:center;
	margin-top:1.5rem;
}
	

/* ================================================
   コンタクトページ
   ================================================ */

/* ヒーローセクション（4:3アスペクト比・最大30em） */
.contact .contact-hero {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 4 / 3; /* 4:3の比率 */
  max-block-size: 30em; /* 最大高さ30em */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url('/assets/images/contact/contact-top.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden; /* はみ出し防止 */
}

.contact .hero-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* レスポンシブ：24px-40px */
  letter-spacing: 0.2em;
  margin-block-end: 1.25rem; /* 20px */
  text-wrap: balance;
}

.contact .hero-content p {
  font-size: clamp(0.875rem, 0.8125rem + 0.3333vw, 1rem); /* 14px-16px */
  line-height: 1.8;
  text-wrap: pretty;
}

/* お問い合わせグリッド */
.contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.875rem; /* 30px */
  padding-block: 5rem; /* 80px */
}

/* カード共通 */
.contact .color-customers { 
  --theme-color: #d19e10; 
}

.contact .color-new-business { 
  --theme-color: #ffb700; 
}

.contact .color-partner { 
  --theme-color: #ffa300; 
}

.contact .contact-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #ffffff;
  position: relative;
  padding-block-end: 1.875rem; /* 30px */
  block-size: 100%;
}

.contact .contact-card > div:first-of-type {
  border: 1px solid var(--theme-color);
  border-radius: 0.3125rem; /* 5px */
  flex-grow: 1;
}

/* カードヘッダー */
.contact .card-header {
  padding: 0.75rem; /* 12px */
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875em; /* 14px相当 */
  letter-spacing: 0.05em;
  background-color: var(--theme-color);
  border-radius: 0.3125rem 0.3125rem 0 0; /* 5px 5px 0 0 */
}

/* カード画像 */
.contact .card-image img {
  inline-size: 100%;
  block-size: auto;
  display: block;
}

/* カードボディ */
.contact .card-body {
  padding-block: 1.875rem; /* 30px */
  padding-inline: 1.25rem; /* 20px */
  flex-grow: 1;
}

.contact .card-body h2 {
  font-size: 1.125em; /* 18px相当 */
  color: var(--theme-color);
  margin-block-end: 0.9375rem; /* 15px */
  font-weight: 700;
}

.contact .summary {
  font-size: 0.875em; /* 14px相当 */
  line-height: 1.6;
  margin-block-end: 1.25rem; /* 20px */
  text-align: center;
  text-wrap: pretty;
}

/* 注意書きリスト */
.contact .contact-list {
  list-style: none;
  padding: 0;
  text-align: center;
  font-size: 0.75em; /* 12px相当 */
  color: var(--theme-color);
}

.contact .contact-list li::before {
  content: "※";
  margin-inline-end: 0.3125rem; /* 5px */
}

/* カードフッター（ボタンエリア） */
.contact .card-footer {
  padding-inline: 1.25rem; /* 20px */
  margin-block-start: -6%;
}

.contact .btn {
  display: block;
  padding-block: 0.9375rem; /* 15px */
  padding-inline: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875em; /* 14px相当 */
  border-radius: 0.25rem; /* 4px */
  transition: opacity 0.3s ease-out;
  background-color: var(--theme-color);
  text-align: center;
}

.contact .btn:hover {
  opacity: 0.8;
  transform: translateY(-0.125rem); /* 微妙な浮き上がり */
}

.contact .btn:active {
  transform: translateY(0);
}

.contact .btn:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 2px;
}

/* ================================================
   レスポンシブ対応
   ================================================ */

/* タブレット・スマホ（992px以下） */
@media (max-width: 991px) {
  .contact .contact-grid {
    grid-template-columns: 1fr;
    max-inline-size: 31.25rem; /* 500px */
    margin-inline: auto;
    gap: 2rem; /* カード間の余白を増やす */
  }
  
  .contact .hero-content h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem); /* モバイル用に調整 */
  }
  
  .contact .card-body {
    padding-block: 1.5rem; /* モバイルでは少し小さく */
    padding-inline: 1rem;
  }
}

/* 小さいスマホ（576px以下） */
@media (max-width: 575px) {
  .contact .contact-grid {
    padding-block: 3rem; /* 48px */
    gap: 1.5rem;
  }
  
  .contact .hero-content h1 {
    font-size: clamp(1.125rem, 6vw, 1.5rem); /* さらに小さく */
    letter-spacing: 0.1em; /* 詰める */
  }
  

  .contact .card-header {
    font-size: 0.8125em; /* 13px相当 */
  }
  
  .contact .card-body h2 {
    font-size: 1em; /* 16px相当 */
  }
  
  .contact .summary {
    font-size: 0.8125em; /* 13px相当 */
  }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  .contact .contact-card > div:first-of-type {
    border-width: 2px;
  }
}

/* アニメーション削減設定 */
@media (prefers-reduced-motion: reduce) {
  .contact .btn {
    transition: none;
  }
  
  .contact .btn:hover {
    transform: none;
  }
}
/* ================================================
   モバイル用クイックナビゲーション
   ================================================ */

.contact-quick-nav {
  display: none; /* PC時は非表示 */
}

/* モバイル時のみ表示（992px以下） */
@media (max-width: 991px) {
  .contact-quick-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-block: 0;
    padding-inline: 0;
    margin-block-end: 1rem; /* 16px */
  }
  
  .quick-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px */
    padding-block: 1rem; /* 16px */
    padding-inline: 0.5rem; /* 8px */
    background-color: var(--theme-color);
    border: 2px solid #ffffff;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease-out;
    min-block-size: 5rem; /* 最小高さ80px */
    
    /* タップ領域を確保 */
    -webkit-tap-highlight-color: transparent;
  }
  
  .quick-nav-btn:hover,
  .quick-nav-btn:focus {
    filter: brightness(0.85);
    transform: translateY(-0.125rem); /* 2px */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  }
  
  .quick-nav-btn:active {
    transform: translateY(0);
    filter: brightness(0.75);
  }
  
  /* アイコン */
  .quick-nav-icon {
    font-size: 1.5rem; /* 24px */
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  }
  
  /* テキスト */
  .quick-nav-text {
    font-size: 12px; /* ★ 12px固定 */
    font-weight: 400; /* ★ 400に変更 */
    color: #ffffff;
    line-height: 1.3;
    /* text-shadow削除 */
  }
  
  /* 各カードのテーマカラー */
  .quick-nav-btn.color-customers {
    --theme-color: #d19e10;
  }
  
  .quick-nav-btn.color-new-business {
    --theme-color: #ffb700;
  }
  
  .quick-nav-btn.color-partner {
    --theme-color: #ffa300;
  }
}

/* 小さいスマホ（576px以下） */
@media (max-width: 575px) {
  .contact-quick-nav {
    gap: 0;
    padding-block: 0;
    padding-inline: 0;
  }
  
  .quick-nav-btn {
    padding-block: 0.875rem; /* 14px */
    padding-inline: 0.25rem; /* 4px */
    min-block-size: 4rem; /* 64px */
  }
  
  .quick-nav-icon {
    font-size: 1.25rem; /* 20px */
  }
  
  .quick-nav-text {
    font-size: 12px;
  }
}

/* スムーススクロール用のオフセット調整 */
.contact-card {
  scroll-margin-top: 5rem; /* ナビゲーションの高さ分のオフセット */
}

/* アクセシビリティ：フォーカス時のアウトライン */
.quick-nav-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

/* アニメーション削減設定 */
@media (prefers-reduced-motion: reduce) {
  .quick-nav-btn {
    transition: none;
  }
  
  .quick-nav-btn:hover {
    transform: none;
    filter: none;
  }
}