:root {
  --color-bg: #f5f7f6;
  --color-bg-alt: #ffffff;
  --color-primary: #1f6b4a;
  --color-primary-light: #2f8b63;
  --color-accent: #f5b400;
  --color-text: #222;
  --color-muted: #666;
  --radius-base: 8px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
  --max-width: 1080px;
  --header-height: 60px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* ======================================================================== */
/* 共通ヘッダー                                                             */
/* ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  background: url("https://naganorc.co.jp/image/bunner/logo.svg") no-repeat;
  background-size: 36px;
  background-position: top 18px left 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding-left: 32px;
}

.logo a {
  text-decoration: none;
  color: #222;
}

/* ハンバーガー */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 9999 !important;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* メニュー（スマホ） */

.site-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 50%;
  height: calc(100vh - var(--header-height));
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 999;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 16px;
}

.site-nav li + li {
  border-top: 1px solid #eee;
}

.site-nav a {
  display: block;
  padding: 4px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
}

/* extra はスマホのみ表示 */
.site-nav .extra {
  display: none;
}

/* ハンバーガーON → スライドメニュー表示 */
.nav-toggle:checked + .nav-toggle-label + .site-nav {
  transform: translateX(0);
}

/* 背景スクロール防止（スマホ） */
.nav-toggle:checked ~ * {
  overflow: hidden;
}

/* ハンバーガーアニメ */

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 768px以上（タブレット & PC） */
@media (min-width: 768px) {

  /* 通常時：横並びメニュー */
  .site-nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    margin-right: 48px;
  }

  .site-nav ul {
    display: flex;
    gap: 24px;
    padding: 0;
  }

  .site-nav li {
    border: none;
  }

  .site-nav a {
  padding: 4px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  }

  .site-nav li.extra {
    display: none;
  }

  /* ★ ハンバーガーON：横並びメニューを消す ★ */
  .nav-toggle:checked + .nav-toggle-label + .site-nav ul {
    display: block;        /* ← ここが最重要！flex のままだと壊れる */
    padding: 16px;         /* ← スライドメニュー用に戻す */
    gap: 0;                /* ← flex の余白をリセット */
  }

  /* ★ ハンバーガーON：スライドメニューに戻す ★ */
  .nav-toggle:checked + .nav-toggle-label + .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 50%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(0);
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  }
  
  .nav-toggle:checked + .nav-toggle-label + .site-nav .extra {
    display: block;
  }
  
  .nav-toggle:checked + .nav-toggle-label + .site-nav li + li {
    border-top: 1px solid #eee;
  }
}

/* スマホ（〜767px）でハンバーガーONのとき extra を表示 */
@media (max-width: 767px) {
  .nav-toggle:checked + .nav-toggle-label + .site-nav .extra {
    display: block !important;
  }
}


/* ======================================================================== */
/* 共通ヒーロー                                                             */
/* ======================================================================== */

.hero {
  position: relative;
  background: url("https://naganorc.co.jp/image/bunner/index_hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 40px 16px 32px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tagline {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: 26px;
  margin: 0 0 12px;
}

.hero-text {
  margin: 0 0 20px;
  color: #eee;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* ======================================================================== */
/* 共通ボタン                                                               */
/* ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-primary-light);
}

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

.btn-outline:hover {
  background: var(--color-primary-light);
}


/* ======================================================================== */
/* 共通サブヒーロー                                                         */
/* ======================================================================== */
.hero-sub {
  background: linear-gradient(135deg, #1f6b4a, #2f8a63);
  color: #fff;
  padding: 60px 16px;
  text-align: center;
}

.hero-sub h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.hero-sub p {
  font-size: 15px;
  opacity: 0.9;
}

/* ======================================================================== */
/* 共通セクション                                                           */
/* ======================================================================== */
.section {
  scroll-margin-top: 80px; /*固定ヘッダーズレ対策*/
  padding: 32px 16px;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 20px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* カード */

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-muted);
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.card-link {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
}

.card .pill-list {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

/* ピルリスト */

.pill-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

/* ステップ */

.step-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.step-list h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step-list p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}


.step-list2 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.step-list2 h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step-list2 p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}


/* 実績 */

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-number {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.stat-label {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}

/* お知らせ */

.news-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.news-date {
  font-size: 12px;
  color: var(--color-muted);
  margin-right: 8px;
}

.news-more {
  max-width: 800px;   /* ← .news-list と同じ幅にする（必要に応じて調整） */
  margin: 0 auto;     /* 中央寄せ（UL と同じ動きになる） */
  text-align: right;  /* 右寄せ */
  margin-top: 10px;
}

.news-more a {
  text-decoration: underline;
}

/* お問い合わせ */

.contact-box {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-base);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.contact-tel {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.contact-btn {
  margin-top: 12px;
}

/* 営業時間まとめ */
.hours-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hours-card {
  background: #fff;
  border-radius: var(--radius-base);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.hours-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.hours-time {
  margin: 0;
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
}

.hours-close {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

/* PCレイアウト */
@media (min-width: 768px) {
  .hours-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  #contact {
    scroll-margin-top: 120px;
  }
}


/* ======================================================================== */
/* 共通フッター                                                             */
/* ======================================================================== */
.site-footer {
  background: #111;
  color: #eee;
  padding: 24px 16px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 13px;
}

.footer-logo {
  margin: 0 0 4px;
  font-weight: 700;
}

.footer-info {
  margin: 0 0 8px;
  color: #aaa;
}

.footer-copy {
  margin: 0;
  color: #666;
}

/* フッター下余白 */
.scroll-buffer {
  height: 300px;
  background: #111;
}

/* フッターリンク */
.footer-links {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* SNS */
.footer-sns {
  margin: 12px 0;
  display: flex;
  gap: 16px;
}

.footer-sns a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}

.footer-sns a:hover {
  color: #fff;
}

/* PCレイアウト */
@media (min-width: 768px) {
  .footer-links {
    gap: 20px;
  }
  .footer-sns {
    gap: 20px;
  }
}

/* PCレイアウト */

@media (min-width: 768px) {
  .header-inner {
    padding: 0 24px;
  }

  .site-nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 16px;
    padding: 0;
  }

  .site-nav li + li {
    border-top: none;
  }

  .site-nav a {
    padding: 0;
    font-size: 14px;
  }

  .hero {
    padding: 60px 24px 48px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-text {
    font-size: 15px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step-list2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step-list.illustrated li {
  text-align: center;
}


.step-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  background: #e9f2ed; /* 深緑の薄いトーン */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.step-icon {
  width: 48px;
  height: 48px;
}

#faq .container {
  max-width: var(--max-width);
}

.faq-item {
  width: 100%;
}


.faq-q {
  font-weight: 600; font-size: 14px; margin-bottom: 4px; 
}
.faq-a {
  font-size: 13px; color: #555;
}


/* 大型バナー（横スクロール） */
.banner-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 320px; /* 高さは好みで調整 */
}

.banner-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 横に並べて流す */
.banner-track {
  display: flex;
  width: calc(100% * 6); /* 画像3枚 × 2セット */
  animation: slideBanner 20s linear infinite;
}

.banner-track img {
  flex-shrink: 0;
  width: 100%;
}

/* アニメーション */
@keyframes slideBanner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300%);
  }
}


/* ============================
   スライダー（矢印・ドット付き）
   ============================ */

.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
}

/* ← ここで左右に余白を作ってチラ見せ */
.slider-inner {
  overflow: hidden;
  padding: 0 80px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

/* スライド幅は 100% のまま！ */
.slide {
  flex: 0 0 100%;
  padding: 0 10px; /* ← これで左右のスライドが少し見える */
  box-sizing: border-box;
  opacity: 0.6;
  transform: scale(0.9);
  transition: 0.4s;

}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* スマホ */
@media (max-width: 768px) {
  .slider-inner {
    padding: 0 40px;
  }
}

/* 矢印ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ドット */
.slider-dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots .active {
  background: var(--color-primary);
}



/* ======================================================================== */
/* 店舗案内                                                                 */
/* ======================================================================== */
.hero-sub {
  background: linear-gradient(135deg, #1f6b4a, #2f8a63);
  color: #fff;
  padding: 60px 16px;
  text-align: center;
}

.store-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 40px;
}

.store-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.store-body {
  padding: 20px;
}

.store-name {
  font-size: 22px;
  margin-bottom: 4px;
}

.store-type {
  font-size: 14px;
  color: #1f6b4a;
  margin-bottom: 16px;
}

.store-info {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
}

.btn-map {
  display: inline-block;
  padding: 10px 18px;
  background: #1f6b4a;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.btn-line {
  display: inline-block;
  padding: 10px 18px;
  background: #06c755;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.item-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  min-height: 180px; /* 高さを揃える */
}

.item-icon {
  width: 48px;
  height: 48px;
  background: #e9f2ed;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.item-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.item-text {
  font-size: 13px;
  color: #555;
  margin-top: auto; /* 下に寄せる */
}

.badge-red {
  background:#ffebee; color:#c62828; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* 横並びレイアウト */
.store-flex {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* 左側（情報） */
.store-left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

/* 右側（地図） */
.store-map {
  flex: 1 1 50%;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.store-map iframe {
  width: 100%;
  height: 100%;
  height: calc(100% + 64px);
  margin-top: -64px;
  display: block;
}

/* スマホでは縦並びにする */
@media (max-width: 768px) {
  .store-flex {
    flex-direction: column;
  }

  .store-map {
    height: 600px; /* ← ここが重要 */
    min-height: 300px;
  }
}



/* ======================================================================== */
/* 会社概要                                                                 */
/* ======================================================================== */

/* カード */
.company-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 表 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th {
  width: 30%;
  background: #e9f2ed;
  color: #1f6b4a;
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #dfe7e4;
}

.company-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* リスト */
.company-list {
  padding-left: 20px;
  margin: 8px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}

/* テキスト */
.company-text {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

/*企業PV*/
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 の比率 = 9 / 16 = 0.5625 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ======================================================================== */
/* サイトマップ                                                             */
/* ======================================================================== */

/* サイトマップのグリッド */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sitemap-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f6b4a;
  margin-bottom: 8px;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  margin-bottom: 6px;
}

.sitemap-list a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.sitemap-list a:hover {
  color: #1f6b4a;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}


#news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  font-size: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.news-date {
  color: #0b3d2e;
  font-weight: 600;
  margin-right: 8px;
}

.news-title {
  color: #333;
  text-decoration: none;
}

.news-title:hover {
  color: #0b3d2e;
}


/* ======================================================================== */
/* 店舗開業実績(引取実績とも併用)                                           */
/* ======================================================================== */

/* 横並びレイアウト */
.openarcive-flex {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.openarcive-left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: row-reverse;
  gap: 24px;

}

.openarcive-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 40px;
}

.openarcive-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
}

.openarcive-body {
  padding: 20px;
  flex: 1;
}

.openarcive-name {
  font-size: 22px;
  margin-bottom: 4px;
}

.openarcive-info {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
}

#archive .container {
  max-width: var(--max-width);
}

@media (max-width: 768px) {
  .openarcive-left {
    flex-direction: column; /* スマホでは縦並びに戻す */
  }

  .openarcive-img {
    max-width: 100%; /* スマホでは横幅いっぱいに */
  }
}

/* ======================================================================== */
/* オンラインショップ                                                       */
/* ======================================================================== */


#main, .contents, .item_list, .list_area {
    overflow: visible !important;
}

/* 行コンテナ */
.item700 {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center; /* ← 余白を中央に寄せる */
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important; /* ← 画像の下の隙間を消す */
}

/* ====== 商品1個＝カード1個（高さ揃え） ====== */

.item700 .item {
    width: calc(33.333% - 24px); /* ← 幅を固定する */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.2s ease;
    line-height: 1.4;
}

/* ホバーで少し浮く */
.item700 .item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* 画像 */
.item700 .itemImg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    display: block;
}

/* 商品名 */
.item700 .name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 8px 0;
}

/* サブ情報 */
.item700 .subdata {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 価格・在庫 */
.item700 .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0070c9;
    margin-top: auto;
}

.item700 .stock {
    margin-left: 6px;
    color: #666;
    font-size: 13px;
}

/* スマホ時だけ横並びに変更 */
@media (max-width: 600px) {
    .item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .item-img {
        width: 35%; /* 画像の幅を固定 */
        flex-shrink: 0;
    }

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

    .item-body {
        width: 65%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}



/* 左メニュー全体の余白調整 */
.listarea200 {
    padding: 0;
    margin: 0;
    border: none !important;
}

/* カテゴリカード（電化製品・家庭用家具など） */
.category200 {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* カテゴリ画像（電化製品などのバナー） */
.category200 > a img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* リスト（冷蔵庫・洗濯乾燥機など） */
.category200 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category200 ul li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
}

.category200 ul li:last-child {
    border-bottom: none;
}

/* リンク */
.category200 ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.category200 ul li a:hover {
    color: #0070c9;
}

/* アイコン（→ の画像）を少し薄く） */
.category200 ul li img {
    opacity: 0.6;
}




/* 全体カード */
.search-header {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* パンくず */
.breadcrumbs {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.breadcrumbs a {
    color: #0070c9;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 検索フォーム */
/* 全体を横並びに */
.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 左・中央・右の幅バランス */
.search-left {
    flex: 1;
}

.search-center {
    flex: 2;
}

.search-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

/* 入力系の見た目 */
.search-bar select,
.search-bar input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ボタン */
.search-bar button {
    padding: 6px 14px;
    background: #0070c9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background: #005fa3;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-right {
        justify-content: flex-start;
    }
}

/* ページナビ表示 */

.pagination {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.result-count {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* ページナビの中身（前へ・数字・次へ） */
.page-navi {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}


/* ボタン類（前へ・次へ・数字・…・空スロット） */
.page-navi a,
.page-navi .nowpage,
.page-navi .dots,
.page-navi .disabled,
.page-navi .empty {
    width: 40px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}


.page-navi a:hover {
    background: #0070c9;
    color: #fff;
    border-color: #0070c9;
}

.page-navi .nowpage {
    background: #0070c9;
    color: #fff;
    border-color: #0070c9;
    font-weight: 700;
}

.page-navi .empty {
    visibility: hidden; 
}

.page-navi .dots {
    border: none;
    background: transparent;
    color: #777;
    pointer-events: none;
}
/* 押せないボタン（◀ ▶ の disabled） */
.page-navi .disabled {
    background: #f5f5f5;
    color: #aaa;
    border-color: #e0e0e0;
    pointer-events: none;
}
