.sub-content {
  background: var(--white);
}

.sub-inner {
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
}

.sub-visual {
  position: relative;
  display: flex;
  min-height: clamp(300px, 32vw, 430px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.sub-visual::before,
.sub-visual::after {
  position: absolute;
  inset: 0;
  content: "";
}

.sub-visual::before {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.sub-visual::after {
  background:
    linear-gradient(90deg, rgba(14, 16, 31, 0.62), rgba(14, 16, 31, 0.16)),
    rgba(13, 15, 30, 0.08);
}

.sub-visual-church::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_church.jpg"));
  background-position: center 52%;
}

.sub-visual-worship::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_worship.jpg"));
  background-position: center 50%;
}

.sub-visual-mission::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_mission.jpg"));
  background-position: center 50%;
}

.sub-visual-school::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_school.jpg"));
  background-position: center 50%;
}

.sub-visual-culture::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_culture.jpg"));
  background-position: center 58%;
}

.sub-visual-board::before {
  background-image: var(--sub-visual-img, url("../../images/sub/sub_visual_board.jpg"));
  background-position: center 45%;
}

.sub-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
  padding: 54px 0 46px;
  word-break: keep-all;
}

.sub-visual-kicker {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.sub-visual h1 {
  font-size: clamp(42px, 4.1vw, 66px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: 0;
}

.sub-visual p:last-child {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.sub-location {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.sub-location ol {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 64px), 1280px);
  min-height: 58px;
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.sub-location li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sub-location li + li::before {
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-top: 1px solid var(--gray-500);
  border-right: 1px solid var(--gray-500);
  content: "";
  transform: rotate(45deg);
}

.sub-location a {
  color: var(--gray-700);
}

.sub-location a:hover,
.sub-location a:focus {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sub-section-title {
  margin-bottom: clamp(34px, 4vw, 54px);
  text-align: center;
  word-break: keep-all;
}

.sub-section-title span {
  display: block;
  width: 26px;
  height: 5px;
  margin: 0 auto 16px;
  background: var(--navy);
}

.sub-section-title h2 {
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: 0;
}

.sub-section-title p {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 550;
  line-height: 1.65;
  letter-spacing: 0;
}

.sub-page-section {
  padding: clamp(54px, 5.6vw, 86px) 0 clamp(82px, 8vw, 134px);
}

.sub-page-inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(54px, 5.6vw, 84px);
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
}

.sub-sidebar {
  position: sticky;
  top: 24px;
  z-index: 2;
  align-self: start;
}

.sub-sidebar h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--navy);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
}

.sub-sidebar nav {
  border-bottom: 1px solid var(--gray-300);
}

.sub-sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 12px 32px 12px 10px;
  border-top: 1px solid var(--gray-300);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.sub-sidebar a::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--gray-500);
  border-right: 2px solid var(--gray-500);
  content: "";
  opacity: 0;
  transform: translateY(-50%) rotate(45deg);
}

.sub-sidebar a:hover,
.sub-sidebar a:focus,
.sub-sidebar a.is-active {
  color: var(--blue);
}

.sub-sidebar a:hover::after,
.sub-sidebar a:focus::after,
.sub-sidebar a.is-active::after {
  opacity: 1;
}

.sub-page-main {
  min-width: 0;
}

.about-message-visual {
  position: relative;
  display: flex;
  min-height: clamp(210px, 24vw, 320px);
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 66px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.06)),
    url("../../images/sub/about_message_visual_bright.png") center / cover;
}

.about-message-visual p {
  color: var(--blue);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.about-message-visual strong {
  display: block;
  max-width: 760px;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(25px, 2.65vw, 42px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0;
  word-break: keep-all;
}

.about-message-copy {
  width: min(100%, 760px);
  margin: clamp(52px, 5vw, 76px) auto 0;
  color: var(--ink);
  word-break: keep-all;
}

.about-message-copy h2 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0;
}

.about-message-copy p {
  color: var(--ink);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: 0;
}

.about-message-copy p + p {
  margin-top: 26px;
}

.time-message-visual {
  margin-bottom: clamp(48px, 5vw, 72px);
}

.time-message-visual p {
  color: var(--navy);
}

.time-message-visual strong {
  max-width: 660px;
}

.worship-schedule {
  width: min(100%, 860px);
  margin: 0 auto;
  word-break: keep-all;
}

.worship-schedule-group + .worship-schedule-group {
  margin-top: clamp(36px, 4.2vw, 54px);
}

.worship-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: 0;
}

.worship-section-title span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 15px;
  line-height: 1;
}

.worship-table-wrap {
  overflow-x: auto;
}

.worship-schedule-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid var(--gray-700);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

.worship-schedule-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.worship-schedule-table th,
.worship-schedule-table td {
  height: 52px;
  padding: 12px 14px;
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  text-align: center;
  vertical-align: middle;
}

.worship-schedule-table th:first-child,
.worship-schedule-table td:first-child {
  border-left: 1px solid var(--gray-300);
}

.worship-schedule-table thead th {
  height: 48px;
  color: var(--ink);
  background: var(--gray-100);
  font-size: 14px;
  font-weight: 800;
}

.worship-schedule-table tbody th {
  color: var(--ink);
  background: rgba(41, 41, 79, 0.035);
  font-weight: 720;
}

.worship-schedule-table tbody td {
  color: var(--gray-700);
  font-weight: 620;
}

.worship-schedule-table tbody td:first-of-type {
  color: var(--navy);
  font-weight: 800;
}

.worship-col-name {
  width: 38%;
}

.worship-col-time {
  width: 36%;
}

.worship-col-place {
  width: 26%;
}

.directions-section {
  word-break: keep-all;
}

.directions-map-area {
  display: grid;
  gap: clamp(22px, 2.6vw, 32px);
}

.directions-map-frame {
  position: relative;
  height: clamp(360px, 34vw, 460px);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
}

.directions-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-contact {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
}

.directions-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.directions-info-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: clamp(20px, 2.3vw, 28px) clamp(20px, 2.7vw, 32px);
}

.directions-info-list > div + div {
  border-left: 1px solid var(--gray-300);
}

.directions-info-list dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.directions-info-list dt i {
  font-size: 12px;
}

.directions-info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 650;
  line-height: 1.62;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.directions-info-list dd a {
  color: var(--ink);
}

.directions-info-list dd strong {
  color: var(--navy);
  font-weight: 850;
}

.directions-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 30px;
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  transition: background 0.2s ease;
}

.directions-map-link i {
  margin-right: 8px;
  font-size: 13px;
}

.directions-map-link:hover,
.directions-map-link:focus {
  background: var(--navy-deep);
}

.pastor-profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.45fr);
  gap: clamp(42px, 5vw, 76px);
  align-items: start;
  padding-top: clamp(34px, 4vw, 54px);
  border-top: 1px solid var(--gray-300);
}

.pastor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 2.2vw, 28px);
  text-align: center;
}

.pastor-photo {
  width: min(100%, 240px);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--white);
  aspect-ratio: 1204 / 1735;
}

.pastor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pastor-card strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
}

.pastor-card span {
  margin-top: 6px;
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 650;
}

.pastor-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--gray-300);
  color: var(--navy);
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pastor-card a::before {
  margin-right: 8px;
  color: var(--navy);
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  content: "\f04b";
}

.pastor-card a:hover,
.pastor-card a:focus {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.pastor-card a:hover::before,
.pastor-card a:focus::before {
  color: var(--white);
}

.pastor-detail {
  min-width: 0;
}

.pastor-detail-head {
  margin-bottom: 28px;
  padding: 28px 32px 30px;
  color: var(--white);
  background: var(--navy);
}

.pastor-detail-head p {
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.pastor-detail-head h3 {
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
}

.pastor-detail-head a {
  display: inline-block;
  margin-top: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.pastor-detail-head a:hover,
.pastor-detail-head a:focus {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pastor-history {
  display: grid;
  gap: 28px;
}

.pastor-history section {
  position: relative;
  padding-top: 14px;
}

.pastor-history section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 4px;
  background: var(--navy);
  content: "";
}

.pastor-history h4 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.pastor-history li {
  position: relative;
  padding-left: 16px;
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.85;
  letter-spacing: 0;
  word-break: keep-all;
}

.pastor-history li::before {
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy);
  content: "";
}

@media (max-width: 900px) {
  .sub-inner,
  .sub-visual-inner,
  .sub-location ol {
    width: min(calc(100% - 40px), 1280px);
  }

  .sub-visual {
    min-height: 340px;
  }

  .sub-page-inner {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 1280px);
    gap: 36px;
  }

  .sub-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sub-sidebar h2 {
    min-height: 54px;
  }

  .sub-sidebar nav {
    border-top: 1px solid var(--gray-300);
  }

  .sub-sidebar ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 100%;
  }

  .sub-sidebar a {
    height: 100%;
    border-top: 0;
    border-right: 1px solid var(--gray-300);
    padding-right: 28px;
  }

  .pastor-profile {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pastor-card {
    padding: 0;
  }

  .worship-schedule {
    width: 100%;
  }

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

  .directions-info-list > div + div {
    border-top: 1px solid var(--gray-300);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .sub-inner,
  .sub-visual-inner,
  .sub-location ol {
    width: calc(100% - 32px);
  }

  .sub-visual {
    min-height: 318px;
  }

  .sub-visual::after {
    background: rgba(13, 15, 30, 0.58);
  }

  .sub-visual-inner {
    padding: 42px 0 38px;
  }

  .sub-visual-kicker {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .sub-visual h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .sub-visual p:last-child {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.58;
  }

  .sub-location ol {
    min-height: 50px;
    overflow-x: auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .sub-page-section {
    padding: 36px 0 72px;
  }

  .sub-page-inner {
    width: calc(100% - 32px);
    gap: 30px;
  }

  .sub-sidebar {
    display: block;
  }

  .sub-sidebar h2 {
    min-height: 54px;
    font-size: 19px;
  }

  .sub-sidebar ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-sidebar a {
    min-height: 46px;
    border-top: 1px solid var(--gray-300);
    font-size: 15px;
  }

  .sub-sidebar li:nth-child(odd) a {
    border-right: 1px solid var(--gray-300);
  }

  .about-message-visual {
    min-height: 230px;
    padding: 28px 24px;
    background-position: 66% center;
  }

  .about-message-copy {
    margin-top: 42px;
  }

  .about-message-copy p {
    font-size: 16px;
    line-height: 1.76;
  }

  .time-message-visual {
    margin-bottom: 42px;
  }

  .time-message-visual strong {
    font-size: clamp(23px, 6.2vw, 28px);
  }

  .time-message-visual strong span {
    display: block;
  }



  .worship-section-title {
    margin-bottom: 12px;
    font-size: 19px;
  }

  .worship-section-title span {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .worship-schedule-group + .worship-schedule-group {
    margin-top: 34px;
  }

  .worship-table-wrap {
    /* width: min(100%, 360px); */
    width: 100%;
    /* max-width: 100%; */
    margin: 0;
    overflow-x: visible;
  }

  .worship-schedule-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  .worship-schedule-table th,
  .worship-schedule-table td {
    height: 46px;
    padding: 9px 6px;
    overflow-wrap: anywhere;
  }

  .worship-col-name {
    width: 38%;
  }

  .worship-col-time {
    width: 38%;
  }

  .worship-col-place {
    width: 24%;
  }

  .sub-section-title {
    margin-bottom: 28px;
  }

  .sub-section-title h2 {
    font-size: 34px;
  }

  .directions-map-frame {
    height: 230px;
  }

  .directions-map-area {
    gap: 20px;
  }

  .directions-info-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .directions-info-list dt {
    font-size: 15px;
  }

  .directions-info-list dd {
    font-size: 15px;
  }

  .directions-map-link {
    width: 100%;
    margin-top: 24px;
  }

  .pastor-profile {
    padding-top: 30px;
  }

  .pastor-photo {
    width: min(100%, 220px);
  }

  .pastor-detail-head {
    padding: 24px 20px;
  }

  .pastor-history {
    gap: 24px;
  }

  .pastor-history li {
    font-size: 15px;
    line-height: 1.75;
  }
}
