/* -----------------------------
   common CSS
----------------------------- */

/* リセットと基本設定 */
* {
  margin: 0;  
  padding: 0;
  box-sizing: border-box;
}

body {

  background-color: #f9f9f9;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}



/* =========================
   ヘッダー start
========================= */
/* おしゃれな header + ナビメニュー デザイン */
header {
  background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 8px 24px rgba(0, 0, 0, 0.04);
  border-top: 1px solid #ddd;
}

.navbar .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav01 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 27px;
  padding: 0px;
  margin: 0;
  list-style: none;
}

.nav01 ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav01 ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background: #008080;
  transition: width 0.3s ease;
}

.nav01 ul li a:hover {
  color: #008080;
}



.nav01 ul li:first-child a::after {
  display: none;
  margin-top: 20px;
}

.nav-logo {
  height: 50px;
  margin-right: 10px;
  display: block;
  vertical-align: top;
}

.nav01 ul li a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav01 ul li a:hover::after {
  width: 100%;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #00c3aa;
  transition: width 0.3s;
}

.nav-link:hover {
  color: #00c3aa;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #00c3aa;
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
}



.hero h2 {
  font-size: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* セクション共通 */
.section {
  background-color: #fff;
  padding: 60px 20px;
  box-shadow: 0px 0px 10px -2px #000;
}

.section h2 {
  font-size: 1.8rem;
  background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  border-left: 6px solid #2a7365;
  padding-left: 12px;
  margin-bottom: 25px;
}

.section p,
.section li {
  font-size: 1rem;
}

.section ul {
  list-style: disc;
  padding-left: 30px;
}

.section li {
  margin-bottom: 10px;
}

/* フッター */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (min-width: 600px) {
  body {
    font-size: 17px;
  }

  header h1 {
    font-size: 2.6rem;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  nav ul li a {
    font-size: 1.1rem;
  }
}


#headerwrap {
  position: static; /* 初期は固定しない */
  width: 100%;
  transition: all 0.3s ease;
  z-index: 1000;
}
#headerwrap.fixed {
  position: fixed;
  top: 0;
  left: 0;
   background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 8px 24px rgba(0, 0, 0, 0.04);
  border-top: 1px solid #ddd;
}



/*======================================
        header end
======================================*/


/*======================================
ハンバーガーメニュー start
======================================*/

.header-container_03 {
  position: fixed;
  background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  height: 73px;
  font-family: serif;
  z-index: 99999;
}

.header__navi_03 {
  position: fixed;
  top: 68px; /* メニューボタンの下に出る */
  left: 0;
  width: 100%;
  background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  z-index: 111111111;

}

.header__navi_03.active {
  max-height: 500px; /* 展開時の高さ */
}

.header__navi_03 ul {
  padding-top: 48px;
  display: block;
  text-align: center;
}

.header__navi_03 li {
  list-style: none;
  margin-bottom: 24px;
}

.header__navi_03 li a {
  color: #333;
  text-decoration: none;
}

/* メニューボタン */
.sp-menu-btn_03 {
  background: transparent;
  color: #333;
  border: none;
  position: absolute;
  left: 10px;
  top: 10px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
}

.sp-menu-btn_03 span {
  display: block;
  position: absolute;
  width: 33px;
  right: 15px;
  transition: 0.3s ease-in-out;
  font-size: 10px;
}
img.logo-image {
    width: 146px;
}

.sp-menu-btn_03 .line {
  height: 1px;
  background: #333;
}

.sp-menu-btn_03 span:nth-child(1) {
  top: 20px;
}

.sp-menu-btn_03 span:nth-child(2) {
  top: 28px;
}

.sp-menu-btn_03 span:nth-child(3) {
  top: 36px;
}

/* メニューが開いているときのボタン */

.sp-menu-btn_03.active span:nth-child(1) {
  top: 28px;
  transform: rotate(-45deg);
}

.sp-menu-btn_03.active span:nth-child(2) {
  transform: rotate(45deg);
}

.sp-menu-btn_03.active .menu  {
  font-size:0;
}

.header-container_03 h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-weight: normal;
}
.mi-logo {
  position: fixed;
  right: 20px;
}
/* 画面幅が921px以上（PC表示）ではハンバーガー関連を非表示 */
@media screen and (min-width: 921px) {
  .header-container_03 {
    display: none;
  }

}

/* 画面幅が920px以下（スマホ/タブレット）で表示 */
@media screen and (max-width: 920px) {
  .header-container_03{
    display: block;
  }

  div#topicswrap {
    margin-top: 68px;
}
#mv {
margin-top: 60px;
}

  .header-container_03 {
    display: block; /* transform で制御するので block にしておく */
  }

  .navbar {
    display: none;
}
#slide_wrapp {
  margin-bottom: 30px;
}
}

.header01-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 34px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/*======================================
ハンバーガーメニュー end
======================================*/


/*======================================
フッター start
======================================*/
/* ベース設定 */
.site-footer {
  background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 60px 20px 30px;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* コンテナ配置 */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* ロゴ・住所・TEL */
.footer-logo-section {
  flex: 1 1 300px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2a7365;
  line-height: 1.4;
}

.footer-logo span {
  font-size: 1.2rem;
  color: #418c7e;
  font-weight: 500;
}

.footer-address,
.footer-tel {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.footer-tel a {
  color: #418c7e;
  text-decoration: none;
}

.footer-tel a:hover {
  text-decoration: underline;
}

/* リンクメニュー */
.footer-links {
  flex: 1 1 300px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 20px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #418c7e;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ボトム */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #999;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-links ul {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    font-size: 1.3rem;
  }
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  text-align: left;
}

.footer-links li {
  flex: 1 1;
  min-width: 140px;
}

.footer-links li.long-link {
  flex-basis: 100%; /* 長いリンクは改行して独立させる */
}

.footer-links a {
  display: inline-block;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  white-space: nowrap; /* 改行防止 */
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #418c7e;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* モバイル表示 */
@media (max-width: 768px) {
  .footer-links ul {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links li {
    min-width: auto;
  }

  .footer-links a {
    white-space: normal; /* モバイルでは改行OK */
  }
}

/* === トップへ戻るボタン === */
#pageTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

#pageTop a {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(90deg, #1e90ff, #00bcd4);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

#pageTop a:hover {
  background: #0d0a3d;
}

/*=======================================
        フッター end
=======================================*/

/*=======================================
        looding start
=======================================*/

#loading-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-content {
  text-align: center;
  transform: translateY(0);
  transition: transform 0.8s ease;
}

.loading-logo {
  width: 100px;
  margin-bottom: 20px;
  animation: popIn 0.6s ease-in-out;
}

.loading-text {
  font-size: 22px;
  font-weight: 600;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: #444;
  letter-spacing: 2px;
}

.spinner {
  display: inline-block;
  margin-left: 5px;
  font-size: 24px;
  color: #777;
  animation: spin 2s linear infinite;
}

.fade-in {
  display: flex !important;
  animation: fadeIn 0.8s forwards;
}

.fade-out {
  animation: fadeOutSlideUp 0.8s forwards;
}

/* アニメーション */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-50px); }
}

@keyframes popIn {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.spinner-img {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  animation: spin 1.2s linear infinite, hueRotate 2.5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  transform-origin: center center;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hueRotate {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}



/*=======================================
        loading end
=======================================*/

