/**
 * ベースリセットと要素デフォルト
 *
 * Sibloo は Bootstrap 4.1.3 を強制的に読み込み、その Reboot がリセットの多くを
 * 担う。ここでは Reboot と同じ値を自前でも宣言し、Bootstrap の有無に関わらず
 * 同じ結果になるようにする。
 */

:root {
  /* アンカーで飛んだときに上へ空ける量。固定ヘッダーを置く案件では
   * その高さに合わせる。ベースの .header は position: relative で高さを
   * 持たないため、ここでは余白としての既定値だけを持つ。 */
  --scroll-offset: 3.75rem;

  /* テキスト選択時の色 */
  --selection-bg: var(--ink);
  --selection-fg: var(--snow);

  /* hr の罫線 */
  --hr-color: var(--light-gray);
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-fg);
}

*,
*::before,
*::after {
  /* Reboot 依存のうち最も影響が大きい。padding / sizes ユーティリティは
   * すべて border-box を前提にしている。 */
  box-sizing: border-box;
  min-width: 0px;
  min-height: 0px;
}

html {
  /* iOS の横向きで文字が自動拡大されるのを止める */
  -webkit-text-size-adjust: 100%;
  /* タップ時のハイライトを消す */
  -webkit-tap-highlight-color: transparent;

  /* 最小値13pxを保証し、1200px未満では最大22pxまでフォントサイズが流動する */
  font-size: clamp(13px, var(--font-size-base), 22px);

  @media screen and (min-width: 1200px) {
    font-size: clamp(0.1rem, var(--font-size-base), 24px);
  }
}

/**
 * ページ内リンクのスムーススクロール。
 *
 * ネイティブのハッシュ遷移に任せる。位置のオフセットは [id] の
 * scroll-margin-top が受け持つ。
 *
 * 「動きを減らす」設定の環境では即座にジャンプする。
 *
 * フォームのあるページでは 01_FormScript.js がこれを切る。validationEngine が
 * エラー箇所へ移動するときに使う jQuery の animate({ scrollTop }) と噛み合わない
 * ため。理由はそちらのコメントにある。
 */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  line-height: 1.5;
  /* 長い URL や英単語がはみ出して横スクロールを作るのを防ぐ。
   * 収まらないときだけ働くため、通常の行分割には影響しない。 */
  overflow-wrap: break-word;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--bg-grass);
  font-weight: 500;
}

#root {
  margin: 0 auto;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  line-height: inherit;
}

/**
 * リスト・図・引用の margin リセット。
 *
 * 余白はユーティリティで与える方針に揃える。padding-left と list-style は
 * 既定のまま残すため、箇条書きの体裁自体は変わらない。
 */
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

/* Bootstrap の hr は margin 1rem と rgba(0,0,0,.1) の罫線を持つ。
 * 余白はユーティリティで与える方針に揃え、色は変数にする。 */
hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--hr-color);
}

img,
iframe,
video {
  max-width: 100%;
}

/* inline 由来の下端の隙間を防ぐ */
img,
svg {
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

iframe {
  border: none;
  box-shadow: none;
}

a,
a:hover {
  color: var(--ink);
}
/* Reboot と同値。ホバー時の下線を残すかは別途判断する */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ユーティリティより後に読む必要があるためここに置いている。
 * 04_padding などへ先を越されると .p-16 のような指定に負けて、
 * 視覚的に隠しきれなくなる。 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* フォーム要素はフォント関連を継承しない */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
textarea {
  resize: vertical;
}

button {
  position: relative;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: 0;
  background: none;
  padding: 0;
}

/**
 * フォーカスリングはキーボード操作でだけ出す。
 *
 * Bootstrap 4.1.3 は button:focus に独自のリングを当てており、詳細度が
 * (0,1,1) あるため素の button { outline: none } では打ち消せない。
 * :not(:focus-visible) を重ねて (0,2,1) にし、ポインタ操作のときだけ消す。
 *
 * Bootstrap が外れた場合も :focus-visible 側が効くため、インジケータは
 * 失われない。
 */
button:focus:not(:focus-visible) {
  outline: none;
}
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* CMS が箇条書きを <p> で出力するため、それを list-item として見せるための
 * アダプタ。ブログ固有ではないのでここに置いている。 */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.5rem;
  list-style: disc outside none;

  & > p {
    margin: 0;
    display: list-item;
  }
}

/**
 * 印刷
 *
 * Bootstrap 4.1.3 は @page { size: a3 } と、body および .container への
 * min-width: 992px !important を当てており、そのままだと A3 用紙・デスクトップ幅で
 * 印刷される。これらは対になっていて、一部だけ戻すと用紙からはみ出す。
 *
 * ここでは全部戻し、画面と同じレスポンシブな見た目で印刷されるようにする。
 * デスクトップ幅で刷りたい案件は、これらを案件側で戻す。
 *
 * .container は自前では定義していない Bootstrap のクラスだが、案件が使っている
 * 場合に同じ問題が起きるため打ち消しておく。
 */
@media print {
  @page {
    size: auto;
  }

  body,
  .container {
    min-width: 0 !important;
  }
}

.footer-typo {
  position: absolute;
  width: 100%;
  max-width: 50rem;
  filter: var(--filter-shadow-2);
  bottom: -0.625rem;
  left: -1.25rem;
  @media (min-width: 1200px) {
    max-width: 75rem;
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-weight: 700;
  --title-color: var(--orange);
  & > p {
    position: relative;
    color: var(--title-color);
    line-height: 1;
    font-size: 1.25rem;
    &::before {
      content: "";
      position: absolute;
      top: -0.375rem;
      left: -1rem;
      background-color: var(--title-color);
      width: 0.25rem;
      height: 0.75rem;
      transform: skew(-45deg);
    }
  }
  & h2, & h3, & h4, & h5, & h6 {
    line-height: 1.25;
    font-size: 1.5rem;
  }
  @media (min-width: 768px) {
    gap: 1.5rem;
    & > p {
      font-size: 1.5rem;
    }
    & h2, & h3, & h4, & h5, & h6 {
      font-size: 2.5rem;
    }
  }
  @media (min-width: 1024px) {
    & > p {
      font-size: 1.75rem;
    }
    & h2, & h3, & h4, & h5, & h6 {
      font-size: 3rem;
    }
  }
  @media (min-width: 1200px) {
    gap: 2rem;
    & > p {
      font-size: 2rem;
    }
    & h2, & h3, & h4, & h5, & h6 {
      font-size: 4rem;
    }
  }
  
  &.section-title--snow {
    --title-color: var(--snow);
    color: var(--snow);
  }
  &.section-title--center {
    align-items: center;
    text-align: center;
  }
  
  &.section-title--40 {
    gap: 1.25rem;
    & > p {
      font-size: 1.125rem;
      &::before {
        top: -0.25rem;
        left: -0.75rem;
        width: 0.1875rem;
        height: 0.5rem;
      }
    }
    @media (min-width: 768px) {
      & > p {
        font-size: 1.5rem;
      }
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 1.75rem;
      }
    }
    @media (min-width: 1024px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 2rem;
      }
    }
    @media (min-width: 1200px) {
      gap: 1.5rem;
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 2.5rem;
      }
    }
  }
  &.section-title--48 {
    gap: 1.25rem;
    @media (min-width: 768px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 2rem;
      }
    }
    @media (min-width: 1024px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 2.5rem;
      }
    }
    @media (min-width: 1200px) {
      gap: 1.5rem;
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 3rem;
      }
    }
  }
  &.section-title--80 {
    @media (min-width: 768px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 3rem;
      }
    }
    @media (min-width: 1024px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 4rem;
      }
    }
    @media (min-width: 1200px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 5rem;
      }
    }
  }
  &.section-title--top {
    @media (min-width: 768px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 2.8rem;
      }
    }
    @media (min-width: 1024px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 3.5rem;
      }
    }
    @media (min-width: 1200px) {
      & h2, & h3, & h4, & h5, & h6 {
        font-size: 5rem;
      }
    }
  }
}

.page-hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-weight: 700;
  --title-color: var(--orange);
  & > p {
    position: relative;
    color: var(--title-color);
    line-height: 1;
    font-size: 1.25rem;
    &::before {
      content: "";
      position: absolute;
      top: -0.375rem;
      left: -1rem;
      background-color: var(--title-color);
      width: 0.25rem;
      height: 0.75rem;
      transform: skew(-45deg);
    }
  }
  & h1 {
    line-height: 1.25;
    font-size: 2.5rem;
  }
  @media (min-width: 768px) {
    gap: 1.75rem;
    & > p {
      font-size: 1.5rem;
    }
    & h1 {
      font-size: 3.5rem;
    }
  }
  @media (min-width: 1024px) {
    gap: 2rem;
    & > p {
      font-size: 1.75rem;
    }
    & h1 {
      font-size: 4rem;
    }
  }
  @media (min-width: 1200px) {
    gap: 2.5rem;
    & > p {
      font-size: 2rem;
    }
    & h1 {
      font-size: 5rem;
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 0.25rem 0.25rem;
  --button-color: var(--orange);
  border-bottom: 1px solid var(--button-color);
  color: var(--button-color);
  line-height: 1;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M19.707%2011.293C20.0976%2011.6835%2020.0976%2012.3165%2019.707%2012.707L13%2019.4141L11.5859%2018L16.5859%2013H4V11H16.5859L11.5859%206L13%204.58594L19.707%2011.293Z%22%20fill%3D%22%23DE6213%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--button-color);
    opacity; 0.85;
    transform: scale(0.95);
  }
  &.button--snow {
    --button-color: var(--snow);
    &::after {
      background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M19.707%2011.293C20.0976%2011.6835%2020.0976%2012.3165%2019.707%2012.707L13%2019.4141L11.5859%2018L16.5859%2013H4V11H16.5859L11.5859%206L13%204.58594L19.707%2011.293Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    }
  }
  &.button--external {
    &::after {
      background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M3%2018V8C3%207.20435%203.3163%206.44152%203.87891%205.87891C4.44152%205.3163%205.20435%205%206%205H13V7H6C5.73478%207%205.4805%207.10543%205.29297%207.29297C5.10543%207.4805%205%207.73478%205%208V18C5%2018.2652%205.10543%2018.5195%205.29297%2018.707C5.48051%2018.8946%205.73478%2019%206%2019H16C16.2652%2019%2016.5195%2018.8946%2016.707%2018.707C16.8946%2018.5195%2017%2018.2652%2017%2018V11H19V18C19%2018.7956%2018.6837%2019.5585%2018.1211%2020.1211C17.5585%2020.6837%2016.7956%2021%2016%2021H6C5.20435%2021%204.44151%2020.6837%203.87891%2020.1211C3.3163%2019.5585%203%2018.7956%203%2018ZM21%2010H19V6.41406L11%2014.4141L9.58594%2013L17.5859%205H14V3H20C20.5523%203%2021%203.44772%2021%204V10Z%22%20fill%3D%22%23DE6213%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    }
  }
  &.button--map {
    &::after {
      background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M11.9999%202.00049C13.7799%202.00049%2015.5199%202.52823%2016.9999%203.51709C18.4799%204.50596%2019.6332%205.91174%2020.3144%207.55615C20.9956%209.20066%2021.1743%2011.0105%2020.8271%2012.7563C20.4798%2014.5021%2019.6228%2016.1061%2018.3642%2017.3647L14.121%2021.6069V21.6079C13.5586%2022.1698%2012.7959%2022.4847%2012.0009%2022.4849C11.2058%2022.4849%2010.4423%2022.1699%209.87981%2021.6079V21.6069L5.63567%2017.3647C4.37709%2016.1061%203.52004%2014.5021%203.17278%2012.7563C2.82555%2011.0105%203.00428%209.20066%203.68548%207.55615C4.36669%205.91174%205.51996%204.50596%206.99993%203.51709C8.47994%202.52823%2010.22%202.00049%2011.9999%202.00049ZM11.9999%204.00049C10.6156%204.00049%209.26235%204.41111%208.11126%205.18018C6.96012%205.94933%206.06296%207.04272%205.53313%208.32178C5.00334%209.60077%204.86468%2011.0079%205.1347%2012.3657C5.40473%2013.7234%206.071%2014.9708%207.04974%2015.9497L11.2939%2020.1929L11.3671%2020.2593C11.545%2020.4048%2011.7691%2020.4849%2012.0009%2020.4849C12.2657%2020.4847%2012.5196%2020.38%2012.707%2020.1929L16.9501%2015.9497C17.9289%2014.9708%2018.5951%2013.7234%2018.8652%2012.3657C19.1352%2011.0079%2018.9965%209.60077%2018.4667%208.32178C17.9369%207.04272%2017.0397%205.94933%2015.8886%205.18018C14.7375%204.41111%2013.3843%204.00049%2011.9999%204.00049ZM13.9999%2011.0005C13.9999%2010.4701%2013.7891%209.96052%2013.414%209.58545C13.0389%209.21053%2012.5302%209.00049%2011.9999%209.00049C11.4696%209.00049%2010.9609%209.21053%2010.5859%209.58545C10.2108%209.96052%209.99993%2010.4701%209.99993%2011.0005C10.0001%2011.5307%2010.2109%2012.0396%2010.5859%2012.4146C10.9609%2012.7895%2011.4696%2013.0005%2011.9999%2013.0005C12.5302%2013.0005%2013.0389%2012.7895%2013.414%2012.4146C13.7889%2012.0396%2013.9998%2011.5307%2013.9999%2011.0005ZM15.9999%2011.0005C15.9998%2012.0612%2015.5781%2013.0786%2014.8281%2013.8286C14.0779%2014.5786%2013.0607%2015.0005%2011.9999%2015.0005C10.9392%2015.0005%209.92193%2014.5786%209.17181%2013.8286C8.42177%2013.0786%208.00006%2012.0612%207.99993%2011.0005C7.99993%209.93962%208.42166%208.92153%209.17181%208.17139C9.92193%207.42139%2010.9392%207.00049%2011.9999%207.00049C13.0607%207.00049%2014.0779%207.42139%2014.8281%208.17139C15.5782%208.92153%2015.9999%209.93962%2015.9999%2011.0005Z%22%20fill%3D%22%23DE6213%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    }
  }
  &.button--sm {
    gap: 0.75rem;
    font-size: 0.875rem;
    &::after {
      width: 1rem;
    }
  }
  &.button--down-arrow {
    &::after {
      transform: rotate(90deg);
    }
  }
}

.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow-x: auto;
  }
  & .swiper-slide {
    min-width: 35%;
  }
}

.gallery-slider {
  width: 100%;
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide {
    & img {
      object-fit: cover;
      width: 100%;
      aspect-ratio: 16 / 9;
    }
  }
}

.activities-hero-images {
  display: grid;
  gap: 1rem;
  grid-template-columns: 404fr 320fr;
  height: 15rem;
  line-height: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  & > div:first-child {
    grid-row: span 2 / span 2;
  }
  @media (min-width: 768px) {
    height: 20rem;
  }
  @media (min-width: 1024px) {
    height: auto;
  }
}

.activity-bg-image {
  position: absolute;
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  width: 80%;
  aspect-ratio: 1280 / 626;
  object-fit: cover;
  opacity: 30%;
}




















