/*
 Theme Name:   Arkhe Child
 Template:     arkhe
 Description:  Arkheの子テーマです。
 Version:      1.0.0
*/

/************************************
** スマホ時のみ改行
************************************/

.sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }
}
/**********************************************************
** 大会実施要項 全体版PDFリンク
**********************************************************/

.taikai-main-pdf-link {
  max-width: 1100px;
  margin: 36px auto 38px;
}

.taikai-main-pdf-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 18px 24px;
  border: 2px solid #174b78;
  border-radius: 12px;

  background: #ffffff;
  color: #174b78;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;

  box-shadow: 0 4px 14px rgba(23, 75, 120, 0.12);
  transition: 0.25s ease;
}
.taikai-main-pdf-link a::before {
  content: "\f019"; /* download */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.2em;
  line-height: 1;
}

.taikai-main-pdf-link a::after {
  content: "\f061"; /* arrow-right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.05em;
  line-height: 1;
}

.taikai-main-pdf-link a:hover,
.taikai-main-pdf-link a:focus-visible {
  background: #174b78;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(23, 75, 120, 0.22);
}

.taikai-main-pdf-label {
  font-size: 1.05rem;
}

.taikai-main-pdf-text {
  font-size: 0.92rem;
  opacity: 0.9;
}

/************************************
** スマホ
************************************/

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

  .taikai-main-pdf-link {
    margin: 20px auto 16px;
    padding: 0 16px;
  }

  .taikai-main-pdf-link a {
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 10px;
  }

  .taikai-main-pdf-label {
    font-size: 1rem;
  }

  .taikai-main-pdf-text {
    font-size: 0.86rem;
  }

}


/********************************************/
/* トップページのヘッダー内サイトタイトルを画像に変更 */

/* ===== 元のCSS：念のため残しておく =====
.home .l-header__left,
.home .l-header__right {
  display: none;
}

.home .l-header__body.l-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home .l-header__center {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home .l-header__logo.has-text {
  width: 100%;
  margin: 0;
}

.home .l-header__logo.has-text .c-headLogo {
  display: block;
  width: 100vw;
  max-width: 1300px;
  aspect-ratio: 1366 / 398;
  margin: 0 auto -20px;

  background-image: url("images/head_img.jpg") !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;

  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.home .l-header__body {
  min-height: 220px;
}

@media screen and (max-width: 834px) {
  .home .l-header__body {
    min-height: 0;
  }

  .home .l-header__logo.has-text .c-headLogo {
    margin-bottom: -30px;
  }
}
===== 元のCSSここまで ===== */


/* ===== 新しい調整版CSS：ヘッダー画像を画面横幅いっぱいに表示 ===== */

.home .l-header__left,
.home .l-header__right {
  display: none;
}

.home .l-header__body.l-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home .l-header__center {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home .l-header__logo.has-text {
  width: 100%;
  margin: 0;
}

.home .l-header__logo.has-text .c-headLogo {
  display: block;

  width: 100%;
  max-width: none;
  margin: 0 0 -45px;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.home .l-header__body {
  min-height: 220px;
}
@media screen and (min-width: 835px) {
	.home .l-header__logo.has-text .c-headLogo {
      aspect-ratio: 2170 / 480;

      background-image: url("images/head_img_pc.jpg") !important;
    }
}
@media screen and (max-width: 834px) {
	.home .l-header__logo.has-text .c-headLogo {
      aspect-ratio: 1366 / 398;

      background-image: url("images/head_img_sp.jpg") !important;
    }

  .home .l-header__body {
    min-height: 0;
  }

  .home .l-header__logo.has-text .c-headLogo {
    margin-bottom: -30px;
    background-size: cover;
  }
}

/********************************************/

.l-content .l-content__body{
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}
.l-footer__widgets{
	display: none;
}
main#main{
	background: #FFFFFF;
}
main#main .l-container{
	background: #eef5fb;
	padding-top: 30px;
	padding-bottom: 30px;
	margin-bottom: 40px;
}

#main .l-container h1{
	margin-bottom: 0;
}

.l-content__body.l-container,
.taikai-page .l-container {
	max-width: 1400px;
}
@media screen and (max-width: 768px) {

  /* 全体コンテナの左右余白を調整 */
  .l-content__body.l-container,
  .taikai-page .l-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

}

/** ヘッダー固定を解除 **/
.l-header {
  position: static !important;
}
/** タイトルリンクを無効化 **/
.l-header__logo a,
.c-headLogo {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}


/********************************/

/* PCでもヘッダータイトルを中央寄せ */
@media screen and (min-width: 1025px) {

  /* ヘッダー全体を中央寄せ */
  .l-header__body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* 左右はそのままでもOKだが念のため */
  .l-header__left,
  .l-header__right {
    flex: 0 0 auto;
  }

  /* 中央を伸ばす */
  .l-header__center {
    flex: 1;
    text-align: center;
  }

  /* タイトル */
  .l-header__logo,
  .l-header__logo a,
  .c-headLogo {
    display: inline-block;
    text-align: center;
    white-space: normal;
  }

}

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

  /* ハンバーガーメニュー・検索ボタン・左右エリアを非表示 */
  .l-header__drawerBtn,
  .l-header__searchBtn,
  .l-header__left,
  .l-header__right {
    display: none !important;
  }

  /* ヘッダー全体を1カラムにして幅を広げる */
  .l-header__body,
  .l-header__body.l-container {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* タイトルエリアを全幅にする */
  .l-header__center {
    grid-column: 1 / -1 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* タイトル文字を中央揃えで全幅表示 */
  .l-header__logo,
  .l-header__logo a,
  .l-header__logo.has-text,
  .l-header__logo.has-text .c-headLogo,
  .c-headLogo {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
    white-space: normal !important;
  }

}
/********************************/

.taikai-page {
  padding: 28px 0 30px;
  background: #f7f9fb;
}

.taikai-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 4px solid #1f4e79;
  letter-spacing: 0.03em;
}

.taikai-section {
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 78, 121, 0.08);
}

.taikai-section-title {
  margin: 0;
  padding: 14px 12px 10px 22px;
  background: linear-gradient(135deg, #1f4e79, #27699f);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.taikai-event-list {
  display: grid;
  gap: 0;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: #e5eaf0;
}

.taikai-event {
  padding: 20px 20px 18px 24px;
  background: #fff;
  border-right: 1px solid #e3e9ef;
  border-bottom: 1px solid #e3e9ef;
}

.taikai-event:last-child {
  border-right: none;
}

.taikai-event-list:has(.taikai-event:nth-child(3)) .taikai-event:nth-child(3n) {
  border-right: none;
}

.taikai-event-title {
  margin: 0 0 14px 0;
  padding: 0 0 0 14px;
  border-left: 5px solid #1f4e79;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.taikai-info {
  margin: 0;
}

.taikai-info div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0 8px 0;
  border-bottom: 1px dashed #d9e2ec;
}

.taikai-info div:last-child {
  border-bottom: none;
}

.taikai-info dt {
  font-weight: 700;
  color: #243447;
  font-size: 15px;
	padding-top: 2px;
	
}
.taikai-event .taikai-info > div:nth-child(3) dt,
.taikai-event .taikai-info > div:nth-child(4) dt {
  padding-top: 7px;
}


.taikai-info dd {
  margin: 0;
  color: #1f2933;
  font-size: 15px;
  line-height: 1.7;
}

.taikai-info dd a,
.taikai-link-list a {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 5px 12px;
  border: 1px solid #1f4e79;
  border-radius: 12px;
  color: #1f4e79;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: 0.2s ease;
}

.taikai-info dd a:hover,
.taikai-link-list a:hover {
  background: #1f4e79;
  color: #fff;
}


.taikai-link-list.kanren_chousei a{
  margin: 0px 6px 4px 0;
}

@media screen and (max-width: 768px) {
  .taikai-page {
    padding: 28px 0 40px;
  }

  .taikai-title {
    font-size: 21px;
    margin-bottom: 16px;
  letter-spacing: 0em;
	 text-align: center;
  }

  .taikai-section {
    margin-bottom: 0px;
    border-radius: 8px;
  }

  .taikai-section-title {
    font-size: 20px;
    padding: 13px 16px;
  }

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

  .taikai-event {
    padding: 20px 16px;
    border-right: none;
  }

  .taikai-event-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .taikai-info div {
    grid-template-columns: 86px 1fr;
    gap: 8px;
    padding: 6px 0 4px 0;
  }

  .taikai-info dt,
  .taikai-info dd {
    font-size: 14px;
  }
}

/* 実施要項（最優先で上書き） */
.taikai-info a.taikai-outline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 6px;

  background: #f57c00 !important;
  color: #fff !important;
  border: none !important;

  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

/* PDFラベル */
.taikai-info a.taikai-outline-link::before {
  content: "PDF";
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #fff;
  color: #f57c00;
  font-size: 10px;
  font-weight: 700;
}

/* ホバー */
.taikai-info a.taikai-outline-link:hover {
  background: #e65100 !important;
  color: #fff !important;
}


/********************************/


/* ページ内ナビ */
.taikai-anchor-nav {
  display: flex;
  flex-wrap: wrap;
	justify-content: center; /* 追加：ボタンを中央寄せ */
  gap: 12px;
  margin: 0px auto 6px;
  padding: 18px 20px;
  background: #eef5fb;
  border-left: 6px solid #1f4e79;
  border-radius: 10px;
	max-width: 1100px;
}

/* ナビボタン */
.taikai-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #1f4e79;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(31, 78, 121, 0.2);
}

/* 矢印アイコン */
.taikai-anchor-nav a::after {
  content: "▼";
  margin-left: 8px;
  margin-bottom: 3px;
  font-size: 16px;
  display: inline-block;
  transform: translateY(1px);
}

/* ホバー */
.taikai-anchor-nav a:hover {
  background: #163b5c;
  color: #fff;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .taikai-anchor-nav {
    padding: 14px;
  }

  .taikai-anchor-nav a {
    width: 100%;
  }
}


/********************************/
/*********** セクション全体をgrid化 *********************/
.taikai-page .l-container {
  display: grid;
  gap: 28px;
}

/*********** PC時だけ2列 *********************/
@media screen and (min-width: 769px) {
  .taikai-page .l-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*********** 見出しと1列セクションは横幅いっぱい *********************/
.taikai-title,
.taikai-section.is-full {
  grid-column: 1 / -1;
}


/*********** 競技内ページリンク *********************/

.taikai-sub-anchor-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 0 0;
  padding: 18px 20px;
  background: #f4f8fb;
  border-radius: 8px;
}

.taikai-sub-anchor-nav a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #1f5a89;
  border-radius: 999px;
  background: #fff;
  color: #1f5a89;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: 0.2s ease;
}

.taikai-sub-anchor-nav a::after {
  content: "↓";
  margin-left: 6px;
  font-size: 14px;
  position: relative;
  top: -3px;
}

.taikai-sub-anchor-nav a:hover {
  background: #1f5a89;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .taikai-sub-anchor-nav {
    padding: 0px;
  }

  .taikai-sub-anchor-nav a {
    text-align: center;
	  margin: 0;
	  padding: 6px 10px;
  }

  .taikai-sub-anchor-nav a:last-child {
    margin-bottom: 0;
  }
	.taikai-sub-anchor-nav a::after {
	  content: none;
	}

}



