/*==================================================
 Event Detail Common CSS
 Version 4.0
==================================================*/

/* =========================
  ① リセット
========================= */

* {
  box-sizing: border-box;
}

/*==================================
 01 Layout
==================================*/

/* event-container */
.event-container {
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* event-container-narrow */
.event-container-narrow{

    max-width:1080px;

    margin:auto;
}


/* event-header */
.event-header {
  border-left: 8px solid #4c9ac0;
  padding-left: 20px;
  margin: 10px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d7d7d7;
}

.event-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.3;
}


/* event-copy */
.event-copy {
  color: #4c9ac0;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}


/* event-title */


/* event-status */
.cta-open,
.cta-closed,
.cta-archive{
  display:none;
}

/* 募集中 */
.event-status-open .cta-open{
  display:block;
}

/* 開催終了 */
.event-status-closed .cta-closed{
  display:block;
}

/* アーカイブ */
.event-status-archive .cta-archive{
  display:block;
}

/* 開催前 */
.event-status-open .event-after{
  display:none;
}

/* 開催終了 */
.event-status-closed .summary-entry,
.event-status-closed .flyer-links{
  display:none;
}

.event-status-closed .event-after{
  display:block;
}

/* アーカイブ */
.event-status-archive .summary-entry,
.event-status-archive .flyer-links{
  display:none;
}

.event-status-archive .event-after{
  display:block;
}

/* 初期非表示 */
.event-closed-content,
.event-archive-content{
  display:none;
}


/* CLOSED */
.event-status-closed .event-cta{
  display:none;
}

.event-status-closed .event-closed-content{
  display:block;
}


/* ARCHIVE */
.event-status-archive .event-cta{
  display:none;
}

.event-status-archive .event-archive-content{
  display:block;
}



/*==================================
 02 Common Section
==================================*/

/* event-detail-section */

.event-detail-section {
  padding: 20px 0;
}

.event-detail-section+.event-detail-section{
    margin-top:24px;
}

.event-detail-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1f2937;
}



/* event-section */
.event-section{

    margin:30px 0;

}

@media(max-width:768px){

   .event-section{

      margin:22px 0;

   }

}


/* box-design14 */
.box-design14 {
  margin-bottom:20px;
  padding: 24px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.05);
}


/* box-design14-ttl */
.box-design14-ttl {
  position: relative;
  left: -35px;
  width: calc(100% + 35px);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  background: #4c9ac0;
  color: #fff;
  border-radius: 6px;
  font-size: 1.4rem;
}



/*==================================
 03 Common Button
==================================*/

/* event-btn */
.event-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:0 32px;

    border:none;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    line-height:1;

    cursor:pointer;

    transition:.25s ease;

    box-sizing:border-box;

}

/* Hover */

.event-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 28px rgba(0,0,0,.18);

}


/* event-btn-sm *//* Small */
.event-btn-sm{

    min-width:170px;

    height:44px;

    font-size:1rem;

}



/* event-btn-md *//* Medium（標準） */
.event-btn-md{

    min-width:230px;

    height:56px;

    font-size:1.18rem;

}


/* event-btn-lg *//* Large（CTA） */
.event-btn-lg{

    min-width:290px;

    height:62px;

    font-size:1.25rem;

}

/* 横幅いっぱい */

.event-btn-block{

    width:100%;

}


/*----------------------------------
カラー
----------------------------------*/

/* Primary */

.event-btn-primary{

    background:#1565c0;

    color:#fff;

}

.event-btn-primary:hover{

    background:#0d4e96;

    color:#fff;

}

/* White */

.event-btn-white{

    background:#fff;

    color:#1565c0;

}

.event-btn-white:hover{

    background:#f4f8fc;

}

/* Outline */

.event-btn-outline{

    background:#fff;

    border:2px solid #1565c0;

    color:#1565c0;

}

.event-btn-outline:hover{

    background:#1565c0;

    color:#fff;

}

/*----------------------------------
アイコン
----------------------------------*/

.event-btn i{

    font-size:.95em;

}


/*----------------------------------
Button Responsive
----------------------------------*/

@media(max-width:768px){

.event-btn-sm,
.event-btn-md,
.event-btn-lg{

    width:100%;

    min-width:100%;

}

.event-btn-lg{

    height:58px;

    font-size:1.08rem;

}

}


/*==================================
 04 Badge
==================================*/

/* event-badge */
.event-badge{

    display:inline-block;

    padding:6px 14px;

    border-radius:999px;

    font-size:.82rem;

    font-weight:700;

    line-height:1;

}



/* event-badge-primary */
.event-badge-primary{

    background:#1565c0;

    color:#fff;

}


/* event-badge-green */
.event-badge-green{

    background:#16a34a;

    color:#fff;

}


/* event-badge-orange */
.event-badge-orange{

    background:#ea580c;

    color:#fff;

}


/* event-badge-red */
.event-badge-red{

    background:#dc2626;

    color:#fff;

}



/*==================================
 05 Common Card
==================================*/

/* event-card */
.event-card{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    box-shadow:0 8px 24px rgba(0,0,0,.05);

    transition:.25s;

}

.event-card:hover{

    transform:translateY(-4px);

    box-shadow:0 14px 34px rgba(0,0,0,.10);

}


/*==================================
 06 Common Table
==================================*/

/* event-table */
.event-table{

    width:100%;

    border-collapse:collapse;

}

.event-table th{

    width:180px;

    padding:16px 18px;

    background:#f5f9fd;

    color:#1565c0;

    font-weight:700;

    border-bottom:1px solid #d9e4ef;

}

.event-table td{

    padding:16px 22px;

    border-bottom:1px solid #eef2f7;

    font-size:1.03rem;

}

/*==================================
 07 Event Image
==================================*/
/* event-image */
.event-image {
  width: 45%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(0,0,0,.12);
}

.event-image:hover {
  transform: scale(1.05);
  box-shadow:
    0 10px 25px rgba(0,0,0,.18);
  transition: .3s;
}


/* event-flyer */
.event-flyer-gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.event-flyer-gallery img {
  width: 80%;
  border-radius: 10px;
  cursor: pointer;
}


/* flyer-link */
.flyer-links {
  margin-top: 20px;
  text-align: center;
}


/* summary-flyer */
.summary-flyer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/*==================================
 08 Entry
==================================*/

/* entry-btn */
.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  width: auto;
  padding: 16px 50px;
  background: #ff6b00;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
}

.entry-note {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}


/* pdf-btn */
.pdf-btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.pdf-btn:hover{
  background:#1d4ed8;
}


/* archive-btn */
.archive-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:260px;
  padding:16px 30px;
  background:#4c9ac0;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  font-weight:700;
  transition:.3s;
}

.archive-btn:hover{
  background:#3a7d9e;
}



/* download-btn */
.download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:260px;
  padding:16px 30px;
  background:#16a34a;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  font-weight:700;
  transition:.3s;
}

.download-btn:hover{
  background:#15803d;
}


/* Button Hover */
.entry-btn,
.pdf-btn,
.archive-btn,
.download-btn {
  transition:
    background-color .3s ease,
    color .3s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.entry-btn:hover,
.pdf-btn:hover,
.archive-btn:hover,
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}




/*==================================
 09 Modal
==================================*/

/* event-modal */
.event-modal {
  position: fixed;
  inset: 0;
  background:
    rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.event-modal.active {
  display: flex;
}

.event-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.modal-prev{
  left:30px;
}

.modal-next{
  right:30px;
}


/* modal-close */
.modal-close{
  position:absolute;
  top:20px;
  right:30px;
  background:none;
  border:none;
  color:#fff;
  font-size:3rem;
  cursor:pointer;
  z-index:10001;
}


/* modal-nav */
.modal-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.15);
  border:none;
  color:#fff;
  width:60px;
  height:60px;
  border-radius:50%;
  font-size:2rem;
  cursor:pointer;
  transition:.3s;
}

.modal-nav:hover{
  background:rgba(255,255,255,.3);
}




/*==================================
 10 Responsive（共通）
==================================*/
/* ==================================
   Tablet
================================== */

@media (max-width:960px){
  .summary-grid{
    grid-template-columns:1fr;
    gap:25px;
  }

  .summary-info{
    min-width:auto;
    max-width:700px;
    width:100%;
    margin:auto;
  }

  .summary-flyer{
    width:100%;
  }

  .event-image{
    width:42%;
    max-width:260px;
  }

}

/* ==================================
   Smartphone
================================== */

@media (max-width:768px){

  /* タイトル */
  .event-header{
    padding-left:15px;
    margin:10px 0 15px;
  }

  .event-header h1{
    font-size:1.8rem;
    line-height:1.4;
  }

  .event-copy{
    font-size:0.95rem;
  }

  /* コンテンツ */
  .box-design14{
    padding:18px;
  }

  .box-design14-ttl{
    left:0;
    width:100%;
    font-size:1.1rem;
  }

  /* 開催概要 */
  .summary-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .summary-info{
    min-width:auto;
    width:100%;
  }

  /* 開催情報カード */
  .meta-card{
    gap:10px;
    padding:10px 12px;
  }

  .meta-label{
    min-width:90px;
    font-size:0.9rem;
  }

  .meta-value{
    font-size:0.95rem;
  }

  /* 特徴タグ */
  .event-highlight{
    gap:8px;
  }

  .event-highlight span{
    font-size:0.8rem;
    padding:6px 12px;
  }

  /* チラシ */
  .event-flyer-gallery{
    flex-direction:column;
    align-items:center;
    gap:15px;
  }

  .event-image{
    width:90%;
    max-width:320px;
  }

  /* PDFボタン */
  .flyer-links{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .pdf-btn{
    width:100%;
    max-width:280px;
    margin:auto;
  }

  /* 申込ボタン */
  .entry-btn{
    width:100%;
    min-width:auto;
    padding:15px;
  }

  /* おすすめ */
  .feature-grid{
    flex-direction:column;
    align-items:center;
  }

  .feature-card{
    width:100%;
    max-width:320px;
  }

  .after-buttons{
    flex-direction:column;
  }

  .archive-btn,
  .download-btn,
  .entry-btn{
    width:100%;
    min-width:auto;
  }

}


/* ==================================
   Small Smartphone
================================== */

@media (max-width:480px){
  .event-header h1{
    font-size:1.5rem;
  }

  .meta-card{
    flex-direction:column;
    text-align:center;
    gap:8px;
  }

  .meta-label{
    border-right:none;
    padding-right:0;
  }

  .meta-value{
    text-align:center;
  }

}



/*==================================
 11 Utility
==================================*/

/* hidden */
/* pc-only */
/* sp-only */





/* 開催終了後・アーカイブ：開催概要の申込エリアを非表示 */
body.event-status-closed .event-summary .summary-entry,
body.event-status-archive .event-summary .summary-entry {
    display: none !important;
}