/* ========================================
   Kirei Labs - Stylesheet
   ======================================== */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Header ----- */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #222;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  font-size: 13px;
  color: #666;
  letter-spacing: 0.01em;
}

.nav-link.active {
  color: #222;
  font-weight: 500;
}

/* ----- Hero (Top) with Background Image ----- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center top;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.78);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.hero-sub {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #333;
  color: #fff;
}

.btn-primary:hover {
  background-color: #555;
  opacity: 1;
}

.btn-secondary {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #f8f8f8;
  opacity: 1;
}

.btn-card {
  width: 100%;
  padding: 10px 16px;
  background-color: #fafafa;
  color: #444;
  border: 1px solid #e8e8e8;
  font-size: 12px;
  text-align: center;
}

.btn-card:hover {
  background-color: #f0f0f0;
  opacity: 1;
}

/* ----- Categories Section ----- */
.categories {
  padding: 50px 0 70px;
}

.section-title {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
}

/* ----- Category Block ----- */
.category-block {
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #f0f0f0;
}

.category-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.comparison-label {
  display: inline-block;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background-color: #f8f8f8;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ----- Card Grid ----- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ----- Product Card ----- */
.product-card {
  position: relative;
  padding: 24px 20px 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
}

.card-badge {
  position: absolute;
  top: -1px;
  left: 16px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background-color: #555;
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.05em;
}

.card-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-top: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-info {
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row dt {
  flex-shrink: 0;
  width: 60px;
  color: #888;
  font-weight: 400;
}

.info-row dd {
  color: #444;
}

.info-row.caution dd {
  color: #a08060;
}

/* ----- Page Hero (Sub pages) ----- */
.page-hero {
  padding: 50px 0 40px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.title-en {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ----- Kijun Page ----- */
.kijun-content {
  padding: 30px 0 70px;
}

.kijun-main {
  padding: 30px 24px;
  background-color: #fafafa;
  border-radius: 6px;
  margin-bottom: 40px;
}

.kijun-lead {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
}

.kijun-steps {
  counter-reset: none;
}

.kijun-steps li {
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.7;
}

.kijun-steps li:last-child {
  margin-bottom: 0;
}

.step-num {
  font-weight: 600;
  margin-right: 4px;
}

.step-detail {
  color: #666;
  font-size: 13px;
}

/* ----- Kijun Details ----- */
.kijun-details {
  margin-bottom: 40px;
}

.detail-block {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-block:first-child {
  padding-top: 0;
}

.detail-block:last-child {
  border-bottom: none;
}

.detail-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.detail-text {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ----- Checklist Card ----- */
.checklist-card {
  padding: 28px 24px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.checklist-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.checklist {
  margin-bottom: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  margin-top: 2px;
}

.check-text {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.checklist-note {
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}

/* ----- Disclosure Page ----- */
.disclosure-content {
  padding: 30px 0 70px;
}

.disclosure-block {
  padding: 24px;
  background-color: #fafafa;
  border-radius: 6px;
  margin-bottom: 16px;
}

.disclosure-text {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.amazon-block[data-amazon="false"] {
  display: none;
}

.disclosure-note {
  margin-top: 30px;
  padding: 20px 24px;
  border-left: 3px solid #e0e0e0;
}

.disclosure-note p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 8px;
}

.disclosure-note p:last-child {
  margin-bottom: 0;
}

/* ----- Footer ----- */
.footer {
  padding: 30px 0;
  border-top: 1px solid #f0f0f0;
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: 12px;
  color: #999;
}

.footer-link {
  font-size: 12px;
  color: #888;
}

/* ----- Utility & Responsive ----- */
@media (min-width: 600px) {
  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: 80px 40px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.7;
  }

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

  .hero-desc br {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 34px;
  }
}

/* ===== Print / PDF: prevent card split across pages ===== */
.card,
.product-card,
.item-card,
.category-card {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* 印刷時は2カラムが分断要因になりやすいので、1カラムに寄せる */
@media print {
  .grid,
  .cards,
  .card-grid,
  .items-grid,
  .category-grid {
    display: block !important;
  }
  .card,
  .product-card,
  .item-card,
  .category-card {
    margin: 0 0 16px 0 !important;
    box-shadow: none !important;
  }
  a[href]:after { content: ""; }
}

/* ===== Print / PDF: keep category blocks together (recommended) ===== */
.category,
.section,
.category-section,
.category-block {
  break-inside: avoid;
  page-break-inside: avoid;
}

@media print {
  h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
}

/* ===== STEP8: Editorial / Luxury Card Design ===== */

/* STEP8-1: カードの影を削り、境界線を薄く */
.product-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

/* STEP8-2: カードの余白と行間を増やして高級感 */
.product-card {
  padding: 28px 24px 24px;
}

.card-name {
  margin-bottom: 18px;
  line-height: 1.4;
}

.card-info {
  margin-bottom: 20px;
}

.info-row {
  line-height: 1.85;
  margin-bottom: 12px;
}

/* STEP8-3: カテゴリ間のリズム（余白）*/
.category-block {
  padding: 56px 0;
  margin-bottom: 0;
}

.category-block + .category-block {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.category-block:last-child {
  padding-bottom: 40px;
}

/* STEP8-4: ボタンを上品なリンクボタンへ */
.btn {
  border-radius: 8px;
  box-shadow: none;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #222;
  color: #fff;
  border: 1px solid #222;
}

.btn-primary:hover {
  background: #444;
  border-color: #444;
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-card {
  border-radius: 6px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

.btn-card:hover {
  background: #f5f5f5;
}

/* ===== STEP9: Uniform Product Images with Lazy Loading ===== */
.product-media {
  height: 180px;
  background: #fafaf8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (min-width: 600px) {
  .product-media {
    height: 200px;
  }
}

/* ===== STEP12: 2-Button Affiliate Links ===== */
.card-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-actions .btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-amazon {
  background: #ff9900;
  color: #fff;
}

.btn-amazon:hover {
  background: #e68a00;
  opacity: 1;
}

.btn-rakuten {
  background: #fff;
  color: #bf0000;
  border: 1px solid #bf0000;
}

.btn-rakuten:hover {
  background: #bf0000;
  color: #fff;
  opacity: 1;
}

.btn-disabled {
  background: #f0f0f0;
  color: #999;
  border: 1px solid #ddd;
  cursor: not-allowed;
  pointer-events: none;
}

.card-disclosure {
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

@media (min-width: 600px) {
  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .card-disclosure {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Disclosure page - English text */
.disclosure-text-en {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
