:root {
  color-scheme: light;
  --color-text: #21302a;
  --color-muted: #5f6f68;
  --color-bg: #fbfcf8;
  --color-surface: #ffffff;
  --color-soft: #eef4ed;
  --color-cream: #fff7e8;
  --color-sky: #e8f5fb;
  --color-line: #d6e0d7;
  --color-primary: #2e6f57;
  --color-primary-dark: #1f4f3e;
  --color-accent: #b56a35;
  --color-coral: #d98265;
  --shadow-soft: 0 18px 48px rgba(34, 55, 45, 0.1);
  --shadow-lift: 0 28px 70px rgba(34, 55, 45, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fffdf7;
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

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

.container {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-title {
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-coral);
}

.hero,
.page-heading {
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, rgba(238, 244, 237, 0.92), rgba(255, 255, 255, 0.7)),
    var(--color-soft);
}

.photo-hero {
  display: flex;
  align-items: flex-end;
  min-height: 700px;
  padding: 0;
  background-position: center;
  background-size: cover;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(19, 45, 35, 0.82), rgba(19, 45, 35, 0.5) 45%, rgba(19, 45, 35, 0.08)),
    url("assets/images/community-hero-kodatsuno.jpg");
}

.hero-content {
  width: 100%;
  padding: 88px 0;
}

.photo-hero .eyebrow,
.photo-hero h1,
.photo-hero .lead {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.photo-hero .eyebrow {
  color: #ffe0a8;
}

.page-heading-photo {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.page-heading-photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.72));
}

.page-heading-photo .container {
  position: relative;
}

.about-heading {
  background-image: url("assets/images/activity-event.jpg");
}

.documents-heading {
  background-image: url("assets/images/documents-heading.jpg");
  background-position: center 58%;
}

.contact-heading {
  background-image: url("assets/images/contact-desk.jpg");
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 2.35rem;
  line-height: 1.28;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.36;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}

h1 span,
h2 span {
  display: block;
}

.hero-title {
  max-width: 760px;
  font-size: 3rem;
  line-height: 1.32;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.button.primary {
  background: var(--color-primary);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--color-primary-dark);
}

.button.tertiary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-primary-dark);
}

.photo-hero .button.secondary,
.photo-hero .button.tertiary {
  border-color: rgba(255, 255, 255, 0.82);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 0 0 4px rgba(46, 111, 87, 0.14);
  transform: translateY(-1px);
}

.button.disabled {
  border-color: var(--color-line);
  background: var(--color-soft);
  color: var(--color-muted);
  cursor: default;
}

.section {
  padding: 72px 0;
}

.section.muted {
  background: linear-gradient(180deg, var(--color-soft), #f7fbf5);
}

.soft-band {
  background: linear-gradient(180deg, var(--color-cream), #fffdf7);
}

.cta-section {
  background: linear-gradient(135deg, var(--color-sky), var(--color-cream));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: start;
}

.update-list,
.message,
.text-block,
.about-overview,
.download-list,
.feature-grid,
.value-grid,
.split-copy,
.form-panel,
.mamorun-feature {
  max-width: 720px;
}

.update-item,
.message,
.overview-card,
.download-item,
.feature-card,
.value-card,
.structure-panel,
.form-panel,
.video-panel {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.welcome-section {
  background: #fffdf7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.about-overview {
  display: grid;
  gap: 20px;
}

.overview-card {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.64), rgba(255, 255, 255, 0.92)),
    var(--color-surface);
}

.overview-card p {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.overview-card p:first-child {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.overview-card p:last-child {
  margin-bottom: 0;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(34, 55, 45, 0.07);
}

.activity-list span {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.activity-list small {
  flex: 0 0 auto;
  color: var(--color-coral);
  font-weight: 700;
}

.feature-card h3 {
  white-space: nowrap;
  word-break: keep-all;
  font-size: 1.02rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 800;
}

.feature-card p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.value-grid {
  display: grid;
  gap: 16px;
}

.value-card {
  padding: 28px;
}

.value-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.value-heading .feature-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.value-card h3 {
  margin-bottom: 0;
  color: var(--color-primary-dark);
  font-size: 1.16rem;
  line-height: 1.5;
}

.value-card p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.feature-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}

.feature-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.split-copy p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.update-item {
  padding: 28px;
  border-left: 6px solid var(--color-coral);
}

.note-update {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.update-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: var(--color-soft);
}

.update-copy {
  min-width: 0;
}

.update-copy h3 a {
  text-decoration: none;
}

.update-copy h3 a:hover,
.update-copy h3 a:focus-visible {
  color: var(--color-primary);
}

.update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 20px;
}

.mamorun-feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 244, 237, 0.86), rgba(255, 247, 232, 0.76)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.mamorun-thumb {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  justify-self: center;
}

.mamorun-video-section {
  background:
    linear-gradient(180deg, #fffdf7, rgba(232, 245, 251, 0.42)),
    #fffdf7;
}

.mamorun-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.mamorun-showcase-copy {
  max-width: 720px;
}

.mamorun-showcase-copy p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.mamorun-showcase-copy .button {
  margin-top: 10px;
}

.mamorun-character {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 244, 237, 0.9), rgba(255, 255, 255, 0.92)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.mamorun-character img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
}

.video-panel {
  padding: 32px;
}

.video-panel-featured {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(46, 111, 87, 0.18), rgba(255, 247, 232, 0.94)),
    var(--color-surface);
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--color-soft);
}

.video-frame-large {
  border-radius: 8px;
  /* Google Driveのプレビュー動画に合わせ、スマホでも欠けにくい4:3の枠にする。 */
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 52px rgba(34, 55, 45, 0.14);
}

.drive-preview-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lyrics-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: start;
}

.lyrics-panel {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.74), rgba(255, 255, 255, 0.94)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.lyrics-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(46, 111, 87, 0.28);
}

.lyrics-heading img {
  display: block;
  width: 68px;
  height: auto;
  flex: 0 0 auto;
}

.lyrics-heading p {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.lyrics-panel p {
  margin-bottom: 0;
}

.lyrics-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.9;
}

.lyrics-lines p {
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.64);
}

.download-list {
  display: grid;
  gap: 16px;
}

.documents-layout {
  max-width: 900px;
}

.documents-layout .download-list {
  max-width: none;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.download-item p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.file-meta {
  margin-bottom: 6px;
  color: var(--color-coral);
  font-size: 0.82rem;
  font-weight: 700;
}

.update-date {
  margin-bottom: 8px;
  color: var(--color-coral);
  font-size: 0.88rem;
  font-weight: 700;
}

.message {
  padding: 44px;
  font-size: 1.04rem;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.58), rgba(255, 255, 255, 0.9)),
    var(--color-surface);
}

.president-message {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.president-photo {
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-soft);
}

.president-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.structure-panel {
  max-width: 760px;
  margin: 0;
  padding: 24px;
  background: #ffffff;
}

.structure-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.message-body {
  min-width: 0;
}

.contact-layout {
  max-width: 900px;
}

.contact-layout .form-panel {
  max-width: none;
}

.form-panel {
  padding: 36px;
}

.form-embed {
  display: grid;
  gap: 18px;
}

.form-embed h2 {
  margin-bottom: 0;
}

.form-embed p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.form-link {
  justify-self: start;
}

.google-form-frame {
  display: block;
  width: 100%;
  height: 1803px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-soft);
}

.form-note {
  font-size: 0.92rem;
}

.message p:last-child,
.text-block p:last-child,
.update-item p:last-child {
  margin-bottom: 0;
}

.signature {
  margin-top: 32px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-align: right;
}

.text-block {
  color: var(--color-muted);
  font-size: 1.02rem;
}

.media-text {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.section-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.section-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration-color: var(--color-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 28px 0;
  color: var(--color-muted);
  background: var(--color-surface);
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1040px);
  }

  h1 {
    font-size: 1.95rem;
    line-height: 1.38;
  }

  h2 {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  h3 {
    font-size: 1.02rem;
  }

  .hero-title {
    font-size: 2.08rem;
    line-height: 1.38;
  }

  .lead {
    font-size: 1rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .site-title {
    font-size: 1.04rem;
    white-space: normal;
  }

  /* スマホでは横並びナビを隠し、右上のボタンで開閉するメニューに切り替える。 */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(34, 55, 45, 0.08);
    cursor: pointer;
  }

  .menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary-dark);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-line);
    padding-top: 8px;
    font-size: 0.98rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(214, 224, 215, 0.78);
    padding: 12px 2px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-coral);
  }

  .hero,
  .page-heading {
    padding: 52px 0 48px;
  }

  .photo-hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 56px 0;
  }

  .section {
    padding: 52px 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  .value-heading {
    align-items: flex-start;
  }

  .split-section {
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .update-item,
  .message,
  .overview-card,
  .download-item,
  .value-card,
  .structure-panel,
  .form-panel,
  .video-panel,
  .mamorun-feature,
  .mamorun-character {
    padding: 24px;
  }

  .video-panel-featured {
    padding: 10px;
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .note-update {
    grid-template-columns: 1fr;
  }

  .mamorun-feature,
  .mamorun-showcase,
  .lyrics-layout {
    grid-template-columns: 1fr;
  }

  .president-message {
    grid-template-columns: 1fr;
  }

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

  .signature {
    text-align: left;
  }
}
