/* ========================================
   全ページ共通・基本設定
======================================== */

:root {
  --viewport-height: 100dvh;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--viewport-height, 100dvh);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

body > header {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

body > main {
  display: block;
  flex: 1 0 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding-bottom: var(--safe-area-bottom);
  overflow: visible;
}

body > footer {
  display: block;
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

p,
li,
td,
th,
a,
span {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.menu-button {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #16834a;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 16px;
  width: 280px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* iPhone Safariの表示領域に合わせて高さを制限 */
  max-height:
    calc(
      var(--viewport-height, 100dvh) -
      94px -
      var(--safe-area-bottom) -
      12px
    );
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
  display: block;
}

.nav-menu a,
.accordion-button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-decoration: none;
  color: #333;
  background: #ffffff;
  border: none;
  border-top: 1px solid #eee;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-menu a:first-child {
  border-top: none;
}

.nav-menu a:hover,
.accordion-button:hover {
  background: #eef8f2;
}

.accordion-button::after {
  content: "▼";
  float: right;
  font-size: 12px;
}

.accordion-button.active::after {
  content: "▲";
}

.accordion-content {
  display: none;
  background: #f8f8f8;
}

.accordion-content.open {
  display: block;
}

.accordion-content a {
  padding: 12px 18px 12px 34px;
  font-size: 15px;
  background: #f8f8f8;
}

.accordion-content a:hover {
  background: #e8f5ee;
}

/* トップページ */

.hero {
  padding: 52px 20px;
  text-align: center;
  background: #e8f5ee;
}

.hero h1 {
  font-size: 26px;
  margin-bottom: 16px;
  color: #16834a;
}

.hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 2;
  text-align: left;
}

.main-button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: #16834a;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

.main-button:hover {
  opacity: 0.9;
}

.section {
  padding: 36px 20px;
}

.section h2 {
  font-size: 22px;
  border-left: 6px solid #16834a;
  padding-left: 12px;
  color: #16834a;
}

.news-area {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #ffffff;
}

.news-area a {
  display: block;
  padding: 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eeeeee;
}

.news-area a:last-child {
  border-bottom: none;
}

.news-area a:hover {
  background: #f5f5f5;
}

.image-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.image-menu a {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-menu img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.image-menu img:hover {
  transform: scale(1.05);
}

/* 下層ページ共通 */

.page-title {
  padding: 36px 20px;
  background: #e8f5ee;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: 26px;
  color: #16834a;
}

.content-section {
  padding: 32px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: 36px;
  font-size: 22px;
  color: #16834a;
  border-left: 6px solid #16834a;
  padding-left: 12px;
}

.content-section p {
  font-size: 16px;
  line-height: 2;
  margin: 16px 0;
}

.content-section ul {
  padding-left: 1.3em;
  line-height: 2;
}

.catch-copy {
  font-size: 24px;
  font-weight: bold;
  color: #16834a;
  text-align: center;
}

.sub-heading {
  margin-top: 28px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f4fbf7;
  border-left: 5px solid #16834a;
  color: #16834a;
  font-size: 18px;
}

.photo-caption {
  margin: 28px 0;
  text-align: center;
}

.photo-caption img {
  max-width: 100%;
  border-radius: 12px;
}

.photo-caption figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.wide-image {
  margin: 28px 0 36px;
}

.wide-image img {
  width: 100%;
  height: auto;
  display: block;
}

.date-text {
  text-align: right;
}

.button-area {
  text-align: center;
  margin-top: 28px;
}

/* フッター */

.site-footer {
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding-top: 32px;
  padding-right: max(20px, var(--safe-area-right));
  padding-bottom: calc(32px + var(--safe-area-bottom));
  padding-left: max(20px, var(--safe-area-left));
  overflow: visible;
  visibility: visible;
  opacity: 1;
  text-align: center;
  background: #f1f1f1;
  font-size: 14px;
}

.site-footer p {
  margin: 8px 0;
  text-indent: 0;
}

.footer-map {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

/* 法人概要ページ */

.business-list,
.office-list {
  margin: 16px 0 28px;
  padding-left: 1.4em;
}

.business-list li,
.office-list li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  background: #ffffff;
  border: 1px solid #ddd;
}

.overview-table th,
.overview-table td {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.overview-table th {
  background: #e8f5ee;
  color: #16834a;
  font-weight: bold;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

.history-list {
  margin: 20px 0 32px;
  border-top: 1px solid #ddd;
}

.history-item {
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.history-date {
  font-weight: bold;
  color: #16834a;
  margin-bottom: 6px;
}

.history-text {
  line-height: 1.8;
}

.document-link-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.document-link {
  display: block;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 6px solid #16834a;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.7;
}

.document-link:hover {
  background: #eef8f2;
}

/* 個人情報保護規程ページ */

.privacy-policy {
  font-size: 16px;
}

.policy-title {
  font-size: 20px;
  font-weight: bold;
  color: #16834a;
  text-align: center;
  margin: 0 0 32px;
}

.privacy-policy h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #f4fbf7;
  border-left: 5px solid #16834a;
  color: #16834a;
  font-size: 18px;
}

.privacy-policy ol {
  padding-left: 1.4em;
  line-height: 2;
  margin: 12px 0 24px;
}

.privacy-policy ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.privacy-policy li {
  margin-bottom: 8px;
}

.privacy-policy strong {
  color: #16834a;
}

.fee-table th,
.fee-table td {
  text-align: left;
}

/* 移動支援・行動援護・短期入所ページ */

.service-note {
  margin: 20px 0 32px;
  padding: 18px;
  background: #f4fbf7;
  border: 1px solid #d8eadf;
  border-radius: 12px;
}

.service-note p:first-child {
  margin-top: 0;
}

.service-note p:last-child {
  margin-bottom: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 28px 0 36px;
}

.photo-grid figure {
  margin: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.photo-grid figcaption {
  padding: 12px 14px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.example-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0 32px;
}

.example-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 6px solid #16834a;
  border-radius: 12px;
}

.example-card h4 {
  margin: 0 0 8px;
  color: #16834a;
  font-size: 18px;
}

.example-card p {
  margin: 0;
}

/* 放課後等デイサービスページ */

.slogan-box {
  margin: 20px 0 32px;
  padding: 20px;
  background: #f4fbf7;
  border: 1px solid #d8eadf;
  border-radius: 14px;
}

.slogan-box p {
  margin: 0;
  font-weight: bold;
  color: #16834a;
  text-align: center;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 36px;
}

.activity-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 6px solid #16834a;
  border-radius: 12px;
}

.activity-card h3 {
  margin: 0 0 8px;
  color: #16834a;
  font-size: 18px;
}

.activity-card p {
  margin: 0;
}

.flow-list {
  margin: 20px 0 36px;
  border-top: 1px solid #ddd;
}

.flow-item {
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.flow-time {
  font-weight: bold;
  color: #16834a;
  margin-bottom: 6px;
}

.flow-text {
  line-height: 1.8;
}

.step-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 36px;
}

.step-card {
  position: relative;
  padding: 20px 18px 18px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  background: #16834a;
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
}

.step-card h3 {
  margin: 0 0 8px;
  color: #16834a;
  font-size: 18px;
}

.step-card p {
  margin: 0;
}

/* 注意ボックス */

.important-box {
  margin: 24px 0;
  padding: 18px;
  background: #fffdf1;
  border: 1px solid #eadf9b;
  border-radius: 12px;
}

.important-box p {
  margin: 0 0 10px;
}

.important-box p:last-child {
  margin-bottom: 0;
}

/* YouTube埋め込み */

.youtube-area {
  width: 100%;
  max-width: 900px;
  margin: 28px auto 36px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #000;
}

.youtube-area iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 動画ファイル埋め込み */

.video-area {
  width: 100%;
  max-width: 900px;
  margin: 28px auto 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #000;
}

.video-area video {
  width: 100%;
  display: block;
  background: #000;
}

/* グループホームページ */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 32px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #ddd;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.compare-table th {
  background: #e8f5ee;
  color: #16834a;
  font-weight: bold;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 36px;
}

.facility-card {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 6px solid #16834a;
  border-radius: 10px;
  font-weight: bold;
  line-height: 1.7;
}

/* 養成講座 予定・申し込み一覧 */

.course-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 36px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 10px 14px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 6px solid #16834a;
  border-radius: 12px;
  color: #333;
  text-decoration: none;
  line-height: 1.7;
}

.course-card:hover {
  background: #eef8f2;
}

.course-title {
  font-weight: bold;
}

.course-status {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.course-card.recruiting .course-status {
  background: #e8f5ee;
  color: #16834a;
}

.course-card.closed {
  opacity: 0.78;
}

.course-card.closed .course-status {
  background: #eeeeee;
  color: #666;
}

/* 申し込みフォーム共通 */

.apply-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  font-size: 14px;
}

.apply-title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 22px;
  color: #000;
}

.apply-lead {
  margin: 0 0 18px;
  line-height: 1.9;
}

.apply-note {
  margin: 0 0 28px;
  line-height: 1.9;
}

.kogera-apply-form {
  width: 100%;
}

.apply-field {
  margin-bottom: 18px;
}

.apply-field > label,
.apply-label {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #dce9f7;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}

.required-mark {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px;
  background: #ff2d6f;
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.apply-field input[type="text"],
.apply-field input[type="email"],
.apply-field input[type="tel"],
.apply-field select {
  width: 100%;
  max-width: 260px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #222;
  background: #f8d8c5;
  font-size: 14px;
  font-family: inherit;
}

.apply-field .wide-input {
  width: 100%;
  max-width: 420px;
}

.apply-field select {
  background: #ffffff;
}

.apply-field textarea {
  width: 100%;
  max-width: 340px;
  min-height: 120px;
  padding: 8px;
  border: 1px solid #222;
  background: #f8d8c5;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  outline: 2px solid #2c5d91;
  outline-offset: 1px;
}

.choice-label {
  display: block;
  margin: 6px 0;
  padding: 0;
  background: transparent;
  font-weight: normal;
  line-height: 1.7;
}

.choice-label input {
  margin-right: 6px;
}

.input-note {
  display: inline-block;
  margin-left: 8px;
  color: #666;
  font-size: 13px;
}

.small-note {
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.privacy-text {
  margin: 20px 0 28px;
  color: #555;
  font-size: 13px;
  line-height: 1.9;
}

.form-button-area {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}

.reset-button,
.next-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 190px;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.reset-button {
  border: 1px solid #bbb;
  background: #ffffff;
  color: #333;
}

.next-button {
  border: 1px solid #2f5f95;
  background: #2f5f95;
  color: #ffffff;
}

.reset-button:hover {
  background: #f3f3f3;
}

.next-button:hover {
  opacity: 0.9;
}

.error-box {
  margin: 24px 0;
  padding: 18px;
  background: #fff1f1;
  border: 1px solid #f0b5b5;
  border-radius: 8px;
}

.error-box p {
  margin: 0 0 8px;
}

.error-box p:last-child {
  margin-bottom: 0;
}

/* 上に戻るボタン */

.page-top-button {
  position: fixed;
  right:
    max(
      18px,
      calc(var(--safe-area-right) + 10px)
    );
  bottom:
    max(
      18px,
      calc(var(--safe-area-bottom) + 10px)
    );
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #2fbf71 0%, #16834a 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.page-top-button.show {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

.page-top-button:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.page-top-button:active {
  transform: translateY(0);
}

/* タブレット・PC */

@media screen and (min-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .section {
    max-width: 1000px;
    margin: 0 auto;
  }

  .image-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-map iframe {
    height: 360px;
  }

  .overview-table {
    table-layout: fixed;
  }

  .overview-table th,
  .overview-table td {
    display: table-cell;
    border-bottom: 1px solid #ddd;
  }

  .overview-table th {
    inline-size: 220px;
  }

  .overview-table tr:last-child th,
  .overview-table tr:last-child td {
    border-bottom: none;
  }

  .history-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }

  .history-date {
    margin-bottom: 0;
  }

  .document-link-area {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-area {
    grid-template-columns: repeat(3, 1fr);
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }

  .flow-time {
    margin-bottom: 0;
  }

  .step-area {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

}

/* スマホ調整 */

@media screen and (max-width: 767px) {
  .logo img {
    height: 64px;
  }

  .nav-menu {
    top: 100%;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 320px;
    max-height:
      calc(
        var(--viewport-height, 100dvh) -
        82px -
        var(--safe-area-bottom) -
        12px
      );
  }

  .catch-copy {
    font-size: 20px;
    text-align: left;
  }

  .privacy-policy {
    font-size: 15px;
  }

  .policy-title {
    font-size: 18px;
    text-align: left;
  }

  .privacy-policy h3 {
    font-size: 16px;
  }

  .privacy-policy ol {
    padding-left: 1.2em;
  }

  .course-list {
    max-height: 360px;
  }

  .apply-page {
    padding: 24px 14px 44px;
    font-size: 13px;
  }

  .apply-title {
    font-size: 19px;
  }

  .apply-field input[type="text"],
  .apply-field input[type="email"],
  .apply-field input[type="tel"],
  .apply-field select,
  .apply-field textarea {
    max-width: 100%;
  }

  .input-note {
    display: block;
    margin: 6px 0 0;
  }

  .form-button-area {
    gap: 8px;
  }

  .reset-button,
  .next-button {
    width: 50%;
    min-width: 0;
  }

  .page-top-button {
    right:
      max(
        14px,
        calc(var(--safe-area-right) + 8px)
      );
    bottom:
      max(
        14px,
        calc(var(--safe-area-bottom) + 8px)
      );
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.indent-paragraph {
  text-indent: 1em;
}

p {
  text-indent: 1em;
}
/* ========================================
   全ページ共通・iPhone表示安定化
======================================== */

body:not(.is-scroll-locked):not(.rinen-modal-open) {
  height: auto;
  overflow-y: visible;
}

.is-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
/* ========================================
   全端末共通・ページ下部切れ対策
======================================== */

/*
  ページ全体の高さをコンテンツに合わせる
*/
html {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-y: auto;

  scroll-behavior: smooth;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;

  position: relative;

  width: 100%;
  min-width: 0;

  height: auto;
  min-height: 100vh;
  min-height: 100svh;

  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-y: visible;

  -webkit-overflow-scrolling: touch;
}

/*
  ヘッダー・メイン・フッターの
  高さを固定しない
*/
body > header {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: auto;
}

body > main {
  display: block;
  flex: 1 0 auto;

  position: relative;

  width: 100%;
  min-width: 0;

  height: auto;
  min-height: 0;
  max-height: none;

  overflow: visible;
}

body > footer {
  display: block;
  flex: 0 0 auto;

  position: relative;

  width: 100%;
  min-width: 0;

  height: auto;
  min-height: 0;
  max-height: none;

  overflow: visible;
}

/*
  通常ページの主要ラッパーに残った
  100vh・高さ固定を解除
*/
body:not(.is-scroll-locked)
  :is(
    .page-wrapper,
    .site-wrapper,
    .wrapper,
    .page-container,
    .site-container,
    .main-wrapper,
    .main-container,
    .content-wrapper,
    .content-container
  ) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow-y: visible !important;
}

/*
  通常ページのmain要素に
  個別CSSで指定された高さを解除
*/
body:not(.is-scroll-locked) > main,
body:not(.is-scroll-locked) main[role="main"] {
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/*
  フッターがfixedやabsoluteに
  上書きされるのを防ぐ
*/
body > footer,
.site-footer {
  position: relative !important;

  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  transform: none;

  height: auto !important;
  max-height: none !important;

  margin-top: auto;

  padding-bottom:
    calc(
      32px +
      env(
        safe-area-inset-bottom,
        0px
      )
    );

  overflow: visible !important;
}

/*
  ページの最後に十分な余白を確保
*/
body > main::after {
  content: "";
  display: block;

  width: 100%;
  height:
    calc(
      24px +
      env(
        safe-area-inset-bottom,
        0px
      )
    );

  flex: 0 0 auto;
}

/*
  画像・動画・埋め込みによる
  横幅超過を防ぐ
*/
img,
picture,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/*
  flex・gridの子要素が
  画面幅を押し広げないようにする
*/
main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

/*
  長いURLや英数字の折り返し
*/
p,
li,
td,
th,
a,
span {
  overflow-wrap: anywhere;
}

/*
  モーダルを開いている場合だけ
  背景スクロールを固定
*/
body.is-scroll-locked {
  overflow: hidden !important;
}

/*
  モーダル本体は画面内でスクロール可能
*/
:is(
  .modal,
  .popup,
  .dialog,
  [role="dialog"]
) {
  max-width: 100%;
}

:is(
  .modal-content,
  .popup-content,
  .dialog-content
) {
  max-height:
    calc(
      100dvh -
      env(
        safe-area-inset-top,
        0px
      ) -
      env(
        safe-area-inset-bottom,
        0px
      ) -
      32px
    );

  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
}

/*
  タブレット・高解像度スマホ
*/
@media screen and (max-width: 1024px) {
  html,
  body {
    height: auto !important;
    max-height: none !important;
  }

  body > main {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body > footer,
  .site-footer {
    height: auto !important;
    max-height: none !important;
  }
}

/* ==========================
   共通ハンバーガーメニュー
========================== */

.site-header {
  min-height: 96px;
}

.menu-button {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  line-height: 1;

  border: none;
  border-radius: 16px;

  background: transparent;
  color: #16834a;

  cursor: pointer;

  transition:
    transform .25s,
    background .25s;
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: scale(1.05);
  background: rgba(22,131,74,.08);
}

/* 共通ハンバーガーメニュー最終調整 */
.site-header .menu-button {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;

  padding: 0;

  display: grid;
  place-items: center;

  font-size: 40px;
  font-weight: 700;
  line-height: 1;

  appearance: none;
  -webkit-appearance: none;
}

/* =========================================================
   TOPページ MP4背景動画
   guide → SS → day の順にクロスフェード
========================================================= */

.kogera-video-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(720px, calc(100svh - 96px));
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(93, 189, 128, 0.26),
      transparent 30%
    ),
    #073b29;
}

.kogera-video-hero__media,
.kogera-video-hero__video,
.kogera-video-hero__video-element,
.kogera-video-hero__overlay {
  position: absolute;
  inset: 0;
}

.kogera-video-hero__media {
  z-index: -3;
  overflow: hidden;
  background: #073b29;
  pointer-events: none;
}

.kogera-video-hero__video {
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.kogera-video-hero__video.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.kogera-video-hero__video-element {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  background: #073b29;
}

.kogera-video-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 29, 20, 0.88) 0%,
      rgba(3, 42, 28, 0.74) 45%,
      rgba(3, 42, 28, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 32, 22, 0.22) 0%,
      rgba(3, 32, 22, 0.36) 60%,
      rgba(3, 32, 22, 0.76) 100%
    );
}

.kogera-video-hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding:
    clamp(76px, 9vw, 128px)
    0
    clamp(74px, 9vw, 118px);
  color: #fff;
}

.kogera-video-hero__eyebrow {
  margin: 0 0 12px;
  color: #c5eb87;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 800;
  letter-spacing: 0.19em;
}

.kogera-video-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 6.4vw, 5.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-shadow:
    0 5px 18px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.7);
}

.kogera-video-hero__message {
  width: min(760px, 100%);
  margin-top: clamp(25px, 4vw, 40px);
  padding: clamp(22px, 3.7vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10),
      rgba(2, 37, 24, 0.13)
    );
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.kogera-video-hero__message p {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 600;
  line-height: 2;
  text-align: left;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.92),
    0 5px 14px rgba(0, 0, 0, 0.72);
}

.kogera-video-hero__message p:last-child {
  margin-bottom: 0;
}

.kogera-video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kogera-video-hero__button {
  min-width: 190px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border: 2px solid #c5eb87;
  border-radius: 999px;
  background: #c5eb87;
  color: #073b29 !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.kogera-video-hero__button::after {
  margin-left: 9px;
  content: "›";
  font-size: 22px;
  line-height: 1;
}

.kogera-video-hero__button--sub {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kogera-video-hero__button:hover,
.kogera-video-hero__button:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  color: #0b6842 !important;
}

.kogera-video-hero__button:focus-visible {
  outline: 3px solid #ffdd54;
  outline-offset: 4px;
}

@media screen and (max-width: 768px) {
  .kogera-video-hero {
    min-height: max(760px, calc(100svh - 96px));
  }

  .kogera-video-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(2, 30, 20, 0.42) 0%,
        rgba(2, 34, 22, 0.72) 37%,
        rgba(2, 32, 21, 0.94) 100%
      );
  }

  .kogera-video-hero__content {
    width: calc(100% - 30px);
    padding: 65px 0 62px;
  }

  .kogera-video-hero__eyebrow,
  .kogera-video-hero h1 {
    text-align: center;
  }

  .kogera-video-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .kogera-video-hero__message {
    margin-top: 25px;
    padding: 22px 20px;
    border-radius: 23px;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.11),
        rgba(2, 37, 24, 0.18)
      );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .kogera-video-hero__message p {
    font-size: 15px;
    line-height: 1.9;
  }

  .kogera-video-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kogera-video-hero__button {
    width: 100%;
  }
}

@media screen and (max-width: 420px) {
  .kogera-video-hero {
    min-height: 820px;
  }

  .kogera-video-hero__content {
    padding-top: 52px;
  }

  .kogera-video-hero__message {
    padding: 19px 17px;
  }

  .kogera-video-hero__message p {
    font-size: 14px;
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kogera-video-hero__video {
    transition: none;
  }

  .kogera-video-hero__video:not(:first-child) {
    display: none;
  }
}
