/* =========================================================
   Memorial Rose Garden Zenkouji - Wireframe Base Style
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-text: #222222;
  --c-line: #cfcfcf;
  --c-soft: #f7f7f7;
  --c-accent: #ececec;
  --c-cta-bg: #ececec;
  --c-cta-text: #222222;
  --container: 1200px;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  color: var(--c-text);
  background: var(--c-bg);
}

body.is-opening {
  overflow: hidden;
}

.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.opening-logo {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.opening-logo img {
  width: min(78vw, 520px);
  height: auto;
}

.opening-overlay.is-finish {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .opening-overlay,
  .opening-logo {
    transition: none;
  }
}

/* サイト全体の見出しは明朝系で統一 */
h1,
h2,
h3,
h4 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-weight: 600;
  text-align: center;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* 基本リンクはテキストリンク */
.btn-link {
  color: #000000;
  text-decoration: none;
}

.btn-link:hover {
  opacity: 0.8;
}

.btn-link:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 2px;
}

/* アイコン付きボタンの視認性を調整 */
.btn-link i {
  margin-right: 6px;
}

.site-header {
  border-bottom: 1px solid var(--c-line);
  background: #ffffff;
}

.site-header.is-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  border-bottom: none;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-overlay:not(.is-solid) .gnav-menu .btn-link {
  color: #ffffff;
}

.site-header.is-overlay.is-solid {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-line);
}

/* PC時に追従するグロナビ */
@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .site-header.is-overlay {
    position: fixed;
    top: 0;
  }
}

.gnav {
  display: grid;
  gap: 16px;
  padding: 14px 0;
}

@media (min-width: 1024px) {
  .gnav {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .site-logo {
    justify-self: start;
  }

  .gnav nav {
    justify-self: end;
  }
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-title {
  margin: 0;
  line-height: 1;
  text-align: left;
}

.site-logo img {
  display: block;
  width: auto;
  height: 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gnav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .gnav-menu {
    justify-content: flex-end;
    margin-right: 6px;
  }
}

.gnav-menu .btn-link {
  font-size: 0.85rem;
}

.gnav-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (min-width: 1024px) {
  .gnav-cta {
    justify-content: flex-end;
    justify-self: end;
  }
}

/* ヘッダー/フッターの見学予約・資料請求のみボタン表示を維持 */
.gnav-cta .btn-link,
.footer-cta .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: #ffffff;
  text-decoration: none;
  color: var(--c-text);
  transition: background-color 0.2s ease;
}

.gnav-cta .btn-link:hover,
.footer-cta .btn-link:hover {
  background: var(--c-soft);
  opacity: 1;
}

.gnav-cta .btn-primary,
.footer-cta .btn-primary,
main .btn-primary,
.sp-fixed-cta .btn-primary {
  background: var(--c-cta-bg);
  color: var(--c-cta-text);
  border-color: var(--c-line);
  font-weight: 700;
}

.gnav-contact {
  text-align: center;
  margin-right: 8px;
}

.gnav-contact-tel {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  transition: color 0.3s ease;
}

.gnav-contact-time {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--c-text);
  transition: color 0.3s ease;
}

.site-header.is-overlay:not(.is-solid) .gnav-contact-tel,
.site-header.is-overlay:not(.is-solid) .gnav-contact-time {
  color: #ffffff;
}

/* main内のリンクボタンは維持 */
main .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: #ffffff;
  text-decoration: none;
  color: var(--c-text);
  transition: background-color 0.2s ease;
}

main .btn-link:hover {
  background: var(--c-soft);
  opacity: 1;
}

/* main内のCTAはヘッダー/フッターCTAと同色で統一 */
main .btn-primary {
  background: var(--c-cta-bg);
  color: var(--c-cta-text);
  border-color: var(--c-line);
}

main .btn-primary:hover {
  background: var(--c-soft);
}

main {
  padding: 0;
}

.page-title {
  margin-bottom: 18px;
  font-size: 1.75rem;
}

.content-section + .content-section {
  margin-top: 20px;
}

main section:not(.hero) {
  padding: 15vh 0;
}

main section:not(.hero) > h2 {
  margin-bottom: 80px;
  font-size: 1.8vw;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.js-enabled main section:not(.hero) > h2 {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.9s ease, transform 1.1s ease;
  will-change: opacity, transform;
}

.js-enabled main section:not(.hero) > h2.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled main section:not(.hero) > h2 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

main section:not(.hero) p {
  line-height: 1.95;
}

main section:not(.hero) p + p {
  margin-top: 16px;
}

main section:not(.hero) ul,
main section:not(.hero) ol {
  margin-top: 18px;
  margin-bottom: 18px;
  padding-left: 1.25rem;
}

main section:not(.hero) li {
  line-height: 1.9;
}

.placeholder-box {
  min-height: 280px;
  padding: 28px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #fff;
}

.placeholder-box h3 + h3 {
  margin-top: 10px;
}

.inquiry-section .placeholder-box {
  text-align: center;
}

.inquiry-section .hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px auto 10px;
}

.site-footer {
  border-top: 1px solid var(--c-line);
  background: var(--c-soft);
  padding: 32px 0 24px;
}

.footer-wrap {
  display: grid;
  gap: 24px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-top {
  display: grid;
  gap: 16px;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.footer-col {
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #ffffff;
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact dt {
  font-weight: 700;
}

.footer-contact dd {
  margin: 0;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.footer-bottom {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.footer-name {
  font-weight: 700;
}

.copy {
  font-size: 0.875rem;
  color: #666666;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding: 120px 0 28px;
  background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  width: min(100% - 32px, var(--container));
  margin-inline: inherit;
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 15%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.4) 85%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
}

.hero .container h1,
.hero .container h2,
.hero .container h3,
.hero .container h4,
.hero .container p,
.hero .container a {
  color: #fff;
}

.hero .container h1,
.hero .container h2,
.hero .container h3,
.hero .container h4 {
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-item {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  animation: heroFadeZoom 16s infinite;
}

.hero-bg-01 {
  background-image: url("../img/mv_01.jpg");
}

.hero-bg-02 {
  background-image: url("../img/mv_02.jpg");
  animation-delay: 8s;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20%;
  height: 48%;
  z-index: 1;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  animation: heroWhiteFade 8s ease-in-out infinite;
}

@keyframes heroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
  }
  55% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes heroWhiteFade {
  0% {
    opacity: 0.2;
    transform: translateY(14%);
  }
  50% {
    opacity: 0.95;
    transform: translateY(0);
  }
  100% {
    opacity: 0.2;
    transform: translateY(14%);
  }
}

.hero-bg-label {
  margin-bottom: 12px;
  color: #666666;
  font-size: 0.9rem;
  text-align: left;
}

.hero-copy {
  margin-bottom: 80px;
  font-size: 1.8vw;
  line-height: 1.4;
}

.hero-lead {
  margin-bottom: 14px;
}

.hero-cta {
  flex-wrap: wrap;
  gap: 8px;
}

.hero .container .hero-cta .btn-link {
  color: #000;
}

.simple-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.simple-list li {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 8px;
}

.simple-list-number {
  list-style: decimal;
  padding-left: 20px;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.eitaikuyoubo-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .eitaikuyoubo-layout {
    grid-template-columns: 1fr 1.2fr;
    overflow: visible;
  }

  .eitaikuyoubo-image {
    margin-left: calc(-1 * max(16px, (100vw - var(--container)) / 2));
    width: calc(100% + max(16px, (100vw - var(--container)) / 2));
  }
}

.eitaikuyoubo-image {
  min-height: 720px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.eitaikuyoubo-text {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eitaikuyoubo-text h3 {
  margin-bottom: 14px;
}

.eitaikuyoubo-text p + p {
  margin-top: 12px;
}

.eitaikuyoubo-btn-wrap {
  text-align: center;
  margin-top: 24px;
}

.reason-stack {
  display: grid;
  gap: 28px;
}

.reason-row {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .reason-row {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .reason-row > .reason-image:first-child {
    margin-left: calc(-1 * max(16px, (100vw - var(--container)) / 2));
    width: calc(100% + max(16px, (100vw - var(--container)) / 2));
  }

  .reason-row > .reason-image:last-child {
    margin-right: calc(-1 * max(16px, (100vw - var(--container)) / 2));
    width: calc(100% + max(16px, (100vw - var(--container)) / 2));
  }
}

.reason-text-box h3 {
  margin-bottom: 8px;
}

.reason-text-box p {
  text-align: center;
}

.reason-image {
  min-height: 420px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.card-square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  margin-bottom: 14px;
}

.plan-list-btn-wrap {
  text-align: center;
  margin-top: 32px;
}

.ajinoko-section .price-label,
.ajinoko-section .price-value {
  text-align: center;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  main {
    padding-bottom: 120px;
  }
}

.sp-fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--c-line);
  background: #ffffff;
}

.sp-fixed-cta .btn-link {
  flex: 1;
}

@media (max-width: 767px) {
  .sp-fixed-cta {
    display: flex;
  }
}

.faq-sec,
.faq-two,
.faq-three,
.faq-four,
.faq-five {
  margin-top: 32px;
}

.qa-list {
  display: grid;
  gap: 20px;
}

.qa-item {
  padding: 22px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #fff;
}

.qa-q {
  margin-bottom: 12px;
  font-weight: 700;
}

.qa-a {
  line-height: 1.9;
}

.qa-a-list {
  margin-top: 10px;
}

.faq-link-wrap {
  margin-top: 24px;
  text-align: center;
}

.garden-btn-wrap {
  text-align: center;
}

.visit-layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .visit-layout {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .visit-layout .visit-image:first-child {
    margin-left: calc(-1 * max(16px, (100vw - var(--container)) / 2));
    width: calc(100% + max(16px, (100vw - var(--container)) / 2));
  }
}

.visit-image {
  min-height: 720px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.visit-text p + p {
  margin-top: 14px;
}

.visit-points {
  margin-top: 16px;
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.visit-btn-wrap {
  margin-top: 24px;
  text-align: center;
}

.visit-text {
  text-align: left;
}

.news-list-btn-wrap {
  text-align: center;
}

.access-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .access-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.access-text p + p {
  margin-top: 14px;
}

.access-btn-wrap {
  text-align: center;
}

.access-map iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.gallery-slider {
  overflow: hidden;
  margin-bottom: 24px;
}

.gallery-track {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: galleryFlowRight 48s linear infinite;
}

.gallery-card {
  width: min(28vw, 320px);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  margin-bottom: 10px;
}

.gallery-card p {
  text-align: center;
}

@keyframes galleryFlowRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.faq-sec article,
.faq-four article {
  padding: 14px 0;
  border-bottom: 1px solid #e3e3e3;
}

.faq-sec p + p,
.faq-two p + p,
.faq-three p + p,
.faq-four p + p,
.faq-five p + p {
  margin-top: 10px;
}

.faq-two ol,
.faq-two ul,
.faq-three ul,
.faq-five ol,
.faq-five ul,
.faq-sec ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 12px;
}

.faq-two ol,
.faq-five ol {
  list-style: decimal;
}
