/* =============================================
   COMPANY cont.css v2 — 施設ファースト構成
   navi.css の共通変数・レイアウトを継承
   ============================================= */

:root {
  --primary-color: #d4582a;
  --primary: #d4582a;
  --primary-dark: #b84a22;
  --primary-light: #e8764a;
  --primary-pale: #fdf3ee;
  --secondary-color: #4caf50;
  --secondary: #4caf50;
  --accent: #d4582a;
  --text-color: #2c2825;
  --text: #2c2825;
  --text-mid: #5c5550;
  --text-light: #8a8480;
  --bg-light: #f5f2ee;
  --bg-page: #faf9f7;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --border: #e8e4e0;
  --border-light: #f2efec;
  --shadow: 0 4px 16px rgba(26, 24, 22, 0.06);
  --shadow-lg: 0 8px 32px rgba(26, 24, 22, 0.08);
  --gradient-primary: linear-gradient(135deg, #d4582a 0%, #e8764a 100%);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

#main-content * {
  box-sizing: border-box;
}

/* =============================================
   親コンテナの幅制約を解除 — 画面幅いっぱいに
   ============================================= */
#container,
#content,
#main-content,
#main-content .wrap,
#main-container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#main-container {
  overflow-x: hidden;
  background: var(--bg-page);
}

/* =============================================
   共通コンポーネント
   ============================================= */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.sp-br { display: none; }
.pc-br { display: inline; }

/* セクションヘッダー */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  margin: 16px 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-top: 14px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-divider {
  margin: 16px auto;
}

.section-header--center .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   03 — 特徴カード（3カラム）
   ============================================= */
.features-section {
  background: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-color);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.85;
  text-align: left;
}

.feature-highlight {
  color: var(--primary);
  font-weight: 700;
}

.feature-card p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feature-card p a:hover {
  color: var(--primary-dark);
}

/* =============================================
   04 — 写真ギャラリー
   ============================================= */
.gallery-section {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
  background: #e0dcd8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 24px 10px 8px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-blog-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.gallery-blog-link a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.gallery-blog-link a:hover {
  color: var(--primary);
}

/* =============================================
   05 — 動画セクション
   ============================================= */
.video-section {
  background: var(--white);
}

.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* lite-youtube-embed CSS */
lite-youtube {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  max-width: 100%;
}

lite-youtube::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==');
  background-position: top;
  background-repeat: repeat-x;
  height: 60px;
  padding-bottom: 50px;
  width: 100%;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  z-index: 1;
}

lite-youtube::after {
  content: "";
  display: block;
  padding-bottom: calc(100% / (16 / 9));
}

lite-youtube > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

lite-youtube > .lty-playbtn {
  display: block;
  width: 68px;
  height: 48px;
  position: absolute;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0);
  top: 50%;
  left: 50%;
  z-index: 1;
  background-color: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
  filter: grayscale(100%);
  transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
  border: none;
}

lite-youtube:hover > .lty-playbtn,
lite-youtube .lty-playbtn:focus {
  filter: none;
}

lite-youtube.lyt-activated {
  cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lty-playbtn {
  opacity: 0;
  pointer-events: none;
}

.lyt-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.video-wrapper lite-youtube {
  border-radius: var(--radius-lg);
}

/* =============================================
   06 — 会社情報テーブル
   ============================================= */
.company-section {
  background: var(--bg-page);
}

.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
}

.info-group h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 18px;
}

.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-label {
  font-weight: 700;
  color: var(--text-color);
  min-width: 110px;
  flex-shrink: 0;
  font-size: 13px;
}

.info-value {
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 13.5px;
}

.info-value a {
  color: var(--primary);
  text-decoration: underline;
}

.info-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* 認定バッジ */
.badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.badge-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.badge-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.badge-item h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
}

.badge-item p {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 3px;
}

.badge-item p a {
  color: var(--primary);
}

/* =============================================
   07 — 拠点カード
   ============================================= */
.locations-section {
  background: var(--bg-light);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease);
}

.location-card:hover {
  box-shadow: var(--shadow);
}

.location-map-wrap {
  width: 100%;
  line-height: 0;
}

.location-map-wrap iframe {
  width: 100%;
  display: block;
}

.location-info {
  padding: 20px;
}

.location-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 8px;
}

.location-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.location-info p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   バナーセクション共通
   ============================================= */
.banner-section {
  padding: 36px 0;
}

.banner-section + .banner-section {
  padding-top: 0;
}

.okagesama-banner,
.manga-banner,
.review-banner,
.line-banner {
  max-width: 800px;
  width: 100%;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}

.speed-banner {
  max-width: 1000px;
  width: 100%;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}

.okagesama-banner:hover,
.manga-banner:hover,
.review-banner:hover,
.line-banner:hover,
.speed-banner:hover {
  transform: translateY(-2px);
}

/* =============================================
   08 — 遺品買取セクション
   ============================================= */
.ihin-section {
  background: linear-gradient(135deg, #fdf8f4 0%, #faf3ec 100%);
}

.ihin-content {
  display: flex;
  gap: 36px;
  align-items: center;
}

.ihin-image {
  width: 220px;
  min-width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ihin-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ihin-text {
  flex: 1;
}

.ihin-text h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-color);
}

.ihin-text p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
}

.ihin-text a {
  color: var(--primary);
  text-decoration: underline;
}

.ihin-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ihin-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
}

/* =============================================
   09 — 姉妹店セクション
   ============================================= */
.sister-section {
  background: var(--white);
}

.sister-shop-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease);
}

.sister-shop-card:hover {
  box-shadow: var(--shadow);
}

.sister-shop-image {
  width: 280px;
  min-width: 280px;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sister-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sister-shop-info {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sister-shop-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-color);
}

.sister-shop-info p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sister-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  align-self: flex-start;
}

.sister-shop-link:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  color: #fff;
}

/* =============================================
   10 — メディア掲載
   ============================================= */
.media-section {
  background: var(--bg-page);
}

.media-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.media-item {
  background: var(--white);
  border-radius: var(--radius);
  width: 180px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.media-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   11 — FAQ
   ============================================= */
.faq-section {
  background: var(--bg-light);
}

.faq-mini {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease);
}

.faq-item:hover {
  box-shadow: 0 1px 3px rgba(26, 24, 22, 0.04);
}

.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  gap: 12px;
  color: var(--text-color);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '＋';
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-q::after {
  content: '－';
}

.faq-a {
  padding: 0 20px 16px;
  display: none;
  color: var(--text-mid);
  line-height: 1.9;
  font-size: 13.5px;
}

.faq-item[open] .faq-a {
  display: block;
}

.faq-a a {
  color: var(--primary);
  text-decoration: underline;
}

/* =============================================
   特定商取引法による表記
   ============================================= */
.tokushoho-section {
  background: var(--white);
}

.tokushoho {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tokushoho__row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.tokushoho__row:last-child {
  border-bottom: none;
}

.tokushoho__label {
  flex-shrink: 0;
  width: 150px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  background: var(--bg-light);
  border-right: 1px solid var(--border-light);
  line-height: 1.6;
}

.tokushoho__value {
  flex: 1;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

.tokushoho__value a {
  color: var(--primary);
  text-decoration: underline;
}

.tokushoho__value strong {
  color: var(--text-color);
  font-weight: 700;
}

/* =============================================
   CTA セクション（navi.css のフローティングCTAと連携）
   ============================================= */
.cta-section {
  background: var(--gradient-primary);
  padding: 72px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  margin: 0 0 10px;
  font-weight: 800;
  position: relative;
}

.cta-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-cta {
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 32px;
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s var(--ease);
}

.btn-white {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary-color);
  border-color: #fff;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .sp-br { display: inline; }
  .pc-br { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: auto;
  }

  .company-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-group { padding: 20px; }
  .info-label { min-width: 90px; font-size: 12px; }
  .info-value { font-size: 12px; }

  .badges-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .locations-grid { grid-template-columns: 1fr; }

  .ihin-content { flex-direction: column; text-align: center; }
  .ihin-image { width: 160px; min-width: unset; margin: 0 auto; }
  .ihin-text { text-align: left; }
  .ihin-badges { justify-content: center; }

  .sister-shop-card { flex-direction: column; }
  .sister-shop-image { width: 100%; min-width: unset; max-height: 180px; }
  .sister-shop-info { padding: 20px; }

  .media-item { width: 140px; }

  .tokushoho__row { flex-direction: column; }
  .tokushoho__label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 16px;
  }
  .tokushoho__value { padding: 12px 16px; }

  .banner-section { padding: 28px 0; }

  .cta-title { font-size: 24px; }
  .btn-cta { padding: 12px 28px; font-size: 14px; }
}

@media (max-width: 480px) {
  .badges-row { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
