/*
Theme Name: 姫路福音教会
Theme URI: https://himejihukuinkyoukai.com/
Author: 姫路福音教会
Description: 姫路福音教会の公式サイト用オリジナルWordPressテーマです。
Version: 2.1.5
Text Domain: himeji-fukuin
*/

.brand .custom-logo-link { display: block; }
.brand { flex: 0 0 auto; }
.brand img,
.brand .custom-logo { display: block; width: auto; max-width: 230px; height: 50px; object-fit: contain; }
.nav ul, .footer-links ul, .side-box ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nav li { margin: 0; }
.nav a { padding: 12px 10px; font-size: .9rem; white-space: nowrap; }
.nav li:last-child a { background: var(--forest); color: #fff; border-radius: 999px; }
.footer-links .menu { display: grid; gap: 8px; }
.side-box .menu { display: grid; }
.side-box .menu a { display: block; padding: 10px 0; border-bottom: 1px solid #eadfce; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content .pastor { margin: 0; padding: 0; background: transparent; }
.entry-content .pastor img { margin-bottom: 0; }
.entry-content > figure:first-child { margin: 0 0 34px; }
.entry-content > figure:first-child img { width: 100%; max-height: 430px; object-fit: cover; }
.entry-content h2 { scroll-margin-top: 110px; }
.entry-content .hfc-facility-gallery { margin-top: 24px; }
.entry-content .hfc-facility-gallery figure { margin: 0; }
.entry-content .hfc-facility-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.entry-content .hfc-facility-gallery figure.wp-block-image { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(86,61,34,.12); }
.entry-content .hfc-facility-gallery figure.wp-block-image figcaption { position: static; margin: 0; padding: 8px 10px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 700; text-align: center; }
.content-stack > *:last-child { margin-bottom: 0; }
.content-stack > .content-card { padding: 36px; margin-bottom: 24px; }
.content-stack > .content-card > :last-child { margin-bottom: 0; }
.content-stack .wp-block-image:first-child img { width: 100%; max-height: 430px; object-fit: cover; }
.content-stack .steps h3 { margin-bottom: 7px; }
.content-stack .steps p { margin: 0; }
.content-stack .worship-main-card { margin-bottom: 56px; }
.content-stack .activity-heading { margin: 0 0 28px; font-family: serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 500; }
.content-stack .activity-grid { display: flex !important; flex-flow: row wrap !important; align-items: stretch !important; gap: 22px !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.content-stack .activity-grid > .feature-card { display: block !important; flex: 0 0 calc((100% - 44px) / 3) !important; width: calc((100% - 44px) / 3) !important; max-width: none !important; margin: 0 !important; }
.content-stack .activity-cards-fixed { display: flex !important; flex-flow: row wrap !important; align-items: stretch !important; gap: 22px !important; width: 100% !important; }
.content-stack .activity-cards-fixed > .feature-card { display: block !important; flex: 0 0 calc((100% - 44px) / 3) !important; width: calc((100% - 44px) / 3) !important; max-width: none !important; margin: 0 !important; }
.content-stack .activity-grid:empty { display: none !important; }
.content-stack .access-page-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 36px !important; width: 100% !important; max-width: none !important; }
.content-stack .access-page-grid > * { width: auto !important; max-width: none !important; margin: 0 !important; }
.content-stack .access-page-grid .map-box { min-height: 100%; }
.content-stack .access-grid-fixed { display: grid !important; grid-template-columns: 1fr 1fr !important; align-items: stretch !important; gap: 36px !important; width: 100% !important; }
.content-stack .access-grid-fixed > * { width: auto !important; max-width: none !important; min-height: 100%; margin: 0 !important; }
.article h2 { margin: 5px 0 8px; font-size: 1.45rem; }
.article p { margin: 0; color: var(--muted); }
.pagination { margin-top: 32px; }
.contact-phone { margin: 18px 0; font-size: 1.9rem; font-weight: 800; }
.contact-form .required { color: #a44835; font-size: .78rem; }
.contact-form .privacy-check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.contact-form .privacy-check input { width: auto; margin-top: 8px; }
.contact-form .hfc-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form button { border: 0; cursor: pointer; }
.contact-page-card { padding: 42px 46px; }
.contact-page-card .wpcf7 { max-width: 100%; }
.contact-page-card .wpcf7-form { display: grid; gap: 18px; }
.contact-page-card .wpcf7-form p { margin: 0; }
.contact-page-card .wpcf7-form label { display: block; font-weight: 700; }
.contact-page-card .wpcf7-form input:not([type="checkbox"]),
.contact-page-card .wpcf7-form select,
.contact-page-card .wpcf7-form textarea { width: 100%; max-width: 100%; margin-top: 7px; padding: 13px 15px; border: 1px solid #d2c5b5; border-radius: 10px; background: #fff; }
.contact-page-card .wpcf7-form textarea { min-height: 170px; resize: vertical; }
.contact-page-card .wpcf7-form input[type="submit"] { width: auto; min-width: 150px; margin-top: 4px; padding: 13px 25px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; cursor: pointer; }
.contact-page-card .wpcf7-form input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.contact-page-card .wpcf7-form .wpcf7-acceptance { font-weight: 400; }
.contact-page-card .wpcf7-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 8px; }
.contact-page-card .wpcf7-form .wpcf7-acceptance input { width: auto; margin-top: 7px; }
.form-message { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-message.success { background: #edf6e8; color: #315b2c; }
.form-message.error { background: #fff0ec; color: #8b3428; }
.hero:before { z-index: 1; background: linear-gradient(90deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.10) 48%,rgba(255,255,255,.02) 82%); pointer-events: none; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transform: scale(1.015); transition: opacity 1.2s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-content { z-index: 2; }
.hero-dots { position: absolute; z-index: 3; right: max(20px,calc((100vw - 1120px)/2)); bottom: 28px; display: flex; gap: 8px; }
.hero-content { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-content .eyebrow { justify-content: center; }
.hero-content p { margin-left: auto; margin-right: auto; }
.hero-content .button-row { justify-content: center; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; transform: none; } }
.content-stack .info-table th,
.content-stack .info-table td { border: 0; border-bottom: 1px solid var(--line); }
.content-stack .info-table tr:last-child th,
.content-stack .info-table tr:last-child td { border-bottom: 0; }
.feature-card > a { color: inherit; text-decoration: none; }
.feature-card time { display: block; margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .header-inner { min-height: 82px; }
  .brand img,
  .brand .custom-logo { max-width: 230px; height: 48px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; z-index: 100; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 16px 36px rgba(70, 49, 28, .2); }
  .nav.open { display: block; }
  .nav > ul { display: grid; gap: 2px; }
  .nav a { display: block; padding: 12px 14px; color: var(--ink); }
  .nav li:last-child a { text-align: center; }
  .hero h1 { max-width: 100%; white-space: nowrap; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.3; }
  .hero p { max-width: 560px; text-shadow: 0 2px 10px rgba(38, 26, 15, .9); }
}

@media (max-width: 480px) {
  .brand img,
  .brand .custom-logo { max-width: 190px; height: 44px; }
  .hero h1 { font-size: 2rem; }
  .hero-content { padding-top: 58px; }
}

@media (max-width: 600px) {
  .contact-page-card { padding: 26px 22px; }
  .content-stack > .content-card { padding: 24px; }
  .content-stack .activity-grid > .feature-card { flex-basis: 100% !important; width: 100% !important; }
  .content-stack .activity-cards-fixed > .feature-card { flex-basis: 100% !important; width: 100% !important; }
  .content-stack .access-page-grid { grid-template-columns: 1fr !important; }
  .content-stack .access-grid-fixed { grid-template-columns: 1fr !important; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .content-stack .activity-grid > .feature-card { flex-basis: calc((100% - 22px) / 2) !important; width: calc((100% - 22px) / 2) !important; }
  .content-stack .activity-cards-fixed > .feature-card { flex-basis: calc((100% - 22px) / 2) !important; width: calc((100% - 22px) / 2) !important; }
}
