/*= 全体 =*/
body {
  background: #f4f6f8;
}

.site-wrapper {
  margin: 18px 15px 5px;
  background: #fff;
  padding: 20px 10px;
  max-width: 770px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  @media(min-width:800px) {
    margin-left:auto;
    margin-right:auto;
    padding: 20px 25px;
  }
}

/*= ヘッダー・メニュー =*/
header {
  margin-top: 10px;
  .logo img {
    height: 50px;
  }
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
  }
  #sub-nav a{
    font-size: 13px;
    color:#CD384B;
    font-weight: bold;
    transition: opacity 0.2s;
    opacity: 1;
  }
  #sub-nav a:hover{
    opacity: 0.8;
  }
}

.athlete-menu__wrapper {
  background: #222;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* スマホでのスクロールを滑らかに */
  scrollbar-width: none;
  margin-bottom: 25px;
  border-radius: 6px;
  &::-webkit-scrollbar {
    display: none;
  }
}

#athlete-menu,
.sub-menu {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

#athlete-menu {
  .menu-item {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 画面幅が狭くても要素が潰れないようにする */
  }
  a {
    display: block;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    font-size: 12px;
    padding: 4px 6px;
  }
  .current-menu-item a{
    color: #CD384B;
  }
}

@media(max-width:799px) {
  #athlete-menu .menu-item-has-children > a {
    display: none;
  }
}

@media(min-width:800px) {
  header .header-container {
    flex-direction: row;
    justify-content: space-between;
  }
  header #sub-nav a {
    font-size: 14px;
  }
  .athlete-menu__wrapper {
    overflow: visible;
  }
  #athlete-menu {
    justify-content: space-between;
    align-items: center;
    padding: 4px 15px;
    box-sizing: border-box;
    a {
      font-size: 13px;
    }
    > .menu-item-has-children {
      padding-right: 16px;
      position: relative;
    }
    > .menu-item-has-children:before {
      content: "";
      width: 0;
      height: 0;
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
      border: transparent 8px solid;
      border-top: #fff 10px solid;
      translate: 0 20%;
    }
    > .menu-item-has-children .sub-menu{
      max-height: 10000px;
    }
    > li > .sub-menu {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 100;
      background: #fff;
      min-width: 200px;
      translate:-50% 0;
      opacity: 0;
      pointer-events: none; 
      transition: opacity 0.5s ease;
    }
    .menu-item-has-children:hover a + .sub-menu {
      opacity: 1;
      pointer-events: auto;     
      box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
      z-index:10;
      border-radius: 4px;
    }
    .sub-menu .menu-item {
      display: block;
      padding: 0;
    }
    .sub-menu a{
      font-weight: normal;
      display: block;
      color: #333;
      padding: 12px 16px;
      transition: background-color 0.2s,color 0.2s;
    }
    .sub-menu a:hover{
      border-radius: 4px;
      background-color: #f1f1f1;
      color: #CD384B;
    } 
    .sub-menu li:first-child a{
      border-radius: 4px 4px 0 0;
    }
    .sub-menu li:last-child a{
      border-radius:0 0 4px 4px;
    }
  }
}

/*= フッター =*/
.pagetop-anchor {
  margin-bottom: 30px;
  text-align: right;
  padding-top: 15px;
  a {
    color: #428bca;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
  }
  a:hover, a:focus {
    color: #2a6496;
    text-decoration: underline;
  }
}
.site-footer {
  border: none;
}

/*= トップ =*/
.athlete .athlete-toppage{
  .hero {
    text-align: center;
    line-height: 2.25;
  }
  .section__lead {
    margin-bottom: 60px;
  }
  .scroll-here {
    margin: 80px 0;
    line-height: 4;
  }
  .section3 {
    margin-bottom: 80px;
  }
  .section3 h3 {
    font-size: 34px;
    margin-bottom: 0;
  }
  .section4 h3 {
    font-size: 28px;
  }
  .section5 {
    margin-top: 40px;
  }
  .section5 .section__body{
    margin-bottom: 60px;
  }
  .section10 h3 {
    font-size: 30px;
  }
  .section10 th {
    text-align: left;
  }
  .section10 th b{
    background: paleturquoise;
  }
  .section11 {
    margin-bottom: 120px;
  }
  .section11 p{
    margin-top: 80px;
  }
  .section12 h3 {
    font-size: 26px;
    line-height: 2.5;
  }
  .section12 ol {
    margin:60px 0 180px; 
  }
  .section12 ol li{
    margin-bottom: 12px;
  }
  .section13 {
    margin-bottom: 120px;
  }
  .section13 h3 {
    font-size: 28px;
  }
  .section13 h4 {
    font-size: 24px;
  }
  .section13 ul {
    padding-left: 0;
  }
  .section13 .bgline-green b{
    background: palegreen;
  }
  .section13 .bgline-pink b{
    background: pink;
  }
  .section14 {
    margin-bottom: 120px;
  }
  .section14 h3{
    font-size: 28px;
    line-height: 2;
    margin-bottom: 60px;
  }
  .section14 ol {
    margin-top: 80px;
  }
  .section14 li {
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .section15 {
    margin-bottom: 100px;
  }
  .section15 .txt_eyecatch{
    font-size: 24px;
    margin-bottom: 60px;
  }
  .section15 .txt_point {
    line-height: 2.5;
    font-size: 22px;
  }
  .section15 .txt_point b{
    font-size: 30px;
    background: yellow;
  }
  .section15 .iframe-items {
    margin: 60px 0 ;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }
  .section15 .txt_summary {
   font-size: 18px;
   line-height: 2.5;
   margin-bottom: 80px;
  }
  .section15 .txt_summary span{
    font-size: 20px;
  }
  .section16 {
    margin-bottom: 50px;
  }
  .section16 .section__lead{
    font-size: 28px;
    line-height: 2.6;
  }
  .section16 .footer_links {
    margin-top:120px;
    @media(min-width:800px) {
      display: flex;
      justify-content: center;
      padding: 0;
    }
  }
}

/*= プログラム =*/
.athlete-kids .page-body,
.athlete-open .page-body,
.athlete-pro .page-body {
  h2 {
    padding: 0;
    margin: 80px 0;
    border: none;
  }
 .contact_links {
    margin-top:120px;
    @media(min-width:800px) {
      display: flex;
      justify-content: center;
      padding: 0;
    }
  }
  .section__info h3 {
    border: none;
  }
  .section__info h3 b {
    text-decoration: underline;
  }
  .section__info .section__body {
    margin-bottom: 60px;
  }
  .list-style-disc {
    padding-left: 26px;
  }
}

.athlete-open .page-body {
  h2 {
    margin-bottom: 40px;
  }
  .section2 {
    margin-top: 30px;
  }
  .section5,.section6,.section7,.section8 {
    margin: 60px 0;
  }
}

/*= 利用者の声 =*/
.athlete-review .page-body{
  h3 {
    margin-top: 60px;
  }
}