/* CSS Document */
/*
Theme Name: 岸和田貝塚のテーマ
Theme URI: https://xxxxxxxxx.co.jp/
Description: 岸和田貝塚のテーマです。
Version: 6.5
Author: C-PLUS株式会社
Author URI: https://www.c-plus-1.co.jp/
Screenshot: screenshot.png
*/

@charset "UTF-8";

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

ul li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

:root {
  --main-blue: #0b5c8f;
  --badge-bg: #e1f0f9;
  --arrow-light: #9dbcd3;
  --arrow-mid: #5a8cb3;
  --arrow-dark: #0b5c8f;
}

main {
  background-image: url(../images/bg-stripe.png);
  padding-bottom: 40px;
}

.fv {
  height: fit-content;
}

.fv img {
  display: block;
}

.nav-flex {
  display: flex;
  justify-content: center;
  background-color: #1071a8;
}

.nav-flex li {
  margin: 1em 0;
  text-align: center;
  color: #fff;
  border-right: #fff 1px solid;
}

.nav-flex li:last-child {
  border-right: none;
}

.li-eng {
  font-size: 1.6em;
}

.white-box {
  max-width: 1200px;
  width: 95%;
  margin: 40px auto;
  padding-bottom: 30px;
  border-radius: 15px;
  background-color: #fff;
}

.sec-title h2 {
  display: flex;
  align-items: center;
  line-height: 1;
  padding-top: 30px;
  width: 97%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Shippori Antique B1", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.title-ini {
  font-size: 5em;
}

.title-min {
  font-size: 1.7em;
  border-bottom: 1px solid #000;
  flex: auto;
}

.title-jp {
  font-size: 0.5em;
  letter-spacing: 0.2em;
}

.sec-content {
  margin-top: 50px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.mochimono {
  font-size: 1.4em;
}

.s_midashi {
  color: #fff;
  background-color: #004683;
  width: fit-content;
  padding: 0.4em 0.8em;
  border-radius: 10px;
  line-height: 1;
  margin-bottom: 0.8em;
  margin-top: 1.4em;
}

.btn {
  color: #fff;
  background-color: #004683;
  padding: 1em 2.2em;
  margin-top: 20px;
  border-radius: 50px;
}

.btn-box {
  margin-top: 50px;
  text-align: center;
}

.ivent_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

h3 {
  color: #fff;
  background-color: #1071a8;
  text-align: center;
  padding: 0.8em 0;
  margin-top: 30px;
}

/* 全体コンテナ */
.schedule-container {
  display: flex;
  align-items: flex-end;
  gap: 50px;
  color: var(--main-blue);
  font-weight: bold;
  margin: 30px auto 0;
  justify-content: center;
}

/* 日付ブロック */
.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}

/* バッジ（受付開始 / 受付終了） */
.badge {
  background-color: var(--badge-bg);
  color: var(--main-blue);
  width: 100%;
  text-align: center;
  padding: 6px 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* 日付コンテンツ全体 */
.date-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 5px;
}

/* 年 */
.year {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

/* 月日と曜日の組み合わせ */
.main-date {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  line-height: 0.9;
}

/* 月日 (1/15, 2/17) */
.day {
  font-size: 72px;
  letter-spacing: -0.03em;
}

/* 曜日・時間ブロック */
.time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 2px;
}

.day-of-week {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.time {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* 中央の矢印 (SVG) */
.arrow-container {
  display: flex;
  align-items: center;
  height: 60px;
  margin-bottom: 8px;
}

.arrow-svg {
  height: 48px;
  width: auto;
}

.event-text {
  margin-top: 40px;
  font-size: 1.4em;
}

.eve-mo {
  width: fit-content;
  margin: auto;
}

.bt-tel {
  color: #004683;
  font-size: 1.9em;
  font-weight: bold;
  font-family: sans-serif;
}

.contact-flex {
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  max-width: 100%;
}

.contact-flex img {
  height: auto;
  margin: 0 auto;
  width: fit-content;
}

footer {
  color: #fff;
  background-color: #063a69;
}

.f-flex {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.f_ti {
  color: #063a69;
  background-color: #fff;
  margin-right: 10px;
  padding: 0.3em 0.5em;
  border-radius: 5px;
}

.footer-text {
  width: fit-content;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.pc-del {
  display: none;
}

@media (max-width: 767px) {

  .pc-del {
    display: block;
  }

  .sp-del {
    display: none;
  }

  .schedule-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .mochimono {
    font-size: 1em;
  }

  .title-min {
    font-size: 1.5em;
  }

  .title-ini {
    font-size: 4em;
  }

  .sec-content {
    margin-top: 20px;
  }

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

  .arrow-svg {
    height: 30px;
    transform: rotate(90deg);
  }

  .event-text {
    font-size: 1em;
  }

  .bt-tel {
    font-size: 0.9em;
  }

  .contact-flex {
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    margin: 40px auto;
  }

  .footer-text {
    width: 90%;
  }

  .f-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /*==================================================
　5-2-4 MENUがCLOSEに
===================================*/

/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn {
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  position: relative;
  background: #74a9e3;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  /*アニメーションの設定*/
  position: absolute;
  left: 14px;
  height: 2px;
  border-radius: 5px;
  background: #fff;
  width: 45%;
}


.openbtn span:nth-of-type(1) {
  top: 13px;
}

.openbtn span:nth-of-type(2) {
  top: 19px;
}

.openbtn span:nth-of-type(3) {
  top: 25px;
}

.openbtn span:nth-of-type(3)::after {
  content: "Menu";
  /*3つ目の要素のafterにMenu表示を指定*/
  position: absolute;
  top: 5px;
  left: -2px;
  color: #fff;
  font-size: 0.6rem;
  text-transform: uppercase;
}

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

.openbtn.active span:nth-of-type(1) {
  top: 14px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 26px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(3)::after {
  content: "Close";
  /*3つ目の要素のafterにClose表示を指定*/
  transform: translateY(0) rotate(-45deg);
  top: 5px;
  left: 4px;
}

/*========= ナビゲーションのためのCSS ===============*/

/*アクティブになったエリア*/
#g-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
}

/*丸の拡大*/
.circle-bg {
  position: fixed;
  z-index: 3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ade9f2;
  /*丸のスタート位置と形状*/
  transform: scale(0);
  /*scaleをはじめは0に*/
  left: -50px;
  top: -50px;
  transition: all .6s;
  /*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive {
  transform: scale(50);
  /*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list {
  display: none;
  /*はじめは表示なし*/
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list {
  display: block;
  /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
  opacity: 0;
  /*はじめは透過0*/
  /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity: 1;
}

/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li {
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: .2s;
  /*0.2 秒遅らせて出現*/
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/*リストのレイアウト設定*/
#g-nav li {
  text-align: center;
  list-style: none;
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}


/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}

/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top: 15px;
}

.openbtn span:nth-of-type(2) {
  top: 23px;
}

.openbtn span:nth-of-type(3) {
  top: 31px;
}

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

}

.nav-flex li a{
    display: block;
    padding:10px 30px;
    text-decoration: none;
}

.nav-flex li{
    margin-bottom:20px;
}

/*==================================================
　5-3-3 左から右に線が伸びる（下部）
===================================*/
.nav-flex li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

.nav-flex li.current a,
.nav-flex li a:hover{
	color:#ffffff;
}

.nav-flex li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 2px;
    background:#ffffff;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: left top;/*左上基点*/
}

/*現在地とhoverの設定*/
.nav-flex li.current a::after,
.nav-flex li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}

.btn-box a:hover {
  color: #004683;
  background-color: #fff;
  border: #004683 1px solid;
  transition: 0.5ms;
}