@charset "utf-8";
body {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
  background-color: #fff5f0;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左から順に: logo -> nav(白ボックス) */
  position: relative;
  gap: 20px;
}
.header .logo {
  width: 15%;
  margin-left: 30px;
}

/* 白ボックス。右端に寄せ、中身が増えると左方向にのみ伸びる */
.header .nav {
  display: flex;
  align-items: center;
  gap: 20px; /* リンクやXアイコンとの間隔 */
  padding: 16px 24px 16px 40px; /* 右端にXが来るので左右バランス良く */
  background-color: #fff;
  border-radius: 30px 0 0 30px;

  margin-left: auto; /* 右側へ寄せる */
  width: auto; /* 中身に応じて横幅が決まる */
  white-space: nowrap; /* 折返し防止＝左方向へ伸びる */
  justify-content: flex-end; /* 中身は右寄せ（Xが最右） */
}

.header .nav a {
  color: #0063b4;
  font-size: 1.3em;
}

/* Xアイコン（白ボックスの最右） */
.header .nav .sns {
  display: flex;
  align-items: center;
  margin-left: 8px; /* リンク群とXの最小間隔 */
}
.header .nav .sns a {
  display: inline-flex;
  line-height: 1;
}
.header .nav .sns img {
  height: 24px; /* お好みで */
  width: auto;
}

/* ===== Main ===== */
.main {
  padding: 0;
}
.ribbon {
  background-position: 100% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}
.intro {
  text-align: center;
  margin: 80px 0px 40px 0;
}
.intro p {
  font-size: 36px;
  line-height: 1.5;
  color: #0063b4;
  font-weight: 700;
}
.section-title {
  width: 50%;
  text-align: right;
  font-size: 40px;
  margin-bottom: 20px;
  color: #0063b4;
  border-bottom: 6px solid #0063b4;
  padding-bottom: 20px;
  position: absolute;
  top: 7%;
  left: 0;
  z-index: 1;
}
.news {
  width: 800px;
  margin: 0 auto;
}
.news-box {
  border: 3px solid #0063b4;
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: 0 auto;
}
.news-box h3 {
  font-size: 28px;
  color: #0063b4;
  margin-bottom: 30px;
}
.news-item {
  font-size: 20px;
  margin: 15px 0;
}
.news-item a {
  color: #231815;
}
.news-item .date {
  color: #0063b4;
  margin-right: 30px;
}
.news-item .new {
  color: #ff3939;
  margin-left: 30px;
}
.charter {
  text-align: center;
  margin: 30px 0;
}
.charter img {
  width: 800px;
}
.event-info {
  position: relative;
}
.event-card {
  background-color: #fff;
  border-radius: 100px;
  padding: 350px 0 100px 0;
  width: 70%;
  margin: 0 auto;
}
.event-card .event-item {
  width: 70%;
  margin: 0 auto;
  max-width: 800px;
}
.event-card img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 15px;
}
.event-card h3 {
  color: #0063b4;
  font-size: 28px;
  padding: 20px;
}
.event-card p {
  padding: 10px 20px;
  color: #4e3824;
  font-size: 20px;
  line-height: 1.5;
}
.event-card p span {
  background-color: #0063b4;
  color: #fff;
  padding: 2px 10px;
  margin-right: 10px;
  border-radius: 10px;
}
.features {
  position: relative;
}
.feature-card {
  margin-top: 100px;
}
.feature-card img {
  width: 100%;
}
.feature-card-content {
  background-color: #0063b4;
  color: #fff;
  padding: 20px;
  width: 60%;
  border-radius: 20px 0 20px 20px;
  margin-top: 20px;
}
.feature-card-content h4 {
  margin-top: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}
.feature-title {
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 15px;
}
.feature-name {
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  margin-top: 20px;
}

/* ===== Swiper ===== */
.slider-container {
  position: relative;
  width: 100%;
  margin: 40px 0;
}
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.swiper-pagination {
  position: static;
  margin-top: 15px;
}
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -10%;
  left: 0;
  width: 100%;
}
.swiper-pagination-bullet {
  background-color: #0063b4;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background-color: #0063b4;
}
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 15px;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}
.swiper-button-next,
.swiper-button-prev {
  background-size: contain !important;
  background-repeat: no-repeat center center;
  width: 45px !important;
  height: 45px !important;
}
#hero-slider-container .swiper-button-prev {
  left: calc(50% - 22px - 20vw);
}
#hero-slider-container .swiper-button-next {
  right: calc(50% - 22px - 20vw);
}
#features-slider-container .swiper-button-prev {
  left: calc(50% - 22px - 20vw);
}
#features-slider-container .swiper-button-next {
  right: calc(50% - 22px - 20vw);
}
.sp {
  display: none;
}

.system {
  text-align: center;
}

.system h1 {
  font-size: 45px;
  text-align: center;
  line-height: 2;
  color: #0063b4;
  font-weight: 700;
  border-bottom: 3px solid #0063b4;
  display: inline;
}

.about-meister {
  width: 600px;
  margin: 0 auto;
  padding: 30px 40px;
  margin-top: 60px;
  text-align: left;
  background-color: #fff;
  position: relative;
  --dot-color: #0063b4;
  --dot-thickness: 5px; /* 線の太さ（見た目の幅） */
  --dot-size: 5px; /* ドット直径 */
  --dot-gap: 5px; /* ドット間隔 */
  --repeat: calc(var(--dot-size) + var(--dot-gap));
  --phase: calc(var(--repeat) / 2.5); /* 角の重なり防止用オフセット */
}

/* 左右（縦方向） */
.about-meister ::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* 左辺 */ radial-gradient(circle, var(--dot-color) calc(var(--dot-size) / 2), transparent calc(var(--dot-size) / 2 + 0.5px)) left var(--phase) / var(--dot-thickness) var(--repeat) repeat-y,
    /* 右辺 */ radial-gradient(circle, var(--dot-color) calc(var(--dot-size) / 2), transparent calc(var(--dot-size) / 2 + 0.5px)) right var(--phase) / var(--dot-thickness) var(--repeat) repeat-y;
}

/* 上下（横方向） */
.about-meister ::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* 上辺 */ radial-gradient(circle, var(--dot-color) calc(var(--dot-size) / 2), transparent calc(var(--dot-size) / 2 + 0.5px)) var(--phase) top / var(--repeat) var(--dot-thickness) repeat-x,
    /* 下辺 */ radial-gradient(circle, var(--dot-color) calc(var(--dot-size) / 2), transparent calc(var(--dot-size) / 2 + 0.5px)) var(--phase) bottom / var(--repeat) var(--dot-thickness) repeat-x;
}

.ab-tit {
  color: #0063b4 !important;
  font-size: 28px !important;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-meister p {
  font-size: 20px;
  line-height: 1.5;
  color: #4e3824;
}

.system h1 {
  font-size: 40px;
  text-align: center;
  line-height: 2;
  color: #0063b4;
  font-weight: 700;
  border-bottom: 3px solid #0063b4;
  display: inline;
}

.meister-area {
  width: 800px;
  margin: 0 auto;
}

.meister-corner {
  background-color: #fff;
  margin-top: 100px;
}

.number-area {
  position: relative;
  z-index: 10;
}

.number-area img {
  width: 20%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.number-area .number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  font-size: 26px;
  color: #0063b4;
  font-weight: 700;
}

.meister-inner {
  width: 600px;
  margin: 0 auto;
  padding: 120px 0 60px 0;
}

.m-name p {
  text-align: center !important;
  font-size: 30px !important;
  color: #0063b4 !important;
  font-weight: 700 !important;
}

.meister-inner img {
  width: 100%;
  border-radius: 30px;
  margin: 35px 0;
}

.meister-inner p {
  font-size: 20px;
  line-height: 1.5;
  color: #4e3824;
}

.m-web img {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 60px 0;
}

.m-sns h3 {
  text-align: center;
  font-size: 28px;
  color: #221815;
}

.sns-logo {
  display: flex;
  justify-content: center;
}

.sns-logo a {
  display: block;
  width: 8%;
  margin: 20px;
}

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .main {
    padding: 15px;
  }
  #hero-slider-container .swiper-button-prev {
    left: 10px;
  }
  #hero-slider-container .swiper-button-next {
    right: 10px;
  }
  #features-slider-container .swiper-button-prev {
    left: 25%;
  }
  #features-slider-container .swiper-button-next {
    right: 25%;
  }
  .news {
    width: 70%;
  }
  .charter img {
    width: 70%;
  }

  /* ヘッダー微調整 */
  .header {
    gap: 14px;
  }
  .header .nav {
    padding: 12px 20px 12px 28px;
    gap: 14px;
  }
  .header .nav .sns img {
    height: 22px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  /* モバイルでも横並びを維持し、Xは白ボックス最右に */
  .header {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .header .logo {
    width: 40%;
    margin-left: 10px;
  }

  .header .nav {
    padding: 10px 16px 10px 20px;
    gap: 12px;
  }
  .header .nav a {
    font-size: 16px;
  }

  .header .nav .sns {
    margin-left: 8px;
  }
  .header .nav .sns img {
    height: 20px;
  }

  .swiper-pagination-fraction,
  .swiper-pagination-custom,
  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: -50%;
  }
  .swiper-pagination-bullet {
    width: 13px !important;
    height: 13px !important;
  }
  #hero-slider-container .swiper-button-next {
    right: 95px;
  }
  #hero-slider-container .swiper-button-prev {
    left: 95px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 25px !important;
    height: 25px !important;
    top: 55% !important;
  }
  .ribbon {
    background-size: contain;
    background-repeat: repeat-y;
  }
  .main {
    padding: 10px;
  }
  .intro p {
    font-size: 22px;
  }
  .news {
    width: 90%;
  }
  .news-box h3 {
    font-size: 20px;
  }
  .news-item {
    font-size: 14px;
  }
  .charter img {
    width: 90%;
  }
  .event-card {
    width: 90%;
    border-radius: 50px;
    padding: 140px 0;
    margin: 0 auto;
  }
  .event-card .event-item {
    width: 95%;
    margin: 0 auto;
    max-width: 800px;
  }
  .section-title {
    font-size: 20px;
    width: 70%;
    top: 3%;
  }
  .event-card h3 {
    font-size: 20px;
  }
  .event-card p {
    font-size: 16px;
  }
  .news-box,
  .charter-link {
    max-width: 100%;
  }
  .feature-card-content {
    padding: 20px;
    width: 100%;
    min-height: 230px;
  }
  .feature-card-content h4 {
    font-size: 12px;
  }
  .feature-title {
    font-size: 14px;
  }
  .feature-name {
    text-align: right;
    font-size: 12px;
  }
  .sp {
    display: block;
  }
  .system h1 {
    font-size: 22px;
  }
  .about-meister {
    width: 90%;
  }

  .ab-tit {
    font-size: 18px !important;
  }
  .about-meister p {
    font-size: 16px;
  }
  .meister-area {
    width: 90%;
  }
  .meister-inner {
    width: 80%;
    padding: 120px 0 60px 0;
  }
  .number-area img {
    width: 35%;
  }
  .number-area .number {
    font-size: 22px;
  }
  .m-name p {
    font-size: 24px !important;
  }
  .meister-inner p {
    font-size: 16px;
  }
  .m-web img {
    width: 90%;
    padding: 30px 0;
  }
  .m-sns h3 {
    font-size: 20px;
  }

  .sns-logo {
    display: flex;
    justify-content: center;
  }

  .sns-logo a {
    width: 13%;
  }
}
/* URLを含むテキストが折り返せるようにする */
.event-item p,
.event-item a {
  overflow-wrap: anywhere; /* もっとも簡単でモダン */
  word-break: break-word; /* 互換用（Safari等） */
}

/* 念のため、親がflexなら子にこれを入れる */
.event-item {
  min-width: 0;
}

/* 画像やリンクが横幅を超えない保険 */
.event-item img,
.event-item a {
  max-width: 100%;
}

/* 画像ブロック */
.hero-download {
  max-width: 1000px; /* 最大1000px */
  margin: 24px auto 0; /* 中央寄せ */
  padding: 0 16px; /* 端の余白 */
}
.hero-download img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px; /* 任意 */
  object-fit: cover;
}

/* ダウンロードボタン */
.dl-actions {
  max-width: 1000px;
  margin: 16px auto 40px;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end; /* 中央寄せにしたい場合は center */
  gap: 12px;
}

/* 共通：中央固定の配置 */
.dl-actions {
  max-width: 1000px;
  width: 100%;
  margin: 20px auto 48px;
  padding: 0 16px;
  display: block;
  text-align: center;
  float: none;
}
.dl-actions .dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  vertical-align: middle;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 999px;
  transition: transform 0.08s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  isolation: isolate;
  /* アクセシビリティ */
  outline: none;
}
.dl-actions .dl-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(115, 182, 255, 0.5);
}

/* 疑似アイコン（外部SVG不使用・文字記号） */
.dl-actions .dl-btn::before {
  content: "⤓"; /* ダウンロード感のある矢印 */
  font-size: 1.15em;
  line-height: 1;
}

/* ふわっと押し込み感 */
.dl-actions .dl-btn:active {
  transform: translateY(1px);
}

/* ========= A) グラデーション × 光沢（存在感・主ボタン） ========= */
.dl-btn--gradient {
  color: #fff;
  border: none;
  background-image: radial-gradient(120% 140% at 90% -20%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #0a68d1 0%, #0c8bf0 50%, #38bdf8 100%);
  box-shadow: 0 10px 24px rgba(11, 120, 220, 0.22), 0 4px 10px rgba(11, 120, 220, 0.15);
}
.dl-btn--gradient:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(11, 120, 220, 0.28), 0 6px 12px rgba(11, 120, 220, 0.18);
}
/* ===== Hamburger (top dropdown, mobile) ===== */

/* PCは非表示 */
.menu-toggle,
.hamburger {
  display: none;
}

/* モバイルで有効化 */
@media (max-width: 767px) {
  /* 視覚的には非表示のトグル */
  .menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* ボタン（形を整えた3本線） */
  .hamburger {
    display: inline-block;
    position: absolute;
    right: 12px;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 1200;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #0063b4;
    border-radius: 2px;
    transform-origin: center;
    transform: translateX(-50%);
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  /* 3本線の正しい位置 */
  .hamburger span:nth-child(1) {
    top: 14px;
  }
  .hamburger span:nth-child(2) {
    top: 21px;
  }
  .hamburger span:nth-child(3) {
    top: 28px;
  }

  /* ヘッダーは相対配置＆ボタンぶん余白 */
  .header {
    position: relative;
    padding-right: 60px;
  }

  /* ナビを“上から降りる”全幅パネルに変更 */
  .header .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 85vh; /* 多すぎるときの保険 */
    overflow-y: auto;
    transform: translateY(-110%); /* 隠しておく */
    transition: transform 0.28s ease;
    z-index: 1100;

    /* 見た目 */
    background: #fff;
    border-radius: 0; /* 角丸解除 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* 中身のレイアウト */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 72px 16px 20px; /* 上はヘッダー分の余白 */
    margin-left: 0; /* 既存指定を打ち消し */
    white-space: normal; /* 折り返しOK */
  }

  /* 開いた状態 */
  #menu-toggle:checked ~ .nav {
    transform: translateY(0);
  }

  /* “×”アニメーション（形が崩れないように中心回転） */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
  }
  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
  }

  /* メニューの文字／アイコン調整 */
  .header .nav a {
    font-size: 18px;
    line-height: 1.6;
    color: #0063b4;
  }
  .header .nav .sns {
    margin: 4px 0 0;
  }
  .header .nav .sns img {
    height: 22px;
  }

  /* 既存モバイルのロゴ幅は維持、少しだけ余白調整 */
  .header .logo {
    width: 46%;
    margin-left: 10px;
  }
}

/* iOSのバウンス時に透け対策（任意） */
@supports (backdrop-filter: blur(0)) {
  @media (max-width: 767px) {
    .header .nav {
      background: color-mix(in srgb, #fff 95%, transparent);
    }
  }
}
