:root{
  /* Colors */
  --bg:    #001A1A;
  --fg:    #F7F9F9;
  --muted: #B7D7D7;
  --line:  #0E3B3B;
  --card:  #062828;
  --field: #072F2F;
  --accent:#EED6FF;
  --gold:  #D4AF37;

  /* Radii & Shadows */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 6px 24px rgba(0,0,0,.28);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Typography */
  --font-body: "Hiragino Mincho ProN","游明朝","Yu Mincho","MS PMincho","MS 明朝",serif;
  --fs-100: .875rem;
  --fs-200: 1rem;
  --fs-300: clamp(1.1rem, 2.2vw, 1.25rem);
  --fs-400: clamp(1.35rem, 3vw, 1.6rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; }

body{
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  background-image: url('/contents/4x/アセット 6@4x.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ← 背景を固定 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }

:focus{ outline: none; }
:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1{
  font-size: var(--fs-400);
  letter-spacing: .04em;
  margin: var(--space-2) 0 var(--space-4);
}

.lead{
  color: var(--muted);
  margin: 0 0 var(--space-4);
  font-size: var(--fs-300);
}

.price{ color: var(--muted); font-size: var(--fs-100); }
.foot { color: var(--muted); font-size: var(--fs-100); margin-top: var(--space-3); }

.wrap{
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  padding: var(--space-8) var(--space-4) var(--space-8);
  background: rgba(0,0,0,0.7);
  
}

.grid{ display: grid; gap: var(--space-4); }
.grid.two { grid-template-columns: 1fr; }
.grid.three{ grid-template-columns: 1fr; }
@media (min-width: 860px){
  .grid.two   { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

.row{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.member .row{
  justify-content: center;
  gap: var(--space-4);
}

.mb-02{ margin-bottom: .2rem; }
.row-submit{ margin-top: var(--space-4); }

form{ max-width: 100%; overflow: hidden; }

label{
  display: block;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--fg);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea{
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  font-size: var(--fs-200);
  transition: border-color .15s ease, box-shadow .15s ease;
}

select{
  appearance: none;
  background-image: none;
}

textarea{ min-height: 110px; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238,214,255,.18);
}

.hp{
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + .2rem);
  box-shadow: var(--shadow-1);
}

.member{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem;
  text-align: center;
}

.notice{
  background: #0A2F2F;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .93rem;
  margin: .2rem 0 1rem;
}

.totals{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: #0B2F2F;
  border: 1px solid var(--line);
  margin-top: var(--space-3);
}
.totals strong{ font-size: 1.15rem; }

.counter{
  display: flex;
  align-items: center;
  gap: .4rem;
}
.counter input{
  width: 76px;
  text-align: center;
  font-size: 1.05rem;
  height: 44px;
}
.counter button{
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg);
  background: #0B2F2F;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s ease, transform .03s ease;
  touch-action: manipulation;
}
.counter button:hover{ background:#0D3535; }
.counter button:active{ transform: translateY(1px); }

.btn{
  appearance: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;

  font: inherit;
  font-weight: 800;
  letter-spacing: .04em;

  color: var(--fg);
  background: #133A3A;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .85rem 1.25rem;

  transition: background-color .15s ease, opacity .15s ease;
}
.btn:hover{ opacity:.92; }
.btn:active{ opacity:.85; }

.btn-ghost{ background: transparent; }

.btn-accent{
  background: #013220;
  color: var(--gold);
  border: 1px solid #665D1E;
}

/* Improve tap targets & avoid unintended zoom on mobile */
.btn,
.counter button{
  min-height: 44px;
  touch-action: manipulation;
}
@media (max-width: 860px){
  input[type="text"],
  input[type="email"],
  input[type="number"],
  select,
  textarea{
    font-size: 16px; /* iOS Safari: prevent zoom on focus */
  }
}

.success,
.error{
  display: none;
  margin-top: var(--space-4);
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.success{
  background: #052;
  color: #E9FFE9;
  border: 1px solid #1F5;
}

.error{
  background: #320;
  color: #FFE9E9;
  border: 1px solid #F55;
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

h1 img{
  width: 300px;
  display: block;
  margin: 0 auto;
}

.line {
  width: 300px;
  display: block;
  margin: 0 auto;
  padding: 50px;
}

.explain{
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-6);
  margin: 0 50px;
  margin-bottom: 50px;
  

   
}
.explain .nagia{
  flex: 0 0 auto;
  width: 220px;
  transform: scaleX(-1);
}
.explain p{
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--fs-200);
  line-height: 1.9;
  

}
@media (max-width: 640px){
  .explain{
    flex-direction: column;
    align-items: center;
    text-align: left;
   
    margin-bottom: 50px;
   

  }
  .explain .nagia{
    width: 180px;
  }
  .explain p{
    width: 100%;
    margin: 1cm;

    }
}