@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-padding-top: 70px;
  scroll-behavior: smooth;
  /* スムーズスクロール */
  color: #202020;
}


img {
  width: 100%;
  vertical-align: bottom;
}

/* ここからヘッダー */
@media screen and (min-width:767px){
  .logo img{
    width: 100px !important;
    height: auto !important;
  }
}


.header {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
}

/* header固定のため余白をつける。メニューのCSSには関係ない */
.main {
  margin-top: 60px;
}

@media only screen and (max-width: 768px) {
  .nav {
    position: fixed;
    right: -320px;
    /* 右から出てくる */
    top: 0;
    width: 300px;
    /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background-color: #fff;
    transition: all 0.6s;
    z-index: 200;
    overflow-y: auto;
    /* メニューが多くなったらスクロールできるように */
  }

  .hamburger {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 40px;
    /* クリックしやすい幅 */
    height: 40px;
    /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }

  .nav_list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav_item {
    text-align: center;
    padding: 0 14px;
  }

  .nav_item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }

  .nav_item a:hover {
    background-color: #21dbe9;
  }

  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 23px;
    height: 2px;
    background-color: #333;
    transition: all 0.6s;
  }

  .hamburger_border_top {
    top: 13px;
  }

  .hamburger_border_center {
    top: 20px;
  }

  .hamburger_border_bottom {
    top: 28px;
  }

  .black_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
    cursor: pointer;
  }

  /* 表示された時用のCSS */

  /* ここからスマホ */
  .nav-open .nav {
    right: 0;
  }

  .nav-open .black_bg {
    opacity: 0.8;
    visibility: visible;
  }

  .nav-open .hamburger_border_top {
    transform: rotate(45deg);
    top: 20px;
  }

  .nav-open .hamburger_border_center {
    width: 0;
    left: 50%;
  }

  .nav-open .hamburger_border_bottom {
    transform: rotate(-45deg);
    top: 20px;
  }

  .header {
    height: 60px;
    /* ヘッダー全体の高さをスマホでも統一 */
  }

  .header-f {
    display: flex;
    align-items: center;
    /* 子要素を縦方向に中央揃え */
    height: 100%;
    /* 親要素（.header）の高さを引き継ぐ */
  }

  .logo img {
    display: block;
    /* インライン要素特有の余白を削除 */
    height: 60px;
    width: 60px;
    /* 画像の高さをスマホ用に調整 */
  }
}

/* ここまでスマホ */

/* ここからPC */

header {
  /* background-color: rgb(146, 174, 198); */
  width: 100%;
  padding: 15px 30px;
  height: 60px;
}

@media only screen and (min-width: 769px) {
  .logo {
    margin-left: 100px;
    display: flex;
    align-items: center;

    a {
      display: block;
    }
  }

  .inline-img {
    vertical-align: middle;
    /* 縦方向の微調整 (オプション) */
    height: 100px;
    /* 画像の高さをヘッダー内に収まるよう調整 */
  }

  .header-f {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 子要素を縦方向に中央揃え */
    height: 100%;
    /* 親要素（.header）の高さを引き継ぐ */
  }

  .nav_list {
    /* background-color: aquamarine; */
    margin-right: 100px;
  }

  .nav_list li {
    display: inline-block;
    text-align: right;
    padding-left: 50px;
  }

  .nav_list li a {
    color: rgb(88, 88, 88);
    text-shadow: 2px 2px 1px #ffffff;
    font-weight: bold;
    font-size: 2.2em;
  }

  .nav_list li a:hover {
    border-bottom: 2px solid #9c4040;
  }

  .nav_list li a:hover {
    border-bottom: 3px solid rgb(88, 88, 88);
  }

}

/* ここまでPC */

/* ここからメイン */





section {
  margin-top: 100px;
}

h2 {
  margin-left: 15px;
  font-size: 2.5em;
}

h3 {
  margin-left: 70px;
  margin-bottom: 50px;
  font-size: 1em;
  letter-spacing: 0.2em;
}

/* 
.inview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
} */

@media only screen and (min-width: 769px) {
  h2 {
    margin-left: 10%;
    font-size: 3em;
    letter-spacing: 0.1em;

  }

  h3 {
    margin-left: 15%;
    font-size: 1em;
  }
}

/* ここからabout */

.about-img1 {
  margin: 30px 0 10px 40px;
}

.about-text {
  width: 90%;
  margin: 10px 0 0 10px;
  font-size: 0.9em;
  line-height: 1.7;
}

.about-middle {
  width: 90%;
  margin: 100px auto;
}

/* z-indexのコーナー */
.container {
  margin-left: 10px;
  position: relative;
  height: 230px;
}

.box1 {
  width: 200px;
  height: 200px;
  background-image: url(../img/shyabon.JPG);
  background-size: cover;
  background-position: bottom 0 right 10%;
  position: absolute;
  top: 20px;
  left: 20px;
}

.box2 {
  width: 200px;
  height: 200px;
  background: #d4d4d4;
}

.about-right {
  width: 100%;
  text-align: right;
  line-height: 1;

  .name {
    font-size: 2em;
    margin-right: 45px;
  }

  .en-name {
    font-size: 1.5em;
    margin-right: 20px;
  }
}

.about-intro {
  margin: 50px auto 25px;
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

.about-intro-botton {
  margin: 25px auto 50px;
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

@media only screen and (min-width: 768px) {
  /* ここからabout-top */

  .about-top {
    width: 100%;
  }

  .about-f {
    position: relative;
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .about-img1 {
    width: 50%;
    margin-right: 15%;
  }

  :root {
    --delay: 0.5s;
    /* 遅延時間 */
    --duration: 5s;
    /* アニメーション時間 */
    --iterations: 1;
    /* アニメーションの繰り返し回数 */
  }

  /* テキストリビールアニメーション */
  .about-text {
    position: absolute;
    top: 500px;
    left: 10%;
    padding: 10px;
    margin: 10px;
    width: 580px;
    margin-left: 5%;
    font-size: 1.4em;
    line-height: 2;
    z-index: 11;
    font-size: 1.2rem;
    color: transparent;
    /* 初期状態で透明 */
    animation: clip-text var(--duration) var(--delay) var(--iterations) both cubic-bezier(0.0, 0.0, 0.2, 1);
    overflow: hidden;
  }

  .about-text::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f2f98b;
    /* 初期のハイライト色 */
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    animation: text-revealer var(--duration) var(--delay) var(--iterations) both cubic-bezier(0.0, 0.0, 0.2, 1);
  }

  /* キーフレーム：テキストの表示 */
  @keyframes clip-text {
    0% {
      color: transparent;
      /* テキストを隠す */
    }

    100% {
      color: #000;
      /* テキストを表示 */
    }
  }

  /* キーフレーム：背景リビール */
  @keyframes text-revealer {
    0% {
      transform: scaleX(0);
      /* 背景が隠れている */
      background-color: #83eef4;
      /* 初期の黄色 */
    }

    50% {
      transform: scaleX(1);
      /* 背景が全体を覆う */
    }

    100% {
      transform: scaleX(0);
      /* 背景が消える */
      background-color: #fff;
      /* 最終的に白色 */
    }

    100% {
      transform: scaleX(1);
      /* 背景が消える */
      background-color: #fff;
      /* 最終的に白色 */
    }
  }

  /* 背景を白で固定する */
  .about-text::after {
    animation-fill-mode: forwards;
    /* アニメーション終了時にスタイルを保持 */
  }



  /* ここからabout-middle */

  .about-middle {
    width: 70%;
    margin-top: 150px;
  }

  .container {
    width: 300px;

    .box1,
    .box2 {
      width: 250px;
      height: 250px;
    }
  }

  .about-right {
    padding-top: 40px;
    width: 350px;

    .name {
      width: fit-content;
      font-size: 2.5em;
      margin-left: 80px;
      margin-right: 0;
    }

    .en-name {
      width: fit-content;
      font-size: 1.8em;
      margin-left: 150px;
      margin-right: 0;
    }
  }

  .about-intro {
    margin-top: 50px;
    text-align: left;
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
  }

  .about-middle-f {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  /* ここからabout-bottom */

  .about-bottom {
    width: 80%;
    margin: 0 auto;
  }

  .about-intro-botton {
    max-width: 700px;
    margin-top: 0;
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
  }
}

/* ここからStrengh */

.strengh {
  width: 90%;
  margin: 50px auto;

  dl {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgb(28, 28, 28);
    align-items: center;
    padding: 20px 5px;
    gap: 15px;
  }

  dl:first-child {
    border-top: 1px solid black;
  }

  dt {
    font-size: 0.9em;
    font-weight: bold;
    max-width: 170px;
    width: 170px;
    text-align: center;
    white-space: nowrap;

  }

  dd {
    width: 160px;
    font-size: 0.9em;
    line-height: 1.8;
    color: #6a6a6a;
  }
}

@media only screen and (min-width: 768px) {
  .strengh {
    width: 70%;

    dl {
      height: 150px;
      padding: 0 50px;
    }

    dt {
      font-size: 1.2em;
      font-weight: bold;
    }


    dd {
      width: 60%;
      font-size: 1.1em;
      line-height: 1.6;
      color: #6a6a6a;
    }

  }
}

/* ここからhistory */


/* タイムライン全体 */
.timeline {
  width: 90%;
  list-style: none;
  padding: 20px;
  /* background-color: #fffef6; */
  /* border: dashed 1px #e5e5d1; */
  margin: 0 auto;
  animation-fill-mode: forwards;
}

/* タイムラインの各項目 */
.timeline li {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
  animation-fill-mode: forwards;
  
}

/* アイコンを表示 */
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #3da6ae;
  border-radius: 50%;
  /* 丸くする */
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  /* 少し影をつけて浮き上がるように */
}

/* 日付のスタイル */
.timeline-date {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 5px;
}

/* コンテンツ部分 */
.timeline-content {
  margin-top: 5px;
  padding-left: 20px;
  border-left: 3px solid #e5e5d1;
}

/* 見出し部分 */
.timeline span.midashi {
  font-weight: 500;
  font-size: 1.2rem;
  color: #3da6ae;
  display: block;
  margin-bottom: 5px;
}

.timeline-p {
  font-size: 1em;
  line-height: 1.6;
}

/* メディアクエリ: スマートフォン以上の画面用 */
@media only screen and (min-width: 768px) {

  .timeline {
    width: 70%;

  }


  .timeline li {
    margin-bottom: 40px;
    animation-fill-mode: forwards;
  }

  .timeline-date {
    font-size: 1rem;
  }

  .timeline-content {
    padding-left: 25px;
  }
}


/* ここからphoto */

/* ギャラリー */
.gallery {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* スマホ版: 2列表示 */
  gap: 20px;
  padding: 20px;
}

/* カード */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* カード内の画像を統一サイズに揃える */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* カード内の説明文 */
.card p {
  padding: 10px;
  font-size: 0.8em;
  color: #7e7e7e;
  text-align: center;


  .sp-br {
    display: inline;
  }
}

/* PC版のスタイル */
@media only screen and (min-width: 768px) {
  .gallery {
    width: 70%;
    grid-template-columns: repeat(4, 1fr);
    /* PC版: 4列表示 */
    max-width: 1200px;
    margin: 0 auto;
  }


  .card p {
    .sp-br {
      display: none;
    }
  }
}




/* ここからfooter */

footer {
  /* height: 100px; */
  margin-top: 100px;
  margin-bottom: 100px;
  padding-top: 50px;
  /* background-color: #d0d0d0; */
  margin: 0 auto;
  text-align: center;

  img {
    /* padding-top: 30px; */
    width: 50px;
  }

  .footer-f {
    /* height: 150px; */
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0px 50px 0 50px;
  }


  small {
    text-align: center;
  }

  #page-top a {
    display: block;
    width: 5px;
    height: 5px;
    object-fit: cover;
    background-image: url(/img/top3.png);
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 5%;
    right: 5%;

    padding: 20px;
    position: fixed;
    z-index: 333;
  }
}

@media screen and (min-width: 767px) {
  footer {
    background-color: #fff;

    .footer-f {
      /* height: 150px; */
      align-items: center;
      /* display: flex;
      justify-content: space-between; */
      margin: 0px 50px 0 50px;
    }
  }

  .footer-logo {
    /* margin-bottom: 100px;
    margin-right: 100px; */

    img {
      width: 100px;
    }
  }

  #page-top a {
    width: 10px;
    height: 10px;
  }
}

body {
  font-family: "Kosugi Maru", serif;
  font-weight: 400;
  font-style: normal;
}