@font-face {
    font-family: "UDShinGoPro";
    src: url("../fonts/A-OTF-UDShinGoPro-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
  }
  @font-face {
    font-family: "UDShinGoPro";
    src: url("../fonts/A-OTF-UDShinGoPro-DeBold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
  }
  @font-face {
    font-family: "UDShinGoPro";
    src: url("../fonts/A-OTF-UDShinGoPro-Bold.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
  }

* { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'UDShinGoPro', sans-serif;
    background: #000;
    max-width: 700px;
    margin: 0 auto;
  }
  img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* クーポンコード */
  #coupon-wrapper {
    position: relative;
    container-type: inline-size;
  }
  #coupon-wrapper img.coupon-img {
    display: block;
    width: 100%;
    height: auto;
  }
  #coupon-code {
    position: absolute;
    bottom: 40%;
    left: 55%;
    text-align: left;
    color: #fff;
    font-size: 5.5cqw;
    font-weight: bold;
    cursor: pointer;
    user-select: all;
    z-index: 1000;
    -webkit-transform: none;
    transform: none;
    -webkit-font-smoothing: antialiased;
  }

  /* CTA */
  #cta-wrapper {
    position: relative;
  }
  #cta-wrapper img.cta-img {
    display: block;
    width: 100%;
    height: auto;
  }
  #cta-button {
    position: absolute;
    bottom: 7%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 90%;
    cursor: pointer;
  }
  #cta-button img {
    width: 100%;
    height: auto;
  }

  /* タイマー */
  #timer-wrapper {
    position: relative;
  }
  #timer-wrapper > img {
    display: block;
    width: 100%;
    height: auto;
  }
  #timer-section {
    position: absolute;
    top: 46%;
    left: 50%;
    /* Safari対応: translate2つに分けず -50%,-50% をまとめて指定 */
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 90%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    gap: clamp(6px, 1vw, 15px);
  }
  #timer-section p {
    color: var(--white);
    font-size: clamp(14px, 3vw, 20px);  /* 最小値を少し上げる */
    min-height: 1em;                     /* 高さ崩れ防止 */
    -webkit-font-smoothing: antialiased;
    font-weight: 700;
    -webkit-text-size-adjust: 100%;      /* Safari の自動縮小を抑制 */
  }
  #timer {
    display: -webkit-inline-flex;
    display: inline-flex;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: clamp(2px, 1vw, 6px);
    border: 2px solid #fff;
    background: #000;
    border-radius: 10px;
    padding: clamp(8px, 2vw, 16px) clamp(12px, 4vw, 28px);
    max-width: 100%;
    width: 100%;
  }
  .timer-block {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
  }
  .timer-num {
    color: #fff;
    font-size: clamp(28px, 7vw, 52px);
    font-weight: bold;
    width: clamp(40px, 10vw, 80px);
    text-align: center;
    -webkit-font-smoothing: antialiased;
  }
  .timer-colon {
    color: #fff;
    font-size: clamp(10px, 2.5vw, 18px);
    font-weight: 300;
    font-family: sans-serif;
    -webkit-align-self: flex-end;
    align-self: flex-end;
    padding-bottom: clamp(4px, 1.5vw, 10px);
  }
  #store-buttons {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    gap: clamp(4px, 2vw, 16px);
    width: 100%;
    max-width: 100%;
    padding: 5px 8px;
  }
  #store-buttons a {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    max-width: 30%;
    cursor: pointer;
  }
  #store-buttons img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* スライダーラッパー */
  #slider-wrapper {
    position: relative;
  }
  #slider-wrapper > img {
    display: block;
    width: 100%;
    height: auto;
  }
  #slider-overlay {
    position: absolute;
    top: 67%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
  }
  #slider-track {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .slide {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 60%;
    margin: 0 2%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
    opacity: 0.6;
  }
  .slide.active {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
  .slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* arrowボタン */
  .arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .arrow:hover { background: rgba(255,255,255,0.3); }
  #arrow-prev { left: 8px; }
  #arrow-next { right: 8px; }

  /* 注意事項 */
  #notes {
    background-image: url(../images/atn_bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 40px 24px;
  }
  #notes h2 {
    color: #fff;
    font-size: clamp(22px, 5vw, 40px);
    font-family: sans-serif;
    margin-bottom: 16px;
    text-align: center;
  }
  #notes p {
    background: #fff;
    color: #333;
    font-size: clamp(18px, 4vw, 16px);
    font-family: sans-serif;
    line-height: 1.8;
    border-radius: 12px;
    padding: 16px 20px;
  }

  /* 追従CTA */
  #sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(100%);
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 700px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    text-align: center;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    cursor: pointer;
  }
  #sticky-cta.visible {
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #sticky-cta a {
    display: inline-block;
    width: 90%;
  }
  #sticky-cta a img {
    width: 100%;
    height: auto;
  }

  /* フッターリンク */
  #footer-links {
    background: #fff;
    padding: 40px 16px;
    text-align: center;
  }
  #footer-links ul {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin-bottom: 12px;
  }
  #footer-links ul li {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    cursor: pointer;
  }
  #footer-links ul li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #333;
    margin-left: 16px;
  }
  #footer-links ul li a {
    color: #333;
    font-size: clamp(14px, 2.5vw, 18px);
    font-family: sans-serif;
    text-decoration: none;
    cursor: pointer;
  }
  #footer-links p {
    color: #333;
    font-size: clamp(14px, 2.5vw, 18px);
    font-family: sans-serif;
  }

  /* ===== ルーレット変数 ===== */
  :root {
    --bg: #f2f2f2;
    --white: #fff;
    --text: #fff;
    --text-dim: #fff;
    --gold: #F8C215;
    --gold2: #FFE357;
    --gold-dark: #D4A00A;
    --gold-grad: linear-gradient(135deg, #F8C215, #FFE357);
    --gold-grad2: linear-gradient(135deg, #D4A00A, #F8C215, #FFE357);
    --green: #2BA23A;
    --green-light: #e8f7ea;
    --red: #EA453C;
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 40px;
  }

  /* ===== オーバーレイ ===== */
  #overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    animation: fadeIn .4s ease;
    transition: opacity 0.6s ease;
  }
  #overlay.done { cursor: pointer; }
  #overlay.fadeout { opacity: 0; pointer-events: none; }
  #overlay.spinning * { pointer-events: none !important; }

  @keyframes fadeIn { from{opacity:0} to{opacity:1} }

  /* タップヒント */
  #tap-hint {
    display: none;
    position: absolute;
    bottom: 32px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 40px;
    animation: blink 1.2s ease infinite;
    white-space: nowrap;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

  /* ===== カード ===== */
  .card {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 8px;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    background: url(../images/bk.jpg) center / cover no-repeat;
    box-shadow: var(--shadow-lg);
  }
  .card::-webkit-scrollbar { width:4px }
  .card::-webkit-scrollbar-track { background:transparent }
  .card::-webkit-scrollbar-thumb { background:rgba(248,194,21,0.3); border-radius:2px }

  .logo {
    width: 50%;
    height: 100%;
    margin: 0 auto 20px;
  }
  .title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 4px;
    color: #1c1c1c;
  }
  .title span {
    color: #2ba23a;
  }
  .subtitle {
    font-size: 13px;
    color: #1c1c1c;
    margin-bottom: 24px;
  }

  /* ===== ルーレット ===== */
  .wheel-area {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 0 auto 24px;
  }

  .wheel-area::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -9%;
    width: 40%;
    height: 40%;
    background: url(../images/toremi.png) center / 100% no-repeat;
    z-index: 999;
    transform: rotate(-15deg);
    animation: jump 4.9s linear infinite;
    transform-origin: bottom center;
  } 
  
  @keyframes jump {
    0%    {
      transform: translateY(0) scaleY(1);
      animation-timing-function: ease-in;
    }
    1.8%  {
      transform: translateY(0) scaleY(0.8);
      animation-timing-function: ease-out;
    }
    9.2%  {
      transform: translateY(-10px) scaleY(1.15);
      animation-timing-function: ease-in;
    }
    15.5% {
      transform: translateY(0) scaleY(0.85);
      animation-timing-function: ease-out;
    }
    18.4% { transform: translateY(0) scaleY(1); }

    /* 待機（4s） */
    100%  { transform: translateY(0) scaleY(1); }
  }

  .wheel-ring { position:absolute; width:100%; height:100%; z-index:1001; }
  .wheel-ring img { width:100%; height:100%; display:block; }
  .wheel-spin {
    position: relative;
    inset: 5% 4%;
    border-radius: 50%;
    width: 92%;
    overflow: hidden;
    transition: -webkit-transform 5s cubic-bezier(0.13, 0.55, 0.08, 1);
    transition: transform 5s cubic-bezier(0.13, 0.55, 0.08, 1);
    z-index: 1000;
  }
  .wheel-spin img { width:100%; height:100%; display:block; }
  .pointer { position:absolute; top:-12px; left:50%; width:10%; -webkit-transform:translateX(-50%); transform:translateX(-50%); z-index:1001; }
  .pointer img { width:100%; height:100%; display:block; }
  .center-dot { position:absolute; top:50%; left:50%; -webkit-transform:translate(-50%,-50%); transform:translate(-50%,-50%); width:52px; height:52px; z-index:1001; }
  .center-dot img { display:block; width:100%; height:100%; }

  /* ===== ボタン ===== */
  .btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    text-align: center;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
  }
  .btn:active { -webkit-transform: scale(.97); transform: scale(.97) }
  .btn-gold { background: var(--gold-grad); color: #222; box-shadow: 0 4px 16px rgba(248,194,21,0.3); }
  .btn-gold:hover { box-shadow: 0 6px 24px rgba(248,194,21,0.45); -webkit-transform: translateY(-1px); transform: translateY(-1px); }
  .btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    animation: shine 3s ease infinite;
  }
  @keyframes shine { 0%,65%,100%{left:-100%} 50%{left:120%} }
  .btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(43,162,58,0.2); }
  .btn-green:hover { box-shadow:0 6px 20px rgba(43,162,58,0.35); -webkit-transform:translateY(-1px); transform:translateY(-1px) }
  .btn[disabled] { opacity:.5; cursor:not-allowed; -webkit-transform:none!important; transform:none!important }

  /* ===== Step ===== */
  .step { display:none }
  .step.active { display:block; animation: up .45s ease }
  @keyframes up { from{opacity:0;-webkit-transform:translateY(16px);transform:translateY(16px)} to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)} }

  /* ===== Step2 ===== */
  .miss-emoji { font-size:48px; margin-bottom:8px }
  .miss-msg {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #6d5200;
    line-height: 1.7;
  }

  /* ===== Step3 ===== */
  .win-emoji { font-size:52px; margin-bottom:4px; animation: pop .5s ease; }
  @keyframes pop { 0%{-webkit-transform:scale(0) rotate(-10deg);transform:scale(0) rotate(-10deg)} 60%{-webkit-transform:scale(1.15) rotate(3deg);transform:scale(1.15) rotate(3deg)} 100%{-webkit-transform:scale(1) rotate(0);transform:scale(1) rotate(0)} }
  .win-title { font-size:28px; font-weight:900; color: #2ba23a; margin-bottom:2px;}
  .win-sub { font-size:13px; color:#1c1c1c; margin-bottom:18px;}

  .rewards { background:#fffbeb; border:1px solid #fde68a; border-radius:var(--radius); padding:16px; margin:14px 0; text-align:left; }
  .rewards-label { font-size:20px; font-weight:700; color:var(--gold-dark); margin-bottom:12px; text-align:center; }
  .reward { display:-webkit-flex; display:flex; -webkit-align-items:center; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid rgba(253,230,138,0.5); }
  .reward:last-child { border-bottom:none }
  .reward-icon { width:12%; min-width:40px; }
  .reward-icon img { display:block; width:100%; height:100%; }
  .ri-coin { background:#fef3c7; }
  .ri-fire { background:#fee2e2; }
  .ri-line { background:#d1fae5; }
  .reward-text strong { display:block; font-size:16px; font-weight:700; margin-bottom:1px; color:#d4a00a; }
  .reward-text small { font-size:11px; color:#d4a00a; }

  .coupon { background:var(--bg); border:2px dashed #d4a00a; border-radius:var(--radius); padding:20px 16px; margin:14px 0; }
  .coupon-label { font-size:20px; color:#d4a00a; margin-bottom:4px; font-weight: 700;}
  .coupon-code { font-size:36px; font-weight:500; color:var(--gold-dark); margin:6px 0 14px; }
  .copy-btn {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
  }
  .copy-btn:hover { background:#fffbeb }
  .copy-btn.copied { background:var(--green-light); border-color:var(--green); color:var(--green); }

  .line-card { background:var(--green-light); border:1px solid rgba(43,162,58,0.2); border-radius:var(--radius); padding:16px; margin:14px 0; }
  .line-card p { font-size:13px; font-weight:700; margin-bottom:12px; line-height:1.7; color:#222; font-weight: 700;}

  .line-card strong { font-size: 20px; color: var(--green);}
  .fomo { margin-top:20px; padding:16px 0; background:var(--white); border-radius:var(--radius); }
  .fomo-label { font-size:18px; color:#222; font-weight: 700;}
  .fomo-timer { font-size:36px; font-weight:500; color:var(--red); margin:6px 0 12px; }
  .fomo-note { font-size:11px; color:#222; line-height:1.5; }

  /* ===== 紙吹雪 ===== */
  .confetti-box { position:fixed; inset:0; pointer-events:none; z-index:100001; overflow:hidden }
  .conf { position:absolute; top:-10%; animation:fall linear forwards; }
  @keyframes fall { to { top:110%; -webkit-transform:rotate(var(--r,600deg)) translateX(var(--dx,40px)); transform:rotate(var(--r,600deg)) translateX(var(--dx,40px)); opacity:0 } }

  @media(max-width:400px){
    .card { padding:24px 16px; border-radius:16px }
    .wheel-area { width:260px; height:260px }
    .title { font-size:20px }
    .coupon-code { font-size:30px; letter-spacing:6px }
    .fomo-timer { font-size:30px }
  }
  @media(max-width:350px){
    .wheel-area { width:230px; height:230px }
  }

  /*運営者情報*/
  .company {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: #fff;
  }

  h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
  }

  hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 32px 0;
  }

  /* 会社概要テーブル */
  .info-table {
    width: 100%;
    border-collapse: collapse;
  }

  .info-table tr {
    border-bottom: 1px solid #f0f0f0;
  }

  .info-table tr:first-child {
    border-top: 1px solid #f0f0f0;
  }

  .info-table td {
    padding: 16px 8px;
    font-size: 14px;
    vertical-align: top;
  }

  .info-table td:first-child {
    color: #666666;
    width: 200px;
    white-space: nowrap;
  }

  .info-table td:last-child {
    color: #1a1a1a;
  }

  /* お問い合わせ */
  .section-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
  }

  .contact-body {
    font-size: 14px;
    color: #444444;
    line-height: 1.85;
    margin-bottom: 24px;
  }

  .contact-window {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px 24px;
  }

  .contact-window-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
  }

  .contact-link {
    display: inline-block;
    color: #1c41b3;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .contact-note {
    font-size: 12px;
    color: #888888;
    margin-top: 10px;
  }

  @media (max-width: 600px) {
    main { padding: 32px 16px 60px; }
    h1 { font-size: 22px; }
    .info-table td:first-child { width: 120px; font-size: 13px; }
    .btn-register, .btn-login { padding: 7px 12px; font-size: 12px; }
  }