@charset 'utf-8';

:root {
  --vw: 402;

  --color-theme-green: #007440;
  --color-theme-yellow-green: #5ab620;

  --color-theme-rikyu: #692073;
  --color-theme-hoji: #cbcbcb;
  --color-theme-saryo: #93412a;

  --color-service-funeral: #8588c2;
  --color-service-cemetery: #80c241;
  --color-service-buddhist: #f5a200;
  --color-service-temoto: #e60012;

  --color-black: #000;
  --color-dark-gray: #5d5d5a;
  --color-gray: #898989;
  --color-light-gray: #ededed;
  --color-white: #fff;

  --color-text: #000;
  --color-background: #fff;

  --font-weight: var(--font-weight--regular);
  --font-weight--thin: 100;
  --font-weight--extra-light: 200;
  --font-weight--light: 300;
  --font-weight--regular: 400;
  --font-weight--medium: 500;
  --font-weight--semi-bold: 600;
  --font-weight--bold: 700;
  --font-weight--extra-bolc: 800;
  --font-weight--black: 700;

  --font-size: 1rem;
  --font-size--body: 1rem;
  --font-size--heading: 1.375rem;

  --font-family: var(--font-family--serif);
  --font-family--sans: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  --font-family--serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'YuMincho', sans-serif;
  --font-family--yu-gothic: 'Yu Gothic', 'YuGothic', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;

  --line-height--body: 2rem;
  --line-height--heading: calc(36 / 22);

  --inner-max-width: 1280px;
  --inner-padding-inline: 16px;
  --inner-padding-inline--negative: calc(var(--inner-padding-inline, 0px) * -1);

  --contact-bar-height: 3.75rem;

  --offset-bottom: calc(var(--contact-bar-height, 0px) + env(safe-area-inset-bottom, 0px));

  --ui-hover-opacity: 0.7;
  --ui-hover-transition-duration: 0.2s;
  --ui-open-transition-duration: 0.5s;

  min-height: 100%;
  scroll-behavior: smooth;

  @media (768px <= width) {
    --vw: 1440;
  }

  @media (960px <= width) {
    --font-size--body: 1.375rem;
    --font-size--heading: 2rem;

    --line-height--body: calc(42 / 22);
    --line-height--heading: calc(50 / 32);

    --contact-bar-height: 0rem;
  }
}

:where(h1) {
  --heading-font-size: 3rem;
  --heading-line-height: 4rem;
}

:where(h2) {
  --heading-font-size: 2rem;
  --heading-line-height: 3rem;
}

:where(h3) {
  --heading-font-size: 1.5rem;
  --heading-line-height: 2rem;
}

:where(h4) {
  --heading-font-size: 1.25rem;
  --heading-line-height: 2rem;
}

:where(h5) {
  --heading-font-size: 1rem;
  --heading-line-height: 2rem;
}

:where(h6) {
  --heading-font-size: 1rem;
  --heading-line-height: 1.5rem;
}

:where(h1, h2, h3, h4, h5, h6, p, dl, ol, ul, table) {
  margin: 0;
}

:where(ol, ul) {
  padding: 0 0 0 1.5em;
}

:where(ol, ul):where([role='list'], [role='tablist']) {
  list-style: none;
  padding: 0;
}

:where(nav li)::before {
  all: revert;
}

:where(tbody) {
  vertical-align: baseline;
}

:where(th, td) {
  text-align: start;
}

:where(em:lang(ja)) {
  font-style: normal;
  font-weight: var(--font-weight--bold);
}

:where(a) {
  color: var(--color-link, inherit);
}

:where(button, input:not([type='checkbox'], [type='radio']), select, textarea) {
  font: inherit;
}

body {
  font: 100%/1.5rem var(--font-family);
}

a:where(:link) {
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;

  &:hover {
    text-decoration-thickness: 2px;
  }
}

.a-icon:where(.--arrow-right) {
  --icon-image: url(../images/icons/fluent--arrow-right-24-regular.svg);
}

.a-icon:where(.--mail) {
  --icon-image: url(../images/icons/fluent--mail-24-regular.svg);
}

.a-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.a-image:where(.--cover) {
  object-fit: cover;
}

.a-image:where(.--1\:1) {
  aspect-ratio: 1;
}

.a-image:where(.--3\:2) {
  aspect-ratio: 3 / 2;
}

.a-image:where(.--4\:3) {
  aspect-ratio: 4 / 3;
}

.a-image:where(.--16\:9) {
  aspect-ratio: 16 / 9;
}

.a-link:where(.--block) {
  text-decoration: none;
  transition: opacity var(--ui-hover-transition-duration);

  &:hover {
    opacity: var(--ui-hover-opacity);
  }
}

.a-segment {
  text-align: center;
}

.a-segment::after {
  content: '';
  display: block;
  max-width: 330px;
  aspect-ratio: 720 / calc(11 + 16);
  margin: 0 auto;
  background: url(../images/decoration_segment.svg) 50% 100% / contain no-repeat;
}

@media (960px <= width) {
  .a-segment::after {
    max-width: 720px;
  }
}

.a-text--color-theme-green {
  color: var(--color-theme-green);
}

.a-text--color-theme-yellow-green {
  color: var(--color-theme-yellow-green);
}

.a-text--color-theme-rikyu {
  color: var(--color-theme-rikyu);
}

.a-text--weight--thin {
  font-weight: var(--font-weight--thin);
}

.a-text--weight--extra-light {
  font-weight: var(--font-weight--extra-light);
}

.a-text--weight--light {
  font-weight: var(--font-weight--light);
}

.a-text--weight--regular {
  font-weight: var(--font-weight--regular);
}

.a-text--weight--medium {
  font-weight: var(--font-weight--medium);
}

.a-text--weight--semi-bold {
  font-weight: var(--font-weight--semi-bold);
}

.a-text--weight--bold {
  font-weight: var(--font-weight--bold);
}

.a-text--weight--extra-bold {
  font-weight: var(--font-weight--extra-bold);
}

.a-text--weight--black {
  font-weight: var(--font-weight--black);
}

.a-text--sans {
  font-family: var(--font-family--sans);
}

.a-text--serif {
  font-family: var(--font-family--serif);
}

.a-text--kerning {
  font-kerning: normal;
}

.a-text--halt {
  font-feature-settings: 'halt';
}

.a-text--palt {
  font-feature-settings: 'palt';
}

.a-text--keep-word {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.c-access {
  margin-top: 2rem;
}

.c-access__layout {
  display: grid;
  grid-template: auto / auto;
  gap: 2rem 0;
}

.c-access__map {
  margin-inline: var(--inner-padding-inline--negative);

  .a-map {
    display: block;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    max-height: 60svh;
  }
}

.c-access__name {
  margin: 1.5rem auto 1rem;
  font-weight: var(--font-weight--semi-bold);
  font-size: 1.25rem;
}

.c-access__body {
  h4 {
    margin-top: 0.5rem;
    font-size: 1.125rem;
  }
}

.c-access__icon:where(.--train-or-bus) {
  width: 100px;
}

.c-access__icon:where(.--car) {
  width: 51px;
}

@media (960px <= width) {
  .c-access {
    margin-top: 8rem;
  }

  .c-access__layout {
    display: grid;
    grid-template: auto / 1fr 1fr;
    gap: 0 40px;
  }

  .c-access__map {
    margin-inline: 0;

    .a-map {
      aspect-ratio: 1;
      max-height: none;
    }
  }

  .c-access__name {
    margin: 2rem auto;
    font-size: 1.6875rem;
    line-height: 2rem;
    text-align: center;
  }

  .c-access__address,
  .c-access__telephone {
    font-size: 1.375rem;
    line-height: 2rem;
    text-align: center;
  }

  .c-access__icon {
    width: auto;
  }

  .c-access__body {
    h4 {
      margin-top: 1.5rem;
      font-size: 1.5rem;
      line-height: 2rem;
    }
  }
}

.c-back-to-top {
  --back-to-top-offset: 10px;

  position: fixed;
  inset: auto var(--back-to-top-offset, 0) calc(var(--back-to-top-offset, 0px) + var(--offset-bottom, 0px)) auto;
  aspect-ratio: 1;
  width: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--ui-open-transition-duration);
}

.c-back-to-top.is-show {
  opacity: 1;
  visibility: visible;
}

@media (768px <= width) {
  .c-back-to-top {
    --back-to-top-offset: 20px;

    width: 50px;
  }
}

.c-body-text {
  :where(h1, h2, h3, h4, h5, h6) {
    font-weight: var(--font-weight--semi-bold);
  }

  :where(h1, h2, h3, section) {
    margin-top: 2rem;
  }

  :where(h4, h5, h6, p, dl, ol, ul, table) {
    margin-top: 1rem;
  }

  :where(li) {
    margin-top: 0.5rem;
  }

  :first-child {
    margin-top: 0;
  }
}

@media (960px <= width) {
  .c-body-text {
    :where(h1, h2, h3, section) {
      margin-top: 3rem;
    }

    :where(h4, h5, h6, p, dl, ol, ul, table) {
      margin-top: 1.5rem;
    }
  }
}

.c-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 0.5em;
  width: fit-content;
  min-height: 2.5em;
  padding: 0 16px;
  color: var(--color-text);
  background: var(--color-white);
  font-weight: var(--font-weight--medium);
  font-size: 1rem;
  line-height: 1.25em;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  transition: opacity var(--ui-hover-transition-duration);

  &:hover {
    opacity: var(--ui-hover-opacity);
  }
}

.c-button:where(.--gray) {
  color: var(--color-white);
  background-color: var(--color-gray);
}

.c-button__icon {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  background: currentColor;
  mask: var(--button-icon-image, var(--icon-image, none)) 50% / contain no-repeat;
}

.c-facilities {
  margin-top: 4rem;
}

.c-facilities__heading {
  margin-bottom: 1rem;
  font-weight: var(--font-weight--semi-bold);
  font-size: var(--font-size--heading);
  line-height: var(--line-height--heading);
}

.c-facilities__sections {
  display: grid;
  grid-template: auto / auto;
  gap: 2rem 0;
  margin: 2rem 0 0;
  padding: 2rem 16px;
  background: var(--color-light-gray);
}

.c-facility:where(.--section) {
  max-width: 512px;
  margin: 0 auto;
  background: var(--color-white);
}

.c-facility__main {
  display: grid;
  grid-template: 'header border description' auto / auto max-content;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;

  &::before {
    content: '';
    grid-area: border;
    margin: 0 16px 0 23px;
    border-left: 1px solid;
    align-self: stretch;
  }
}

.c-facility__header {
  grid-area: header;
}

.c-facility__heading {
  font-weight: var(--font-weight--semi-bold);
  font-size: 1.125rem;
  text-align: center;
}

.c-facility__image {
  max-width: 512px;
  margin: 0 auto;
}

.c-facility__tagline {
  display: block;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.c-facility__logo {
  display: block;
  max-width: 108px;
  margin-inline: auto;
}

.c-facility__description {
  grid-area: description;
  margin-right: -0.03em;
  font-size: var(--font-size--body);
  line-height: 1.75rem;
  letter-spacing: 0.03em;
}

.c-facility__body {
  margin-top: 1rem;
  font-size: var(--font-size--body);
  line-height: var(--line-height--body);
}

@media (960px <= width) {
  .c-facilities {
    margin-top: 8rem;
  }

  .c-facilities__heading {
    margin-bottom: 2rem;
  }

  .c-facilities__sections {
    gap: 4rem 0;
    padding: 0;
    background: none;
  }

  .c-facility:where(.--section) {
    max-width: none;
/*     padding: 0 var(--inner-padding-inline); */
  }

  .c-facility__layout {
    --grid-template-column-size-image: 3fr;
    --grid-template-column-size-main: 2fr;

    display: grid;
    grid-template: 'image main' auto / var(--grid-template-column-size-image, 1fr) var(--grid-template-column-size-main, 1fr);
    gap: 0 40px;
    align-items: center;
/*     margin-inline: var(--inner-padding-inline--negative) 0; */
  }

  .c-facility__layout:where(.--right-to-left) {
    --layout-main-justify-self: end;

    grid-template: 'main image' auto / var(--grid-template-column-size-main, 1fr) var(--grid-template-column-size-image, 1fr);
/*     margin-inline: 0 var(--inner-padding-inline--negative); */
  }

  .c-facility__layout:where(.--intro) {
    --grid-template-column-size-image: 9fr;
    --grid-template-column-size-main: 8fr;

    margin-inline: 0;
  }

  .c-facility__layout__item:where(.--image) {
    grid-area: image;
  }

  .c-facility__layout__item:where(.--main) {
    grid-area: main;
    justify-self: var(--layout-main-justify-self, start);
  }

  .c-facility__main {
    &::before {
      margin: 0 20px 0 23px;
    }
  }

  .c-facility__image {
    max-width: none;
  }

  .c-facility__heading {
    font-size: min(100vw * 26 / 1280, 1.625rem);
    line-height: min(100vw * 32 / 1280, 2rem);
  }

  .c-facility__logo {
    max-width: 144px;
    margin-inline: auto;
  }

  .c-facility__description {
    font-size: min(100vw * 20 / 1280, 1.25rem);
    line-height: min(100vw * 36 / 1280, 2.25rem);
  }

  .c-facility__body {
    font-size: min(100vw * 22 / 1280, 1.375rem);
    line-height: min(100vw * 42 / 1280, 2.625rem);
  }
}

.c-footer-nav__list {
  display: flex;
  flex-flow: wrap;
  gap: 1rem 0;
  justify-content: center;
  margin-left: 1px;
  font-size: 0.875rem;
  line-height: 1rem;
}

.c-footer-nav__item {
  margin-left: -1px;
  padding: 0 16px;
  border: solid;
  border-width: 0 1px;
}

.c-footer-nav__link {
  text-decoration-thickness: 0px;
}

@media (960px <= width) {
  .c-footer-nav__list {
  }
}

.c-inner {
  max-width: var(--inner-max-width, 100%);
  margin: 0 auto;
  padding: 0 var(--inner-padding-inline);
}

.c-inner:where(.--full) {
  max-width: revert;
}

.c-list:where(.--notes) {
  padding-left: 1em;
}

.c-list__item:where(.--note) {
  list-style-type: '※';
}

.c-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.c-logo:where(.--rikyu) {
  aspect-ratio: 498 / 172;
}

.c-logo:where(.--rikyu-inline) {
  aspect-ratio: 455 / 52;
}

.c-logo:where(.--ohnoya) {
  aspect-ratio: 430 / 40;
}

.c-logo:where(.--ohnoya-wrapped) {
  aspect-ratio: 230 / 80;
}

.c-logo__link {
  display: block;
  height: 100%;
}

.c-logo__image {
  height: 100%;
}

.c-section__tagline {
  margin-bottom: 2.5rem;
}

.c-section__heading {
  margin-bottom: 2.5rem;
  font-weight: var(--font-weight--semi-bold);
  font-size: var(--font-size--heading);
  line-height: var(--line-height--heading);
  text-align: center;
}

.c-section__subheading {
  margin-bottom: 2.5rem;
  font-weight: var(--font-weight--semi-bold);
  font-size: var(--font-size--heading);
  line-height: var(--line-height--heading);
  text-align: center;
}

.c-section__body {
  font-size: var(--font-size--body);
  line-height: var(--line-height--body);
}

@media (960px <= width) {
  .c-section__tagline,
  .c-section__heading,
  .c-section__subheading {
    margin-bottom: 4rem;
  }
}

.c-services__heading {
  margin-bottom: 2rem;
  font-weight: var(--font-weight--semi-bold);
  font-size: var(--font-size--heading);
  line-height: var(--line-height--heading);
}

.c-services__content {
  --inner-max-width: 960px;
}

.c-services__nav__item:where(.--funeral) {
  --service-theme-color: var(--color-service-funeral);
}

.c-services__nav__item:where(.--cemetery) {
  --service-theme-color: var(--color-service-cemetery);
}

.c-services__nav__item:where(.--buddhist) {
  --service-theme-color: var(--color-service-buddhist);
}

.c-services__nav__item:where(.--temoto) {
  --service-theme-color: var(--color-service-temoto);
}

.c-services__nav__list {
  display: grid;
  grid-template: auto / repeat(2, 1fr);
  justify-content: center;
  gap: 1.25rem 20px;
}

.c-services__nav__link {
  display: flex;
  justify-content: center;
  place-items: center;
  padding: 0.5rem 8px;
  border-top: 10px solid var(--service-theme-color);
  background: var(--color-white);
  border-radius: 5px;
  overflow: hidden;
  font-weight: var(--font-weight--bold);
  font-family: var(--font-family--yu-gothic);
}

.c-services__nav__link__body {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

@media (568px <= width) {
  .c-services__nav__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (960px <= width) {
  .c-services__heading {
    margin-bottom: 3rem;
  }

  .c-services__nav__link__body {
    flex-flow: row;
    gap: 0 8px;
    margin-left: -8px;
  }
}

.c-topics__header {
  padding: 0 16px;
  color: var(--color-white);
  background: var(--color-theme-green);
}

.c-topics__heading {
  font-size: 0.875rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  text-align: center;
}

.c-topics__content {
  height: 3.5rem;
  margin: 0;
  padding: 0 16px;
  color: var(--color-white);
  background: var(--color-theme-yellow-green);
}

.c-topics__item {
  display: grid;
  grid-template:
    'date     title' auto
    'category title' 1fr / auto 1fr;
  gap: 0 16px;
  align-items: start;
  padding: 0.25rem 0;
}

.c-topics__item .__date {
  grid-area: date;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  margin: 0.0625rem 0 0;
}

.c-topics__item .__category {
  grid-area: category;
  padding: 0.0625rem 3px;
  border: 1px solid;
  font-size: 0.8125rem;
  line-height: 1;
  text-align: center;
  margin: 0.0625rem 0 0.3125rem;
}

.c-topics__item .__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  grid-area: title;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  margin: auto 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (960px <= width) {
  .c-topics {
    display: grid;
    grid-template: auto / auto auto;
  }

  .c-topics__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
  }

  .c-topics__heading {
    font-size: 1.375rem;
  }

  .c-topics__content {
    padding: 0 16px;
  }

  .c-topics__item {
    grid-template: 'date category title' auto / auto auto 1fr;
    align-items: center;
    height: 100%;
    padding: 0;

    .__date,
    .__category {
      margin: 0;
    }

    .__category {
      display: flex;
      align-items: center;
      height: 1.5rem;
      padding: 0 15px;
      font-size: 0.875rem;
    }

    .__title {
      font-size: 1rem;
    }
  }
}

.p-navbar {
  height: 5rem;
  background: var(--color-white);
}

.p-navbar .c-inner,
.p-navbar__layout,
.p-navbar__layout__item,
.p-navbar__logo {
  height: 100%;
}

.p-navbar .c-inner {
  padding-block: 1rem;
}

.p-navbar__layout {
  display: grid;
  grid-template: 100% / 100%;
  place-items: stretch;
}

.p-navbar__layout__item {
  margin: auto 0;
}

.p-navbar__logo {
  display: flex;
  place-content: center;
}

@media (960px <= width) {
  .p-navbar {
    height: 5.5rem;
  }

  .p-navbar__layout {
    grid-template: 100% / auto auto;
    justify-content: space-between;
  }

  .p-navbar__logo.--rikyu-inline {
    max-width: 454px;
  }

  .p-navbar__logo.--ohnoya {
    max-width: min(100vw * 452 / var(--vw), 452px);
  }
}

.p-contact-bar {
  height: 3.75rem;
}

.p-contact-bar__layout,
.p-contact-bar__layout__item,
.p-contact-bar__logo {
  height: 100%;
}

.p-contact-bar__layout {
  display: grid;
  grid-template: 2.5rem / 274px;
  gap: 0 16px;
  justify-content: center;
  align-content: center;
}

/* @media (768px <= width) { */
/*   .p-contact-bar__layout__item:where(.--ohnoya) { */
/*     margin-top: -0.0625rem; */
/*   } */
/* } */

@media (960px <= width) {
  .p-contact-bar {
    padding: 0.5rem 0;
  }

  .p-contact-bar__layout {
    grid-template: 100% / 1fr auto auto;
  }

  .p-contact-bar__layout__item:where(.--ohnoya) {
    justify-self: start;
    max-height: 1.75rem;
    margin-top: 0.375rem;
  }

  .p-contact-bar__layout__item:where(.--contact) {
    margin: auto 0;
    height: fit-content;
  }
}

.l-footer {
  background: var(--color-background);
}

.l-footer__services {
  padding: 2rem 0;
  background: var(--color-light-gray);
}

@media (960px <= width) {
  .l-footer__services {
    padding: 3rem 0;
  }
}

.l-footer__main {
  padding: 2rem 0;
}

.l-footer__logos {
  display: flex;
  flex-flow: column;
  gap: 2rem 0;
}

.l-footer__logo {
  width: 100%;
  margin: 0 auto;
}

.l-footer__logo:where(.--ohnoya) {
  max-width: 274px;
}

.l-footer__logo:where(.--rikyu) {
  max-width: 180px;
}

.l-footer__copyright {
  margin-top: 1.5rem;
  padding: 0.75rem 0 calc(0.75rem + var(--offset-bottom, 0px));
  background: var(--color-light-gray);

  .c-copyright {
    font-size: 0.9375rem;
    text-align: center;
  }
}

@media (960px <= width) {
  .l-footer__copyright {
    .c-copyright {
      font-size: 1rem;
    }
  }
}

@media (960px <= width) {
  .l-footer__main {
    padding: 4rem 0;
  }

  .l-footer__logos {
    gap: 4rem 0;
  }

  .l-footer__logo:where(.--ohnoya) {
    max-width: 555px;
  }

  .l-footer__logo:where(.--rikyu) {
    max-width: 364px;
  }
}

.l-header__main {
  position: relative;
}

.l-header__hero {
  .c-hero {
    container: header-hero / inline-size;
    position: relative;
  }

  .c-hero__tagline {
    --t: 29;
    --w: 174;

    position: absolute;
    inset: calc(100cqw * var(--t, 0) / var(--vw)) 0 0 calc(100cqw * var(--l, 0) / var(--vw));
    margin: 0 auto;
    width: calc(100cqw * var(--w) / var(--vw));
    height: fit-content;
  }

  .c-hero__expected {
    --t: 226;
    --w: 115;

    position: absolute;
    inset: calc(100cqw * var(--t, 0) / var(--vw)) 0 0 calc(100cqw * var(--l, 0) / var(--vw));
    margin: 0 auto;
    width: calc(100cqw * var(--w) / var(--vw));
    height: fit-content;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-theme-yellow-green);
  }

  @media (768px <= width) {
    .c-hero__tagline {
      --t: 57;
      --l: 608;
      --w: 293;

      margin: 0;
    }
    .c-hero__expected {
      --t: 168;
      --l: 410;
      --w: 148;

      margin: 0;
    }
  }
}

.l-header__contact {
  position: fixed;
  inset: auto 0 0;
  z-index: 11;
  color: var(--color-white);
  background: var(--color-dark-gray);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.l-header__topics {
  @media (960px <= width) {
    position: absolute;
    inset: auto auto 0 0;
  }
}

.l-header__notes {
  width: fit-content;
  margin: 0 0 0 auto;
  padding-bottom: 0.5rem;

  .c-list {
    font-size: 0.6875rem;
    line-height: 1rem;
  }
}

.u-offscreen {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (width < 768px) {
  .u-only--gte-tablet {
    display: none;
  }
}

@media (width < 960px) {
  .u-only--gte-desktop {
    display: none;
  }
}

@media (768px <= width) {
  .u-only--lt-tablet {
    display: none;
  }
}

@media (960px <= width) {
  .u-only--lt-desktop {
    display: none;
  }
}

.page-home__intro {
  padding: 2rem 0;

  .c-section__heading,
  .c-section__subheading {
    display: block;
  }

  .c-section__heading {
    max-width: 272px;
    margin-inline: auto;
  }

  @media (960px <= width) {
    padding: 4rem 0;

    .c-section__heading {
      max-width: 495px;
    }

    .c-section__body {
      text-align: center;
    }
  }
}

.page-home__rikyu-so {
  padding: 2rem 0;
  background: url(../images/rikyu-so_bg@mobile.webp) 50% 0 / 100% no-repeat;

  .c-section__tagline {
    margin-bottom: 1rem;
    font-weight: var(--font-weight--semi-bold);
    font-size: 1.25rem;
    text-align: center;
  }

  .c-section__heading {
    max-width: 264px;
    margin-inline: auto;
  }

  .c-section__subheading {
    margin-bottom: 1rem;

    .__small {
      font-size: 62.5%;
    }
  }

  .c-logo-rikyu-so {
    container: logo-rikyu-so / inline-size;
    display: block;
    position: relative;
    aspect-ratio: 438 / 150;

    &::before,
    &::after {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      background: 50% 0 / contain no-repeat;
    }

    &::before {
      background-image: url(../images/logo_rikyu-so_stroke.svg);
      filter: blur(calc(100cqw * 8 / 438));
    }

    &::after {
      background-image: url(../images/logo_rikyu-so_fill.svg);
    }
  }

  @media (960px <= width) {
    padding: 4rem 0;
    background-image: url(../images/rikyu-so_bg@desktop.webp);

    .c-section__tagline {
      margin-bottom: 1rem;
      font-size: 2rem;
      line-height: 3rem;
    }

    .c-section__heading {
      max-width: 438px;
      margin-bottom: 3rem;
    }

    .c-section__subheading {
      margin-bottom: 1.5rem;
    }

    .c-section__body {
      text-align: center;
    }
  }
}

.page-home__block {
  .c-section {
    --inner-max-width: 1024px;

    padding: 2rem 0 1rem;
    border: 16px solid var(--block-theme-color);
  }

  .c-section__heading {
    margin: 0 auto 2rem;
  }

  .c-section__content {
    max-width: 512px;
    margin: 0 auto;
  }

  .c-section__content__layout {
    display: grid;
    grid-template: auto / auto;
    gap: 1rem 0;
  }

  .c-section__image {
    margin-inline: var(--inner-padding-inline--negative);
  }

  @media (960px <= width) {
    .c-section {
      padding: 4rem 0;
      border-width: 35px;
    }

    .c-section__heading {
      margin-bottom: 4rem;
    }

    .c-section__content {
      max-width: none;
    }

    .c-section__content__layout {
      grid-template-columns: 1fr 1fr;
      gap: 0 40px;
      align-items: center;
    }

    .c-section__image {
      margin-inline: 0;
    }

    .c-section__body {
      font-size: min(100vw * 20 / 1280, 1.25rem);
      line-height: min(100vw * 40 / 1280, 2.5rem);
    }
  }
}

.page-home__rikyu-no-hoji {
  --block-theme-color: var(--color-theme-hoji);

  .c-section__heading {
    max-width: 277px;
    margin-inline: auto;
  }

  @media (960px <= width) {
    .c-section__heading {
      max-width: 429px;
    }
  }
}

.page-home__saryo {
  --block-theme-color: var(--color-theme-saryo);

  .c-section__heading {
    max-width: 123px;
    margin-top: -0.5rem;
  }

  @media (960px <= width) {
    .c-section__heading {
      max-width: 229px;
    }
  }
}

.js-scroll-detector {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: -1;
  visibility: hidden;
}

@keyframes ticker-animate {
  0% {
    translate: 0 0;
  }
  100% {
    translate: 0 -100%;
  }
}

@keyframes ticker-previous {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.js-ticker {
  height: 100%;
  overflow: hidden;
}

.js-ticker__container {
  height: 100%;
  will-change: transform;
}

.js-ticker__container.next {
  animation: 1s ticker-animate;

  > :first-child {
    animation: 1s ticker-previous;
  }
}
