/* =============================================
   Subpage Common Styles
   ============================================= */

/* ヘッダーは常にstuck状態（ヒーローなし） */
body.subpage .site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
body.subpage .site-header .header__menu-btn span {
  background: var(--color-text) !important;
}

/* ページヒーロー */
.page-hero {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  padding-left: 24px;
  padding-right: 24px;
  background: var(--color-text);
  color: #fff;
  position: relative;
}
.page-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.page-hero__en {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 12px;
}
.page-hero__lead {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* パンくずリスト */
.breadcrumb {
  max-width: 800px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ページセクション */
.page-section {
  padding: 64px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.page-section--bg {
  background: #eeecea;
  max-width: 100%;
  padding: 64px 24px;
}
.page-section--bg > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-section--dark {
  background: var(--color-text);
  color: #fff;
  max-width: 100%;
  padding: 64px 24px;
}
.page-section--dark > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-section__head {
  margin-bottom: 40px;
}
.page-section__en {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.page-section__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* =============================================
   Dryice Gateway – Intro
   ============================================= */
.dryice-intro {
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

/* =============================================
   Dryice Gateway – Card Grid
   ============================================= */
.dryice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .dryice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* カード */
.dryice-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.25s cubic-bezier(0.23,1,0.32,1);
}
.dryice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 47, 66, 0.1);
}

/* カラーアクセント（上ボーダー） */
.dryice-card--emergency { border-top-color: #e60012; }
.dryice-card--pet       { border-top-color: #8b6f47; }
.dryice-card--production { border-top-color: #6c5ce7; }
.dryice-card--school    { border-top-color: #00a3e4; }

.dryice-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f5f3f1;
  margin-bottom: 20px;
  color: var(--color-text);
}
.dryice-card--emergency .dryice-card__icon { color: #e60012; background: #fef2f2; }
.dryice-card--pet .dryice-card__icon       { color: #8b6f47; background: #f9f5f0; }
.dryice-card--production .dryice-card__icon { color: #6c5ce7; background: #f3f0ff; }
.dryice-card--school .dryice-card__icon    { color: #00a3e4; background: #eef9ff; }

.dryice-card__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.dryice-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.dryice-card__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-light);
  flex-grow: 1;
  margin-bottom: 20px;
}

.dryice-card__btn {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  gap: 6px;
}
.dryice-card__btn::after {
  content: "\2192";
  font-size: 14px;
  transition: transform 0.2s;
}
.dryice-card:hover .dryice-card__btn::after {
  transform: translateX(4px);
}

/* =============================================
   Dryice Gateway – Info Grid
   ============================================= */
.dryice-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .dryice-info {
    grid-template-columns: 1fr 1fr;
  }
}

.dryice-info__item {
  padding: 24px;
  background: #f5f3f1;
  border-radius: 4px;
}

.dryice-info__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.dryice-info__item p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ── ページヒーローのテキスト登場 ── */
@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero__en {
  animation: pageFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

.page-hero__title {
  animation: pageFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.25s both;
}

.page-hero__lead {
  animation: pageFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.breadcrumb {
  animation: pageFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.55s both;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__en,
  .page-hero__title,
  .page-hero__lead,
  .breadcrumb {
    animation: none !important;
    opacity: 1;
  }
}
