@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@600&family=Zen+Maru+Gothic:wght@400;600;700&display=swap');

:root{
  --bg:#fbfaf7;          /* 生成り */
  --paper:#fffdf7;       /* 和紙 */
  --ink:#201a14;         /* 墨っぽい黒（少し柔らかめ） */
  --muted:#6a635b;       /* 薄墨 */
  --gold:#b58a2a;        /* 金 */
  --gold2:#d7b35a;       /* 明るい金 */
  --line:rgba(181,138,42,.24);
  --shadow: 0 12px 32px rgba(23,21,19,.09);
  --radius:16px;
  --font-sans:"Zen Maru Gothic","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-heading:"Shippori Mincho B1","Zen Maru Gothic","Hiragino Mincho ProN","Yu Mincho",serif;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
  color:var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(181,138,42,.12), transparent 60%),
    radial-gradient(700px 450px at 15% 20%, rgba(215,179,90,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), #f6f2e9);
}

/* 和紙っぽい質感（画像なしで疑似） */
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(23,21,19,.015) 0px, rgba(23,21,19,.015) 1px, transparent 2px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(23,21,19,.010) 0px, rgba(23,21,19,.010) 1px, transparent 2px, transparent 7px);
  mix-blend-mode:multiply;
  opacity:.55;
}

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 18px 16px 36px;
  display:flex;
  flex-direction:column;
  gap: 16px;
  position:relative;
  z-index:1;
}

/* 上の細長い箱 */
.topbar{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffef9, var(--paper));
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(181,138,42,.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(215,179,90,.35), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(181,138,42,.25), transparent 60%),
    linear-gradient(135deg, #fff, #fff7e6);
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.02em;
  color: var(--gold);
  overflow: hidden;
}

.avatar img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        /* 丸いっぱいに */
  object-position: 50% 55%; /* 中央の白蛇が見えやすい位置 */
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  gap: 4px;
}

.brand .name{
  font-size: 16px;
  font-weight: 700;
  letter-spacing:.04em;
  font-family: var(--font-heading);
}

.brand .sub{
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing:.01em;
  line-height: 1.45;
}

/* 中央テキスト */
.lead{
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,253,247,.94));
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.lead:after{
  content:"";
  position:absolute;
  top:-40px; right:-60px;
  width: 180px; height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215,179,90,.20), transparent 62%);
  transform: rotate(12deg);
}

.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing:.06em;
  color: #5b503f;
  border:1px solid rgba(181,138,42,.25);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 6px;
  background: rgba(215,179,90,.12);
  position:relative;
  z-index:1;
  box-shadow: 0 6px 18px rgba(181,138,42,.08);
}

.lead h1{
  font-size: 24px;
  line-height: 1.45;
  margin: 0 auto 8px;      /* ← autoで中央寄せ */
  letter-spacing: .02em;
  font-family: var(--font-heading);
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-align: center;      /* ← これ追加 */
  max-width: 22ch;         /* ← 行幅を絞って中央感UP（不要なら消してOK） */
  text-wrap: balance;
}

.lead h2{
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing:.02em;
  margin: 14px 0 8px;
  color: #3a332b;
  position:relative;
  z-index:1;
}

.lead p,
.preVisual,
.finalText p{
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  color: #4f463b;
  letter-spacing: .01em;
  font-weight: 500;
  position:relative;
  z-index:1;
  text-wrap: pretty;
}

.lead p + p{ margin-top: 12px; }
.preVisual{ margin: 0; }
.finalText p{ margin: 0 0 12px; }
.finalText p:last-of-type{ margin-bottom: 0; }

/* 1枚カード（ビジュアル＋文章＋CTA） */
.heroBox{
  border: 1px solid rgba(181,138,42,.28);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, #fffdf8, #fff9ee);
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.visual{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(181,138,42,.25);
  overflow: hidden;

  /* ここが重要：装飾背景を消して画像だけにする */
  background: none;
  position: relative;

  /* grid/center も不要（imgを普通に100%にする） */
  display: block;
}

.visual::before{
  content: none; /* ✅ これで金のコンセリック装飾を完全に無効化 */
}

.visual img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;   /* 全体見せ（切らない） */
  object-position: center;
  background: #fff7e6;   /* 余白が出た時の背景（和風の生成り） */
}

.visual span{
  position:relative;
  z-index:1;
  text-align:center;
  padding: 0 10px;
}

.btn{
  width:100%;
  border-radius: 16px;
  padding: 15px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor:pointer;
  border:1px solid rgba(181,138,42,.25);
  display:block;
  text-align:center;
  user-select:none;
  letter-spacing:.03em;
  font-family: var(--font-sans);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btnPrimary{
  background: linear-gradient(180deg, #f7e7bc, #d5af52);
  color: #2c200f;
  border-color: rgba(181,138,42,.38);
  box-shadow:
    0 10px 24px rgba(181,138,42,.20),
    0 0 0 1px rgba(181,138,42,.20) inset;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.btnPrimary:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btnPrimary:active{
  transform: translateY(0);
  box-shadow:
    0 6px 18px rgba(181,138,42,.18),
    0 0 0 1px rgba(181,138,42,.24) inset;
}

.btnPrimary:focus-visible{
  outline: none;
  box-shadow:
    0 10px 24px rgba(181,138,42,.20),
    0 0 0 1px rgba(181,138,42,.38) inset,
    0 0 0 3px rgba(215,179,90,.35);
}

/* 光るボタン */
.glowBtn{
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
  border-color: rgba(181,138,42,.55);
  box-shadow:
    0 10px 26px rgba(181,138,42,.18),
    0 0 0 1px rgba(181,138,42,.15) inset;
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.glowBtn::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-30%;
  width: 40%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  opacity:0;
  animation: shine 2.8s ease-in-out infinite;
}

@keyframes shine{
  0%   { transform: translateX(-220%) rotate(18deg); opacity:0; }
  25%  { opacity:.82; }
  45%  { opacity:0; }
  100% { transform: translateX(520%) rotate(18deg); opacity:0; }
}

@keyframes pulseGlow{
  0%, 100% {
    filter: saturate(1.05) brightness(1.0);
    box-shadow:
      0 10px 26px rgba(181,138,42,.18),
      0 0 0 1px rgba(181,138,42,.15) inset;
  }
  50% {
    filter: saturate(1.12) brightness(1.05);
    box-shadow:
      0 14px 34px rgba(181,138,42,.26),
      0 0 18px rgba(215,179,90,.26),
      0 0 0 1px rgba(181,138,42,.18) inset;
  }
}

@media (prefers-reduced-motion: reduce){
  .glowBtn, .glowBtn::before{ animation:none !important; }
}

footer{
  margin-top:auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px 16px;
  border-top: 1px solid rgba(181,138,42,.12);
  letter-spacing:.01em;
}

footer a{
  text-decoration:underline;
  text-underline-offset:3px;
}

.muted{ color: var(--muted); }

@media (max-width: 480px){
  .wrap{ padding: 16px 12px 28px; gap: 14px; }
  .topbar{ padding: 12px; gap: 12px; }
  .avatar{ width: 42px; height: 42px; }
  .brand .name{ font-size: 15px; }
  .lead{ padding: 16px; }
  .lead h1{ font-size: 22px; }
  .btn{ font-size: 15.5px; padding: 14px 14px; }
}
