/* =========================
   Index Page CSS
   ========================= */

/* -------------------------
   HERO: Wedding invitation
   ------------------------- */

.heroInvite{
  padding: 16px;
}

@media (min-width: 900px){
  .heroInvite{ padding: 22px; }
}

.inviteMedia{
  position: relative;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.10);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
  transform: translateZ(0);
  aspect-ratio: 4 / 3;
}

.inviteMedia img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.03);
  animation: inviteDrift 14s ease-in-out infinite;
}

/* 画像上のタイトル（斜め＋筆記体） */
.inviteTitleOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding: 18px;
  pointer-events:none;
  z-index: 3;
}

.inviteTitleInner{
  transform: rotate(-4deg);
  transform-origin: left bottom;
  display:grid;
  gap: 10px;
  max-width: 90%;
}

/* ★ユーザー指定（そのまま） */
.inviteTitleText{
  font-family: "Great Vibes", cursive;
  font-size: 44px;
  letter-spacing: .01em;
  line-height: 1.05;
  color: rgba(255,255,255,.96);
  text-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 2px 10px rgba(0,0,0,.22);
  -webkit-text-stroke: 1px rgba(255,255,255,.12);
  opacity: .98;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.18));
}

.inviteTitleLine{
  height: 2px;
  width: min(260px, 60vw);
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.25),
    rgba(255,255,255,0));
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
  opacity: .9;
}

@media (min-width: 900px){
  .inviteTitleOverlay{ padding: 22px; }
  .inviteTitleText{ font-size: 56px; } /* PCは少し大きく */
  .inviteTitleLine{ width: 320px; }
}

/* soft shade */
.inviteShade{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(780px 420px at 22% 22%, rgba(255,255,255,.30), rgba(255,255,255,0) 62%),
    radial-gradient(820px 520px at 80% 72%, rgba(120,200,255,.22), rgba(120,200,255,0) 65%),
    linear-gradient(180deg, rgba(3,18,36,.06), rgba(3,18,36,.20));
  opacity:.95;
  pointer-events:none;
  z-index: 1;
}

/* moving glare */
.inviteGlare{
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    conic-gradient(from 220deg at 30% 25%,
      rgba(255,255,255,0),
      rgba(255,255,255,.25),
      rgba(255,255,255,0) 35%),
    radial-gradient(900px 520px at 60% 15%,
      rgba(255,255,255,.18),
      rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light;
  opacity: .85;
  animation: inviteGlint 12s ease-in-out infinite;
  z-index: 2;
}

/* subtle grain */
.inviteGrain{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  z-index: 4;
}

@keyframes inviteDrift{
  0%   { transform: scale(1.04) translate3d(0,0,0); }
  50%  { transform: scale(1.07) translate3d(-1.6%,-1.2%,0); }
  100% { transform: scale(1.04) translate3d(0,0,0); }
}

@keyframes inviteGlint{
  0%   { transform: translate3d(0,0,0) rotate(0deg); opacity:.78; }
  50%  { transform: translate3d(2.2%,-1.8%,0) rotate(5deg); opacity:.98; }
  100% { transform: translate3d(0,0,0) rotate(0deg); opacity:.78; }
}

@media (prefers-reduced-motion: reduce){
  .inviteMedia img,
  .inviteGlare{ animation:none; }
}

/* -------------------------
   Hero quick buttons
   ------------------------- */

.heroActions{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  position:relative;
  z-index:1;
}

.quickBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.22);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  color: rgba(11,27,43,.86);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration:none;
  touch-action: manipulation;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.quickBtn:active{
  transform: translateY(1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.09);
}

/* -------------------------
   status
   ------------------------- */

.subtleChip{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  color: rgba(11,27,43,.66);
  font-weight: 750;
}

.statusRow{
  padding-top: 12px;
  display:grid;
  gap: 10px;
}

.bigChip{
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 12.5px;
}

.bigChip .count{
  font-weight: 900;
}

.statusNote{
  margin: 0;
  color: rgba(11,27,43,.62);
  font-size: 12px;
  line-height: 1.7;
}

/* -------------------------
   cards
   ------------------------- */

.cardLink{
  display:block;
  text-decoration:none;
  color:inherit;
}

.cardTap{
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.cardTap:active{
  transform: translateY(1px);
}

.cardLink:focus-visible .cardTap{
  box-shadow: var(--focus), var(--shadow);
}

.row{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

.grow{ flex: 1 1 auto; min-width: 0; }

.ico{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.70);
  background: rgba(255,255,255,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  flex: 0 0 auto;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}

.ico::before{
  content:"";
  position:absolute;
  inset:-30%;
  background: radial-gradient(circle at 30% 20%, rgba(120,200,255,.55), rgba(120,200,255,0) 60%);
  opacity:.95;
}

.ico svg{
  width: 18px;
  height: 18px;
  color: rgba(11,27,43,.78);
  position:relative;
  z-index:1;
}

/* small chevron */
.chev{
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-right: 2px solid rgba(11,27,43,.42);
  border-top: 2px solid rgba(11,27,43,.42);
  transform: rotate(45deg);
  opacity: .75;
  flex: 0 0 auto;
}

/* sr-only */
.srOnly{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
