@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
/* ------------------------------ */
/* リセットCSS */
/* ------------------------------ */
html {
  color: #000;
  background: #fff;
  scroll-behavior: auto;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}


/* 基本設定 */
.body {
  margin: 0;
  background-color: white;
  overflow-x: hidden; /* **追加: 横方向のスクロールを防止** */
  font-family: sans-serif;
}


/* ファーストビューエリア　*/
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  height: auto; /* **変更: 高さを固定から自動調整へ** */
  min-height: 500px; /* **追加: 最小高さを設定** */
  max-width: 1600px;
  margin: 80px auto 0; /* **変更: 上部のマージンを調整** */
  display: flex;
  flex-direction: row; /* **追加: デフォルトは横並びを明示** */
  align-items: center;
  justify-content: center;
  padding: 20px; /* **追加: 全体にパディングを追加** */
  box-sizing: border-box; /* **追加: パディングを幅に含める** */
}


/* 背景の図形デザイン */
.square1 {
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: #f0f0f0;
  border: 2px solid #ddd;
  animation: rotate 10s linear infinite;
  z-index: 1; /* 背景に固定 */
}

.square2 {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #fccf00;
  animation: rotate 10s linear infinite;
  z-index: 1; /* 背景に固定 */
}

.square3 {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid #000;
  animation: rotate 10s linear infinite;
  z-index: 1; /* 背景に固定 */
}
/* 背景の図形デザイン 終了　*/


/* 背景の図形 個別配置・回転速度 */
.square1:nth-child(1) {
  top: 10%;
  left: 2.5%;
  animation-duration: 20s;
}

.square1:nth-child(2) {
  top: 7.5%;
  left: 85%;
  animation-duration: 20s;
}

.square1:nth-child(3) {
  top: 65%;
  left: 47.5%;
  animation-duration: 20s;
}

.square2:nth-child(4) {
  top: 7.5%;
  left: 12.5%;
  animation-duration: 10s;
}

.square2:nth-child(5) {
  top: 82.5%;
  left: 93%;
  animation-duration: 10s;
}

.square3:nth-child(6) {
  top: 75%;
  left: 1.5%;
  animation-duration: 15s;
}

.square3:nth-child(7) {
  top: 12.5%;
  left: 80%;
  animation-duration: 15s;
}

.square3:nth-child(8) {
  top: 65%;
  left: 57.5%;
  animation-duration: 15s;
}
/* 背景の図形 個別配置・回転速度 終了 */


/* 背景の図形 全体アクション */
@keyframes rotate {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

/* タブレット対応（1018px以下） */
@media (max-width: 1018px) { /* **追加: 新しいブレイクポイント** */
  .square1:nth-child(2),
  .square1:nth-child(3),
  .square2:nth-child(5),
  .square3:nth-child(7),
  .square3:nth-child(8) {
    display: none;
  }
  
  .square1:nth-child(1) {
    top: 55%;
    left: 85%;
    animation-duration: 20s;
  } 
  
  .square2:nth-child(4) {
    top: 10%;
    left: 5%;
  }
} 
/* 背景の図形 全体アクション 終了 */


/* ファーストビュー文字・画像エリア　*/
.hero-content {
  flex: 1;
  max-width: 850px;
  padding-left: 125px;
  z-index: 10; /* 前面に表示させる */
  text-align: left; /* **追加: デフォルトのテキスト位置** */
}

.hero-text {
  background-color: rgba(255,255,255,0.6);
  padding-bottom: 5px;
}


/* ファーストビュー文字（左）エリア */
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: bold; /* 太字 */
  line-height: 1.4;
  margin-left: 25px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #333;
  margin-left: 25px;
}


/* PC用アンダーライン */
.striped-underline {
  position: relative;
  display: inline-block;
  z-index: 1; 
}

.striped-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 100%;
  height: 0.7em;
  background: repeating-linear-gradient(
    45deg,
    #ccc,
    #ccc 4px,
    #fff 4px,
    #fff 8px
  );
  z-index: -1; 
}


/* スマホ用アンダーライン */
.striped-underline-mo {
  display: inline-block;
  background: repeating-linear-gradient(
    45deg,
    #ccc,
    #ccc 4px,
    #fff 4px,
    #fff 8px
  );
  background-size: auto 0.5em;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 0.1em;
}


/* デフォルト：PC用表示、スマホ用非表示 */
.hero-first-desktop {
  display: inline;
}

.hero-first-mobile {
  display: none!important;
}
/* ファーストビュー文字エリア 終了 */


/* ファーストビューロゴエリア */
.hero-logo img {
  max-width: 60%;
  margin-top: 1rem;
  margin-left: 25px;
}


/* 光のエフェクト */
.hero-logo {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.hero-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  left: -100%;
  width: 100%;
  pointer-events: none;
}

.hero-logo:hover::before {
  animation: shine 1.2s ease-out 0s 1 forwards;
}

@keyframes shine {
  to {
    left: 100%;
  }
}
/* ファーストビューロゴエリア 終了 */


/* ファーストビューバッジエリア */
.hero-promote-point img {
  max-width: 80%;
  margin-top: 1rem;
}


/* ファーストビュー画像（右）エリア */
.hero-image {
  flex: 2;
  text-align: center;
  max-width: 45%;
  position: relative; /* z-index を効かせるために必要 */
  z-index: 10; /* 前面に表示させる */
}


 /* レスポンシブ対応 */
/* タブレット対応（1520px以下） */
@media (max-width: 1520px) {
  .hero-content {
    padding-left: 50px; /* **変更: パディングを調整** */
    max-width: none; /* **追加: 最大幅を解除し、コンテンツがより柔軟に広がるように** */
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
}
  
  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image {
    max-width: 40%; /* **変更: 画像の最大幅を少し小さくする** */
  }

/* PC用要素を非表示、モバイル用要素を表示 */
  .hero-first-desktop {
    display: none !important;
  }
    
  .hero-first-mobile {
    display: inline !important;
  }
}


/* タブレット対応（1116px以下） */
@media (max-width: 1116px) {
  .hero-content h1 {
    font-size: 2.0rem;
}
  
  .hero-content p {
    font-size: 1.0rem;
  }


/* タブレット対応（1018px以下） */
@media (max-width: 1018px) { /* **追加: 新しいブレイクポイント** */
  .hero {
    flex-direction: column; /* **変更: 縦並びにする** */
    height: auto; /* **変更: 高さを自動調整** */
    min-height: auto; /* **追加: 最小高さも自動に** */
    padding: 40px 20px; /* **変更: 上下のパディングを増やす** */
  }

  .hero-content {
    padding-left: 0; /* **変更: 左パディングをなくす** */
    text-align: center; /* **追加: 中央寄せ** */
    flex: none; /* **追加: flexgrowを無効化** */
    width: 100%; /* **追加: 幅を100%にする** */
  }

  .hero-content h1,
  .hero-content p,
  .hero-logo img,
  .hero-promote-point img {
    margin-left: 0; /* **追加: 中央寄せのためマージンをリセット** */
  }

  .hero-content h1 {
    font-size: 2.2rem; /* **変更: フォントサイズを小さく** */
  }

  .hero-content p {
    font-size: 1.0rem; /* **変更: フォントサイズを小さく** */
  }

  .hero-logo img,
  .hero-promote-point img {
    max-width: 60%; /* **変更: ロゴとバッジのサイズ調整** */
    margin: 1rem auto; /* **追加: 中央寄せ** */
    display: block; /* **追加: 中央寄せのためにブロック要素に** */
  }
  
/* デスクトップ用イラストを非表示 */
  .hero-first-desktop2 {
    display: none !important;
  }
}


/* タブレット対応（820px以下） */
@media (max-width: 820px) {
  .hero {
    padding: 30px 20px; /* **変更: さらにパディングを小さく** */
    margin-top: 40px; /* **変更: 上部マージンを調整** */
  }

  .hero-content h1 {
    font-size: 1.8rem; /* **変更: フォントサイズをさらに小さく** */
    line-height: 1.3; /* **追加: 行高さを調整** */
  }

  .hero-content p {
    font-size: 1rem; /* **変更: フォントサイズをさらに小さく** */
  }

  .hero-image {
    max-width: 90%; /* **変更: 画像をさらに大きく** */
  }
}
  

/* タブレット対応（640px以下） */
@media (max-width: 640px) { /* **追加: 新しいブレイクポイント** */
  .hero {
    margin-top: 0px;
    height: 600px;
  }
  
  .hero-logo img,
  .hero-promote-point img {
    max-width: 70%; /* **変更: ロゴとバッジのサイズ調整** */
  }


/* タブレット対応（480px以下） */
@media (max-width: 480px) { /* **追加: 新しいブレイクポイント** */
  .hero {
    padding: 20px 10px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
  
  .hero-promote-point img {
    max-width: 100%;
  }
}