@charset "UTF-8";

html {
  font-size: 62.5%;
}

/* PC表示用のフォントサイズ設定を移動 */
@media screen and (min-width: 961px) {
  html {
    font-size: 93.75%;
  }
}

body {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/wave.png");
  color: #121212;
  font-family: 'Noto Sans JP', sans-serif;
}
a {
  color: #121212;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}

.wrapper {
  max-width: 900px;
  padding: 80px 20px;
  margin: 0 auto;
}
.site-title {
  width: 200px;
  line-height: 1px;
  margin-bottom: 30px;
}
.site-title a {
  display: block;
}

.sec-title {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 60px;
  text-align: center;
}

.container {
  margin-left: 0;
}

/*--------------------------------------
ヘッダー
--------------------------------------*/
#header {
  width: 100%;
  height: 90px;
  padding: 0 30px;
  background-color: rgba(14, 178, 228, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
  width: 200px;
  margin: 0;
}
.site-title img {
  height: 90px;
  width: 90px;
  object-fit: contain;
}

/* SP用のナビゲーションメニュー */
#navi {
  width: 100%;
  height: auto;
  background: #fff;
  padding: 25px;
  position: fixed;
  top: -100vh;
  left: 0;
  bottom: auto;
  overflow-y: auto;
  transition: top 0.5s ease-in-out;
  z-index: 20;
}
.open #navi {
  top: 90px;
}
#navi ul.nav-menu { margin-bottom: 30px; }
#navi ul li { padding: 8px 0; }
#navi ul li a {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  padding: 2px 0;
}

/* ハンバーガーメニュー（SP用） */
.hamburger {
  width: 35px;
  height: 35px;
  cursor: pointer;
  position: relative;
  transition: 0.5s;
  z-index: 30;
}
.hamburger span {
  width: 35px;
  height: 3px;
  background-color: #121212;
  border-radius: 4px;
  display: block;
  position: absolute;
  left: 0;
  transition: 0.5s;
}
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 14px; }
.hamburger span:nth-child(3) { bottom: 8px; }

.open .hamburger span {
  background-color: #fff;
}
.open .hamburger span:nth-child(1) {
  transform: translateY(10px) rotate(-315deg);
}
.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.open .hamburger span:nth-child(3) {
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
  transition: 0.5s;
}
.open #mask {
  width: 100%;
  height: 100%;
  background-color: #000;
  cursor: pointer;
  display: block;
  opacity: 0.8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
}

/* ▼▼▼ PC表示用のヘッダー・ナビゲーションスタイル（右揃え修正版） ▼▼▼ */
@media screen and (min-width: 961px) {
  #header {
    justify-content: space-between;
  }

  /* PCではハンバーガーメニューを非表示に */
  .hamburger,
  #mask {
    display: none;
  }

  /* PC用のナビゲーションメニューのスタイル */
  #navi {
    position: static;
    top: auto;
    background: none;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    /* ▼▼▼ 修正点: この一行を追加して右揃えにする ▼▼▼ */
    margin-left: auto;
  }

  #navi ul.nav-menu {
    display: flex;
    margin: 0;
  }
  
  #navi ul li {
    padding: 0 15px;
  }
  
  #navi ul li a {
    font-size: 1rem;
    color: #121212;
  }
  
  #navi ul.nav-sns {
    display: none;
  }
}
/* ▲▲▲ PC表示用スタイルの修正ここまで ▲▲▲ */


/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
  height: 90vh;
  min-height: 500px;
  padding-top: 90px;
  box-sizing: content-box;
  margin-bottom: 50px;
  position: relative;
}

.mainvisual-video {
  position: absolute;
  top: 90px; 
  left: 0;
  width: 100%;
  height: calc(100% - 90px); 
  object-fit: cover;
  z-index: 1;
}

.mainvisual-logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/title_logo.png");
  background-repeat: no-repeat;
  background-size: 50%; 
  background-position: center calc(100% - (-12vh));
  z-index: 2;
}

/*-------------------------------------------
News
-------------------------------------------*/
#news h2 {
  font-size: 3.2rem;
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
}

#news {
  color: rgb(250, 102, 3);
  margin-bottom: 120px;
}

#news .list {
  display: flex;
  justify-content: space-between;
}
#news .list li {
  width: calc(100%/3);
  border-right: solid 1px #000;
  padding: 10px 20px;
}
#news .list li:first-child {
  padding-left: 0;
}
#news .list li:last-child {
  border-right: none;
  padding-right: 0;
}
#news .list li .date-area {
  margin-bottom: 16px;
}
#news .list li .date-area span {
  width: 50px;
  height: 20px;
  line-height: 20px;
  background-color: #000;
  color: #fff;
  display: inline-block;
  font-size: 1.2rem; 
  margin-left: 10px;
  text-align: center;
}

/*--------------------------------------
profile
---------------------------------------*/
#profile h1 {
  font-size: 3.2rem; 
}

#profile,
#flow {
  color: rgb(250, 102, 3);
  font-size: 1.3rem;
}

#profile {
  padding: 80px 5%;
  width: 100%;
  box-sizing: border-box;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.profile-text,
.profile-image {
  flex: 1;
  min-width: 0;
}
.profile-text {
  text-align: left;
  line-height: 1.8;
}
.profile-text p {
  margin-bottom: 1em;
}
.profile-text p:last-child {
  margin-bottom: 0;
}
.profile-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
}
.profile-block.reverse {
  flex-direction: row-reverse;
}
.profile-block.reverse .profile-text {
  text-align: right;
}
.profile-center-text {
  text-align: center;
  margin: 50px 0;
  font-weight: bold;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/*----------------------------------------
flow
----------------------------------------*/
#flow h2 {
  font-size: 3.2rem;
}

.flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ▼▼▼ 修正点1: カラム間の隙間を完全になくす ▼▼▼ */
  gap: 0; 
  margin-bottom: 20px;
}

.flow-column {
   display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 800px;
  flex: 1 1 800px;
  text-align: center;
  /* ▼▼▼ 修正点2: 各カラムの上下の余白をなくす ▼▼▼ */
  padding: 0 30px; /* 上下のpaddingを0に、左右は30pxを維持 */
  border-radius: 10px;
}

/* (これ以降の .flow-text, .flow-image などのスタイルは変更ありません) */

.flow-container .flow-column:nth-child(2) {
  flex-direction: row-reverse;
}

.flow-text,
.flow-image {
  flex: 1;
  min-width: 0;
}

.flow-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
}

.flow-center {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
}

#flow p {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.flow-column p:last-of-type,
.flow-center p:last-of-type {
  margin-bottom: 0;
}

h3 {
  display: inline-block;
  font-weight:bold;
  border-bottom: solid 3px #f3eeee;
  margin: 0 auto 50px;
  padding: 0 0 5px 0;
}

#flow .list li,
#news .list li {
  text-align: center;
  font-size: 1.6rem;
}

/*--------------------------------------
フッター
--------------------------------------*/
#footer {
  background-color: rgba(14, 178, 228, 0.8);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
#footer .footer-logo img {
  width: 120px;
  margin-bottom: 20px;
}
#footer .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
#footer .menu li {
  border-right: solid 1px #fff;
  font-size: 1.4rem;
  padding: 0 15px;
  margin-bottom: 10px;
}
#footer .menu li:last-child {
  border-right: none;
}
#footer .sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}
#footer .sns li img {
  height: 30px;
  width: auto;
}
#footer .sns li a {
  display: inline-block;
  transition: opacity 0.3s;
}
#footer .sns li a:hover {
  opacity: 0.7;
}
#footer .copyright {
  margin-top: 30px;
  font-size: 1.4rem;
}

/*-------------------------------------------
トップへ戻るボタン
-------------------------------------------*/
#to-top {
  width: 50px;
  height: 50px;
  background-color: #121212;
  border: solid 1px #fff;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 50;
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

#to-top:hover {
  opacity: 0.8;
}

#to-top::after {
  content: "";
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
/* ------------------------------------------- */
/* テキストカラーの調整
/* ------------------------------------------- */
#news .list li p,
#news .date-area,
.profile-text,
#flow p {
  color: #2c3e50;
}
.profile-text p:first-child {
  text-align: center;
}
/*-------------------------------------------
SP / スマートフォン表示用のスタイル
-------------------------------------------*/
@media screen and (max-width: 960px) {
  
  html {
    font-size: 62.5%;
  }

  #mainvisual {
    height: 60vh;
    min-height: 350px;
  }

  .mainvisual-logo-overlay {
    background-size: 90%;
    background-position: center calc(100% - 5vh);
  }
  
  #news .list {
    flex-direction: column;
  }

  #news .list li {
    width: 100%;
    border-right: none;
    border-bottom: solid 1px #ccc;
    padding: 20px 0;
  }
  
  #news .list li:first-child {
    padding-left: 0;
  }

  #news .list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .sec-title,
  #news h2,
  #profile h1,
  #flow h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
  }
  
  #news .list li {
    font-size: 1.6rem;
  }
  
  #profile,
  #flow {
    font-size: 1.5rem;
  }

  #profile {
    padding: 60px 5%;
  }

  .profile-block,
  .profile-block.reverse {
    flex-direction: column;
  }

  .profile-block.reverse .profile-text {
    text-align: left;
  }

  .profile-center-text {
    margin: 40px 0;
  }

  .flow-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .flow-column,
  .flow-container .flow-column:nth-child(2) {
    flex-direction: column;
  }

  .flow-text {
    margin-bottom: 20px;
  }

  #header {
    height: 72px;
    padding: 0 15px;
  }
  .site-title {
    width: auto;
    margin: 0;
  }
  .site-title img {
    height: 60px;
    width: 60px;
  }
  .hamburger {
    position: relative;
    top: auto;
    right: auto;
    /* ▼▼▼ 修正点1(補足): SPではハンバーガーメニューを表示する指定を追加 ▼▼▼ */
    display: block; 
  }
  .open #navi {
    top: 72px;
  }
}