:root {
  --blue: #4876C4;
  --ink: #333333;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --panel: #eef1f5;
  --panel-report: #eaf1f7;
  --soon: #d5d8dc;
  --footer: #2b2b2b;
  --wrap: 1080px;
  --header-h: 90px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-radius: clamp(2.5rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  /* padding-top: var(--header-h); */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

/* Header */
.header {
  background-color: #FBFCFB;
  width: 100%;
  height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 clamp(0.75rem, 3vw, 2em);
  box-shadow: 0px 5px 10px rgba(51, 51, 51, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.top_logo {
  flex-shrink: 0;
}

.logo {
  width: clamp(4.5rem, 16vw, 8rem);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.0rem;
  min-width: 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  flex-shrink: 0;
  padding: 0.5em 1.1em 0.5em 0.8em;
  border-radius: 999px;
  color: #333;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  background:
    linear-gradient(#FBFCFB, #FBFCFB) padding-box,
    linear-gradient(#9EE1DC, #9EE1DC) border-box;
  border: 1.5px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(20px);
}

.instagram-btn:hover {
  opacity: 0.85;
}

.instagram-btn img {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

.main_navi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

.menu_list {
  display: flex;
  align-items: center;
  gap: clamp(0.55em, 2.2vw, 2.8em);
}

.menu_list li a {
  white-space: nowrap;
  display: block;
  padding: 0.45em 0;
  font-size: clamp(0.75rem, 2.4vw, 1rem);
  color: #333;
}

.menu_list.right {
  justify-content: flex-end;
  gap: 1em;
  margin-bottom: 7px;
  margin-top: 0.5em;
}

.menu-icon {
  width: 20px;
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-field {
  width: 100px;
  height: 20px;
  border: #333 1px solid;
  border-radius: 10px;
  margin-right: 0.3em;
  font-size: 0.8rem;
  padding-left: 10px;
  background-color: #fff;
}

.search-submit {
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.list_link {
  position: relative;
}

.list_link::after {
  content: "";
  display: block;
  width: 100%;
  height: 0.5px;
  background-color: #333;
  position: absolute;
  bottom: 0;
  transform: scale(0, 1);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

.list_link:hover::after {
  transform: scale(1, 1);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  /* height: calc(100vh - var(--header-h)); */
  height: calc(110dvh - var(--header-h));
  margin: 0;
  overflow: hidden;
}

.hero-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    transparent 52%
  );
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 4vw;
  top: 80%;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 #000,
    -1px 1px 0 #000,
    1px -1px 0 #000,
    -1px -1px 0 #000;
  max-width: min(40rem, 88%);
}

/* News */
.news {
  width: min(var(--wrap), calc(100% - 2 * var(--pad)));
  margin: 4.5rem auto 0;
  padding-bottom: 3rem;
}

.section-title {
  color: var(--blue);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.section-title span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.news-list {
  border-top: 1px solid #9BB7E8;
}

.news-list li {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid #9BB7E8;
  font-size: 0.92rem;
}

.news-list li:has(img) {
  grid-template-columns: 7.2rem 72px minmax(0, 1fr);
}

.news-list time {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.news-list img {
  width: 72px;
  height: auto;
  object-fit: cover;
  background: var(--soon);
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.news-list img:hover,
.news-list img:focus-visible {
  opacity: 0.82;
}

.news-list img:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.news-list a {
  text-decoration: underline;
}

/* News photo lightbox */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 1.5rem;
  background: rgba(15, 22, 36, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.news-lightbox__image {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.news-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.news-lightbox__close:hover,
.news-lightbox__close:focus-visible {
  background: var(--blue);
  color: #fff;
}

.news-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.news-lightbox-open {
  overflow: hidden;
}

/* Back to top */
.back-to-top-btn {
  position: fixed;
  right: 50px;
  bottom: 70px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  cursor: pointer;
  background-color: #fff;
  border: 2px #3278C2 solid;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.back-to-top-btn::after {
  content: "TOP";
  color: #3278C2;
  font-size: 1rem;
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
}

.back-to-top-btn img {
  width: 50%;
  margin-left: 12px;
  transform: rotate(-180deg) translateY(0);
  transition: transform 0.3s ease-in-out;
}

.back-to-top-btn:hover img {
  transform: rotate(-180deg) translateY(5px);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Panels */
.panel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 2.75rem max(var(--pad), calc((100% - var(--wrap)) / 2)) 2.4rem;
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  background: var(--panel);
  overflow: hidden;
}

.panel_detail {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 2.75rem max(var(--pad), calc((100% - var(--wrap)) / 2)) 2.4rem;
  background: var(--panel);
  overflow: hidden;
}

.panel + .panel {
  margin-top: calc(var(--section-radius) * -1);
  z-index: 1;
}

.panel:has(+ .panel) {
  padding-bottom: calc(2.4rem + var(--section-radius) + 2.85rem);
}

.panel--activities {
  background-color: #EFEFEF;
}

.panel--activities::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-activities.png") 50% 20% / 78% auto no-repeat;
  opacity: 0.25;
}

.panel--activities > * {
  position: relative;
  z-index: 1;
}

.panel--report {
  background-color: var(--panel-report);
  isolation: isolate;
}

.panel--report::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("../images/test.JPG") center / cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}

.panel--report::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(250, 240, 230, 0.4);
  z-index: -1;
}

.panel--report .section-title {
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 40px;
}

.card {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: #fff;
  padding: 1rem;
}

.card-media-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  min-height: 5.4rem;
  padding: 0.95rem 1rem 1.1rem;
}

.card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.card-body time {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.panel-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 8.5rem;
  padding: 0.55rem 1.6rem 0.55rem 1.85rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.btn-more-arrow {
  position: relative;
  width: 20px;
  height: 12px;
  display: block;
}

.btn-more-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 20px;
  height: 1px;
  background: #ffffff;
}

.btn-more-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 10px;
  height: 1px;
  background: #ffffff;
  transform: rotate(28deg);
  transform-origin: right center;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 1.15rem var(--pad);
  background: var(--footer);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .menu_list.right {
    display: none;
  }

  .hero {
    height: auto;
    margin-top: calc(var(--header-h) - 23px);
  }

  .hero-item {
    height: auto;
  }

  .hero-item img {
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: unset;
  }

  .hero-item::after {
    display: none;
  }

  .hero-copy {
    top: auto;
    left: 0.75rem;
    bottom: 0.65rem;
    font-size: clamp(0.75rem, 3.5vw, 0.95rem);
    line-height: 1.65;
    letter-spacing: 0.02em;
    max-width: 94%;
    -webkit-text-stroke: 1.5px #000;
  }
  .instagram-btn {
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .instagram-btn span {
    display: none;
  }

  .instagram-btn {
    border: none;
    background: transparent;
    transform: translateY(1px);
  }

  .instagram-btn img {
    width: 1.6em;
    height: 1.6em;
  }

  .header-right {
  gap:clamp(0.75rem, 1.5vw, 1rem);
  }
}

@media (max-width: 720px) {
  .news {
    margin-top: 5rem;
    padding-bottom: 2rem;
  }

  .news-list li {
    grid-template-columns: 6.4rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .news-list li:has(img) {
    grid-template-columns: 6.4rem 56px minmax(0, 1fr);
  }

  .news-list img {
    width: 56px;
    height: auto;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .panel {
    padding: 2rem 1.25rem 1.75rem;
  }

  .panel + .panel {
    padding-top: calc(2rem + var(--section-radius));
  }

  .panel:has(+ .panel) {
    padding-bottom: calc(1.75rem + var(--section-radius) + 0.75rem);
  }

  .card-media {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .news-list li,
  .news-list li:has(img) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .news-list li:has(img) time {
    grid-column: 1 / -1;
  }

  .news-list li:has(img) img {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .back-to-top-btn {
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
  }

  .back-to-top-btn::after {
    bottom: -25px;
  }

  .back-to-top-btn img {
    margin-left: 9px;
  }
}

@media (hover: none) {
  .card:hover .card-media img {
    transform: none;
  }

  .back-to-top-btn:hover img {
    transform: rotate(-180deg) translateY(0);
  }
}
