/* 教会テンプレ church_beni。紙の地・紅の帯・縦書きの見出しの案内。寸法は元の見た目を 1440px / 390px で測った値。 */
*, *::before, *::after { box-sizing: border-box; }
:root { --accent: #c0300e; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #000;
  font: 16px/1.7 "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  word-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
.text-logo { display: inline-block; }
.bn-inner { margin: 0 auto; max-width: 1160px; padding: 0 40px; }

/* 最初の画面: 写真は画面に固定し、本文が上に重なる */
.bn-screen { position: fixed; top: 0; left: 0; width: 100%; height: 750px; z-index: -1; overflow: hidden; background: #222; }
.bn-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.2); transition: opacity 1.2s ease, transform 8s linear;
}
.bn-slide.is-on { opacity: 1; transform: scale(1); }
.bn-hero { position: relative; height: 750px; }
.bn-head { position: absolute; top: 0; left: 0; width: 100%; padding: 20px 34px 0; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.bn-logo { display: block; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; white-space: nowrap; max-width: 300px; }
.bn-logo--dark { color: #000; font-size: 20px; }
.bn-contact { width: 126px; border-radius: 4px; background: rgba(255,255,255,.3); color: #fff; font: .9rem/1.8 "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; text-align: center; }
.bn-catch {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 50%; max-width: 520px; z-index: 1;
  border: 1px solid rgba(255,255,255,.8); background: rgba(0,0,0,.25); color: #fff; text-align: center; padding: 22px 12px 24px;
}
.bn-catch__en { font-size: 14px; letter-spacing: .12em; margin-bottom: 10px; }
.bn-catch h1 { font-size: 30px; line-height: 1.55; letter-spacing: .16em; }

/* ナビ */
.bn-nav { background: rgba(0,0,0,.7); height: 60px; margin-top: -60px; position: relative; display: flex; justify-content: center; align-items: center; }
.bn-nav a, .bn-fixed nav a { display: block; padding: 0 12px; color: #fff; font-size: 13px; line-height: 1; border-left: 1px solid #fff; }
.bn-nav a:first-child, .bn-fixed nav a:first-child { border-left: 0; }
.bn-fixed { position: fixed; left: 0; top: -102px; width: 100%; height: 102px; background: #fff; z-index: 1000; opacity: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.bn-fixed nav { display: flex; }
.bn-fixed nav a { color: #000; border-color: #000; }
.bn-mhead, .bn-menu { display: none; }

/* 紙の地・白の地 */
.bn-paper { background: #f1f1f1; padding: 50px 0; }
.bn-white { background: #fff; padding: 50px 0 30px; }
.bn-paper p { font-size: 1.14rem; line-height: 1.9; margin: 0 auto 24px; max-width: 960px; }
.bn-rule { height: 11px; margin: 50px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid #000; }
.bn-rule--s { margin: 0 0 30px; }
.bn-rule--c { max-width: 360px; margin: 0 auto 30px; }
.bn-title { text-align: center; font-size: 1.6rem; letter-spacing: .15em; line-height: 1.4; margin: 0 auto; }
.bn-title small { display: block; font-size: .8rem; letter-spacing: .05em; font-style: normal; margin-top: 6px; }
.bn-title--s { font-size: 1.1rem; }

/* 案内の写真と縦書きの紅の帯 */
.bn-tiles { display: flex; margin-top: 30px; }
.bn-tile { position: relative; }
.bn-tile a, .bn-gtile a { display: block; position: relative; overflow: hidden; }
.bn-tile img { width: 100%; aspect-ratio: 520 / 280; object-fit: cover; }
.bn-tile span {
  position: absolute; top: 0; bottom: 0; left: 0; width: 17%; background: var(--accent); color: #fff;
  writing-mode: vertical-rl; letter-spacing: .25em; font-size: .9rem; padding: 12px 0 0; display: flex; justify-content: center;
}
.bn-tiles--l .bn-tile { width: 48.15%; }
.bn-tiles--l .bn-tile:first-child { margin-right: 3.7%; }
.bn-tiles--l .bn-tile span { left: auto; right: 0; width: 21.5%; font-size: 1.3rem; }
.bn-tiles--s .bn-tile { width: 22.2%; margin-right: 3.7%; }
.bn-tiles--s .bn-tile:last-child { margin-right: 0; }
.bn-tiles--s .bn-tile img { aspect-ratio: 480 / 348; }

/* お知らせ */
.bn-news { display: flex; }
.bn-news__l { width: 360px; margin-right: 3.7%; flex-shrink: 1; }
.bn-news__r { width: 680px; flex-shrink: 3; }
.bn-sch { background: #f0f0f0; margin-top: 20px; }
.bn-sch h3 { font-size: 1rem; font-weight: 700; }
.bn-sch h3::before { content: "—"; color: var(--accent); font-size: 1.4rem; padding: 10px 10px 0 0; }
.bn-sch__txt { padding: 0 10px 10px 32px; }
.bn-news__none { padding: 20px; font-size: .9rem; margin-top: -30px; }
.bn-more { display: block; position: relative; max-width: 298px; margin: 34px auto 0; background: #000; color: #fff; text-align: center; height: 50px; line-height: 50px; font-size: .9rem; letter-spacing: .1em; }
.bn-more::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); rotate: 45deg; translate: 0 -50%; }

/* アクセス */
.bn-map { height: 450px; background: #e5e3e0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #555; }
.bn-map svg { width: 44px; height: 44px; fill: var(--accent); }
.bn-map p { font-size: .9rem; }
.bn-access-txt { text-align: center; font-size: .9rem; margin: 10px 0 40px; }

/* はじめての方へ */
.bn-tiles--g { flex-wrap: wrap; justify-content: center; }
.bn-gtile { width: 21.5%; margin: 0 1.5% 20px; }
.bn-gtile img { width: 100%; aspect-ratio: 480 / 348; object-fit: cover; }
.bn-gtile span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(192,48,14,.85); background: color-mix(in srgb, var(--accent) 85%, transparent); color: #fff; text-align: center; font-size: .85rem; padding: 6px 4px; }
.bn-note { background: #fff; border-radius: 20px; font-size: .95rem !important; max-width: 360px !important; margin: 10px auto 0 !important; padding: 4px 10px; text-align: center; font-family: "游ゴシック", "Yu Gothic", YuGothic, sans-serif; }

/* 相談の帯 */
.bn-coun { position: relative; max-width: 1080px; height: 314px; margin: 0 auto 20px; overflow: hidden; color: #fff; padding: 28px; font-size: 1.14rem; line-height: 2; }
.bn-coun__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bn-coun__txt { position: relative; max-width: 58%; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.bn-coun__btn { position: absolute; right: 28px; top: 34px; width: 298px; height: 50px; line-height: 50px; background: rgba(255,255,255,.8); color: #000; text-align: center; font-size: .9rem; letter-spacing: .1em; z-index: 1; }

/* フッター */
.bn-footer__top { padding: 30px 0 10px; text-align: center; }
.bn-footer__nav { display: flex; justify-content: center; margin-bottom: 14px; }
.bn-footer__nav a { display: block; padding: 0 10px; font-size: 13px; line-height: 1; border-left: 1px solid #000; }
.bn-footer__nav a:first-child { border-left: 0; }
.bn-footer__logo { font-size: 24px; font-weight: 700; margin: 10px auto; }
.bn-footer__info li { font-size: .9rem; }
.bn-footer__info li:empty { display: none; }
.bn-footer__sample { font-size: .8rem !important; margin: 14px 0 0 !important; }
.bn-footer__social { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.bn-footer__social svg { width: 22px; height: 22px; }
.bn-copy { background: var(--accent); color: #fff; font-size: .75rem; padding: 5px 0; text-align: center; }

/* 出現 */
.bn-reveal { opacity: 0; translate: 0 -40px; transition: opacity 1s ease, translate 1s ease; }
.bn-reveal.is-in { opacity: 1; translate: 0 0; }

@media (max-width: 880px) {
  .bn-fixed { height: 80px; }
  .bn-fixed nav { display: none; }
}
@media (max-width: 820px) {
  .bn-coun { height: auto; padding-bottom: 96px; font-size: 1rem; }
  .bn-coun__txt { max-width: none; }
  .bn-coun__btn { left: 0; right: 0; top: auto; bottom: 26px; margin: auto; }
}
@media (max-width: 680px) {
  html { font-size: 15px; }
  .bn-inner { max-width: 520px; padding: 0; width: 92%; }
  .bn-screen { height: 320px; top: 50px; }
  .bn-hero { height: 370px; padding-top: 50px; }
  .bn-head, .bn-nav, .bn-fixed { display: none; }
  .bn-catch { width: 66%; margin-top: 12px; padding: 12px 6px; }
  .bn-catch h1 { font-size: 15px; letter-spacing: .12em; }
  .bn-catch__en { font-size: 8px; margin-bottom: 4px; }
  .bn-mhead { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 50px; background: rgba(255,255,255,.7); z-index: 1000; }
  .bn-mhead .bn-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 17px; }
  .bn-burger { position: absolute; left: 10px; top: 15px; width: 22px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
  .bn-menu { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 1001; opacity: 0; visibility: hidden; transition: all .5s; }
  .bn-menu[hidden] { display: block; }
  .bn-menu.is-open { opacity: 1; visibility: visible; }
  .bn-menu nav { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 100%; text-align: center; }
  .bn-menu a { display: block; color: #fff; font-size: 16px; line-height: 48px; letter-spacing: .1em; }
  .bn-paper { padding: 30px 0; }
  .bn-paper p { font-size: 1rem; }
  .bn-rule { height: 8px; margin: 20px 0; }
  .bn-rule--s { margin: 20px 0; }
  .bn-title { font-size: 1.3rem; }
  .bn-tiles--l { display: block; }
  .bn-tiles--l .bn-tile { width: 100%; max-width: 380px; margin: 0 auto 10px; }
  .bn-tiles--l .bn-tile:first-child { margin-right: auto; }
  .bn-tiles--s, .bn-tiles--g { flex-wrap: wrap; max-width: 380px; margin: 10px auto 0; }
  .bn-tiles--s .bn-tile, .bn-gtile { width: 49%; margin: 0 0 10px; }
  .bn-tiles--s .bn-tile:nth-child(odd), .bn-gtile:nth-child(odd) { margin-right: 2%; }
  .bn-white { padding-bottom: 10px; }
  .bn-news { display: block; }
  .bn-news__l, .bn-news__r { width: 100%; margin-right: 0; }
  .bn-news__r { margin-top: 30px; }
  .bn-news__none { margin-top: -20px; }
  .bn-more { max-width: 260px; }
  .bn-map { height: 250px; }
  .bn-coun { background: none; }
  .bn-coun__btn { width: 260px; }
  .bn-footer__top { padding-top: 0; }
  .bn-footer__nav { flex-wrap: wrap; border-bottom: 1px solid #000; background: #fff; margin: 0 0 14px; }
  .bn-footer__nav a { width: 50%; padding: 14px 8px; border-left: 0; border-top: 1px solid #000; text-align: center; }
  .bn-footer__nav a:nth-child(odd) { border-right: 1px solid #000; }
}
