@charset "UTF-8";
/* =========================
   ST1 Home - style.css 
   Header: dynamic optimization + responsive rules
   ========================= */

:root{
  --bg: #fffdf0;
  --ink: #101010;
  --paper: #ffffff;
  --alt: #fff6b0;
  --yellow: #ffd400;
  --pink: #ff6b8a;
  --blue: #1aa2ff;
  --line: #06c755;

  --radius: 18px;
  --shadow: 7px 7px 0 var(--ink);
  --border: 4px solid var(--ink);

  --container: 1100px;
  --footer-safe-space: 200px;
  
  padding-top: var(--header-offset);
}

  
*{ box-sizing: border-box; }
._mpv_originalImage_photoItem img {
	box-sizing : content-box;
}
html{ 
	scroll-behavior: smooth; 
}
body{
	color: var(--ink);
  background: var(--bg);
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  padding-bottom: var(--footer-safe-space);
}

html, body{
  width: 100%;
  max-width: none;
  margin: 0;
    overflow-x: hidden;        /* 横揺れを止める */
}

/* 580px以下で「外枠」をフル幅にする */
@media (max-width: 580px){
  YOUR_OUTER_WRAP{
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;

    /* もし外枠に角丸があるなら、モバイルでは消すと“細く見える”問題が解消しやすい */
    border-radius: 0;
  }
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  /*width: min(100% - 28px, var(--container));
  max-width: 1024px;
  margin: 0 auto;*/
    max-width: 1380px;
    margin: 0 auto;
    padding: 10px;
}

.container.middle {
	max-width: 1024px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 8px; }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 480px){
	.container {
	   padding: 6px;
	}
}
/* =========================
   Form
   ========================= */
.form{
  display: grid;
  gap: 10px;
}
.form label{
  display: grid;
  gap: 6px;
  font-weight: 700;
}
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  font: inherit;
  background: #fff;
}
textarea{ resize: vertical; }

/* =========================
   Buttons
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
  font-weight: 900;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover{ text-decoration: none; transform: translate(1px, 1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active{ transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }

.btn-primary{ background: var(--yellow); }
.btn-line{ background: rgba(6,199,85,.18); }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cta-row.center{ justify-content: center; }

@media (max-width: 580px){

  /* 幅計算を安定させる（これが効くケース多い） */
  *, *::before, *::after{
    box-sizing: border-box;
  }

  /* 親のgrid/flex内で子が押し広げないように */
  .grid, .card, .price-box, .cta-row, .table-wrap{
    min-width: 0;
  }

  /* card自体を確実に収める */
  .card{
    width: 100%;
    max-width: 100%;
    overflow: hidden;          /* はみ出す要素があってもカード内で止める保険 */
  }

  /* 画像は必ず親幅内 */
  .card img{
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* テーブルが原因の場合：横スクロールに逃がす */
  .table-wrap{
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table{
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
  }

  /* 長い文字列・金額などの折り返し保険 */
  .card, .card *{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ボタン行が横に押し広げる場合の保険 */
  .cta-row{
    flex-wrap: wrap;
    justify-content: flex-end; /* 右寄せ維持 */
  }
  .cta-row .btn{
    min-width: 0;
    flex: 1 1 auto;
  }
}




/* =========================
   Responsive (general)
   ========================= */
@media (max-width: 980px){
  .grid.three{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .grid.two{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: 1fr; }
  .price .amount{ font-size: 36px; }
  .step{ grid-template-columns: 50px 1fr; }
  .step-num{ width: 50px; height: 50px; }
}


/* =========================
   to-topボタン
   ========================= */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
  display: none;
}
   
/* ふわっと表示するため display:none を使わない */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;

  border-radius: 18px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 初期は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;

  /* ゆっくり目 */
  transition: opacity 420ms ease, transform 420ms ease, visibility 0s linear 420ms;
}

/* 表示状態 */
.to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;

  transition: opacity 420ms ease, transform 420ms ease, visibility 0s;
}

/* 矢印画像（SVG用） */
.to-top img{
  width: 70%;
  height: auto;
  display: block;
	margin: 0 auto;
}

/* ホバー/押下の小さな動き */
.to-top:hover img{ transform: translateY(-1px); }
.to-top:active img{ transform: translateY(1px); }


/* =========================
   Sections
   ========================= */
.section{ padding: 44px 0; }
.section.alt{
  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,138,.18), transparent 40%),
    linear-gradient(180deg, rgba(255,246,176,.85), rgba(255,246,176,.55));
  border-top: 3px dashed rgba(0,0,0,.20);
  border-bottom: 3px dashed rgba(0,0,0,.20);
}
/*  ページタイトル */
h1{
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.1;
  font-size: clamp(26px, 3vw, 44px);
  margin: 0 0 18px;
  display: inline-block;
  position: relative;
  padding: 4px 2px;
}

h1::before{
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: .18em;       /* 文字の下側だけ塗る */
  height: .55em;
  background: color-mix(in oklab, currentColor 18%, transparent);
  border-radius: 10px;
  z-index: -1;
}

.section-title{
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.1;
  font-size: clamp(26px, 3vw, 44px);
  margin: 0 0 18px;
  position: relative;
  padding: 4px 2px;
}

.section-title--with-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  position: relative;
  width: fit-content;
  margin-left: 30px;
}

.section-title__icon{
  height: 76px;
  width: auto;
  flex: 0 0 auto;
}

.section-title__text{
  display: inline-block;
}

.section-title--with-icon::before{
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: .18em;       /* 文字の下側だけ塗る */
  height: .55em;
  background: color-mix(in oklab, currentColor 18%, transparent);
  border-radius: 10px;
  z-index: -1;
}

.section-title--spec::before{
  height: .33em;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 999px;
}

@media (max-width: 480px){
  .section-title--with-icon{
    margin-left: auto;
    margin-right: auto;
  }
}
/* =========================
   Grid / Cards
   ========================= */
.grid {
  	display        : grid;
  	gap            : 30px;
}

.grid.two { 
	grid-template-columns: repeat(2, minmax(0, 1fr)); 
  padding: 8px;
}
.grid.three { 
	grid-template-columns: repeat(3, minmax(0, 1fr)); 
}

.card {
  	background     : var(--paper);
  	border         : var(--border);
  	border-radius  : var(--radius);
  	box-shadow     : var(--shadow);
  	padding        : 16px 16px 14px;
}

.card-title {
  	margin         : 0 0 10px;
  	font-size      : 22px;
  	font-weight    : 900;
}

.card-title .large {
	font-size      : 140%;
	color          : var(--blue);
}

.lead { 
	margin         : 0 0 10px; 
	line-height    : 1.8; 
}

.pill-row { 
	display        : flex; 
	flex-wrap      : wrap; gap: 8px; 
}

.pill {
  	background     : rgba(26,162,255,.12);
  	border         : 3px solid var(--ink);
  	border-radius  : 999px;
  	padding        : 6px 10px;
  	font-weight    : 800;
}

.note{
  	margin         : 10px 0 0;
  	font-size      : 13px;
  	opacity        : .85;
  	line-height    : 1.7;
}

/* =========================
   Lists
   ========================= */
.list-check{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.list-check li{
  padding-left: 28px;
  position: relative;
  line-height: 1.65;
}
.list-check li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--blue);
}

/* =========================
   Price box
   ========================= */
.price-box{
  background: rgba(255,212,0,.22);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
}
.price-label{
  margin: 0 0 6px;
  font-weight: 900;
}
.price{
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price .yen{ font-weight: 900; }
.price .amount{
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .02em;
}
.price .unit{ font-weight: 700; opacity: .9; }

/* =========================
   Table
   ========================= */
.table-wrap{ overflow: auto; }
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.table th, .table td{
  padding: 12px 10px;
  border-bottom: 2px solid rgba(0,0,0,.12);
}
.table th{
  background: rgba(26,162,255,.12);
  text-align: left;
  font-weight: 900;
}

/* =========================
   Steps
   ========================= */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.step{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.step-num{
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 16px;
  font-weight: 900;
  font-size: 22px;
}
.step-body h3{
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 900;
}
.step-body p{ margin: 0; line-height: 1.75; }

/* =========================
   Callout
   ========================= */
.callout{
  margin-top: 16px;
  background: rgba(255,107,138,.14);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 12px 14px;
}

.line-float-banner{
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: 100px;
  z-index: 250;
  transform: translateX(-140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.line-float-banner.is-visible{
  transform: translateX(0);
  opacity: 1;
}

.line-float-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* LINE popup */
.line-popup{
  position: fixed;
  inset: 0;
  z-index: 600;
}
.line-popup__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.line-popup__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 360px);
  background: #fff;
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.12);
  padding: 18px 18px 16px;
}
.line-popup__close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid #e66e7d;
  background: #fff;
  color: #e66e7d;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.line-popup__content{
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 10px;
}
.line-popup__title{
  margin: 0;
  font-weight: 900;
  font-size: 18px;
}
.line-popup__qr{
  width: 200px;
  height: 200px;
  background: #f7f7f7;
  border-radius: 14px;
  border: 2px dashed rgba(0,0,0,.2);
  display: grid;
  place-items: center;
}
.line-popup__qr img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.line-popup__open{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #00b800;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.line-popup__open:hover,
.line-popup__open:active{
  opacity: .7;
}

@media (min-width: 801px){
  .line-float-banner{
    width: 140px;
  }
}

@media (max-width: 480px){
  .line-float-banner{
    bottom: 60px; /* 画像高さの約半分分だけ上げる */
  }
}




/* アニメーション関係 */
/* Zoom-in animation */
.zoom-in{
  opacity: 0;
  transform: scale(.5);
  transition: opacity .8s ease-out, transform .8s ease-out;
  will-change: opacity, transform;
}

.zoom-in.is-animated{
  opacity: 1;
  transform: scale(1);
}

