/* =====================================================
   1n58 bal. テーマ メインCSS  v2.0
   構造的リライト — vwベースのネオン・FV両端グラデ対応
   ===================================================== */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
  /* カラー */
  --blue:        #4db8ff;
  --bg:          #f8f8f6;
  --white:       #ffffff;
  --black:       #141414;
  --gray:        #555555;
  --light:       #aaaaaa;
  --border:      #ebebeb;
  --line-green:  #06C755;
  --error:       #e04848;
  --success:     #2eaa6e;

  /* レイアウト */
  --max-w:       960px;
  --pad-h:       48px;   /* セクション左右パディング（PC） */
  --pad-v:       72px;   /* セクション上下パディング（PC） */

  /* ネオン — vwベースで画面幅に比例してぼかしが変化 */
  --neon-s:      0.4vw;  /* 内側ぼかし（小） */
  --neon-m:      1.2vw;  /* 中ぼかし */
  --neon-l:      2.4vw;  /* 外ぼかし（大） */
  --neon-xl:     4vw;    /* 最外ぼかし */

  /* FV */
  --fv-h:        52vh;
  --fv-max:      540px;
  --fv-min:      360px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--black);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
}

/* ===== HEADER ===== */
.hdr {
  background: rgba(255,255,255,.97);
  padding: 14px var(--pad-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(8px);
}
.hdr a        { display: flex; align-items: center; }
/* ロゴ: vwで画面幅に比例、下限36px・上限56px */
.hdr-logo     { height: clamp(36px, 3.5vw, 56px); object-fit: contain; }
.hdr-cta      { display: flex; gap: 12px; align-items: center; }
.btn-tel {
  border: 1px solid #d0d0d0; color: #444;
  font-size: clamp(12px, 1vw, 14px);
  padding: 9px 18px; border-radius: 4px; text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap; letter-spacing: .05em;
}
.btn-line {
  background: var(--line-green); color: #fff;
  font-size: clamp(12px, 1vw, 14px);
  padding: 9px 20px; border-radius: 4px; text-decoration: none;
  box-shadow: 0 0 12px rgba(6,199,85,.35);
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap; letter-spacing: .05em;
}

/* ===== FV ===== */
.fv {
  position: relative;
  height: var(--fv-h);
  max-height: var(--fv-max);
  min-height: var(--fv-min);
  overflow: hidden;
  background: #111;
}

/* 背景スライド */
.fv-slides { position: absolute; inset: 0; }
.fv-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.fv-slide.active { opacity: 1; }
.fv-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  /* 0.65 = 画像を35%縮小して引きの見え方に。1.0で等倍、小さくするほど引き */
  transform: scale(0.65);
  transform-origin: center center;
  opacity: .65;
}

/* PC: 両端を黒でグラデーション → 画像が横に溢れている感を抑える */
.fv-slide::before,
.fv-slide::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 1;
  pointer-events: none;
}
.fv-slide::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.fv-slide::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,.75), rgba(0,0,0,0));
}

/* オーバーレイ（上下グラデ + コンテンツ中央） */
.fv-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.10) 40%,
    rgba(0,0,0,.60) 100%
  );
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(12px, 2vh, 24px);
}

/* ネオンロゴ画像 — サイズもぼかしもvwで連動 */
.fv-logo-img {
  width: clamp(140px, 22vw, 300px);
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 var(--neon-s) rgba(255,255,255,1))
    drop-shadow(0 0 var(--neon-m) rgba(77,184,255,1))
    drop-shadow(0 0 var(--neon-l) rgba(77,184,255,.8))
    drop-shadow(0 0 var(--neon-xl) rgba(0,136,255,.5));
  animation: fadeUp 1.2s ease both;
}

/* キャッチコピー — フォントサイズもvwで連動 */
.fv-catch {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(11px, 1.4vw, 17px);
  letter-spacing: clamp(2px, 0.4vw, 5px);
  white-space: nowrap; color: #fff; font-weight: 300;
  text-shadow:
    0 0 var(--neon-s)  rgba(255,255,255,1),
    0 0 var(--neon-m)  rgba(100,200,255,1),
    0 0 var(--neon-l)  rgba(77,184,255,.8),
    0 0 var(--neon-xl) rgba(0,136,255,.5);
  animation: fadeUp 1.4s ease both;
}
.fv-sub {
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: clamp(2px, 0.4vw, 5px);
  color: rgba(255,255,255,.60);
  animation: fadeUp 1.6s ease both;
}

/* ドット・スクロール */
.fv-dots { position: absolute; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.fv-dot  {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.30); cursor: pointer;
  transition: background .3s, box-shadow .3s;
}
.fv-dot.on {
  background: var(--blue);
  box-shadow: 0 0 var(--neon-m) var(--blue);
}
.fv-scroll {
  position: absolute; bottom: 8px; z-index: 3;
  font-size: 9px; letter-spacing: 5px; color: rgba(255,255,255,.30);
}

/* ===== SECTIONS 共通 ===== */
.sec-white { background: var(--white); }
.sec-bg    { background: var(--bg); }
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-v) var(--pad-h);
}
.sec-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; letter-spacing: 6px;
  color: var(--black); margin-bottom: 4px; line-height: 1.1;
}
.sec-jp  { font-size: 11px; letter-spacing: 3px; color: var(--light); margin-bottom: 18px; }
.sec-div { width: 32px; height: 1px; background: var(--blue); margin-bottom: 36px; }

/* ===== NEWS ===== */
.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 24px;
  text-decoration: none; align-items: center;
  overflow: hidden;
}
.news-item:first-of-type { border-top: 1px solid var(--border); }
.n-date {
  font-size: 13px; color: var(--light);
  min-width: 92px; flex-shrink: 0;
}
.n-txt {
  font-size: 15px; color: #333;
  line-height: 1.7; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.news-item:hover .n-txt { color: var(--blue); }
.readmore {
  font-size: 11px; color: var(--light); letter-spacing: 3px;
  text-align: right; margin-top: 18px; display: block; text-decoration: none;
}
.readmore:hover { color: var(--blue); }

/* ===== CONCEPT ===== */
.concept-lead {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.6; color: var(--black);
  margin-bottom: 20px; font-weight: 400;
  font-family: 'Noto Sans JP', sans-serif; letter-spacing: 1px;
}
.concept-body { font-size: 15px; line-height: 2.2; color: var(--gray); margin-bottom: 48px; }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.c-img        { height: clamp(140px, 18vw, 260px); overflow: hidden; }
.c-img img    { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.c-img:hover img { transform: scale(1.04); }

/* ===== GALLERY ===== */
.gallery-outer {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--pad-v) 0;
  overflow: hidden;         /* トラックがはみ出ないようにクリップ */
}
.gallery-hd {
  padding: 0 var(--pad-h) 36px;
}

/* トラックラッパー: 横幅100%でクリップ、ホバーで一時停止 */
.g-track-wrap {
  overflow: hidden;
  cursor: default;
}
.g-track-wrap:hover .g-track {
  animation-play-state: paused;  /* ホバー中は停止 */
}

/* トラック: 画像を横一列に並べ、CSSアニメで左へ流す */
.g-track {
  display: flex;
  gap: 10px;
  width: max-content;             /* コンテンツ幅に広がる */
  animation: gallery-scroll 40s linear infinite;
}

/* 9枚 × (セル幅 + gap) 分を1ループとしてtranslateX */
/* セル幅 clamp(180px,20vw,280px) の中央値を260pxとして計算 */
/* 9枚 × (260px + 10px) = 2430px → CSS変数で管理 */
@keyframes gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (clamp(180px, 20vw, 280px) + 10px) * 9)); }
}

.g-cell     { min-width: clamp(180px, 20vw, 280px); height: clamp(180px, 20vw, 280px); overflow: hidden; flex-shrink: 0; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.g-cell:hover img { transform: scale(1.04); }

.ig-row   { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0 var(--pad-h); }
.ig-label { font-size: 12px; color: var(--light); letter-spacing: 2px; }

/* ===== INFORMATION ===== */
.map-wrap        { width: 100%; border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.map-wrap iframe { width: 100%; height: clamp(240px, 28vw, 380px); border: 0; display: block; }
.info-tbl        { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 48px; }
.info-tbl td     { padding: 16px 14px; border-bottom: 1px solid var(--border); line-height: 1.9; vertical-align: top; }
.info-tbl td:first-child { width: 110px; color: var(--light); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }

/* CTA / SNS */
.cta-row { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.cta-line {
  flex: 1; min-width: 180px; background: var(--line-green); color: #fff;
  text-align: center; padding: 18px 24px; border-radius: 4px; text-decoration: none;
  font-size: 15px; letter-spacing: 1px; box-shadow: 0 0 16px rgba(6,199,85,.3);
  font-family: 'Noto Sans JP', sans-serif;
}
.cta-tel {
  flex: 1; min-width: 180px; border: 1.5px solid #ccc; color: #444;
  text-align: center; padding: 18px 24px; border-radius: 4px; text-decoration: none;
  font-size: 15px; letter-spacing: 1px; font-family: 'Noto Sans JP', sans-serif;
}
.sns-row { display: flex; gap: 16px; margin-bottom: 40px; }
.sns-btn { display: block; width: 48px; height: 48px; }
.sns-btn svg { width: 48px; height: 48px; }

/* CONTACT SECTION */
.contact-wrap  { border-top: 1px solid var(--border); padding-top: 36px; }
.contact-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; letter-spacing: 4px; color: var(--black); margin-bottom: 16px;
}
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--blue); color: var(--blue);
  padding: 18px 26px; border-radius: 4px; text-decoration: none;
  font-size: 15px; letter-spacing: .05em; transition: background .25s, color .25s;
}
.contact-btn:hover { background: var(--blue); color: #fff; }
.contact-btn svg { flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  padding: 56px var(--pad-h) 40px;
  text-align: center;
}
/* フッターネオンロゴ — ぼかしもvwで変動 */
.footer-logo {
  height: clamp(52px, 6vw, 80px);
  margin-bottom: 20px;
  filter:
    drop-shadow(0 0 var(--neon-s) rgba(255,255,255,1))
    drop-shadow(0 0 var(--neon-m) rgba(77,184,255,.9))
    drop-shadow(0 0 var(--neon-l) rgba(0,136,255,.7))
    drop-shadow(0 0 var(--neon-xl) rgba(0,100,255,.4));
}
/* フッターテキストネオン */
.f-neon {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 8px; color: #fff;
  text-shadow:
    0 0 var(--neon-s)  rgba(255,255,255,1),
    0 0 var(--neon-m)  rgba(100,200,255,1),
    0 0 var(--neon-l)  rgba(77,184,255,.8),
    0 0 var(--neon-xl) rgba(0,136,255,.5);
  margin-bottom: 10px;
}
.f-copy { font-size: 11px; color: #555; letter-spacing: 1px; }
.footer-links { margin-top: 14px; }
.footer-links a {
  font-size: 11px; color: #666; letter-spacing: 1px;
  text-decoration: none; margin: 0 8px;
}
.footer-links a:hover { color: var(--blue); }

/* ===== CONTACT PAGE ===== */
.hero {
  background: #0a0a0a;
  padding: clamp(48px, 6vw, 80px) var(--pad-h) clamp(40px, 5vw, 72px);
  text-align: center;
}
.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; letter-spacing: 8px; color: #fff;
  text-shadow:
    0 0 var(--neon-s)  rgba(255,255,255,1),
    0 0 var(--neon-m)  rgba(100,200,255,1),
    0 0 var(--neon-l)  rgba(77,184,255,.7);
  line-height: 1.1; margin-bottom: 10px;
}
.hero-jp { font-size: 12px; letter-spacing: 4px; color: rgba(255,255,255,.45); }

.form-wrap   { max-width: 700px; margin: 0 auto; padding: var(--pad-v) var(--pad-h) 100px; }
.form-lead   { font-size: 15px; line-height: 2.1; color: var(--gray); margin-bottom: 48px; border-left: 3px solid var(--blue); padding-left: 18px; }
.form-group  { margin-bottom: 28px; }
.form-label  { display: block; font-size: 14px; letter-spacing: 1px; color: var(--gray); margin-bottom: 8px; font-weight: 400; }
.form-req    { display: inline-block; font-size: 10px; background: var(--blue); color: #fff; padding: 1px 7px; border-radius: 2px; margin-left: 8px; letter-spacing: .5px; vertical-align: middle; }
.form-input  { display: block; width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 300; color: var(--black); background: #fff; transition: border-color .2s; outline: none; }
.form-input:focus { border-color: var(--blue); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.form-privacy  { font-size: 13px; color: var(--light); line-height: 1.8; margin-bottom: 32px; }
.form-submit   { display: block; width: 100%; padding: 20px; background: var(--black); color: #fff; border: none; border-radius: 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; letter-spacing: 4px; cursor: pointer; transition: background .25s, box-shadow .25s; }
.form-submit:hover { background: #222; box-shadow: 0 0 20px rgba(77,184,255,.3); }
.form-submit:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.form-msg     { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 4px; font-size: 14px; line-height: 1.7; }
.form-msg.error   { background: #fff5f5; color: var(--error); border: 1px solid #fcc; }
.form-msg.success { background: #f0fff8; color: var(--success); border: 1px solid #9de; }

/* ===== THANKS PAGE ===== */
.thanks-body { min-height: calc(100svh - 68px); display: flex; align-items: center; justify-content: center; padding: var(--pad-v) var(--pad-h); }
.thanks-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 64px 56px; max-width: 560px; width: 100%; text-align: center; }
.thanks-icon { width: 64px; height: 64px; background: rgba(77,184,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.thanks-en   { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; letter-spacing: 6px; color: var(--black); margin-bottom: 8px; line-height: 1.1; }
.thanks-jp   { font-size: 12px; letter-spacing: 3px; color: var(--light); margin-bottom: 36px; }
.thanks-div  { width: 32px; height: 1px; background: var(--blue); margin: 0 auto 32px; }
.thanks-txt  { font-size: 15px; line-height: 2.2; color: var(--gray); margin-bottom: 48px; }
.btn-row     { display: flex; gap: 12px; flex-direction: column; }
.btn-top     { display: block; padding: 18px; background: var(--black); color: #fff; text-decoration: none; font-size: 14px; letter-spacing: 3px; border-radius: 4px; transition: background .25s; }
.btn-top:hover { background: #222; }
.btn-contact { display: block; padding: 18px; border: 1.5px solid var(--border); color: var(--gray); text-decoration: none; font-size: 13px; letter-spacing: 2px; border-radius: 4px; transition: border-color .2s; }
.btn-contact:hover { border-color: var(--blue); }

/* ===== 投稿ページ ===== */
.post-hero       { background: #0a0a0a; padding: clamp(48px,6vw,64px) var(--pad-h) clamp(40px,5vw,56px); border-bottom: 1px solid #1a1a1a; }
.post-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.post-cat        { font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 4px; color: var(--blue); margin-bottom: 14px; text-shadow: 0 0 var(--neon-m) rgba(77,184,255,.5); }
.post-title      { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(18px, 2.2vw, 26px); font-weight: 400; color: #fff; line-height: 1.5; letter-spacing: .05em; margin-bottom: 16px; }
.post-date       { font-size: 12px; color: #666; letter-spacing: 2px; }
.post-wrap       { max-width: var(--max-w); margin: 0 auto; padding: var(--pad-v) var(--pad-h) 100px; }
.post-body       { font-size: 16px; line-height: 2.2; color: #333; border-bottom: 1px solid var(--border); padding-bottom: 56px; margin-bottom: 40px; }
.post-body p     { margin-bottom: 1.6em; }
.post-body h2    { font-size: 20px; font-weight: 500; margin: 2em 0 .8em; padding-left: 12px; border-left: 3px solid var(--blue); }
.post-body h3    { font-size: 17px; font-weight: 500; margin: 1.6em 0 .6em; }
.post-body a     { color: var(--blue); text-decoration: underline; }
.post-body img   { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.post-nav        { display: flex; }
.post-nav-btn    { font-size: 13px; letter-spacing: 2px; color: var(--gray); text-decoration: none; padding: 12px 24px; border: 1px solid var(--border); border-radius: 4px; transition: border-color .2s, color .2s; }
.post-nav-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ===== 一覧ページ ===== */
.archive-wrap  { max-width: var(--max-w); margin: 0 auto; padding: var(--pad-v) var(--pad-h) 100px; }
.archive-wrap .news-item:first-of-type { border-top: 1px solid var(--border); }
.archive-pager { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.archive-pager .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--gray); text-decoration: none; transition: border-color .2s, color .2s; }
.archive-pager .page-numbers.current,
.archive-pager .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.archive-empty { padding: 48px 0; text-align: center; font-size: 14px; color: var(--light); letter-spacing: 1px; }

/* ===== ANIMATION ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== TABLET 〜900px ===== */
@media (max-width: 900px) {
  :root { --pad-h: 32px; --pad-v: 60px; }
  .g-cell { min-width: 200px; height: 200px; }
}

/* ===== SP 〜600px ===== */
@media (max-width: 600px) {
  :root {
    --pad-h:  20px;
    --pad-v:  52px;
    --fv-h:   52vh;
    --fv-max: 400px;
    --fv-min: 260px;
    /* SP: ネオンぼかしをpx固定に — vwだと小さい画面でぼかしが消えすぎるため */
    --neon-s: 2px;
    --neon-m: 8px;
    --neon-l: 16px;
    --neon-xl:28px;
  }
  .hdr      { padding: 12px var(--pad-h); }
  .hdr-logo { height: 32px; }
  .btn-tel  { font-size: 11px; padding: 7px 10px; }
  .btn-line { font-size: 11px; padding: 7px 12px; }
  /* SP FVは両端グラデを薄める（画面幅が狭いので不要） */
  .fv-slide::before, .fv-slide::after { width: 8%; }
  .fv-catch { white-space: normal; text-align: center; padding: 0 12px; }
  .concept-body { font-size: 14px; }
  .c-img    { height: 140px; }
  .g-cell   { min-width: 170px; height: 170px; }
  .map-wrap iframe { height: 240px; }
  .info-tbl { font-size: 13px; }
  .info-tbl td:first-child { width: 80px; }
  .cta-row  { flex-direction: column; }
  .thanks-card { padding: 40px 20px; }
  .footer   { padding: var(--pad-v) var(--pad-h) 32px; }
  .post-wrap, .archive-wrap, .form-wrap { padding: var(--pad-v) var(--pad-h) 72px; }
  .post-body { font-size: 15px; }
}
