/*
Theme Name: 地福院テーマ
Theme URI: http://www.jifukuin.com
Author: 延命山地福院
Description: 高野山真言宗 延命山地福院 オリジナルテーマ
Version: 1.0
License: Private
Text Domain: jifukuin
*/


  :root {
    --ink: #1a1410;
    --stone: #3d3530;
    --earth: #6b5c4e;
    --sand: #c4a882;
    --parchment: #f5f0e8;
    --cream: #faf7f2;
    --gold: #a8824a;
    --gold-light: #d4aa6e;
    --red-lacquer: #8b2020;
    --moss: #4a5a3a;
    --white: #fffef9;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
  }

  
  /* ─── SLIDESHOW（CSSアニメーション版・JS不要） ─── */
  .slideshow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    overflow: hidden;
    /* 静的フォールバック：アニメーション未動作時/初期1.5秒でも1枚目を表示 */
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/DSC_5090-scaled.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    animation: jfFade 30s infinite;
    -webkit-animation: jfFade 30s infinite;
    will-change: opacity;
  }

  /* 6枚のスライドを5秒ずつ表示（合計30秒でループ） */
  .slide-1 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/DSC_5090-scaled.jpg');
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
  }
  .slide-2 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/DSC_5091-1-scaled.jpg');
    animation-delay: 5s;
    -webkit-animation-delay: 5s;
  }
  .slide-3 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/DSC_5102-scaled.jpg');
    animation-delay: 10s;
    -webkit-animation-delay: 10s;
  }
  .slide-4 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/DSC_5100-scaled.jpg');
    animation-delay: 15s;
    -webkit-animation-delay: 15s;
  }
  /* スライド5・6は日本語ファイル名のためURLエンコード版を使用 */
  .slide-5 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/%E6%9C%AC%E5%A0%82%E5%86%85%EF%BC%92-scaled.jpg');
    animation-delay: 20s;
    -webkit-animation-delay: 20s;
  }
  .slide-6 {
    background-image: url('https://jifukuin.com/wp-content/uploads/2026/05/%E3%81%8A%E5%A2%93.jpg');
    animation-delay: 25s;
    -webkit-animation-delay: 25s;
  }

  /* 視差効果オフ設定でもスライド1が見えるように */
  @media (prefers-reduced-motion: reduce) {
    .slide {
      animation: none !important;
      -webkit-animation: none !important;
    }
  }

  @-webkit-keyframes jfFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    28%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
  }
  @keyframes jfFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    28%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* ─── HERO 黒オーバーレイ ─── */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
  }

  /* スライドインジケーター（CSS版では非表示） */
  .slide-indicators,
  .slide-dot { display: none; }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--ink);
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 60% 50%, rgba(107,92,78,0.15) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 20% 80%, rgba(168,130,74,0.08) 0%, transparent 60%);
  }

  .hero-kanji { display: none; }

  /* Decorative divider lines */
  .hero-lines {
    position: absolute;
    left: 48px; top: 0; bottom: 0;
    width: 1px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-lines::before {
    content: '';
    position: absolute;
    top: 20%; bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(168,130,74,0.4), transparent);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 48px;
    animation: fadeUp 1.2s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s both;
  }

  .hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(14px, 2.5vw, 18px);
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s both;
  }

  .hero-name {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: 0.2em;
    color: var(--white);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s both;
  }

  .hero-name span {
    color: var(--gold-light);
  }

  .hero-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(11px, 1.5vw, 13px);
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s both;
  }

  .hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s both;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 2.2;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    max-width: 380px;
    margin: 0 auto 48px;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s both;
  }

  .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 1.4s both;
  }

  .btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--ink);
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }

  .btn-primary:hover::before { transform: scaleX(1); }
  .btn-primary span { position: relative; z-index: 1; }

  .btn-outline {
    display: inline-block;
    padding: 13px 36px;
    border: 1px solid rgba(168,130,74,0.5);
    color: var(--sand);
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.3s;
  }

  .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(168,130,74,0.08);
  }

  .hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 1s ease 1.8s both;
  }

  .scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.3);
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(168,130,74,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  /* ─── SECTION BASE ─── */
  section {
    padding: 96px 24px;
  }

  .container {
    max-width: 1000px;
    margin: 0 auto;
  }

  .section-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .section-rule {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 32px;
  }

  /* ─── ABOUT ─── */
  .about {
    background: var(--white);
    position: relative;
    overflow: hidden;
  }

  .about::before {
    content: '地福';
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%);
    font-family: 'Noto Serif JP', serif;
    font-size: 200px;
    font-weight: 700;
    color: rgba(168,130,74,0.04);
    line-height: 1;
    writing-mode: vertical-rl;
    pointer-events: none;
    user-select: none;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-text p {
    font-size: 14px;
    line-height: 2.4;
    color: var(--stone);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
  }

  .about-visual {
    position: relative;
  }

  .about-img-frame {
    position: relative;
    padding: 16px;
  }

  .about-img-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 70%; height: 70%;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
  }

  .about-img-frame::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 70%; height: 70%;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
  }

  .about-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--parchment) 0%, rgba(168,130,74,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-placeholder-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    color: rgba(168,130,74,0.3);
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
  }

  /* Info boxes */
  .info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(168,130,74,0.2);
    margin-top: 48px;
  }

  .info-item {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
  }

  .info-item-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 8px;
  }

  .info-item-value {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--ink);
    font-weight: 500;
  }

  /* ─── FEATURES / MENU ─── */
  .features {
    background: var(--parchment);
    position: relative;
  }

  .features-header {
    text-align: center;
    margin-bottom: 64px;
  }

  .features-header .section-rule {
    margin: 0 auto 32px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(168,130,74,0.15);
  }

  .feature-card {
    background: var(--cream);
    padding: 48px 32px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .feature-card:hover { background: var(--white); transform: translateY(-4px); }
  .feature-card:hover::before { transform: scaleX(1); }

  .feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
  }

  .feature-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    letter-spacing: 0.15em;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 12px;
  }

  .feature-desc {
    font-size: 12px;
    line-height: 2;
    color: var(--earth);
    letter-spacing: 0.05em;
  }

  /* ─── MORNING SERVICE ─── */
  .morning {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .morning::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 80% at 80% 50%, rgba(107,92,78,0.2) 0%, transparent 70%);
  }

  .morning-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .morning-content .section-title {
    color: var(--white);
  }

  .morning-content p {
    font-size: 14px;
    line-height: 2.4;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }

  .morning-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(168,130,74,0.3);
    background: rgba(255,255,255,0.03);
  }

  .morning-detail-row {
    display: flex;
    gap: 16px;
    align-items: baseline;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .morning-detail-label {
    color: var(--gold);
    font-family: 'Noto Serif JP', serif;
    white-space: nowrap;
    min-width: 60px;
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .morning-detail-value {
    color: rgba(255,255,255,0.8);
  }

  .morning-visual {
    position: relative;
  }

  .morning-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(168,130,74,0.08);
    border: 1px solid rgba(168,130,74,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .morning-img-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 56px;
    color: rgba(168,130,74,0.2);
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
  }

  /* ─── EVENTS ─── */
  .events {
    background: var(--white);
  }

  .events-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
  }

  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(168,130,74,0.15);
  }

  .event-card {
    background: var(--cream);
    padding: 36px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: background 0.3s;
  }

  .event-card:hover { background: var(--white); }

  .event-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding-top: 4px;
  }

  .event-month-num {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold);
    line-height: 1;
  }

  .event-month-label {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--earth);
  }

  .event-divider {
    width: 1px;
    background: rgba(168,130,74,0.3);
    align-self: stretch;
    min-height: 40px;
  }

  .event-info {}

  .event-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 6px;
  }

  .event-detail {
    font-size: 12px;
    line-height: 1.8;
    color: var(--earth);
    letter-spacing: 0.05em;
  }

  /* ─── ETERNITY ─── */
  .eternity {
    background: var(--parchment);
    position: relative;
    overflow: hidden;
  }

  .eternity-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .eternity-visual {}

  .eternity-stone {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, #2a2420 0%, #1a1410 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .eternity-stone::before {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(168,130,74,0.25);
  }

  .eternity-stone-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    letter-spacing: 0.4em;
    color: rgba(168,130,74,0.6);
    writing-mode: vertical-rl;
    line-height: 1.8;
  }

  .eternity-content p {
    font-size: 14px;
    line-height: 2.4;
    color: var(--stone);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
  }

  /* ─── NEWS ─── */
  .news {
    background: var(--white);
  }

  .news-list {
    display: flex;
    flex-direction: column;
  }

  .news-item {
    display: flex;
    gap: 32px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid rgba(168,130,74,0.15);
    text-decoration: none;
    transition: padding-left 0.3s;
  }

  .news-item:hover {
    padding-left: 12px;
  }

  .news-date {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    white-space: nowrap;
    min-width: 100px;
  }

  .news-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--stone);
    transition: color 0.3s;
  }

  .news-item:hover .news-title { color: var(--ink); }

  /* ─── ACCESS ─── */
  .access {
    background: var(--ink);
    color: var(--white);
  }

  .access-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .access-content .section-title { color: var(--white); }

  .access-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .access-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
    letter-spacing: 0.05em;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(168,130,74,0.15);
  }

  .access-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .access-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    min-width: 56px;
    padding-top: 2px;
  }

  .access-value {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
  }

  .access-map {
    background: rgba(168,130,74,0.05);
    border: 1px solid rgba(168,130,74,0.2);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .access-map-placeholder {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: rgba(168,130,74,0.4);
  }

  /* ─── CONTACT ─── */
  .contact {
    background: var(--parchment);
    text-align: center;
  }

  .contact-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(20px, 3.5vw, 32px);
    letter-spacing: 0.2em;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 16px;
  }

  .contact-sub {
    font-size: 13px;
    line-height: 2;
    color: var(--earth);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-tel {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 8px;
  }

  .contact-tel-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 40px;
  }

  .contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ─── CONTACT FORM ─── */
  .contact-form-wrap {
    max-width: 720px;
    margin: 48px auto 0;
    text-align: left;
  }

  .contact-form-inner {
    background: var(--white);
    padding: 48px;
    border: 1px solid rgba(168,130,74,0.2);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-group-full {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--stone);
  }

  .form-required {
    display: inline-block;
    background: var(--red-lacquer);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
  }

  .form-input, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(168,130,74,0.3);
    background: var(--cream);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
  }

  .form-input:focus, .form-textarea:focus {
    border-color: var(--gold);
    background: var(--white);
  }

  .form-textarea { resize: vertical; }

  .form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .form-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--stone);
    cursor: pointer;
    letter-spacing: 0.05em;
  }

  .form-radio input { accent-color: var(--gold); cursor: pointer; }

  .form-submit-wrap { text-align: center; margin-top: 32px; }

  .form-submit { cursor: pointer; border: none; font-family: 'Noto Serif JP', serif; }

  .form-message {
    margin-top: 20px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.1em;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(168,130,74,0.05);
  }

  @media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-inner { padding: 28px 20px; }
    .form-radio-group { flex-direction: column; gap: 10px; }
  }

  /* ─── お地蔵さんギャラリー ─── */
  .ojizo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .ojizo-item {
    position: relative;
    overflow: hidden;
  }

  .ojizo-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
  }

  .ojizo-item img:hover { transform: scale(1.04); }

  .ojizo-caption {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--stone);
    margin-top: 10px;
    font-weight: 500;
  }

  /* 全ページの写真に角丸を適用 */
  .about-placeholder img,
  .morning-visual img,
  .eternity-stone img,
  .about-img-frame img {
    border-radius: 12px;
  }

  .about-img-frame { border-radius: 12px; overflow: hidden; }
  .about-placeholder { border-radius: 12px; overflow: hidden; }
  .morning-visual img { border-radius: 12px; }
  .eternity-stone { border-radius: 12px; overflow: hidden; }

  /* ライトボックス */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .lightbox.open { display: flex; }

  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
  }

  @media (max-width: 600px) {
    .ojizo-gallery { grid-template-columns: repeat(2, 1fr); }
  }

  /* ─── FOOTER ─── */
  footer {
    background: #0e0b08;
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(168,130,74,0.15);
  }

  .footer-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
  }

  .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .footer-links a {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-links a:hover { color: var(--gold); }

  .footer-copy {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.2);
  }

  /* ─── MOBILE NAV ─── */
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,11,8,0.97);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu a {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
  }

  .mobile-menu a:hover { color: var(--gold-light); }

  .mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    cursor: pointer;
    font-size: 28px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    transition: color 0.3s;
  }

  .mobile-close:hover { color: var(--gold); }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    section { padding: 64px 20px; }

    .about-grid,
    .morning-inner,
    .eternity-inner,
    .access-inner {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .features-grid {
      grid-template-columns: 1fr;
    }

    .events-grid {
      grid-template-columns: 1fr;
    }

    .info-strip {
      grid-template-columns: 1fr;
    }

    .hero-content {
      padding: 80px 16px 40px;
    }

    .events-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }

    .about::before { font-size: 120px; }

    .morning-inner .morning-visual { order: -1; }

    .eternity-visual { order: -1; }
  }

  @media (max-width: 480px) {
    .hero-name { letter-spacing: 0.1em; }
    .news-item { flex-direction: column; gap: 4px; }
    .contact-links { flex-direction: column; align-items: center; }
  }

  @media (max-width: 900px) {
    .features-grid[style*="repeat(5"] {
      grid-template-columns: repeat(3, 1fr) !important;
    }
  }
  @media (max-width: 600px) {
    .features-grid[style*="repeat(5"] {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }

  /* ─── スマホ表示で日本語の本文が一文字ずつ折り返されるのを防ぐ ─── */
  @media (max-width: 600px) {
    /* HEROセクションの説明文（３行） */
    .hero-desc {
      letter-spacing: 0.02em;
      line-height: 2;
      max-width: 100%;
      padding: 0 4px;
      font-size: 12.5px;
    }

    /* 「ご案内」など各セクションのヘッダー直下の説明文（インラインstyle対策で!important） */
    .features-header > p {
      letter-spacing: 0.02em !important;
      max-width: 100% !important;
      padding: 0 4px;
    }

    /* 本文段落全般（about / eternity / morning / events / ojizo） */
    .about-text p,
    .eternity-content p,
    .morning-content p,
    .news-title,
    .event-detail,
    .ojizo-gallery + p,
    .about-text > p[style] {
      letter-spacing: 0.03em !important;
    }
  }

