/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* 各ページの共通大見出しスタイル */
.page-heading {
  font-size: 1.6em;
  color: #7c3f1d;
  border-bottom: 2px solid #ff922b;
  padding-bottom: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-heading h1,
.page-heading h2 {
  font-size: 1em; /* 親の1.6emをそのまま使う */
  margin: 0;
  color: inherit;
}

/* ===== 願井かなえのホームページ（トップページ専用スタイル） ===== */
body:has(.kanae-top) {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 50%, #fff0f3 100%) !important;
  min-height: 100vh;
  font-family: "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "Yu Gothic", "Meiryo", sans-serif !important;
  color: #5c3d2e !important;
}

main:has(.kanae-top) {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 680px !important;
  margin: 40px auto !important;
  padding: 0 16px !important;
}

.kanae-top {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 3px solid #ffc078;
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(255, 146, 43, 0.16), 0 4px 12px rgba(255, 169, 77, 0.12);
  position: relative;
  overflow: hidden;
}

.kanae-top::before,
.kanae-top::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.kanae-top::before {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 184, 108, 0.4) 0%, transparent 70%);
  top: -60px;
  left: -60px;
}

.kanae-top::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 168, 168, 0.35) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

.kanae-top > * {
  position: relative;
  z-index: 1;
}

.kanae-welcome-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff922b, #ff8787);
  color: #fff;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(255, 146, 43, 0.35);
}

.kanae-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #7c3f1d;
  margin: 0 0 24px 0;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 #fff, 0 4px 12px rgba(255, 169, 77, 0.35);
}

.kanae-construction-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff9db;
  border: 2px dashed #ffa94d;
  color: #d9480f;
  padding: 12px 24px;
  border-radius: 18px;
  font-weight: bold;
  font-size: 1rem;
  margin: 0 auto 32px auto;
  box-shadow: 0 4px 12px rgba(255, 169, 77, 0.18);
}

.kanae-section-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #e8590c;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* カードコンポーネント（Container Query + Stretched Link 対応） */
.kanae-game-card {
  container-type: inline-size;
  position: relative;
  background: linear-gradient(135deg, #fff9f2 0%, #fff0e6 100%);
  border: 2px solid #ffc078;
  border-radius: 22px;
  padding: 24px 28px;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  align-items: center;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 18px rgba(255, 146, 43, 0.14);
}

.kanae-game-card h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #7c3f1d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kanae-game-card a.card-link {
  color: inherit;
  text-decoration: none;
}

.kanae-game-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.kanae-game-card a.card-link:focus-visible {
  outline: none;
}

.kanae-game-card:has(a.card-link:focus-visible) {
  outline: 3px solid #ff922b;
  outline-offset: 3px;
}

.kanae-game-card:has(a.card-link:hover) {
  transform: translateY(-4px);
  border-color: #ff922b;
  box-shadow: 0 12px 24px rgba(255, 146, 43, 0.28);
}

.kanae-game-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #9c5a3c;
  line-height: 1.5;
}

.kanae-game-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, #ff922b, #ffa94d);
  color: #fff;
  font-weight: bold;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 999px;
  justify-self: start;
  box-shadow: 0 4px 10px rgba(255, 146, 43, 0.35);
  transition: background 0.2s ease;
}

.kanae-game-card:has(a.card-link:hover) .kanae-game-cta {
  background: linear-gradient(90deg, #ff6b6b, #ff922b);
}

@container (min-width: 380px) {
  .kanae-game-card {
    grid-template-columns: 1fr auto;
  }
  .kanae-game-card h2,
  .kanae-game-card p {
    grid-column: 1;
  }
  .kanae-game-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

