html {
  scroll-behavior: smooth;
}

.show-tab {
    display: none;
}

.show-pc  {
    display: block;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #F5F4EE;
}

.FV {
  display: grid;
  width: 100%;
    background-color: white;
}


.FirstView-img,
.FirstView-text {
  grid-area: 1 / 1;          /* 同じセルに配置＝重なる */
}

.FirstView-img img {
  display: block;            /* 余白防止 */
  width: 100%;
  height: auto;
}

.FirstView-text {
  align-self: center;        /* 画像の高さの中で縦位置 */
  justify-self: start;       /* 左寄せ */
  margin: 0;                 /* 位置はパディングで調整 */
  padding-left: 5vw;         /* 画像内の左余白（お好みで） */
  z-index: 1;                /* 画像より前面 */
  color: #163E64;
}

/* 既存の absolute / float は無効化（残っていれば） */
.FirstView-img,
.FirstView-text { position: static; }  /* absolute 指定があれば上書き */
.FirstView-img img { float: none; }

.FV-msg {
    line-height: 1.6em;
    font-size: 2.4em;
	font-weight: bold;
	margin: 0.6em 0;
}

.FV-msg span {
    background-color: white;
    color : #163E64;
}

.FV-submsg {
    line-height: 1.6em;
    font-size: 1.5em;
	margin: 0.4em 0;
}

.FV-submsg span {
    background-color: white;
    color : #163E64;
}

.CTAbutton {
  color: #fff;
  background-color: #0070C0;
  width: 30rem;
  padding: 1rem 4rem;
  display: inline-block;
  margin: 3em 0 0 0;
  text-align: center;
  border: none;
  cursor:  pointer;

  animation: fuwafuwa 2s linear infinite;
  scale: 1;
}

@keyframes fuwafuwa{
 0%{transform:translateY(0)}
 50%{transform:translateY(-10px)}
 100%{transform:translateY(0)}
}

.CTAbutton::after {
  content: "＞";
  margin-left: 8px;  /* 文字との間隔 */
  font-weight: bold;
}

.CTAbutton:hover {
  color: #fff;
  background: #2ea8ff;
  color: yellow;
}

.sec-h2 {
    color : #163E64;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2em;
	font-weight: bold;
}

.sec-h3 {
    color : #163E64;
    text-align: center;
    margin: 2rem;
    font-size: 21px;
    line-height: 2em;
}

.sec-program {
    padding-top: 6em;
    padding-bottom: 4em;
}
.sec-program-content {
    margin: 5rem auto;
    width: 70%;
}

.sec-program-content-item {
    display: flex;
    justify-self: center;
    align-items: center;
    overflow: hidden;
    height: 305px;
    box-shadow: 10px 10px 15px -10px;
    border-radius: 5px;
    background-color: white;
}

.sec-program-content-item img {
    width: 40%;
    height: 100%;
}

.reveal-list {
    list-style: none;
    margin-left: 30px;
    width: auto;
}

/* JSが落ちても見えるように、.js が付いたときだけ非表示スタート */
.js .reveal-list li {
  opacity: 0;
  transform: translateX(-16px);  /* 左から */
  will-change: transform, opacity;
}

.js .sec-program .sec-program-content ul li {
  opacity: 0;
  transform: translateX(-20px); /* 左から入ってくる距離 */
  will-change: transform, opacity;
}

.sec-program-content-item li {
    margin: 25px 0;
    font-size: 18px;
    position: relative;
}
.sec-program-content-item li::before {
    content: "";
    display: block;
    width: 1rem;
    height: 0.5rem;
    border-left: 5px solid red;
    border-bottom: 5px solid red;
    transform: rotate(-45deg);
    position: absolute;
    top: 0.25rem;
    left: -2rem;
} 

.sec-solution {
    background-color: #EEF9F4;
    padding-top: 6em;
    padding-bottom: 4em;
}

.line-marker {
    display: inline;
    background: linear-gradient(transparent 60%, yellow 0%);
    background-repeat: no-repeat;
    background-size: 0% 100%;      /* 初期状態は幅ゼロ */
    background-position: left bottom;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;  /* 複数行でも行ごとに塗る */
    transition: background-size 1s ease; /* 伸びるアニメーション */
}

.line-marker.active {
  background-size: 100% 100%;   /* 左から右へ広がる */
}

.sec-solution-content {
    margin: 2rem auto;
    width: 70%;
    height: 300px;
    background-color: #5CC8DE;
    display: flex;
    justify-self: center;
    align-items: center;
    border-radius: 10px;
    font-size: 0.9em
}

.solution-item {
    overflow: hidden;
    height: 80%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 0 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
}
.solution-item img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 100%;
}

.solution-item p {
    text-align: center;
    margin-top: 0em;
    font-size: 1.3em;
}

.point-sec {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 7rem auto 1rem auto;
    
}

.point-img-L {
    height: 350px;
    width: auto;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.3);
}

.point-img-R {
    height: 350px;
    width: auto;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.3);
}

.point-gr-R {
    padding-left: 2rem;
    max-width: 50%;
}


.point-gr-L {
    padding-right: 2rem;
    max-width: 50%;
}


.point {
    background-color: #5CC8DE;
    color: white;
    border-radius: 50px;
    width: 150px;
    height: auto;
    padding: 5px;
    text-align: center;
}

.point-title {
    color : #163E64;
    text-align: left;
    margin: 1rem auto 2rem auto;
    font-size: 21px;
    line-height: 1.5em;
}

.point-title span {
    color: orangered;
}

.point-p {
    color : #163E64;
    text-align: left;
    margin: 2rem auto;
    font-size: 18px;
}

.sec-achievement {
    background-color: #FCFBEA;
    height: auto;
    padding-top: 6em;
    padding-bottom: 4em;
}

.achievement-contents {
    margin: 0rem auto;
    width: 60%;
    display: flex;
    justify-self: space-between;
    align-items: stretch;
    gap: 0;
}

.achievement-exsample {
    flex: 1;
    margin: 0;
    background-color: white;
    box-shadow: 10px 10px 15px -10px;
    display: flex;
    flex-direction: column;

}

.achievement-exsample:nth-child(2) {
    margin: 0 1rem; /* 左右1remずつ余白（お好みで調整） */
}

.achievement-exsample img {
    width: 100%;
    height: 250px;
    display: block;
}

.achievement-explan {
    margin: 2em 2em;
}

.achievement-title {
    text-align: center;
    height: 2em;
    margin: 0.5em 1em 2em 1em;
}

.achievement-mark {
    background-color: white;
    color: #163E64;
    border: solid 1px #163E64;
    border-radius: 50px;
    width: 100px;
    height: auto;
    padding: 0.2em 1.2em;
    text-align: center;
    font-size: 0.8em;
    margin: 0.8em auto;
}

.achievement-exsample p {
    height: 50px;
    font-size: 0.9em
}

.achieventment-link {
    margin: 0rem auto;
    padding-top: 2em;
    width: 60%;
    text-align: right; 
}

.linkbutton {
    display: inline-block;    /* ←必須！幅を内容サイズにする */
    background: none;
    border: none;
    color: #163E64;
    font-size: 1.2em;
    cursor: pointer;
    position: relative;
    padding-right: 1.5em;
}

/* 矢印追加 */
.linkbutton::after {
    content: "➔";             /* 右矢印 */
    position: absolute;
    right: 0;                  /* ボタン右端 */
    top: 50%;
    transform: translateY(-50%);
    animation: arrowMove 1s infinite alternate ease-in-out;
}

/* 矢印が左右にゆれるアニメーション */
@keyframes arrowMove {
    0%   { transform: translate(0, -50%); }
    100% { transform: translate(6px, -50%); }
}

.sec-flow {
    background-color: white;
    padding-top: 6em;
    padding-bottom: 4em;
}

.flow-contents {
    width: 70%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 各flow-secの間隔 */
}

.flow-sec {
    display: flex;
    align-items: stretch;
    gap: 0.2em;
    will-change: transform, opacity;
}

.flow-number {
    flex: 0 0 4em;           /* 横幅を2em固定 */
    height: 4em;   
    display: flex;           /* ← これで中央寄せ可能に */
    align-items: center;     /* ← 縦中央揃え */
    justify-content: center; /* ← 横中央揃え */
    background-color: #5CC8DE;
    color: #fff;
    font-size: 1.5em;
}
.flow-text {
    flex: 1;
    border: solid 1px #949494;
    margin: 0;
    padding: 0.5rm 1em;
    display: flex;          /* ← テキスト内容も高さ揃える */
    flex-direction: column;
    justify-content: center; /* 中の文字を縦中央に */
}

.flow-text h3 {
    font-size: 1em;
    margin: 0.2em 0;
    padding-left: 20px;
}

.flow-text p {
    font-size: 0.9em;
    padding-left: 20px;
    margin: 0.5em 0;
}

.sec-area {
    padding-top: 6em;
    padding-bottom: 4em;
}

.sec-area-content {
    margin: 5rem auto;
    width: 70%;
    height: 380px;
    background-color: white;
}

.sec-area-content-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    height: 100%;
    box-shadow: 10px 10px 15px -10px;
    border-radius: 5px;
}

.sec-area-content-item img {
    width: 40%;
    height: 100%;
    align-items: flex-start;
}

.sec-area-text {
    padding-left: 3.5em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75em
}

.sec-area-text h3{
    font-size: 1.4em;
    margin-top: 2em;
}

.sec-area-text p{
    font-size: 1em;
    line-height: 2em;
    margin: 0;              /* デフォルトの余白を消す */
}

/* 通常は表示（JSが落ちても見える） */
.triangle {
  margin: 0 auto;
  background: #ababab;
  height: calc(60px / 3);
  width: 60px;
  clip-path: polygon(0 0,100% 0, 50% 100%);
  will-change: transform, opacity;
}



/* JSが生きているときだけ “ふわっと出現” の初期値に */
.js .flow-sec,
.js .triangle {
  opacity: 0;
  transform: translateY(-12px);
}

.contact-form {
  text-align: center;   /* 内部のインライン要素を中央に */
}

.contact-form form {
  display: inline-block; /* フォーム自体をインラインブロックに */
  text-align: left;      /* 中のテキストは左寄せに戻す */
}

.mw_wp_form {
	max-width: 850px;
    margin: auto;
}


/* ▼ タブレット用（1024px以下） */
@media screen and (max-width: 1040px) {
    .show-tab {
        display: block; 
    }
    .show-pc  {
        display: none;
    }

    .FV {
        background: url("img/FV.png") right center / cover no-repeat;
        min-height: 60vh;       /* 目安の高さ（必要に応じて調整） */
    }
    .FirstView-img {
         display: none; 
        }  /* <img> は使わない */
    .FirstView-text {
        position: relative; margin: 2rem 1.5rem 0;
    }

  /* 念のためスタッキングを安定させる（上書きが強い場合だけ） */
  .sec-program {
    position: relative;
    z-index: 1;
  }

  .sec-program-content,
  .sec-solution-content,
  .point-sec,
  .achievement-contents,
  .achieventment-link,
  .flow-contents,
  .sec-area-content {
    width: 90%;  /* 横幅を狭める */
  }

  .solution-item {
    margin: 0 1rem;
  }

  .point-sec {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .point-img-L,
  .point-img-R {
    height: auto;
    width: 80%;
    margin-bottom: 2rem;
  }

  .point-gr-L,
  .point-gr-R {
    max-width: 80%;
    padding: 0;
  }

  .achievement-contents {
    gap: 2rem;
  }

  .achievement-exsample {
    margin: 0 !important;
    width: 50%;
  }


  .sec-area-content {
    height: auto;
    flex-direction: column;
    margin: 0 auto;
  }

  .sec-area-content-item {
    flex-direction: column;
  }

  .sec-area-content-item img {
    width: 100%;
    height: auto;
  }

  .sec-area-text {
    padding: 1.5em;
    align-items: center;
  }
  .sec-area-text h3,
  .sec-area-text p {
    margin: 0 auto;
  }
}


/* ▼ スマホ用（390px以下） */
@media screen and (max-width: 390px) {
  .FV {
    height: auto;
  }

  .FirstView-text {
    margin: 5em 1em 0 1em;
  }

  .FV-msg {
    font-size: 1.2rem;
    line-height: 1.6em;
  }

  .FV-submsg {
    font-size: 1rem;
    line-height: 1.6em;
  }

  .CTAbutton {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  .sec-h2 {
    font-size: 1.4rem;
  }

  .sec-h3 {
    font-size: 1rem;
  }

  .solution-item {
    margin: 1rem 0;
    width: 70%;
  }

  .sec-solution-content {
    flex-direction: column;
    height: auto;
    padding: 2rem 0;
  }

  .point-img-L,
  .point-img-R {
    width: 100%;
    margin-bottom: 1rem;
  }

  .achievement-contents {
    flex-direction: column;
    width: 90%;
  }

  .flow-sec {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-number {
    width: 3em;
    height: 3em;
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }

  .flow-text {
    width: 100%;
    padding: 0.5em;
  }

  .sec-area-content-item {
    flex-direction: column;
  }

  .sec-area-content-item img {
    width: 100%;
    height: auto;
  }

  .sec-area-text h3 {
    font-size: 1.2rem;
  }

  .sec-area-text p {
    font-size: 0.9rem;
  }
}
