:root {
  --header-height: 86px;
  --space-page-bottom: 0;
}
/* ------------------------------
  Main Visual Area
------------------------------ */
.c-main-visual {
  width:100%;
  margin-top: var(--header-height);
  padding: 0;
}
.c-main-visual__inner {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 800px;
  background-image: url("../images/top/hero.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
}
.c-main-visual__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0.0) 70%
  );
  z-index: 1;
}
.c-site_title {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  border: #fff solid 1px;
  box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: bold; /* 太字にする */
}
.c-site-caption {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  font-weight: normal;
}

/* ------------------------------
  Banner Area
------------------------------ */
.c-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  height:80px;
  margin: 0 auto;
  background: #FFFAE0;
}

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


/* ------------------------------
  Wrap
------------------------------ */
.wrap {
  margin-top: var(--header-height);
  margin-bottom: var(--space-page-bottom);
  padding-top:34px;
}

 .top .wrap {
  margin-top: 0;
  padding-top:0;
}

.content-area {
  margin: 0 auto;
  max-width: 1200px;
  padding-inline: 24px;
}

.top .content-area {
  padding-top: 34px;
}

/* ------------------------------
  Heading (h2)
------------------------------ */
.c-page-title {
  font-size: 1.6rem;
  border-bottom: 3px solid #1679b8;
  padding-bottom: 4px;
  margin-bottom: 24px;
}

/* ------------------------------
  Heading (h3)
------------------------------ */
.c-heading-sub,
.wp-block-heading {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.c-heading-sub::before,
.wp-block-heading::before {
    content: "";
    width: 27px;
    height: 27px;
    margin-right: 5px;
    background: url(../images/icon/leaf.png);
    background-size: contain;
}

.wp-block-separator {
    margin: 32px 0;
}

/* ===============================
  Pagination
=============================== */
.c-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  height: 40px;
  margin: 0 4px;

  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;

  color: #1679b8;
  border: 1px solid #d7e6f2;
  border-radius: 9999px;
  background-color: #fff;
}
.c-pagination .page-numbers.current {
  color: #fff;
  background-color: #1679b8;
  border-color: #1679b8;
  pointer-events: none;
}
.c-pagination a.page-numbers:hover {
  background-color: #f0f7fc;
}

/* ===============================
  Button
=============================== */
.c-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  word-break: break-word;
  color: #fff;
  background-color: #1679b8;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
}
.c-button:hover,
.wp-block-button__link:hover {
  text-decoration: none;
  background-color: #166fa3!important;
}

/* ------------------------------
  Anchor
------------------------------ */
.anchor-target {
  scroll-margin-top: var(--header-height);
}


/* ===============================
  News list
=============================== */
.c-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------------------------
  News box
------------------------------ */
.c-news-box {
  padding: 20px;
  border: 1px solid #ddd;
  background-color: #FFFAE0;
}

.c-news-box::after {
  content: "";
  display: block;
  clear: both;
}

.c-news_title {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
}

.c_news_img {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 300px;
}

.c-news_img .c_thumb {
  float: left;
  margin: 0 20px 20px 0;
}

.c_news_content {
  margin-top: 10px;
  line-height: 1.7;
}

/* ===============================
  Schedule
=============================== */
.schedule-group{
  margin-bottom:24px;
  padding-bottom:0;
}

.c-schedule-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    text-align: left;
}
.c-schedule-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}
.c-schedule-row p {
    margin-bottom: 0;
}
.c-schedule-agenda,
.c-schedule-place {
    padding-left: 2em;
}

.c-schedule-note {
    font-size: 14px;
}

/* ===============================
  Division
=============================== */
.division-group{
  margin-bottom:40px;
  padding-bottom:0;
}
.card-list {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.card-list .card {
    box-sizing: border-box;
    width: 47%;
    max-width: 562px;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
}

.card-list .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.card-list .card-body p {
    margin-bottom: 0;
}

.card-list .card-body .card-meeting {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 5em;
    line-height: 2em;
    font-size: 14px;
    text-align: center;
    color: #fff;
    background-color: #1679b8;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

/* ===============================
  Contact
=============================== */
.c-contact {
  background-color: #fffae0;
  margin-top:64px;
}
.c-contact__inner {
  max-width: 100%;
  padding:32px;
  text-align:center;
}
.c-contact__title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.c-contact__text {
  margin-bottom: 20px;
}
.c-contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wp-block-separator {
    margin: 32px 0;
}

/* =========================
   Breakpoints
   =========================
   --bp-lg: 1200px
   --bp-sm: 768px
*/

/* desktop */
@media screen and (max-width: 1200px){
  /* ------------------------------
    Anchor
  ------------------------------ */
  :root {
    --header-height: 60px;
  }

  .anchor-target {
    scroll-margin-top: var(--header-height);
  }
  .c-main-visual__inner{
    height: 50vh;
    min-height: 240px;
    max-height: 360px;
  }
  .c-site_title {
    top: 10%;
    text-align: center;
    padding: 16px;
  }
  .c-site-caption {
    font-size: 16px;
  }

}
/* tablet（iPad mini含む） */
@media screen and (max-width: 768px){
  .content-area {
    padding-inline: 16px;
  }
  .c-site-caption {
    font-size:14px;
  }
  /*ヘッダー*/
  .c-heading-sub,
  .wp-block-heading {
      font-size: 16px;
  }
  /*ページネーション*/
  .c-pagination {
    margin-top: 24px;
  }
  .c-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }
  /*画像*/
  .c-news_img {
    display: flex;
    justify-content: center;
  }
  .c-news_img .c_thumb {
    float: none;
  }
  .wp-block-media-text__media img {
    width: 100%;
    max-width: 240px;
    margin: 0 auto 12px;
    display: block;
  }
  .card-list {
      justify-content: center;
      gap: 20px;
  }
  .card-list .card {
      width: 100%;
  }

  .card-list .card-body {
      gap: 0;
  }
  .card-list .card-body p,
  .schedule-row p {
      font-size: 14px;
  }
  .c-header__logo span {
      font-size: 14px;
  }
  .wp-block-separator {
      margin: 24px 0;
  }
}



/* ------------------------------
  ナビここから
---------------------------------*/
body.is-nav-open {
  overflow: hidden;
}
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #fff;
  border-bottom: 1px solid #eaebe4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  z-index: 100;
}
.c-header__main{
  display:flex;
  align-items: baseline;
}
.c-header__inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  padding: 0 calc(20px + 20 * (100vw - 1000px) / 360);
}

/* ===== Logo ===== */
.c-header__logo img {
  width: 70px;
  height: auto;
  vertical-align: middle;
}
.c-header__logo span {
  display: inline-block;
  padding-left: 10px;
  font-size:24px;
  color:#666;
}
.c-header__logo a{
  text-decoration: none;
}

/* ===== Hamburger ===== */
.c-header__hamburger {
  display: none;
}

/* グロナビ */
.global-nav {
  margin-left: auto;
}
.global-nav .menu {
  display: flex;
  align-items: center;
}
.global-nav .menu li {
  list-style-type:none;
}
.global-nav .menu li::marker {
  content: none;
}
.global-nav .menu-item {
  position: relative;
  padding: 0 10px;
}

/* 親リンク */
.global-nav .menu > .menu-item > a {
  display: inline-block;
  padding: 18px 0;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

/* 下線アニメーション */
.global-nav .menu > .menu-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 16px;
  width: 100%;
  height: 2px;
  background: #222;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.global-nav .menu > .menu-item > a:hover::after,
.global-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* 区切り線 */
.global-nav .menu-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #d2d2d2;
}
.global-nav .menu-item:last-child::after {
  display: none;
}

/* サブメニュー */
.global-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 1000;
}
.global-nav .menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* サブメニューの中身 */
.global-nav .sub-menu .menu-item {
  padding: 0;
}
.global-nav .sub-menu a {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  padding: 6px 10px;
  text-decoration: none;
}
.global-nav .sub-menu a:hover {
  background: #1679b8;
  color: #fff;
}

.global-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    z-index: 1000;
}
.global-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* ===============================
  Footer
=============================== */
.c-footer {
  background-color: #f5f5f5;
  padding: 40px 0 20px;
  font-size: 0.875rem;
}

.c-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.c-footer__nav {
  margin-bottom: 20px;
}

.c-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.c-footer__nav a {
  color: #333;
}

.c-footer__copyright {
  text-align: center;
  color: #666;
  font-size: 0.75rem;
}

/* ==============================
  Tag component
============================== */
.c-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 5px;
  font-size: 11px;
  line-height: 1;
  border-radius: 5px;
  background: #b9e8ff;
  color: #666;
}

/* 状態：終了 */
.c-tag--end {
  background-color: #cfd6db;
  color: #263238;
}

/* ==============================
  お問い合わせ
============================== */
.wpcf7 {
    max-width: 600px;
    margin: 24px auto;
}

/* text / email 共通 */
form input[type='text'],
form input[type='email'] {
    display: block;
    width: 250px;
    padding: 5px;
    border: 1px solid #cfd3d7;
    border-radius: 5px;
}

/* textarea */
form textarea {
    display: block;
    width: 95%;
    padding: 5px;
    border: 1px solid #cfd3d7;
    border-radius: 5px;
}

/* =====================================================
   Responsive
   - 1200px: Header / Global Nav (SP layout)
   - 350px : Logo text hide
===================================================== */
@media screen and (max-width: 1200px) {
  .c-header {
    height: var(--header-height);
  }

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

  .c-header__inner {
    flex-direction: column;
    height: 60px;
    padding: 0;
  }

  .c-header__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding-left: 10px;
  }

  .c-header__logo img {
    width: 45px;
  }

  /* Hamburger */
  .c-header__hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    width:60px;
  }

  .c-header__hamburger-inner {
    position: relative;
    width: 28px;
    height: 20px;
  }

  .c-header__hamburger-inner span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #222;
    border-radius: 1px;
  }

  .c-header__hamburger-inner .top { top: 0; }
  .c-header__hamburger-inner .middle { top: 9px; }
  .c-header__hamburger-inner .bottom { bottom: 0; }

  .c-header__hamburger-text {
    font-size: 12px;
    font-weight: bold;
    color: #222;
  }

  .c-header__hamburger-text .is-close {
    display: none;
  }

  /* × 表示 */
  .c-header__hamburger-inner.is-active .top {
    top: 9px;
    transform: rotate(45deg);
  }

  .c-header__hamburger-inner.is-active .middle {
    display: none;
  }

  .c-header__hamburger-inner.is-active .bottom {
    top: 9px;
    bottom: auto;
    transform: rotate(-45deg);
  }

  /* テキスト切り替え */
  .c-header__hamburger-inner.is-active + .c-header__hamburger-text .is-open {
    display: none;
  }

  .c-header__hamburger-inner.is-active + .c-header__hamburger-text .is-close {
    display: inline;
  }


/* ===============================
   Navigation (SP)
================================ */

.global-nav, .global-nav .menu {
  justify-content: flex-start;
  align-items: stretch;
}
.global-nav {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  width: 100vw;
  background-color: #fff;
  z-index: 999;
}

/* メニュー縦並び */
.global-nav .menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 15px 0 60px;
  padding: 0 20px;
}

/* 親メニュー項目 */
.global-nav .menu-item {
  padding: 0 24px;
  border-bottom: 1px dotted #d2d2d2;
  text-align: left;
}
.global-nav .menu-item::after {
    content: none;
}

/* 下線アニメーション */
.global-nav .menu > .menu-item > a::after {
  content: none;
}
.global-nav .menu > .menu-item > a:hover::after,
.global-nav .current-menu-item > a::after {
  transform:none;
}

/* 親リンク */
.global-nav .menu > .menu-item > a {
  display: block;
  width: 100%;
  text-align: left;
}

/* サブメニューあり項目 */
.global-nav .menu-item.menu-item-has-children > a {
  padding-right: 32px;
}
.global-nav .menu-item.menu-item-has-children > a::before {
  content: '＋';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #222;
}
/* open状態 */
.global-nav .menu-item-has-children:hover > .sub-menu {
  display: none;
}
.global-nav .menu-item-has-children.is-open > a::before {
  content: '−';
}

/* サブメニュー */
.global-nav .sub-menu {
  width: 100%;
  padding: 5px;
  padding-left:2em;
  border-bottom: #fff;
  box-shadow:none;
}


/* サブメニュー項目 */
.global-nav .sub-menu .menu-item {
  width: 100%;
  padding: 5px;
  padding-left:2em;
  border-bottom: #fff;
}

}
@media screen and (max-width: 768px) {
  .c-contact__text {
    margin-bottom: 16px;
  }
  .c-contact__tel {
    font-size:1.2rem;
    text-align:left;
  }
  .c-contact__fax {
    font-size:1.0rem;
    text-align:left;
  }
}
@media screen and (max-width: 350px) {
  .c-header__logo span{
    display:none;
  }
}
