/* CSS変数 */
:root {
  --color-general: #9ACD32;
  --color-medical: #20B2AA;
  --color-professionals: #6B8E23;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-light: #F5F5DC;
  --color-gray-medium: #D3D3D3;
  --color-gray-dark: #A9A9A9;
  --font-family: 'Zen Maru Gothic', sans-serif;
  --font-size-xs: 13px;
  --font-size-sm: 15px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-xxl: 24px;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style-type: none;
  margin: 0;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  font-size: 16px;
}

.container {
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-white);
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--color-black);
  margin: 0;
}

.logo-text img {
  width: 400px;
  height: auto;
  max-height: 95%;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item {
  text-decoration: none;
  color: var(--color-black);
  font-size: var(--font-size-lg);
  font-weight: bold;
  padding: 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.menu-item:hover {
  background-color: var(--color-gray-light);
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFF;
  padding: 90px 20px 0;
  z-index: 100;
  width: 90%;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

/* ナビゲーションカード */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  justify-content: center;
  margin: auto;
  padding: 80px 0 0px 0px;
  width: 100%;
  max-width: 1200px;
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  border-radius: 15px;
  text-decoration: none;
  color: var(--color-white);
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s ease;
    border:1px solid #fff;
}

.nav-card h2 {
  display: block;
  width: 100%;
  font-size: 22px;
  background: url("../img/ar_white.svg") no-repeat right center;
}

.nav-card:hover {
  transform: translateY(-5px);
}

.nav-card--general {
  background-color: var(--color-general);
}

.nav-card--medical {
  background-color: var(--color-medical);
}

.nav-card--professionals {
  background-color: var(--color-professionals);
}

.arrow {
  width: 0;
  height: 0;
  border-left: 10px solid var(--color-white);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 20px;
}

@media screen and (max-width: 768px) {
  .nav-cards {
    grid-template-columns: 1fr;
  }
}

/* SNSセクション */
.sns-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 20px;
  background-color: var(--color-white);
}

.sns-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-black);
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.sns-icon {
  font-size: 32px;
}

/* コンテンツセクション */
.content-section {
  display: flex;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  width: 300px;
  padding: 60px 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--color-white);
}

.section--general .section-header {
  background-color: var(--color-general);
}

.section--medical .section-header {
  background-color: var(--color-medical);
}

.section--professionals .section-header {
  background-color: var(--color-professionals);
}

.section-title h2 {
  font-size: var(--font-size-xxl);
  font-weight: normal;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: var(--font-size-sm);
  font-weight: normal;
}

.section-content {
  flex: 1;
}

.section-description {
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.6;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.button-grid li {
  background-color: var(--color-gray-light);
  border-radius: 5px;
}

.content-button {
  border: none;
  padding: 20px 40px 20px 20px;
  font-size: var(--font-size-md);
  font-weight: normal;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-black);
}

.content-button:hover {
  background-color: #ffe8cb;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-black);
}

#general .content-button {
  background-image: url("../img/ar-orange.svg");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

#medical .content-button {
  background-image: url("../img/ar-bluegreen.svg");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

#professionals .content-button {
  background-image: url("../img/ar_blue.svg");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

#professionals .content-button.content-button--login {
  background: url("../img/icon-member.svg") no-repeat right 7px center var(--color-professionals);
  color: var(--color-white);
}

.content-button--login:hover {
  background-color: #5a7a1f;
  color: var(--color-white);
}

/* ニュースセクション */
.news-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-black);
  margin-bottom: 20px;
}

.news-header h2 {
  font-size: var(--font-size-xl);
  font-weight: bold;
}

.view-all-button {
  background-color: #32B44A;
  color: var(--color-white);
  border: none;
  border-radius: 20px;
  padding: 10px 25px;
  font-size: var(--font-size-md);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.view-all-button:hover {
  background-color: #5a7a1f;
  text-decoration: none;
  color: var(--color-white);
}

.news-list {
  border-bottom: 1px solid var(--color-gray-medium);
}

.news-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-gray-medium);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li .title {
  width: 100%;
  margin: 0;
}

.news-list li .title a {
  color: var(--color-black);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.news-list li .title a:hover {
  color: var(--color-general);
  text-decoration: underline;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-gray-medium);
  font-size: var(--font-size-md);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item .date {
  width: 7em;
}

.news-item .title {
  width: calc(100% - 7em);
}

/* サブコンテンツ */
.sub-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  gap: 15px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sub-button {
  background-color: var(--color-gray-light);
  border: none;
  border-radius: 5px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-black);
}

.sub-button:hover {
  background-color: #d9f8ff;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-black);
}

.sub-icon {
  padding-left: 1em;
}

/*バナー*/
.contents-banner{
    margin: 10px auto;
}
.contents-banner ul{
    display: table;
    margin: auto;
}
.contents-banner ul li{
    display: table-cell;
    vertical-align: middle;
}
.contents-banner ul li img{
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* フッター */
.footer {
  background-color: var(--color-white);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-banners {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.banner-item {
  width: 200px;
  height: 80px;
  background-color: var(--color-gray-medium);
  border-radius: 5px;
}

.footer_navGlobal {
  display: flex;
  justify-content: center;
  gap: .6em;
  margin-bottom: 20px;
}

.footer_navGlobal a {
  text-decoration: none;
  color: var(--color-black);
  font-size: var(--font-size-xs);
}

.footer_navGlobal a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-gray-dark);
}

/* タブレット対応 (768px～1024px) */
@media screen and (max-width: 1024px) {
  .header {
    padding: 0 20px;
  }

  .nav-cards {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-card {
    min-width: 90%;
    max-width: 400px;
  }

  .content-section {
    flex-direction: column;
    gap: 20px;
  }

  .section-header {
    width: auto;
    min-width: auto;
    padding: 40px 20px;
  }

  .button-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer-banners {
    flex-wrap: wrap;
    gap: 10px;
  }

  .banner-item {
    width: 49%;
    height: 60px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* モバイル対応 (768px以下) */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: var(--font-size-xl);
  }

  .nav-card {
    padding: 30px 15px;
    font-size: var(--font-size-xl);
    min-width: 100%;
  }

  .sns-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .content-section {
    padding: 30px 15px;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-button {
    padding: 15px;
    min-height: 50px;
    font-size: var(--font-size-sm);
  }

  .news-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .view-all-button {
    align-self: center;
  }

  .sub-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sub-button {
    padding: 20px;
  }
    .contents-banner ul{
        display: block;
    }
    .contents-banner ul li{
        display: block;
    }
  .footer-banners {
    justify-content: center;
  }

  .banner-item {
    width: 49%;
    height: 50px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
    .footer_navGlobalWrap{
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid #ccc;
    }
    .footer_navGlobal{
        display: block;
        text-align: center;
    }
    .menu-item{
        display: inline-block;
        padding: 5px 1em;
    }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
  .header {
    height: 80px;
    padding: 0 90px 0 15px;
  }

  .logo-text img {
    max-width: 100%;
    height: auto;
  }

  .hero-section {
    margin-top: 70px;
  }

  .hero-content h1 {
    font-size: var(--font-size-lg);
    line-height: 1.3;
  }

  .nav-card {
    padding: 25px 10px;
    font-size: var(--font-size-lg);
  }

  .content-section {
    padding: 20px 10px;
  }

  .section-header {
    padding: 30px 15px;
  }

  .news-section,
  .sub-content {
    padding: 30px 10px;
  }

  .footer {
    padding: 30px 10px 15px;
  }

  .banner-item {
    width: 100%;
    height: 40px;
  }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* フォーカススタイル */
button:focus,
a:focus {
  outline: 2px solid var(--color-general);
  outline-offset: 2px;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

/*map関連
************************************************************************************/
.prefecture-list {
  display: none;
}

@media screen and (max-width: 1024px) {

  /* ul要素のスタイル */
  .prefecture-list {
    list-style: none;
    /* リストの黒点を削除 */
    padding: 0;
    margin: 0 auto;
    width: 98%;
    /* 指示通り幅を100%に */
    display: block;
  }

  .prefecture-list li {
    margin-bottom: 2px;
    border-radius: 5px;
  }

  /* a要素（ボタン本体）のスタイル */
  .prefecture-list a {
    display: block;
    /* 要素をブロックレベルにして、領域全体をクリック可能に */
    padding: 12px 15px;
    /* ボタンの上下左右の余白 */
    text-align: center;
    /* テキストを中央揃えに */
    color: white;
    /* テキストの色を白に */
    text-decoration: none;
    /* リンクの下線を削除 */
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* ボタン間の薄い区切り線 */
    transition: filter 0.2s ease-in-out;
    /* ホバー時のアニメーション効果 */

  }

  /* 最後のボタンの区切り線を消す */
  .prefecture-list li:last-child a {
    border-bottom: none;
  }

  /* マウスホバー時のエフェクト */
  .prefecture-list a:hover {
    filter: brightness(90%);
    /* ボタンを少し暗くしてフィードバックを返す */
  }

  /* ----- 地域ごとの配色 ----- */
  .color-group-1 {
    background-color: #90a0d0;
  }

  /* 北海道・東北 */
  .color-group-2 {
    background-color: #e8837d;
  }

  /* 関東 */
  .color-group-3 {
    background-color: #f05e58;
  }

  /* 東京 */
  .color-group-4 {
    background-color: #63b9e4;
  }

  /* 中部1 */
  .color-group-5 {
    background-color: #f5d45c;
  }

  /* 中部2 */
  .color-group-6 {
    background-color: #66c1ac;
  }

  /* 関西 */
  .color-group-7 {
    background-color: #92cd86;
  }

  /* 中国 */
  .color-group-8 {
    background-color: #a0bae5;
  }

  /* 四国 */
  .color-group-9 {
    background-color: #e1a3c7;
  }

  /* 九州 */
  .color-group-10 {
    background-color: #7262a4;
  }

  /* 沖縄 */
}