/* ==========================================================================
   TOKUBO 宮崎店 — Wix レイアウト再現スタイル
   - デスクトップ: 980px 中央グリッド。ストリップ(帯)は全幅、各カラムは 50%、
     カラム内コンテンツは中央 490px ボックス基準の絶対配置（Wix と同じ規則）
   - モバイル: viewport width=320 固定キャンバスをブラウザがスケール（Wix と同じ）
   ========================================================================== */

:root {
  --mincho: tsukushioldmincho, "ms mincho", "ヒラギノ明朝 pro w3", "hiragino mincho pro", serif;
  --helv: helvetica-w01-roman, sans-serif;
  --avenir: avenir-lt-w01_35-light1475496, sans-serif;
  --red: #8b0000;
  --gray: #fafafa;
  --form-bg: rgba(232, 230, 230, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: #000;
  font: normal normal normal 15px/1.4em var(--mincho);
  -webkit-text-size-adjust: 100%;
  min-width: 980px;
}
img { display: block; border: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-weight: 400; }
p { line-height: 1.4em; } /* Wix の段落既定値。各要素の font-size 基準で行間が決まる */
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

.m-only { display: none; }

/* 共通レイアウト部品 ---------------------------------------------------- */
.grid { position: relative; width: 980px; height: 100%; margin: 0 auto; }
.sec { position: relative; width: 100%; }
.strip { position: absolute; left: 0; top: 0; width: 100%; display: flex; }
.col { position: relative; width: 50%; height: 100%; overflow: hidden; }
.col-gray { background: var(--gray); }
.col-in { position: absolute; left: 50%; top: 0; width: 490px; height: 100%; margin-left: -245px; }
.fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.abs { position: absolute; }
.center { text-align: center; }

/* ヘッダー ---------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; height: 124px; background: #fff; }
.hdr .logo { position: absolute; left: -67px; top: 25px; width: 214px; height: 50px; overflow: hidden; }
.hdr .logo img { width: 100%; height: 100%; object-fit: cover; }
.hdr .shop { position: absolute; left: -67px; top: 85px; width: 160px; height: 20px; font-size: 14px; line-height: 1.4em; }
.hdr .tagline { position: absolute; left: 612px; top: 20px; width: 287px; height: 18px; font-size: 12px; line-height: 1.4em; white-space: nowrap; }
.hdr .buy {
  position: absolute; left: 899px; top: 9px; width: 131px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border: 0 solid #000;
  font-size: 15px; letter-spacing: 0.1em; white-space: nowrap;
  transition: all 0.2s ease, visibility 0s;
}
.hdr .buy span { margin-right: 4px; }
.hdr .buy:hover { background: #fff; color: #000; border-width: 1px; }

.hdr .menu { position: absolute; left: 548px; top: 66px; width: 507px; height: 40px; }
.hdr .menu ul { display: flex; white-space: nowrap; }
.hdr .menu li { width: 169px; height: 40px; padding: 0 10px; }
.hdr .menu a {
  display: block; height: 40px; padding-top: 8px;
  border-top: 1px solid transparent;
  font-size: 15px; line-height: 40px; text-align: center; color: #000;
}
.hdr .menu a:hover,
.hdr .menu li.current a { border-top: 4px solid var(--red); padding-top: 5px; color: var(--red); }

/* モバイル専用ヘッダー要素（デスクトップでは非表示） */
.hamburger, .bag, .drawer { display: none; }

/* ヒーロー ---------------------------------------------------------------- */
.s-hero { height: 403px; background: #fff; }
.s-hero .strip { height: 400px; }
.s-hero .col-l { background: #fff; }
.s-hero .hero-logo { position: absolute; left: 0; top: 142px; width: 491px; height: 119px; }
.s-hero .hero-logo img { width: 100%; height: 100%; object-fit: cover; }

/* リード ---------------------------------------------------------------- */
.s-lead { height: 192px; }
.s-lead .t1 { position: absolute; left: 159px; top: 43px; width: 662px; font-size: 40px; line-height: 1.4em; text-align: center; }
.s-lead .t2 { position: absolute; left: 326px; top: 115px; width: 327px; font-size: 18px; line-height: 1.4em; text-align: center; }

/* TOKUBOとは ------------------------------------------------------------- */
.s-about { height: 503px; }
.s-about .strip { top: 50px; height: 403px; }
.s-about .ttl { position: absolute; left: 67px; top: 21px; width: 379px; font-size: 25px; line-height: 1.4em; }
.s-about .ttl .red { color: var(--red); }
.s-about .body { position: absolute; left: 67px; top: 128px; width: 434px; font-size: 15px; line-height: normal; }
.s-about .body p { line-height: normal; }
.s-about .body .fs18 { font-size: 18px; }
.s-about .body .fs25 { font-size: 25px; }
.s-about .body .fs15 { font-size: 15px; }

/* 西乃川ストーリー --------------------------------------------------------- */
.s-story { height: 503px; }
.s-story .strip { top: 50px; height: 403px; }
.s-story .body { position: absolute; left: -1px; top: 62px; width: 491px; font-size: 15px; }
.s-story .body p { line-height: 1.6em; }

/* ギャラリー ------------------------------------------------------------- */
.s-gallery { height: 563px; background: rgba(255, 255, 255, 0.8); overflow: hidden; } /* Wix と同じく 1216px のギャラリーはセクションで切り抜き、横スクロール幅に影響させない */
.gallery { position: absolute; left: 50%; top: 94px; width: 1216px; height: 384px; margin-left: -608px; overflow: hidden; }
.gallery .track { position: relative; width: 1216px; height: 384px; }
.gallery .it { position: absolute; overflow: hidden; }
.gallery .it img { width: 100%; height: 100%; object-fit: cover; }
.gallery .i1 { left: 0;    top: 0;     width: 180px; height: 120px; }
.gallery .i2 { left: 185px; top: 0;    width: 160px; height: 120px; }
.gallery .i3 { left: 0;    top: 125px; width: 345px; height: 259px; }
.gallery .i4 { left: 350px; top: 0;    width: 213px; height: 166px; }
.gallery .i5 { left: 350px; top: 171px; width: 213px; height: 213px; }
.gallery .i6 { left: 568px; top: 0;    width: 391px; height: 265px; }
.gallery .i7 { left: 568px; top: 270px; width: 183px; height: 114px; }
.gallery .i8 { left: 756px; top: 270px; width: 203px; height: 114px; }
.gallery .i9 { left: 964px; top: 0;    width: 255px; height: 384px; }
.gallery .arrow { display: none; }

/* Instagram --------------------------------------------------------------- */
.s-insta { height: 199px; }
.s-insta .ttl { position: absolute; left: 300px; top: 49px; width: 379px; font-size: 25px; line-height: 1.4em; text-align: center; }

/* アクセス ---------------------------------------------------------------- */
.s-access { height: 324px; }
.s-access .strip { height: 324px; }
.s-access .ttl { position: absolute; left: 24px; top: 43px; width: 440px; font-size: 25px; line-height: 1.4em; text-align: center; }
.s-access .lbl1 { position: absolute; left: 24px; top: 105px; width: 117px; }
.s-access .val1 { position: absolute; left: 142px; top: 105px; width: 347px; }
.s-access .lbl2 { position: absolute; left: 24px; top: 195px; width: 117px; }
.s-access .val2 { position: absolute; left: 142px; top: 195px; width: 347px; }
.s-access video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.s-access .poster { display: none; }

/* 地図 -------------------------------------------------------------------- */
.s-map { height: 280px; }
.s-map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* フッター ---------------------------------------------------------------- */
.ftr { height: 130px; background: #000; }
.ftr .logo { position: absolute; left: 414px; top: 23px; width: 152px; height: 46px; }
.ftr .logo img { width: 100%; height: 100%; object-fit: cover; }
.ftr .insta { position: absolute; left: 470px; top: 83px; width: 39px; height: 39px; }
.ftr .insta img { width: 100%; height: 100%; }

/* お問い合わせページ --------------------------------------------------------- */
.c-head { height: 266px; }
.c-head .box { position: absolute; left: 40px; right: 40px; top: 20px; height: 246px; background: #fff; }
.c-head .ttl { position: absolute; left: 20px; top: 37px; width: 768px; font-size: 40px; line-height: normal; }
.c-head .desc { position: absolute; left: 20px; top: 155px; width: 793px; font-size: 16px; line-height: 1.8em; }

.c-form { height: 569px; }
.c-form .box { position: absolute; left: 40px; right: 40px; top: 0; height: 529px; background: var(--form-bg); }
.c-form .tel-l { position: absolute; left: 20px; top: 36px; width: 152px; font: 16px/1.4em var(--helv); }
.c-form .tel-v { position: absolute; left: 20px; top: 67px; width: 152px; font: 16px/1.8em var(--helv); }
.c-form .sns-l { position: absolute; left: 195px; top: 36px; width: 220px; font: 16px/1.4em var(--helv); }
.c-form .sns-i { position: absolute; left: 195px; top: 73px; width: 23px; height: 23px; }
.c-form .sns-i img { width: 100%; height: 100%; }

.form { position: absolute; left: 20px; top: 136px; width: 818px; height: 358px; }
.form .f { position: absolute; }
.form .f-sei   { left: 13px;  top: 18px; width: 250px; height: 60px; }
.form .f-mei   { left: 283px; top: 18px; width: 250px; height: 60px; }
.form .f-mail  { left: 553px; top: 18px; width: 250px; height: 60px; }
.form .f-msg   { left: 13px;  top: 88px; width: 790px; height: 168px; }
.form label { display: block; height: 14px; margin-bottom: 9px; font: 14px/14px var(--avenir); color: #000; }
.form input, .form textarea {
  display: block; width: 100%; margin: 0; border: 1px solid #000; border-radius: 0;
  background: #fff; color: #000; font: 14px/1.4em var(--avenir);
  -webkit-appearance: none; appearance: none; outline: none;
}
.form input { height: 37px; padding: 0 3px 0 10px; }
.form textarea { height: 145px; padding: 3px 10px; resize: none; white-space: pre-wrap; }
.form input:hover, .form textarea:hover,
.form input:focus, .form textarea:focus { border-width: 2px; }
.form.validated input:invalid, .form.validated textarea:invalid { border-color: #ff4040; }
.form .btn {
  position: absolute; left: 13px; top: 277px; width: 250px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: #fff; font: 14px/1.4em var(--avenir);
  transition: border-color 0.4s ease 0s, background-color 0.4s ease 0s, color 0.4s ease 0s;
}
.form .btn:hover { background: #fff; color: #000; }
.form .btn:disabled { background: #ccc; color: #000; cursor: default; }
.form .ok { position: absolute; left: 13px; top: 327px; width: 500px; font: 14px/normal var(--avenir); visibility: hidden; }
.form .ok.show { visibility: visible; }
.form .err { position: absolute; left: 13px; top: 327px; width: 500px; font: 14px/normal var(--avenir); color: #ff4040; display: none; }
.form .err.show { display: block; }
.form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Turnstile（ボット対策）ウィジェット: PC は送信ボタンの右、SP はボタンの上 */
.form .turnstile { position: absolute; left: 283px; top: 262px; width: 300px; height: 65px; }

/* ==========================================================================
   モバイル（html.mobile / viewport width=320）
   ========================================================================== */
.mobile body { min-width: 0; width: 320px; overflow-x: hidden; }
.mobile .m-only { display: block; }
.mobile .d-only { display: none; }
.mobile .grid { width: 320px; }
.mobile .col { width: 100%; }
.mobile .col-in { left: 0; width: 320px; margin-left: 0; }
.mobile .strip { flex-direction: column; }

/* ヘッダー */
.mobile .hdr { position: relative; height: 61px; }
.mobile .hdr .logo { left: 112px; top: 10px; width: 99px; height: 23px; }
.mobile .hdr .shop { left: 117px; top: 39px; width: 89px; height: 14px; font-size: 10px; line-height: 1.4em; text-align: center; }
.mobile .hdr .tagline, .mobile .hdr .buy, .mobile .hdr .menu { display: none; }

.mobile .hamburger {
  display: block; position: absolute; left: 20px; top: 18px; width: 26px; height: 26px;
  padding: 0; border: 0; background: #fff; cursor: pointer;
}
.mobile .hamburger i {
  position: absolute; left: 2px; width: 22px; height: 2px; background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile .hamburger .b1 { top: 3px; }
.mobile .hamburger .b2 { top: 12px; }
.mobile .hamburger .b3 { top: 21px; }
.mobile.menu-open .hamburger .b1 { transform: translateY(9px) rotate(45deg); }
.mobile.menu-open .hamburger .b2 { transform: scaleX(0); }
.mobile.menu-open .hamburger .b3 { transform: translateY(-9px) rotate(-45deg); }

.mobile .bag {
  display: flex; align-items: center; justify-content: center;
  position: absolute; left: 272px; top: 14px; width: 35px; height: 34px;
  border-radius: 200px; background: #fff; transition: all 0.2s ease, visibility 0s;
}
.mobile .bag svg { width: 31px; height: 31px; fill: #000; transition: inherit; }
.mobile .bag:hover svg { width: 29px; height: 29px; fill: var(--red); }

/* ドロワーメニュー */
/* Wix の開閉アニメーション: FloatIn / FloatOut (direction: top, 0.5s, easeInOutCubic)
   = パネルが 50px 上から降りてきながらフェードイン。オーバーレイは同時にフェード */
.mobile .drawer { display: block; position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 99999; visibility: hidden; transition: visibility 0s linear 0.5s; }
.mobile .drawer .overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); }
.mobile .drawer .panel { position: absolute; left: 0; top: 0; width: 217px; height: 100%; background: #fff; overflow: hidden auto; opacity: 0; transform: translateY(-50px); transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); }
.mobile.menu-open .drawer { visibility: visible; transition-delay: 0s; }
.mobile.menu-open .drawer .overlay { opacity: 1; }
.mobile.menu-open .drawer .panel { opacity: 1; transform: translateY(0); }
.mobile .drawer .close {
  position: absolute; left: 20px; top: 18px; width: 26px; height: 26px; padding: 0; border: 0; background: #fff; cursor: pointer;
}
.mobile .drawer .close i { position: absolute; left: 2px; top: 12px; width: 22px; height: 2px; background: #000; }
.mobile .drawer .close .x1 { transform: rotate(45deg); }
.mobile .drawer .close .x2 { transform: rotate(-45deg); }
.mobile .drawer nav { position: absolute; left: 33px; top: 152px; width: 188px; }
.mobile .drawer li { height: 44px; transition: background-color 0.4s; }
.mobile .drawer a { display: block; height: 44px; font-size: 15px; line-height: 44px; text-align: left; color: #000; } /* Wix は dir=rtl + text-align:end = 左寄せ */
.mobile .drawer li.current a { color: var(--red); }

/* ヒーロー */
.mobile .s-hero { height: 327px; }
.mobile .s-hero .strip { height: 327px; }
.mobile .s-hero .col-l { height: 108px; }
.mobile .s-hero .col-r { height: 219px; }
.mobile .s-hero .hero-logo { left: 26px; top: 21px; width: 268px; height: 65px; }

/* リード */
.mobile .s-lead { height: 194px; }
.mobile .s-lead .t1 { left: 35px; top: 15px; width: 249px; font-size: 30px; }
.mobile .s-lead .t2 { left: 20px; top: 116px; width: 280px; font-size: 15px; }

/* TOKUBOとは（モバイルは画像→テキストの順） */
.mobile .s-about { height: 531px; }
.mobile .s-about .strip { top: 20px; height: 491px; }
.mobile .s-about .col-r { order: 1; height: 231px; }
.mobile .s-about .col-l { order: 2; height: 260px; }
.mobile .s-about .ttl { left: 20px; top: 20px; width: 280px; font-size: 15px; }
.mobile .s-about .body { left: 20px; top: 72px; width: 280px; font-size: 10px; }
/* Wix モバイルは段落の基準フォント(helvetica)と本文フォント(明朝)のベースライン差で行箱が伸びるため、実測値で固定する */
.mobile .s-about .body .fs18 { font-size: 12px; line-height: 34px; }
.mobile .s-about .body .fs25 { font-size: 17px; line-height: 34px; }
.mobile .s-about .body .fs15 { font-size: 10px; line-height: 20px; }

/* ストーリー */
.mobile .s-story { height: 497px; }
.mobile .s-story .strip { top: 20px; height: 457px; }
.mobile .s-story .col-l { height: 230px; }
.mobile .s-story .col-r { height: 227px; }
.mobile .s-story .body { left: 20px; top: 20px; width: 280px; font-size: 10px; }
.mobile .s-story .body p { line-height: 17px; }

/* ギャラリー（横スライド） */
.mobile .s-gallery { height: 209px; }
.mobile .gallery { left: 0; top: 40px; width: 320px; height: 123px; margin-left: 0; overflow: hidden; }
.mobile .gallery .track { width: 394px; height: 123px; transition: transform 0.4s ease; }
.mobile .gallery .i1 { left: 0;     top: 0;    width: 55px;  height: 37px; }
.mobile .gallery .i2 { left: 60px;  top: 0;    width: 49px;  height: 37px; }
.mobile .gallery .i3 { left: 0;     top: 41px; width: 109px; height: 81px; }
.mobile .gallery .i4 { left: 113px; top: 0;    width: 67px;  height: 51px; }
.mobile .gallery .i5 { left: 113px; top: 56px; width: 67px;  height: 67px; }
.mobile .gallery .i6 { left: 184px; top: 0;    width: 124px; height: 83px; }
.mobile .gallery .i7 { left: 184px; top: 88px; width: 57px;  height: 35px; }
.mobile .gallery .i8 { left: 246px; top: 88px; width: 62px;  height: 35px; }
.mobile .gallery .i9 { left: 312px; top: 0;    width: 82px;  height: 123px; }
.mobile .gallery .arrow {
  display: block; position: absolute; top: calc(50% - 18.25px); width: 23px; height: 39px;
  padding: 0; border: 0; background: transparent; cursor: pointer; opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.mobile .gallery .arrow svg { display: block; width: 23px; height: 39px; fill: #fff; }
.mobile .gallery .next { right: 25.5px; }
.mobile .gallery .prev { left: 25.5px; }
.mobile .gallery .prev svg { transform: scaleX(-1); }
.mobile .gallery .arrow[hidden] { display: none; }

/* Instagram */
.mobile .s-insta { height: 69px; }
.mobile .s-insta .ttl { left: 20px; top: 20px; width: 280px; font-size: 15px; }

/* アクセス（モバイルは動画なし・静止画） */
.mobile .s-access { height: 323px; }
.mobile .s-access .strip { height: 323px; }
.mobile .s-access .col-l { height: 160px; }
.mobile .s-access .col-r { height: 163px; }
.mobile .s-access .ttl { left: 20px; top: 20px; width: 280px; font-size: 15px; }
.mobile .s-access .lbl1 { left: 49px; top: 60px; width: 53px; font-size: 10px; }
.mobile .s-access .val1 { left: 119px; top: 60px; width: 152px; font-size: 10px; }
.mobile .s-access .lbl2 { left: 49px; top: 113px; width: 53px; font-size: 10px; }
.mobile .s-access .val2 { left: 114px; top: 113px; width: 157px; font-size: 10px; }
.mobile .s-access .lbl1, .mobile .s-access .lbl2,
.mobile .s-access .val1 p, .mobile .s-access .val2 p { line-height: 15px; }
.mobile .s-access video { display: none; }
.mobile .s-access .poster { display: block; }

/* 地図 */
.mobile .s-map { height: 147px; }
.mobile .s-map iframe { height: 147px; }

/* フッター */
.mobile .ftr { height: 79px; }
.mobile .ftr .logo { left: 114px; top: 12px; width: 91px; height: 27px; }
.mobile .ftr .insta { left: 152px; top: 49px; width: 16px; height: 16px; }

/* お問い合わせ */
.mobile .c-head { height: 131px; }
.mobile .c-head .box { left: 0; right: 0; top: 0; height: 131px; }
.mobile .c-head .ttl { left: 20px; top: 29px; width: 280px; font-size: 15px; }
.mobile .c-head .desc { left: 20px; top: 73px; width: 280px; font-size: 10px; line-height: 19px; }

.mobile .c-form { height: 621px; }
.mobile .c-form .box { left: 0; right: 0; top: 0; height: 621px; }
.mobile .c-form .tel-l { left: 20px; top: 20px; width: 75px; font-size: 10px; }
.mobile .c-form .tel-v { left: 101px; top: 18px; width: 75px; font-size: 10px; }
.mobile .c-form .sns-l { left: 20px; top: 50px; width: 75px; font-size: 10px; }
.mobile .c-form .sns-i { left: 103px; top: 48px; width: 16px; height: 16px; }

.mobile .form { left: 0; top: 78px; width: 320px; height: 513px; }
.mobile .form .f-sei  { left: 20px; top: 10px;  width: 280px; height: 50px; }
.mobile .form .f-mei  { left: 20px; top: 84px;  width: 280px; height: 50px; }
.mobile .form .f-mail { left: 20px; top: 158px; width: 280px; height: 50px; }
.mobile .form .f-msg  { left: 20px; top: 232px; width: 280px; height: 95px; }
.mobile .form label { height: 10px; margin-bottom: 9px; font-size: 10px; line-height: 10px; }
.mobile .form input, .mobile .form textarea { font-size: 10px; }
.mobile .form input { height: 31px; }
.mobile .form textarea { height: 75px; margin-top: 1px; }
.mobile .form .turnstile { left: 10px; top: 337px; }
.mobile .form .btn { left: 20px; top: 412px; width: 280px; height: 42px; font-size: 10.7857px; }
.mobile .form .ok, .mobile .form .err { left: 30px; top: 464px; width: 260px; font-size: 10px; text-align: center; }

/* ==========================================================================
   ページ遷移（PC）— Wix の「OutIn」トランジションを View Transitions API で再現
   ヘッダー / フッターは固定のまま、本文(main)が 0.35s でフェードアウト → 0.35s でフェードイン。
   site.js がリンククリック時に html.vt-outin を付けて document.startViewTransition() を呼ぶ。
   ========================================================================== */
@keyframes out-in-new { 0% { opacity: 0; } }
@keyframes out-in-old { to { opacity: 0; } }
html.vt-outin { view-transition-name: none; }
html.vt-outin .hdr { view-transition-name: header-group; }
html.vt-outin main { view-transition-name: page-group; }
html.vt-outin .ftr { view-transition-name: footer-group; }
html.vt-outin::view-transition { pointer-events: none; }
html.vt-outin::view-transition-group(*) { animation: none; }
html.vt-outin::view-transition-old(*) { animation: none; }
html.vt-outin::view-transition-new(*) { animation: none; }
html.vt-outin::view-transition-group(page-group) { pointer-events: all; cursor: wait; animation: revert; animation-duration: 0.6s; }
html.vt-outin::view-transition-old(page-group) { pointer-events: all; cursor: wait; animation: 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards out-in-old; }
html.vt-outin::view-transition-new(page-group) { pointer-events: all; cursor: wait; animation: 0.35s cubic-bezier(0.64, 0, 0.78, 0) 0.35s backwards out-in-new; }
/* View Transitions 非対応ブラウザ向けフォールバック（site.js が main を直接フェードさせる） */
main.fx-out { opacity: 0; transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
main.fx-in-start { opacity: 0; transition: none; }
main.fx-in { opacity: 1; transition: opacity 0.35s cubic-bezier(0.64, 0, 0.78, 0); }
@media (prefers-reduced-motion: reduce) {
  html.vt-outin::view-transition-group(*),
  html.vt-outin::view-transition-old(*),
  html.vt-outin::view-transition-new(*) { animation: none !important; }
  main.fx-out, main.fx-in { transition: none; }
}

/* ==========================================================================
   ウェルカムスクリーン（SP のみ）— Wix のローディング画面を再現
   白背景が左から入る(0.9s) → ロゴ表示 → 1.5s 待機 → ロゴ 0.3s フェード & 白背景が左へ退場(0.9s)
   セッション中 1 回（リロード時は再表示）。制御は各 HTML 冒頭のインラインスクリプト。
   ========================================================================== */
#welcome-screen { position: fixed; overflow: hidden; left: 0; top: 0; width: 100%; height: 100%; z-index: 99999; background: #fff; }
#welcome-screen-background { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; }
#welcome-screen-foreground { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#welcome-screen-logo { position: relative; overflow: hidden; width: 120px; height: 120px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
#welcome-screen-logo-image { max-width: 100%; max-height: 100%; width: auto; height: auto; }
#welcome-screen-logo-cover { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; opacity: 0; }
#welcome-screen.welcome-screen-state-bg-intro > #welcome-screen-foreground { display: none; }
#welcome-screen.welcome-screen-state-outro { background: none; }
.welcome-screen-state-logo-intro #welcome-screen-logo { animation: welcome-screen-logo-intro-logo 1ms both ease; }
@keyframes welcome-screen-logo-intro-logo { 0% { } 100% { } }
.welcome-screen-state-outro #welcome-screen-logo { animation: welcome-screen-outro-logo 300ms 0ms both ease; }
@keyframes welcome-screen-outro-logo { 0% { opacity: 1; } 100% { opacity: 0; } }
.welcome-screen-state-bg-intro #welcome-screen-background { animation: welcome-screen-bg-intro-background 900ms both cubic-bezier(0.77, 0, 0.175, 1); }
@keyframes welcome-screen-bg-intro-background { 0% { transform: translateX(-100vw); } 100% { transform: translateX(0); } }
.welcome-screen-state-outro #welcome-screen-background { animation: welcome-screen-outro-background 900ms reverse both cubic-bezier(0.77, 0, 0.175, 1); }
@keyframes welcome-screen-outro-background { 0% { transform: translateX(-100vw); } 100% { transform: translateX(0); } }
.welcome-screen-state-loop #welcome-screen-logo-cover { animation: welcome-screen-loop-logo-cover 2200ms infinite ease-in-out; opacity: 0.85; }
@keyframes welcome-screen-loop-logo-cover { 0% { transform: translateX(-120px); } 50% { transform: translateX(120px); } 100% { transform: translateX(120px); } }
