/* ----------------------------------------------
共通設定
----------------------------------------------- */

html {
  scroll-behavior: smooth;
}

html.is-no-smooth {
  scroll-behavior: auto;
}

img {
  width: 100%;
}

a {
  transition: 0.4s ease;
}

body.is-locked {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 100px;
}

@media screen and (max-width: 1000px) {
  [id] {
    scroll-margin-top: 60px;
  }
}

/* ----------------------------------------------
フォント / カラー
----------------------------------------------- */
body {
  color: #333;
  font-size: 16px;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

:root {
  --primary: #8b1e24;
  --bg-gray: #f8f6f6;

  --text: "Noto Sans JP", sans-serif;
}

.-bg-gray {
  background-color: var(--bg-gray);
}

@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }
}

/* ----------------------------------------------
PC・SPの切り替え
----------------------------------------------- */
@media screen and (min-width: 768px) {
  .-pc {
    display: block;
  }

  .-sp {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .-pc {
    display: none !important;
  }

  .-sp {
    display: block;
  }
}

/* ----------------------------------------------
レイアウト
----------------------------------------------- */

.l-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 20px;

  position: relative;
  /* z-index: 1; */
}

.l-section {
  padding-block: 80px;
}

.l-pageHeadingSection {
  padding-top: 120px;
  padding-bottom: 80px;
}

.l-main {
  margin-top: 100px;
}

@media screen and (max-width: 1000px) {
  .l-main {
    margin-top: 60px;
  }
}

@media screen and (max-width: 767px) {
  .l-pageHeadingSection {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .l-section {
    padding-block: 60px;
  }
}

/* ----------------------------------------------
見出し
----------------------------------------------- */

.c-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
  font-weight: 700;
}

.c-heading p {
  font-size: 32px;
}

.c-heading span {
  color: var(--primary);
  font-size: 20px;
}

.c-heading__text{
  text-align: center;
}

.c-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 900;
  line-height: 1.2;
}

@media screen and (max-width: 767px) {
  .c-heading p {
    font-size: 20px;
  }

  .c-heading span {
    font-size: 16px;
  }


.c-heading__text{
  text-align: justify;
}

  .c-pageHeading__text {
    text-align: justify;
  }

  .c-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

/* ----------------------------------------------
下層 見出しブロック
----------------------------------------------- */

.l-pageHeadingSection .c-heading {
  margin-bottom: 40px;
}

.l-pageHeadingSection .l-container > .c-heading:last-child {
  margin-bottom: 0;
}

.c-pageHeading__text {
  text-align: center;
}

.c-pageHeading__btnWrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.c-pageHeading__btnWrap > p {
  font-size: 0.875em;
}

@media screen and (max-width: 767px) {
  .c-pageHeading__text {
    text-align: justify;
  }

  .c-pageHeading__btnWrap {
    margin-top: 20px;
  }
}

/* ----------------------------------------------
ボタン
----------------------------------------------- */

.c-btn {
  display: flex;
  gap: 0.5em;
  align-items: center;
  width: max-content;
  color: var(--primary);
  background-color: #fff;
  border: 1px solid var(--primary);

  font-weight: 700;
  padding: 0.5em 2.5em;
  border-radius: 5px;
  margin: 0 auto;
  cursor: pointer!important;
  text-decoration: none!important;
}

.c-btn.-no-margin {
  margin: 0;
}
.c-btn.-no-shrink {
  flex-shrink: 0;
}

.c-btn:has(i) {
  padding-left: calc(2.5em + 1.25em);
}

.c-btn > i {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.25em;
  transition: 0.4s ease;
}

.c-btn > i.-arrow {
  background: url(../img/icon-arrow.svg) no-repeat center / contain;
}

.c-btn > i.-window {
  background: url(../img/icon-window.svg) no-repeat center / contain;
}

.c-btn > i.-back-arrow {
  background: url(../img/icon-arrow.svg) no-repeat center / contain;
  transform: rotate(180deg);
}

.c-btn:has(i.-back-arrow) {
  padding-left: 2.5em;
  padding-right: calc(2.5em + 1.25em);
}

.c-btn > i.-download {
  background: url(../img/icon-download.svg) no-repeat center / contain;
}

.c-btn > i.-upload {
  background: url(../img/icon-upload.svg) no-repeat center / contain;
}

@media screen and (min-width: 768px) {
  .c-btn:hover {
    color: #fff;
    background-color: var(--primary);
  }

  .c-btn:hover > i.-arrow,
  .c-btn:hover > i.-back-arrow {
    background: url(../img/icon-arrow-wh.svg) no-repeat center / contain;
  }

  .c-btn:hover > i.-window {
    background: url(../img/icon-window-wh.svg) no-repeat center / contain;
  }

  .c-btn:hover > i.-download {
    background: url(../img/icon-download-wh.svg) no-repeat center / contain;
  }

  .c-btn:hover > i.-upload {
    background: url(../img/icon-upload-wh.svg) no-repeat center / contain;
  }
}

/* ----------------------------------------------
カード
----------------------------------------------- */
.c-card {
  display: block;
  background-color: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0px 0px 16px 0px #0000001a;
  height: 100%;
}

@media screen and (min-width: 768px) {
  a.c-card:hover {
    box-shadow: 0px 0px 16px 0px #8b1e2341;
  }
}

/* ----------------------------------------------
フェード
----------------------------------------------- */

.c-fade {
  opacity: 0; /* ← 最初透明 */
}

/* フェードイン + 下からふわっ
----------------------------------------------- */
.c-fade.is-active {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------
ヘッダー
----------------------------------------------- */
.c-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 997;
  box-shadow: 0 2px 8px #0000001a;

  background-color: #fff;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-header__logo > a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (min-width: 1001px) {
  .c-header {
    height: 100px;
  }

  .c-header__logo {
    width: clamp(10rem, 3.594rem + 10.25vw, 12.563rem);
  }

  .c-drawer {
    padding: 16px clamp(1.25rem, -1.875rem + 5vw, 2.5rem);
  }

  .c-globalNav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, -0.5rem + 2vw, 1.25rem);
    white-space: nowrap;
  }

  .c-globalNav__item {
    padding-block: 0.5em;
  }

  .c-globalNav__item > a,
  .c-globalNav__item > p {
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-size: clamp(0.75rem, 0.438rem + 0.5vw, 0.875rem);
  }

  .c-globalNav__item:hover > a,
  .c-globalNav__item:hover > p {
    color: var(--primary);
  }

  .c-globalNav__item:has(.c-globalNav__subList) {
    position: relative;
  }

  .c-globalNav__subList {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    min-width: 160px;
    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;

    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 16px 0px #8b1e241a;
  }

  .c-globalNav__item:hover .c-globalNav__subList {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .c-globalNav__subItem > a {
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-size: clamp(0.75rem, 0.438rem + 0.5vw, 0.875rem);
  }

  .c-globalNav__subItem > a:hover {
    color: var(--primary);
  }

  .c-globalNav__login > a {
    color: var(--primary);
    background-color: #fff;
    border: 1px solid var(--primary);
    border-radius: 5px;

    padding: 0.25em 0.75em;

    font-size: clamp(0.75rem, 0.438rem + 0.5vw, 0.875rem);
    font-weight: 700;

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

  .c-globalNav__login:hover > a {
    color: #fff;
    background-color: var(--primary);
  }
}

@media screen and (max-width: 1000px) {
  body.is-locked {
    overflow: hidden;
  }

  .c-header {
    height: 60px;
  }

  .c-header__logo {
    width: 140px;

    opacity: 1;
    visibility: visible;
  }

  .c-drawer {
    width: 100%;
    height: calc(100svh - 60px);
    padding: 40px 20px;

    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;

    background-color: var(--bg-gray);

    position: absolute;
    top: 60px;
    left: 0;

    overflow-y: scroll;
  }

  .c-drawer.is-open {
    opacity: 1;
    visibility: visible;
  }

  .c-globalNav {
    margin: 0 auto;
  }

  .c-globalNav__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .c-globalNav__item {
    position: relative;
    border-bottom: 1px solid #ccc;
  }

  .c-globalNav__item:after {
    content: "";
    position: absolute;
    top: 1em;
    right: 0.5em;

    width: 1em;
    height: 1em;

    background: url("../img/icon-arrow.svg") center / contain no-repeat;
  }

  .c-globalNav__item:has(.c-globalNav__subList):after {
    background: url("../img/icon-plus.svg") center / contain no-repeat;
  }

  .c-globalNav__item:has(.c-globalNav__subList).is-open:after {
    background: url("../img/icon-minus.svg") center / contain no-repeat;
  }

  .c-globalNav__item > a,
  .c-globalNav__item > p {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 0.85;
    padding: 1em 0.5em;
  }

  .c-globalNav__subList {
    display: none;
    margin-left: 0.75em;
    padding-bottom: 1em;
  }

  .c-globalNav__item.is-open .c-globalNav__subList {
    display: block;
  }

  .c-globalNav__subItem > a {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 0.85;
    padding: 0.5em;
  }

  .c-globalNav__login > a {
    color: var(--primary);
    background-color: #fff;
    border: 1px solid var(--primary);
    border-radius: 5px;

    padding: 0.25em 0.75em;

    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
}

/* ----------------------------------------------
ハンバーガーボタン
----------------------------------------------- */

@media screen and (min-width: 1001px) {
  .c-toggle {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  .c-toggle {
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;

    top: 0px;
    right: 0px;
    background-color: var(--primary);
  }

  .c-toggle::after {
    position: absolute;
    content: "MENU";
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 15%;
    color: #fff;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    transition: ease 0.4s;
  }

  .c-toggle.is-active::after {
    content: "CLOSE";
  }

  .c-toggle__icon {
    position: absolute;
    display: block;
    height: 1px;
    width: 32px;

    transform: translate(-50%, -50%);
    left: 50%;
    top: calc(50% - 8px);

    background: #fff;
    transition: ease 0.4s;
  }

  .c-toggle__icon:nth-child(1) {
    top: calc(50% + 8px - 8px);
  }

  .c-toggle__icon:nth-child(3) {
    top: calc(50% - 8px - 8px);
  }

  .c-toggle.is-active .c-toggle__icon:nth-child(1) {
    top: calc(50% - 8px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .c-toggle.is-active .c-toggle__icon:nth-child(2) {
    opacity: 0;
  }

  .c-toggle.is-active .c-toggle__icon:nth-child(3) {
    top: calc(50% - 8px);
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
  }
}

/* ----------------------------------------------
オーバーレイ
----------------------------------------------- */

.c-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 20;
}

/* 表示 */
.c-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------------
フッター
----------------------------------------------- */

.c-footer {
  background-color: #222;
  color: #ccc;

  padding: 80px 40px 20px 40px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 20px;
}

.c-footer__infoBox {
  grid-area: 1 / 1 / 2 / 2;
  font-size: 0.875rem;
}

.c-footer__infoBox h3 {
  color: #fff;
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 1em;
}

.c-footer__login {
  display: block;
  width: max-content;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.875rem;
  padding: 0.15em 1em;
}

.c-footerNav {
  display: flex;
  margin-left: auto;
  gap: 32px;

  font-size: 0.875rem;
  grid-area: 1 / 2 / 2 / 3;
}

.c-footerNav__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-footerNav__subList {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 0.75em;
}

.c-footer__bottomBox {
  grid-area: 2 / 1 / 3 / 3;
}

.c-footer__bottomBox p {
  width: 100%;
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid #ccc;
  margin-top: 1em;
  padding-top: 1em;
}

@media screen and (min-width: 768px) {
  .c-footer__login:hover {
    color: #222;
    background-color: #ccc;
  }

  .c-footerNav__item:hover > p {
    transition: 0.4s ease;
  }

  .c-footerNav__item:hover > a,
  .c-footerNav__item:hover > p {
    color: #fff;
  }

  .c-footerNav__subItem > a:hover {
    color: #fff;
  }
}

@media screen and (max-width: 767px) {
  .c-footer {
    padding: 40px 20px 20px 20px;
  }

  .c-footer__infoBox {
    grid-area: 1 / 1 / 2 / 3;
  }

  .c-footerNav {
    display: none;
  }

  .c-footer__login {
    margin: 0 auto;
  }
}

/* ----------------------------------------------
ページネーション
----------------------------------------------- */

.c-pagination {
  margin-top: 60px;
      display: flex;
    justify-content: center;
    gap: 8px;
}

.c-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.c-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 40px;
  height: 40px;

  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
}

.c-pagination .page-numbers:not(.prev):not(.next):not(.dots):not(.current) {
  color: var(--primary);
  border: 1px solid var(--primary);

  background-color: #fff;
}

.c-pagination .dots.page-numbers {
  width: auto;
}

.c-pagination .current.page-numbers {
  color: #fff;
  background-color: var(--primary);
}

.c-pagination .next.page-numbers,
.c-pagination .prev.page-numbers {
  position: relative;
}

.c-pagination .prev.page-numbers::after,
.c-pagination .next.page-numbers::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  background: url("../img/icon-arrow02.svg") center / contain no-repeat;
}

.c-pagination .prev.page-numbers:after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.c-pagination .next.page-numbers:after {
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 767px) {
  .c-pagination {
    margin-top: 40px;
  }

  .c-pagination .page-numbers {
    width: 32px;
    height: 32px;
  }
}

/* ----------------------------------------------
タグ
----------------------------------------------- */

.c-tagList {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.c-tag {
  display: inline-block;
  font-size: 0.75em;
  font-family: var(--text);
  font-weight: 500;
  padding: 0em 1em;
  border-radius: 5px;
  margin-top: 0.75em;
  border: var(--primary) 1px solid;
  background-color: #fff;
  color: var(--primary);
}

.c-tag.-red {
  background-color: var(--primary);
  color: #fff;
}

/* ----------------------------------------------
モーダル
----------------------------------------------- */

.c-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.c-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.c-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.c-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85%, 800px);
}

.c-modal__inner {
  border-radius: 5px;
  background: #fff;
  padding: 40px;
  overflow-x: scroll;
  width: 100%;
  max-height: calc(100svh - 200px);
}

.c-modal__close {
  position: absolute;
  top: -1.25em;
  right: -1.25em;

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

  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 100px;

  color: #fff;
  font-size: 20px;

  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .c-modal__btn:hover {
    transform: translateY(-5px);
  }
}

@media screen and (max-width: 767px) {
  .c-modal__inner {
    padding: 20px;
  }

  .c-modal__close {
    top: -16px;
    right: -16px;

    width: 32px;
    height: 32px;
  }
}

/* ----------------------------------------------
セレクトボックス
----------------------------------------------- */

.c-select {
  position: relative;
  display: block;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  text-align: center;
  font-weight: 700;
}

.c-select select {
  width: 100%;
  padding: 0.5em;
  text-align: center;
}

.c-select::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: solid 2px var(--primary);
  border-bottom: solid 2px var(--primary);
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}


/* ----------------------------------------------
form
----------------------------------------------- */

/*  form default
----------------------------------------------- */

label[for]{
  cursor: default;
}

/*  form
----------------------------------------------- */

.c-form__content{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.c-form__inner{
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-form__item{
  display: flex;
  gap: 40px;
}

.c-form__title{
  font-weight: bold;
  font-size: 1.125rem;
  line-height: 2;
}

.c-form__title.-information{
  width: 240px;
  flex-shrink: 0;
}

.c-form__title.-eventform{
    width: 200px;
  flex-shrink: 0;
}

.c-form__required{
  display: inline-block ;
  font-size: 0.85rem;
  color: #fff;
  background-color: var(--primary);
      padding: 0 1em;
  margin-left: 8px;
  border-radius: 5px;
}

.c-form__input{
  border: 1px solid var(--primary);
  padding:12px 20px;
  font-family: var(--text);
  border-radius: 5px;
  width: 100%;
  background-color: #ffffff;
}

.c-form__input.-textarea{
  height: 260px;
}

.c-form__select-wrap {
  position: relative;
  width: 100%;
}

.c-form__select {
  border: 1px solid var(--primary);
  padding: 12px 20px;
  font-family: var(--text);
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  appearance: none;
}

.c-form__select:invalid {
  color: #777777;
}

.c-form__select option {
  color: #333333;
}

.c-form__select-wrap::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: solid 2px var(--primary);
  border-bottom: solid 2px var(--primary);
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}



/* フォーム内小テキスト */
.c-form__small{
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 画像アップロードボタン */

.c-upload__btnWrap{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.c-form__upload{
  display: flex;
  align-items: center;
  width: max-content;
  color: var(--primary);
  background-color: #fff;
  border: 1px solid var(--primary);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 5px;
}

.c-form__hidden{
  display: none;
}




@media screen and (max-width: 767px) {

  .c-form__content{
    gap: 32px;
  }

  .c-form__inner{
    gap: 20px;
  }

  .c-form__item{
    flex-direction: column;
    gap: 8px;
  }

  .c-form__title{
    font-size: 1.125rem;
  }

  .c-form__required{
    font-size: 0.875rem;
  }
}


/*  form gray
----------------------------------------------- */

.c-form__gray {
  background-color: #FAFAFA;
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%; 
}

@media screen and (min-width: 1000px) {
  .c-form__gray {
    width: 1000px;
    margin-left: -50px;
  }
}

.c-form__grayInner{
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap:40px;
}

@media screen and (max-width: 767px) {
  .c-form__grayInner{
    gap: 20px;
  }
}

/*  form btn
----------------------------------------------- */

.c-submit__btn {
  display: inline-block;
  width: fit-content;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.5;
  padding: 12px 20px;
  border-radius: 5px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  margin: 0 auto;
  transition: 0.4s ease;
}

@media screen and (min-width: 1025px) {
  .c-submit__btn:hover{
    color: var(--primary);
    background-color: #ffffff;
    border: 1px solid var(--primary);
  }
}
