/* =========================================
   1. Hero Section (Text Overlay)
   Revised: Absolute positioning for perfect fit
========================================= */
.hero-header img{ 
  width: 100%;
  height:auto;
  object-fit:cover;
}

/* =========================================
   1.5 News Section (New!)
========================================= */
.news-section {
  max-width: 980px; 
  margin: 1rem auto 2rem; /* ヒーロー画像に少し被せるか、近づける */
  padding: 0 1rem;
  position: relative; 
  z-index: 5;
}

.news-box {
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-header {
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 0.5rem; margin-bottom: 0.5rem;
}

.news-header h3 {
  margin: 0; font-size: 1rem; color: var(--brand);
}

.news-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.95rem;
  
  /* スクロール設定 */
  max-height: 120px;       /* 高さを制限（約3行分） */
  overflow-y: auto;        /* 内容が溢れたらスクロールさせる */
  padding-right: 10px;     /* スクロールバーと文字が被らないよう余白 */
  
  /* Firefox用スクロールバー設定 */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) transparent;
}

/* Chrome, Safari, Edge用スクロールバー設定 */
.news-list::-webkit-scrollbar {
  width: 6px;              /* スクロールバーの太さ */
}
.news-list::-webkit-scrollbar-track {
  background: transparent; /* 背景は透明 */
}
.news-list::-webkit-scrollbar-thumb {
  background-color: var(--accent-light); /* つまみの色（薄いベージュ） */
  border-radius: 10px;     /* 丸くする */
}
.news-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent); /* ホバー時は濃くする */
}

.news-list li {
  display: flex;
  flex-wrap: wrap; /* スマホで折り返し */
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #eee;
}
.news-list li:last-child { border-bottom: none; }

.news-date {
  color: var(--accent-warm); /* 日付を目立たせる */
  font-weight: 700;
  font-family: monospace; /* 数字を整える */
  opacity: 0.8;
}

.news-content {
  color: var(--text);
  flex: 1;
}

/* PCなら横並びでニュースをコンパクトにする場合 */
@media (min-width: 768px) {
  .news-box {
    flex-direction: row; align-items: flex-start;
  }
  .news-header {
    border-bottom: none; border-right: 2px solid var(--accent-light);
    padding-bottom: 0; padding-right: 1.5rem; margin-bottom: 0; margin-right: 0.5rem;
    min-width: 120px;
  }
}

/* =========================================
   2. Container Styles (About/Donation)
   About.css のスタイルを継承
========================================= */
#about, #donation { padding: clamp(2rem, 3vw, 3rem) 1rem; position: relative; z-index: 2; }

.about-wrap, .donation-wrap {
  max-width: 980px; margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  position: relative; overflow: hidden;
}

/* 🐾 Watermark Decoration */
.about-wrap::before, .donation-wrap::before {
  content: "🐾"; position: absolute; opacity: 0.05; pointer-events: none;
  font-size: 6rem; right: -1rem; top: -1rem; transform: rotate(15deg);
  color: var(--brand);
}

.about-title, #donation h2 {
  margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--brand); line-height: 1.4;
}

.about-lead, .donation-lead {
  margin: .5rem auto 1.5rem; max-width: 720px;
  color: var(--text); line-height: 1.9; font-size: 1rem;
}
.about-lead strong, .donation-lead strong {
  background: linear-gradient(transparent 70%, var(--accent-light) 70%); /* マーカー風 */
  padding: 0 4px;
}

/* TOP用 Aboutボタン */
.btn-about {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.8rem 1.8rem; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 6px 16px rgba(253,160,133,0.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-about:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(253,160,133,0.5); }


/* =========================================
   3. Series Cards
========================================= */
.series {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 2rem 1rem; max-width: 1080px; margin: 0 auto;
}
@media (min-width: 768px) { .series { grid-template-columns: repeat(2, 1fr); } }

.series-h { font-size: 1.6rem; font-weight: 700; margin: 0 0 .5rem; color: var(--brand); grid-column: 1/-1; text-align: center; }
.series-p { margin: 0 0 1.5rem; color: var(--text-subtle); line-height: 1.7; grid-column: 1/-1; text-align: center; }

.series-card {
  position: relative; background: #fff; 
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05); 
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.series-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

.img-wrap { position: relative; aspect-ratio: 16/9; background: var(--accent-light); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.series-card:hover .img-wrap img { transform: scale(1.03); }

.series-detail-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  padding: .4rem .9rem; font-size: .8rem; font-weight: 700;
  border-radius: 999px; background: rgba(255,255,255,0.95);
  color: var(--brand); text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.series-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; z-index: 1; }
.series-card-h { font-weight: 700; margin: 0 0 .5rem; font-size: 1.2rem; color: var(--brand); }
.series-card-p { margin: 0; color: var(--text-subtle); line-height: 1.7; font-size: .95rem; }

/* Card Buttons */
.series-card-actions { margin-top: 1.5rem; display: flex; gap: .8rem; }
.series-btn {
  flex: 1; padding: .7rem 0; border-radius: 12px; font-weight: 700;
  text-align: center; text-decoration: none; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .2s; border: 1px solid transparent;
}
.series-btn:hover { opacity: .9; transform: translateY(-2px); }

/* BASE (Shop) */
.btn-base { background: #e2e8f0; color: #334155; }
/* SUZURI (Goods) */
.btn-suzuri { background: #dcfce7; color: #166534; }


/* =========================================
   4. Donation Elements
========================================= */
.donation-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: 2rem 0; padding: 0; list-style: none;
}
.step { 
  background: #fff; border-radius: 1rem; padding: 1.5rem 1rem; text-align: center; 
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.step-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem; display: grid; place-items: center;
  color: var(--accent-warm); background: var(--accent-light); border-radius: 50%;
}
.step h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--brand); }
.step p { margin: 0; color: var(--text-subtle); font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) { .donation-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .donation-steps { grid-template-columns: 1fr; } }

/* Boxes */
/* =========================================
   Donation Box (Revised)
========================================= */
.donation-box {
  background: #fff;
  border: 2px dashed var(--accent); /* ステッチ風 */
  border-radius: 1rem;
  padding: 1.5rem 2rem; /* PCでは内側ゆったり */
  margin: 1.5rem 0;
  text-align: left;
}

.donation-box h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent-warm);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.donation-box h3::before { content: "💡"; font-size: 1.2rem; }

.donation-bullets strong {
  color: #e44d26;
  font-weight: bold;
}

@media (max-width: 600px) {
  .donation-box {
    /* 親要素の余白を少し「食う」形で左右に広げる（ネガティブマージン） */
    margin-left: -1rem; 
    margin-right: -1rem;
    
    /* ボックス内の余白を少し詰めて、文字スペースを確保 */
    padding: 1.2rem 1rem;
    
    border-radius: 12px;
  }

  .donation-bullets {
    padding-left: 1.2rem; /* リストの左余白も少し詰める */
  }
}

.donation-cta { display: flex; justify-content: center; margin-top: 1.5rem; }
.donation-cta .btn { min-width: 280px; }

.donation-bullets strong {
  color: #e44d26;
  font-weight: bold;
}

/* =========================================
   5. Floating Card
========================================= */
.ppd-card {
  display: inline-block; width: fit-content; max-width: 100%;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
  border-radius: 16px; border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08); padding: 16px;
}
.ppd-fixed-top-right { position: fixed; top: 40px; right: 20px; z-index: 900; }
.ppd-kv b { font-size: .9rem; color: var(--text-subtle); }
.ppd-big { font-size: 1.6rem; font-weight: 700; color: var(--brand); font-feature-settings: "palt"; }
.ppd-amount-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.ppd-more-button {
  padding: 6px 12px; font-size: .75rem; font-weight: 700;
  background-color: var(--accent); color: #fff; border-radius: 99px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .ppd-fixed-top-right {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%;
    padding: 12px 16px; border-radius: 0; border-top: 1px solid rgba(0,0,0,0.05);
  }
}

/* =========================================
   6. Badge (Friends Series)
========================================= */
.badge-recommend {
  position: absolute; top: 0; left: 0; z-index: 10;
  background: #ef4444; /* 赤系で目立たせる */
  color: #fff;
  font-size: 0.85rem; font-weight: 700;
  padding: 6px 14px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* =========================================
   7. transparency-promise
========================================= */
.transparency-promise {
  background-color: #fcfcfc;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  width: 94%;            /* スマホで端がくっつかないよう少し余白を確保 */
  max-width: 980px;      /* Aboutなど他のエリアと同じ最大幅にする */
  margin: 40px auto;     /* 上下40px、左右は自動（中央揃え）にする */
  font-family: sans-serif;
  color: #333;
}

.transparency-promise h3 {
  text-align: center;
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #2c3e50;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  padding-bottom: 5px;
  width: 100%;
}

.promise-lead {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #d35400;
}

.promise-content {
  line-height: 1.8;
}

.promise-item {
  margin-bottom: 20px;
}

.promise-title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.promise-text {
  font-size: 0.95em;
  margin: 0;
}

/* スマートフォン用の調整 */
@media (max-width: 600px) {
  .transparency-promise {
    padding: 20px;
  }
  .transparency-promise h3 {
    font-size: 1.2em;
  }
  .promise-lead {
    font-size: 1.1em;
  }
}
