/* ==============================
   Layout
   ============================== */

/* ==============================
   Header
   ============================== */

#header {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-inner {
  height: 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.logo-left {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-sotoshu {
  width: auto;
}

.logo-sendai-shintera {
  width: auto;
}

.logo-dorinji {
  height: auto;
  width: auto;
  display: block;
}

.hamburger-menu {
  display: block;
  cursor: pointer;
  padding: 10px;
  border-radius: 50px;
  background-color: var(--color-primary);
  transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
  transform: scale(1.05);
  background-color: var(--color-secondary);
}

.global-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  padding: var(--space-10) 20px var(--space-10);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9;
}

.global-nav.is-open {
  display: block;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.global-nav a {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-h3);
  text-align: center;
  transition: color 0.7s ease;
  display: block;
  padding: 6px 0;
}

.global-nav a:hover {
  color: var(--color-accent-gold);
  transform: translateY(-1px);
}

.hamburger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  margin: 4px 0;
  transition: transform 0.7s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(6px) rotate(405deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==============================
   Footer base
   ============================== */

#footer {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
}

.footer-nav {
  background-color: var(--color-accent-soft);
}

.footer-nav-menu ul {
  margin: 0;
  padding: var(--space-3) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: var(--space-2);
  column-gap: var(--space-4);
  justify-items: center;
}

.footer-nav-menu a {
  font-size: var(--fs-body-sm);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.footer-nav-menu a:hover {
  text-decoration: underline;
}

.footer-body {
  padding: var(--space-6) 0 0;  /* 下だけ0 */
}


.footer-body-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-contact {
  margin: 0;
  color: var(--color-text-main);
}

.footer-contact-list {
  margin: 0;
  padding: 0;
}

.footer-contact-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-label {
  display: flex;
  justify-content: space-between;
  width: 4em;
  flex-shrink: 0;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-secondary);
}

.footer-contact-row > dd {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: 0.08em;
}

.footer-contact-list a,
.footer-contact-list a:visited,
.footer-contact-list a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.footer-contact-list a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-route-link {
  display: inline-block;
}

.footer-access-dds {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-access-dds dd {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: 0.08em;
}

.footer-map {
  margin-top: var(--space-1);
  text-align: center;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-map-frame {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}



.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-3) 0;

}

.footer-copy {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
}

@media (min-width: 768px) {
  /* 2カラム：左=ロゴ+寺情報 / 右=地図（縦にスパン） */
  .footer-body-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "logo map"
      "contact map";
    gap: var(--space-6);
    align-items: stretch;
  }

  .footer-logo {
    grid-area: logo;
  }

  .footer-contact-list {
    grid-area: contact;
  }

  .footer-map {
    grid-area: map;

    /* 全幅ブレイクアウトを無効化 */
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: var(--space-6);
    /* 右カラムを左の高さに追随させる */
    align-self: stretch;
    margin-top: 0;        /* SP用のmargin-topをPCでは消す */
    text-align: left;     /* center不要 */
    display: flex;
  }

  .footer-map-frame {
    width: 100%;
    max-width: none;

    /* 左カラムの合計高さにフィットさせる */
    height: 100%;
    aspect-ratio: auto;

    border-radius: var(--radius-sm); /* 好みで0でもOK */
    margin: 0;
  }
}


@media (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }

  .global-nav {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .global-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .global-nav a {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-bg-base);
    transition: color 0.7s ease;
  }

  .global-nav a:hover {
    transform: translateY(-2px);
    color: var(--color-secondary);
  }

  .footer-nav-menu ul {
    margin: 0;
    padding: var(--space-3) 0;
    display: flex; 
    justify-content: center;
    row-gap: var(--space-5);
    column-gap: var(--space-4);
    justify-items: center;
  }

  .footer-contact-row dt {
    width: 6em;
  }

  .footer-map {
    margin-top: var(--space-4);
  }

 .footer-map-frame {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;     /* 4/3より横長が地図向き。好みでOK */
  background-color: #ddd;
  border-radius: 0;         /* 全幅なら角丸は無しが自然 */
  overflow: hidden;
  margin: 0;                /* auto中央寄せ不要 */
 }

}

/* honeypot等：画面には出さない（ただしDOM上は存在） */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ==============================
   components 
   ============================== */

/* カード共通 白背景の丸いやつ*/
.card {
  background: var(--color-bg-surface, #ffffff);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
}

/*-------------------------------------
Section heading (共通見出し) 
1洞林寺についてなど_のタイトル見出し
2便利なアクセスのお寺Accessなど_のタイトル見出し
----------------------------------------*/


/*--------------------------------
1
--------------------------------*/

.section-heading {
  text-align: center;
  margin: 0 0 var(--space-5);
}

.section-heading-eyebrow {
  font-family: var(--font-roman);
  font-size: var(--fs-body-sm);
  line-height: 1.1;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: -3px;
}

.section-heading .section-title {
  color: var(--color-primary);
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-1);
}

.section-heading .section-title::after {
  content: "";
  width: var(--space-3);
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.section-title {
  font-size: var(--fs-h1);
  color: var(--color-primary);
  text-align: center;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-main);
  margin-top: 0;
  text-align: center;
  font-weight: 600;
}

.section-text {
  font-size: var(--fs-body);
  color: var(--color-text-main);
  margin-top: var(--space-4);
  line-height: var(--lh-body);
  font-weight: 700;
}

/*--------------------------------
2
--------------------------------*/

.about-section-header {
  margin: 0 0 var(--space-3);
}

.about-section-heading-box {
  padding: 0;
  text-align: left;
}

.about-section-title {
  color: var(--color-primary);
  margin: 0;
}

.about-section-eyebrow {
  font-family: var(--font-roman);
  font-size: var(--fs-body-sm);
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
  margin: 0 0 var(--space-2);
}

.about-section-underline {
  display: block;
  width: var(--space-8);
  height: 3px;
  background-color: var(--color-secondary);
}



/* ==============================
   Button
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  width: min(var(--btn-width), 100%);
  height: var(--btn-height);
  padding-inline: var(--btn-padding-inline);
  border-radius: var(--btn-radius);
  border: none;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}


/*--------------------------------
    Primary Button メインのボタン
--------------------------------*/

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  box-shadow: var(--btn-shadow);
}

.btn-primary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(1px) rotate(-45deg);
}

.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-shadow-hover);
}

.btn-primary:active {
  transform: translateY(var(--btn-translate-active));
  box-shadow: var(--btn-shadow-hover);
}

/* ==================================================
   Contact CTA (Reusable Component)背景が玄関のやつ
   ================================================== */

.contact-cta {
  position: relative;
  padding: var(--space-8) 0 var(--space-9);
  color: #fff;
  background-image: url("../img/top/contact-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.49);
}

/* 重要：オーバーレイより前面に出す */
.contact-cta .wrapper,
.contact-cta .contact-card {
  position: relative;
  z-index: 1;
}

/* 見出し */
.contact-cta .section-heading {
  margin-bottom: var(--space-4);
}
.contact-cta .section-heading-eyebrow { color: #fff; }
.contact-cta .section-heading .section-title { color: #fff; }
.contact-cta .section-heading .section-title::after { background-color: #fff; }

/* カード */
.contact-cta .contact-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

/* --- Reusable: phone button (global) ---電話番号のボタンはこれ */
.contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: 0.18em;
  backdrop-filter: blur(2px);
}

.contact-phone--secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.contact-phone-svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  transform: translateY(-0.08em);
}

.contact-phone-number {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* 文章（セクション外でも使えるが、主にCTA用） */
.contact-text {
  margin: 16px 0 20px;
  font-size: var(--fs-body-sm);
  line-height: 1.8;
  letter-spacing: 0.12em;
}

/* --- Reusable: form button (global)フォームボタンはこれ --- */
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background-color: var(--color-primary, #0D5D65);
  color: #fff;
  text-decoration: none;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1;
}

.contact-button-svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  transform: translateY(1.5px);
}

/* ==============================
   card-components
   ============================== */

.credo-card {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-surface); 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
  gap: var(--space-1);
}


.credo-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 0 var(--space-2);
  border-radius: 999px;
  background-color: #e4f4f6; /* mv-card のアイコン色に合わせる */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credo-card__icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

/* タイトル（「誠実・信頼」など） */
.credo-card__title {
  margin: 0 0 4px;
  font-size: var(--fs-body);           /* mv-card__title と同じサイズ */
  line-height: var(--lh-body);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

/* サブタイトル（「頼れるお寺であること」など） */
.credo-card__subtitle {
  margin: 0 0 4px;
  font-family: var(--font-roman);
  font-size: var(--fs-body-sm);

  letter-spacing: 0.12em;
  color: var(--color-secondary);
  font-weight: 600;
}

/* 本文：mv-card__body と同じルール */
.credo-card__body {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--color-text-main);
  padding: 0 var(--space-4);   /* 左右にゆとりを作る */
  text-align: justify;
  text-align: center;        /* 両端揃えにする */
}



