@charset "utf-8";
/*
Theme Name: KADAN child
Theme URI:https://tcd-theme.com/tcd056
Description:WordPressテーマ「KADAN」の子テーマ
Template:kadan_tcd056
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  　202606
  ・元の（親テーマ）の追加CSS（カスタマイズ）に記載されていたCSSは子テーマの追加CSSに複製済み
  ・神奈川お墓の案内所「住職へのご相談LP」用オリジナルCSSです。
*/

/* =============================
   住職へのご相談LP ベースCSS
   ============================= */
/* テーマカラー：お寺ごとに変更してください */
:root {
  --lp-accent-color: #51734f; /* アクセントカラー（濃） */
  --lp-accent-color-middle: #e7f1e4; /* アクセントカラー（中間色・CTA用BOX等に使用） */
  --lp-accent-color-light: #f7fbf6; /* アクセントカラー（薄・背景等に使用） */
  --lp-btn-text-color: #fff; /* ボタンのテキストカラーに使用（白基本） */
  --lp-text-color: #333333; /* 全体テキストカラーに使用 */
}

.page-template-page-lp {
  color: var(--lp-text-color);
}

.lp-content p {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 767px) {
  .lp-content p {
    font-size: 14px;
  }
}

/* =============================
   Fade in up animation　※ブロックに「fade-in-up」と「js-in-view」を追加してください
   ============================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

.fade-in-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   SP のみ改行を反映
   ============================= */
.lp-sp-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .lp-sp-only {
    display: block;
  }
}

/* =============================
   LP 共通インナー
   ============================= */
.lp-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 50px;
}

@media screen and (max-width: 767px) {
  .lp-inner {
    padding-inline: 20px;
    max-width: 540px;
  }
}

/* =============================
   LP 共通見出し・小見出し
   ============================= */

.lp-h2-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
}

.lp-h3-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .lp-h2-title {
    font-size: 24px;
  }

  .lp-h3-title {
    font-size: 18px;
  }
}

/* =============================
   LP 共通CTAボックス
   ============================= */
.lp-cta-box {
  padding: 36px;
  background-color: var(--lp-accent-color-middle);
}

.lp-cta-box .lp-h3-title {
  text-align: center;
}

.lp-cta-box__text {
  text-align: center;
  margin-top: 24px;
}

.lp-cta-box__link {
  text-align: center;
  margin-top: 30px;
}

@media screen and (max-width: 767px) {
  .lp-cta-box {
    padding: 32px 20px;
  }
  .lp-cta-box__text {
    text-align: left;
    margin-top: 20px;
  }
  .lp-cta-box__link {
    text-align: center;
    margin-top: 30px;
  }
}

/* =============================
   LP 共通CTAボタン
   ============================= */
.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--lp-accent-color);
  color: var(--lp-btn-text-color) !important;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  font-size: 16px;
}

.lp-cta-btn .arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.lp-cta-btn:hover {
  opacity: 0.8;
}

.lp-cta-btn:hover .arrow-icon {
  transform: translateX(8px);
}

@media screen and (max-width: 767px) {
  .lp-cta-btn {
    font-size: 14px;
    gap: 10px;
  }
}

/* =============================
   LP FV
   ============================= */
.lp-fv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lp-fv__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, rgba(253, 250, 248, 0) 21%, rgba(253, 250, 248, 0.4) 44%, rgba(253, 250, 248, 0.9) 85%);
}

.lp-fv__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 100px 16px;
}

.lp-fv__lead {
  font-weight: 600;
  color: var(--lp-accent-color);
}

.lp-fv__title {
  font-size: 42px;
  line-height: 1.6;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  margin: 0;
}

.lp-fv__title-line {
  background: linear-gradient(transparent 60%, var(--lp-accent-color-middle) 60%);
  display: inline;
}

.lp-fv__sub {
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.lp-fv__cta {
  margin-top: 10px;
}

/* LP FV SP対応 */
@media screen and (max-width: 767px) {
  .lp-fv__overlay {
    background: linear-gradient(259deg, rgba(253, 250, 248, 0) 0%, rgba(253, 250, 248, 0.4) 36%, rgba(253, 250, 248, 0.9) 78%);
  }

  .lp-fv__inner {
    padding-inline: 16px;
    gap: 24px;
  }

  .lp-fv__title {
    font-size: 28px;
  }
  .lp-fv__sub {
    font-weight: 600;
  }
}

/* =============================
   LP 住職からのご挨拶
   ============================= */

.lp-greeting {
  position: relative;
  padding-block: 120px;
  z-index: 0;
}

.lp-greeting__body {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 56px;
}

.lp-greeting__img {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
}

.lp-greeting__img img {
  width: 100%;
  height: auto;
  /* ライトボックス無効化 */
  pointer-events: none;
  box-shadow: 8px 8px 0px var(--lp-accent-color-middle);
}

.lp-greeting__img figcaption {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.lp-greeting__text {
  flex: 1;
  min-width: 0;
  text-align: justify;
}

.lp-greeting__text h3 {
  margin-bottom: 1.4em;
}

.lp-greeting__text p + p {
  margin-top: 1.6em;
}

/* スマホ版のスタイル */
@media screen and (max-width: 767px) {
  .lp-greeting {
    padding-block: 80px;
  }

  .lp-greeting__body {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 40px;
  }

  .lp-greeting__img {
    flex: 0 0 auto;
    width: 60%;
    max-width: 280px;
  }
}

/* =============================
   LP 9つのお悩みカテゴリー
   ============================= */
.lp-category {
  padding-block: 120px;
  background-color: var(--lp-accent-color-light);
  position: relative;
  z-index: 1;
}

.lp-category__lead {
  margin-top: 40px;
  text-align: center;
}
.lp-category__list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 30px;
}

.lp-category__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
  padding: 32px 16px;
  background-color: #fff;
  box-shadow: 2px 4px 5px rgba(116, 116, 116, 0.2);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.lp-category__item:hover {
  opacity: 0.8;
}

.lp-category__item:hover .lp-category__link > span {
  transform: translateX(6px);
}

.lp-category__link-wrap {
  text-align: right;
  padding-right: 10px;
}

.lp-category__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-accent-color);
  font-weight: 600;
}

.lp-category__link > span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.lp-category .lp-cta-box {
  margin-top: 56px;
}

/* スマホ版のスタイル　ここから*/
@media screen and (max-width: 767px) {
  .lp-category {
    padding-block: 80px;
  }

  .lp-category__lead {
    margin-top: 24px;
    text-align: left;
  }

  .lp-category__head .lp-h2-title {
    text-align: left;
  }

  .lp-category__list {
    margin-top: 32px;
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .lp-category__item {
    min-width: 0;
    padding: 16px;
    gap: 8px;
  }
  .lp-category .lp-cta-box {
    margin-top: 32px;
  }
}

/* =============================
   神奈川お墓の案内所について
   ============================= */
.lp-about {
  padding-block: 120px;
  position: relative;
  z-index: 2;
}

.lp-about .lp-h2-title {
  text-align: left;
}

.lp-about__body {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  margin-top: 56px;
}

.lp-about__text {
  flex: 1;
  min-width: 0;
}

.lp-about__lead {
  text-align: justify;
}

.lp-about__text .lp-h3-title {
  margin-top: 1.6em;
}

.lp-about__text p {
  margin-top: 1.6em;
}

.lp-about__text p + p {
  margin-top: 1.6em;
}

.lp-about__text .lp-about__lead {
  margin-top: 0;
}

.lp-about__img {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
}

.lp-about__img img {
  width: 100%;
  height: auto;
  pointer-events: none;
  box-shadow: 8px 8px 0 var(--lp-accent-color-middle);
}

.lp-about__img figcaption {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.lp-about .lp-cta-box {
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .lp-about {
    padding-block: 80px;
  }

  .lp-about__body {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
  }

  .lp-about__text {
    gap: 12px;
    width: 100%;
  }

  .lp-about__img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .lp-about__img figcaption {
    font-size: 12px;
  }

  .lp-about .lp-cta-box {
    margin-top: 32px;
  }
}

/* =============================
   花のあしらい
   ============================= */
/* 住職からのご挨拶：花の装飾*/
.lp-greeting::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 390px;
  aspect-ratio: 1/1;
  background-image: url('./images/deco-flower.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}
@media screen and (max-width: 767px) {
  .lp-greeting::after {
    width: 160px;
  }
}

/* お悩みカテゴリ：花の装飾*/
.lp-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  aspect-ratio: 1/1;
  background-image: url('./images/deco-flower.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

@media screen and (max-width: 767px) {
  .lp-category::after {
    width: 160px;
    top: -40px;
  }
}

/* 神奈川お墓の案内所紹介：花の装飾*/
.lp-about::after {
  content: '';
  position: absolute;
  top: -112px;
  right: 0;
  width: 390px;
  aspect-ratio: 1/1;
  background-image: url('./images/deco-flower.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}
@media screen and (max-width: 767px) {
  .lp-about::after {
    width: 160px;
    top: 0;
  }
}
