@charset "UTF-8";
/* ==========================================================
   AND ONE VILLAGE 移転告知サイト
   デザイン: ANDONE_移転告知サイト_FIX_261015.xd（PC幅1400 / コンテンツ幅850）
   ========================================================== */

:root {
  --bg: #000;
  --text: #fff;
  --box: #232529;
  --content: 850px;
  --gutter: 16px;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-jp);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  /* XDと同じく約物（」、など）を詰めない */
  text-spacing-trim: space-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, address { margin: 0; font-weight: inherit; font-style: normal; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- ロゴ ---------- */
.hero {
  padding: 78px var(--gutter) 0;
}
.hero__logo {
  width: 537px;
  max-width: 100%;
  margin: 0 auto;
}
.hero__logo img { width: 100%; }

/* ---------- 移転のお知らせ ---------- */
.notice {
  width: min(var(--content), 100% - var(--gutter) * 2);
  margin: 0 auto;
  text-align: center;
}

.notice__title {
  margin-top: 155px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 45px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}
.notice__arrow {
  flex: none;
  width: 1.598em;
  height: .624em;
  margin: 0 .215em 0 .24em;
  /* 矢印の下端をベースラインより少し上に */
  position: relative;
  top: -.043em;
  align-self: baseline;
}

.notice__body {
  margin-top: 32px;
  font-weight: 600;
  font-size: 19px;
  line-height: 52px;
}

.notice__note {
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  line-height: 42px;
}

/* Instagram 枠 */
.insta {
  margin-top: 49px;
  min-height: 126px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--box);
  text-decoration: none;
  text-align: left;
  transition: background-color .3s;
}
.insta__text {
  font-weight: 600;
  font-size: 15px;
  line-height: 25px;
}
.insta__check {
  position: relative;
  width: 116.38px;
  height: 32.5px;
  margin-left: 38px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}
.insta__check svg {
  position: absolute;
  left: 0;
  top: 24.5px;
  width: 116.38px;
  height: 8px;
  transition: transform .3s;
}
.insta__icon {
  flex: none;
  width: 35.74px;
  height: 35.74px;
  margin-left: 14px;
}
@media (hover: hover) {
  .insta:hover { background: #2e3136; }
  .insta:hover .insta__check svg { transform: translateX(6px); }
}

/* ---------- アクセス ---------- */
.access {
  width: min(var(--content), 100% - var(--gutter) * 2);
  margin: 156px auto 0;
}
.access__title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
}
.access__map {
  margin-top: 36px;
  aspect-ratio: 850 / 420;
  background: #e5e3df;
}
.access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.access__info {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.access__address {
  font-size: 15px;
  line-height: 25px;
}
.access__landmark {
  margin-left: .8em;
  font-size: 12px;
}
.access__link {
  flex: none;
  font-size: 13px;
  line-height: 25px;
  text-underline-offset: 3px;
  transition: opacity .3s;
}
@media (hover: hover) {
  .access__link:hover { opacity: .6; }
}

/* ---------- フッター ---------- */
.footer {
  padding: 146px var(--gutter) 48px;
  text-align: center;
  font-size: 12px;
  line-height: 22px;
}
.footer small { font-size: inherit; }

/* ==========================================================
   スマホ
   ========================================================== */
@media (max-width: 767px) {
  .hero { padding-top: 56px; }
  .hero__logo { width: min(537px, 68vw); }

  .notice__title {
    margin-top: 64px;
    font-size: min(45px, 5.4vw);
  }

  .notice__body {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.8;
    word-break: auto-phrase;
    text-wrap: pretty;
  }
  .notice__body p + p { margin-top: .7em; }
  .notice__body .ib { display: inline-block; }

  .notice__note {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
  }

  .insta {
    margin-top: 32px;
    min-height: 0;
    padding: 24px 20px;
    flex-wrap: wrap;
    row-gap: 16px;
  }
  .insta__text {
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
  }
  .insta__check { margin-left: 0; }

  .access { margin-top: 88px; }
  .access__title { font-size: 40px; }
  .access__map {
    margin-top: 24px;
    aspect-ratio: 4 / 3;
  }
  .access__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .access__landmark {
    display: block;
    margin-left: 0;
    line-height: 1.6;
  }

  .footer { padding-top: 88px; padding-bottom: 32px; font-size: 11px; }
}

/* ==========================================================
   表示アニメーション
   ・読み込み時：ロゴが左下から右上へ浮かび上がる → VELTIRO → 矢印が描かれる → AND ONE VILLAGE
   ・本文以降：スクロールで下からふわっと表示
   ・「視差効果を減らす」設定の端末では動かさない／JSが無効でも全部表示される
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* --- ロゴ --- */
  .js .hero__logo img {
    -webkit-mask-image: linear-gradient(to top right, #000 40%, transparent 60%);
            mask-image: linear-gradient(to top right, #000 40%, transparent 60%);
    -webkit-mask-size: 300% 300%;
            mask-size: 300% 300%;
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
  }
  .js.is-ready .hero__logo img {
    animation: logo-in 1.6s cubic-bezier(.45, 0, .2, 1) .1s both;
  }
  @keyframes logo-in {
    to { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  }

  /* --- 見出し（VELTIRO → 矢印 → AND ONE VILLAGE） --- */
  .js .notice__title span { opacity: 0; }
  .js .notice__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js.is-ready .notice__title span:first-child {
    animation: fade-up .8s cubic-bezier(.22, 1, .36, 1) .9s both;
  }
  .js.is-ready .notice__arrow path {
    animation: draw .8s cubic-bezier(.65, 0, .35, 1) 1.3s both;
  }
  .js.is-ready .notice__title span:last-of-type {
    animation: slide-in .9s cubic-bezier(.22, 1, .36, 1) 1.9s both;
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(.35em); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes slide-in {
    from { opacity: 0; transform: translateX(-.4em); }
    to   { opacity: 1; transform: none; }
  }

  /* --- スクロールで表示 --- */
  .js .rv {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms),
      transform 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms);
  }
  .js .rv.is-in {
    opacity: 1;
    transform: none;
  }
  /* Instagram枠はマウスを乗せたときの色の変化も残す */
  .js .insta.rv {
    transition:
      opacity 1s cubic-bezier(.22, 1, .36, 1),
      transform 1s cubic-bezier(.22, 1, .36, 1),
      background-color .3s;
  }
}
