/* =========================================
   CSS Variables & Base (クラシック・ナチュラル)
========================================= */
:root {
  --primary-color: #4a3b32;
  --accent-color: #b57a59;
  --bg-color: #fbf9f6;
  --text-color: #443c38;
  --footer-bg: #3a3532;
  --border-color: #e0d8d0;
}

/* ページ全体の横揺れ・横スクロールを防止 */
/* htmlのoverflowを解除（stickyを効かせるため） */

body {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--bg-color);
  letter-spacing: 0.05em;
  padding-bottom: 70px;
  overflow-x: clip; /* 代わりにbodyでハミ出しをカット */
}

h1, h2, h3, h4, h5, h6, .serif {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: var(--primary-color);
}

/* =========================================
   Utility & Component Classes
========================================= */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-accent { color: var(--accent-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }
.text-gray-custom { color: #777 !important; }
.text-line { color: #06c755 !important; }
.text-note { color: #2cb696 !important; }
.text-insta { color: #e1306c !important; }
.text-xs { font-size: 0.75rem; }
.btn-sm-text { font-size: 0.9rem; }

.bg-half-white { background-color: rgba(255, 255, 255, 0.5); }
.border-custom { border-color: var(--border-color) !important; }

.section-padding { padding: 90px 0; }

.section-news {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.box-custom-rounded {
  background-color: #fff;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
}

.table-custom {
  border-color: var(--border-color) !important;
}
.table-custom th {
  background-color: rgba(251, 249, 246, 0.8) !important;
  font-weight: normal !important;
}

.site-footer {
  background-color: var(--footer-bg);
  color: #f9f9f9;
}
.footer-title { border-color: #666 !important; }
.footer-info-box {
  border-left: 2px solid var(--accent-color);
  padding-left: 1.5rem;
}
.border-footer { border-color: #444 !important; }

.footer-map-box {
  border-radius: 8px;
  border: 1px solid #555 !important;
  background-color: #222;
  overflow: hidden;
}
.footer-copyright {
  background-color: #2a2624;
  border-top: 1px solid #444 !important;
}
.mobile-menu-dropdown { top: 100%; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-color);
}
.section-title-wrapper {
  text-align: center;
}

/* =========================================
   Buttons
========================================= */
.btn-outline-custom {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.8); 
  transition: all 0.3s;
  border-radius: 30px; 
}
.btn-outline-custom:hover {
  background-color: rgba(255, 255, 255, 1); 
  color: var(--primary-color);
}

.footer-btn {
  border: 1px solid #666;
  color: #fff;
  border-radius: 30px;
  transition: all 0.3s;
}
.footer-btn:hover {
  color: #666;
  background-color: rgba(255, 255, 255, 1); 
}
.footer-btn .serif {
  color: inherit !important;
}

/* =========================================
   Header
========================================= */
.header-wrapper {
  background-color: rgba(234, 190, 25, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030; /* 他の要素より上に表示 */
  width: 100%;
}
.header-wrapper nav a {
  font-size: 0.9rem; /* 文字サイズを少し小さくする */
  white-space: nowrap; /* 項目が改行されるのを防ぐ */
}

/* =========================================
   Hero Section (LCP最適化仕様)
========================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden; /* はみ出し防止 */
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 背景画像のように扱う */
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(251, 249, 246, 0.7);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* =========================================
   描画負荷軽減 (Content Visibility)
========================================= */
.philosophy-grid img,
.item-card img,
.map-container iframe {
  content-visibility: auto;
}

/* =========================================
   Philosophy Grid
========================================= */
.philosophy-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.philosophy-grid .main-img {
  grid-column: 1 / 3;
}
.philosophy-grid img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* =========================================
   当店の強み (カード風)
========================================= */
.strength-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #fff;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* =========================================
   Problem & Solution Section
========================================= */
.problem-section {
  background-color: #f4f2ef;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.concern-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.concern-card i {
  color: #a0938a;
}
.solution-box {
  background: linear-gradient(135deg, #fdfbf7, #fbf6f0);
  border: 2px dashed var(--accent-color);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}
.arrow-down {
  font-size: 2.5rem;
  color: var(--accent-color);
  text-align: center;
  margin: 2rem 0;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-5px); }
}

/* =========================================
   Flow Section
========================================= */
.flow-step {
  background: transparent;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-color);
}
.flow-step:last-child {
  border-bottom: none;
}
.flow-step-num {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  font-family: 'Noto Serif JP', serif;
}
.flow-store {
  border: 3px double var(--border-color);
  border-radius: 12px;
  background-color: #fff;
  padding: 2.5rem;
}
.flow-visit {
  border: 3px double var(--border-color);
  border-radius: 12px;
  background-color: #f5f2ed;
  padding: 2.5rem;
}

/* =========================================
   Google Map
========================================= */
.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.map-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* =========================================
   Items Section
========================================= */
.item-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: all 0.3s;
  cursor: pointer;
}
.item-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.item-card img {
  width: 120px; /* PC表示での基準サイズ */
  max-width: 100%; /* スマホ表示で親要素からはみ出さないようにする */
  height: auto; /* 画像の縦横比を維持する */
  object-fit: contain;
  margin-bottom: 10px;
}
.item-keywords {
  font-size: 0.7rem;
  color: #888;
  line-height: 1.1;
  margin-top: 2px;
  display: block;
}

@media (max-width: 767px) {
  .item-col:nth-child(n+10) { display: none; }
  .item-col.show { display: block; }
}

/* その他の買取品目エリア */
.other-items-box {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}
.other-items-box h4 {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* =========================================
   Mobile Bottom Nav (Fixed Footer)
========================================= */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #fff;
  border-top: 1px solid var(--border-color);
  z-index: 1050;
  display: flex;
  padding: 10px 15px;
}
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}
.bottom-nav a {
  background-color: #eabe19; /* 基調色の黄色 */
  color: var(--primary-color);
  font-weight: bold;
  border-radius: 6px;
  border: none;
}
.bottom-nav a i {
  color: #fff;
}

/* =========================================
   News Section
========================================= */
.news-list {
  max-width: 100%;
}

/* =========================================
   FAQ Accordion
========================================= */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.5);
}
.accordion-item {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-of-type {
  border-bottom: none;
}
.accordion-button {
  background-color: transparent;
  color: var(--primary-color);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  padding: 1.5rem 1.5rem;
}
.accordion-button:not(.collapsed) {
  background-color: #fff;
  color: var(--accent-color);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234a3b32'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after {
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b57a59'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
  background-color: #fff;
  padding: 1.5rem;
  color: var(--text-color);
}

/* =========================================
   FAQ Tabs
========================================= */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  color: var(--text-color);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
  color: var(--accent-color);
  background-color: #fff;
  border-color: var(--border-color) var(--border-color) #fff;
  font-weight: 500;
}
.tab-content > .tab-pane {
  background-color: transparent;
}

/* よくある質問のタブ切り替え スマホ最適化 */
#faq .nav-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 1.5rem;
}

#faq .nav-tabs .nav-item {
  flex: 0 0 auto; /* 横幅を自動で維持し、縮ませない */
  white-space: nowrap; /* 文字の折り返しを防ぐ */
}

#faq .nav-tabs .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem; /* スマホ用に少し文字を小さく */
}

/* =========================================
   Item Modal
========================================= */
.modal-content {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
}
.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}
.modal-title {
  font-family: 'Noto Serif JP', serif;
  color: var(--primary-color);
}
.modal-body {
  padding: 2rem 1.5rem;
}
.modal-point-list {
  list-style: none;
  padding-left: 0;
}
.modal-point-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.modal-point-list li::before {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 2px;
}
}