@charset "utf-8";

/* MV
----------------------------------------------------------------------------------------------------*/

.mv {

  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* 必要なら高さを固定するか、アスペクト比で調整 */
  aspect-ratio: 16 / 9;
  z-index: 0;
}

/* 動画をコンテナいっぱいにカバー表示 */
.mv img,
.mv video {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 1750px);
  transition: opacity 1s ease;
}

/* #mvThumbnailContainer, */
#thumbnail {
  z-index: 2;
  opacity: 1;
}

.mv video {
  z-index: 1;
  opacity: 0;
}

/* 動画が読み込み完了したらフェードイン */
.mv video.loaded {
  opacity: 1;
  z-index: 3;
  /* 動画を前面に */
}

/* サムネイルがフェードアウト */
.mv img.fadeout {
  opacity: 0;
  pointer-events: none;
}


/* 任意：再生ボタンのスタイル */
.mv__playbtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
}



/* ====== モバイル用の微調整 ====== */
@media (max-width: 768px) {

  /* mv の高さを少し抑える場合（お好みで） */
  .mv {
    padding: 110px 30px 0;
    height: 90vh;
    /* 必要なら高さを固定するか、アスペクト比で調整 */
    aspect-ratio: auto;
  }


  .mv__video {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    /* 固定 */
    left: 0;
    width: 100%;
    height: 100%;
  }

  .nav-menu {
    height: calc(var(--mobile-vh) - var(--header-height));
  }


}

/* TOP-maincontents
----------------------------------------------------------------------------------------------------*/
.top-main-contents {
  background: #FFF;
  position: relative;
  z-index: 10;
}

/* ====== スクロール時に main-contents の左右を白くする装飾（サイドパネルはJSで制御） ====== */

/* top-main-contents 自体の見た目はそのままにし、.scrolled クラスによる軽微な変化を付与 */
.top-main-contents.scrolled {
  /* 背景をより強く（既に白ですが念のため） */
  background: #ffffff;
}

.top-copy {
  margin: 0 auto 180px;
  text-align: center;
  padding-right: 30px;
  padding-left: 30px;
  padding-top: 150px;
}

.top-copy h2 {
  margin-bottom: 120px;
}

.top-copy h2 img {
  width: min(90%, 900px);
  margin: 0 auto 170px;
  padding: 0;
}

.top-copy h2 span {
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {

  .top-copy {
    margin: 0 auto 50px;
    padding-top: 50px;
  }

  .top-copy h2 img {
    margin: 0 auto 46px;
  }

  .top-copy h2 span {
    font-size: 2.2rem;
  }

}


/* aboutus
----------------------------------------------------------------------------------------------------*/
.top-aboutus {
  margin: 0 auto 165px;
  padding-right: 30px;
  padding-left: 30px;
}

/* 共通：画像コンテナ */
.top-aboutus .aboutus-img {
  overflow: hidden;
  background: #eee;
  min-width: 0;
  /* Grid 子でのはみ出し防止 */
  min-height: 0;
}

.top-aboutus .aboutus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 上段（PC時）: 735 / 387 / 388 列幅, 行高: 402 / 289 ---------- */
.aboutus-top-grid {
  width: 100%;
  max-width: 1510px;
  /* 基準幅 */
  margin: 0 auto;
  display: grid;

  /* 列幅は合計1510に対する%で指定（固定比率） */
  grid-template-columns: 48.675% 25.629% 25.696%;
  grid-template-rows: 402px 289px;
  grid-template-areas:
    "aboutus-img001 textarea textarea"
    "aboutus-img001 aboutus-img002 aboutus-img003";
}

/* area割当 */
.aboutus-top-grid .aboutus-img001 {
  grid-area: aboutus-img001;
}

.aboutus-top-grid .aboutus-img002 {
  grid-area: aboutus-img002;
}

.aboutus-top-grid .aboutus-img003 {
  grid-area: aboutus-img003;
}

.aboutus-top-grid .textarea {
  grid-area: textarea;
  padding-left: 40px;
  padding-bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 2.0rem;
}

.textarea p {
  margin-bottom: 20px;
}

.aboutus-copy {
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 30px;
}

.aboutus-copy span {
  color: #ff0000;
  font-size: 4.2rem;
  line-height: 1;
}

.aboutus-copy span .black {
  color: #0000;
  font-size: 2.0rem;
}


/* ---------- 下段（PC時）: 610 / 512 / 388 列幅, 行高: 369 ---------- */
.aboutus-bottom-grid {
  display: grid;
  max-width: 1510px;
  /* 基準幅 */
  margin: 0 auto;
  /* 下段は別グリッドなので異なる列幅を設定可能 */
  grid-template-columns: 610fr 512fr 388fr;
  grid-template-areas:
    "aboutus-img004 aboutus-img005 aboutus-img006";
}

.aboutus-bottom-grid .aboutus-img004 {
  grid-area: aboutus-img004;
}

.aboutus-bottom-grid .aboutus-img005 {
  grid-area: aboutus-img005;
}

.aboutus-bottom-grid .aboutus-img006 {
  grid-area: aboutus-img006;
}

/* ---------- モバイル（1510px 以下）: 両グリッドを2列化 ---------- */
@media screen and (max-width: 1510px) {

  .aboutus-top-grid {
    grid-template-columns: 925.6464fr 582.8476fr;
    grid-template-rows: auto;
    grid-template-areas:
      "textarea textarea"
      "aboutus-img001 aboutus-img002"
      "aboutus-img001 aboutus-img003";
  }

  .aboutus-top-grid .textarea {
    padding-left: 0;
    padding-bottom: 40px;
    font-size: 2.0rem;
  }

  .aboutus-copy {
    margin-bottom: 35px;
  }

}

/* ---------- モバイル（768px 以下）: 両グリッドを2列化 ---------- */
@media screen and (max-width: 768px) {

  .aboutus-top-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "textarea textarea"
      "aboutus-img001 aboutus-img001"
      "aboutus-img002 aboutus-img003";
  }

  /* .aboutus-top-grid .aboutus-img001 { aspect-ratio: 330 / 310; }
  .aboutus-top-grid .aboutus-img002 { aspect-ratio: 165 / 123; }
  .aboutus-top-grid .aboutus-img003 { aspect-ratio: 165 / 123; }
   */

  /* 親top-aboutus を左右padding分に合わせる */
  .top-aboutus {
    margin-bottom: 55px;
  }

  .textarea p {
    font-size: 1.6rem;
  }

  .aboutus-copy {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 26px;
  }

  .aboutus-copy span {
    font-size: 3rem;
  }

  .aboutus-copy span .black {
    font-size: 2.0rem;
  }

  /* 下段SP：2カラムで aboutus-img005 / 006 横並び、aboutus-img004 が下で全幅 */
  .aboutus-bottom-grid {
    grid-template-columns: 188fr 142fr;
    /* 188 : 142 */
    grid-auto-rows: auto;
    grid-template-areas:
      "aboutus-img005 aboutus-img006"
      "aboutus-img004 aboutus-img004";
  }

  /* .aboutus-bottom-grid .aboutus-img004 { aspect-ratio: 330 / 200; }
  .aboutus-bottom-grid .aboutus-img005 { aspect-ratio: 188 / 135; }
  .aboutus-bottom-grid .aboutus-img006 { aspect-ratio: 142 / 135; } */

  /* 画像は親のサイズに合わせる */
  .aboutus-top-grid .aboutus-img img,
  .aboutus-bottom-grid .aboutus-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .textarea p {
    margin-bottom: 30px;
  }
}

/* Contact01
----------------------------------------------------------------------------------------------------*/
.top-contact01 {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  width: 100%;
  max-width: 1510px;
  margin: 0 auto 160px;
  padding-right: 30px;
  padding-left: 30px;
}

.top-contact01-copy {
  flex: 1 1 auto;
  max-width: 1000px;
}

.top-contact01-copy_pc {
  display: block;
}

.top-contact01-copy_sp {
  display: none;
}

@media screen and (max-width: 768px) {

  .top-contact01 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto 80px;
  }


  .top-contact01-copy_pc {
    display: none;
  }

  .top-contact01-copy_sp {
    display: block;
    width: 72px;
  }
}

/* Works
----------------------------------------------------------------------------------------------------*/

.top-works {
  display: flex;
  justify-content: space-between;
  margin: 0 auto 160px;
  width: 100%;
  max-width: 1510px;
  padding-right: 30px;
  padding-left: 30px;
}

.top-works_left {
  width: calc(662 / 1505 * 100%);
}

.top-works_right {
  width: calc(753 / 1505 * 100%);
}



/* pタグを均等割付（両端揃え）にして最終行は左揃えにする */
.top-works_left p {
  font-size: 2.0rem;
  text-align: justify;
  /* 両端揃えにする */
  text-justify: inter-character;
  /* CJK（日本語）なら文字間で配分（ブラウザ依存） */
  -ms-text-justify: distribute;
  /* 古いIE向けのフォールバック */
  -webkit-text-align-last: left;
  /* 最終行を左揃え (ベンダー接頭辞) */
  -moz-text-align-last: left;
  text-align-last: left;
  /* 最終行を左揃え */
  line-height: 1.8;
  /* 読みやすさの調整（任意） */
  hyphens: none;
  /* 自動ハイフネーションを切る（日本語向け） */
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 40px;
  letter-spacing: -0.45px;
}

.works-copy {
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.works-copy span {
  color: #ff0000;
  font-size: 4rem;
  letter-spacing: -1px;
}

.works-list {
  list-style-type: none;
  padding: 0;
  margin-top: 30px;
}

.works-list li {
  padding: 0;
  border-bottom: 1px solid #cccccc;
}

.works-list li a {
  display: block;
  font-size: 3.2rem;
  line-height: 1;
  padding: 25px 0;
  transition: opacity 0.3s ease;
}

.works-list li a span {
  margin-left: -5px;
  letter-spacing: -1px;
  font-size: 2rem;
}

.works-list li a:hover {
  opacity: 0.5;
}

@media screen and (max-width: 1510px) {
  .top-works {
    flex-direction: column;
    gap: 90px;
    margin: 0 auto 80px;
  }

  .top-works_left,
  .top-works_right {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {

  .top-works_left p {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .works-copy {
    font-size: 2rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  .works-copy span {
    font-size: 3rem;
  }

  .works-list {
    margin-top: 50px;
  }

  .works-list li a {
    font-size: 1.8rem;
    padding: 16px 0;
  }

  .works-list li a span {
    font-size: 1.2rem;
  }
}

/* Other
----------------------------------------------------------------------------------------------------*/

.top-other {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 0 auto 190px;
  width: 100%;
  max-width: 1510px;
  padding-right: 30px;
  padding-left: 30px;
}

.top-other-box {
  max-width: 470px;
  background-color: #fff;
  border: 1px solid #cccccc;
  border-radius: 20px;
  box-shadow: 0 2.5rem 2rem -2rem hsl(200 50% 20% / 40%);
  padding: 26px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-other-box h3 {
  font-weight: 700;
  font-size: 3.2rem;
  margin-bottom: 40px;
}

.top-other-box img {
  height: 140px;
  width: auto;
  display: inline;
  margin: 0 auto 60px;
}

.top-other-box p {
  font-size: 2.0rem;
  text-align: left;
  flex-grow: 1;
  margin-bottom: 25px;
}

.top-other-box .button {
  margin: 0 auto;
}

@media screen and (max-width: 1510px) {
  .top-other {
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 120px;
  }

  .top-other-box {
    width: 100%;
    margin: 0 auto;
    padding: 18px 30px 36px;
  }
}

@media screen and (max-width: 768px) {
  .top-other {
    margin: 0 auto;
    margin-bottom: 120px;
  }

  .top-other-box {
    width: auto;
    max-width: 330px;
  }

  .top-other-box h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .top-other-box img {
    height: 100px;
    margin: 0 auto 40px;
  }

  .top-other-box p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  .top-other-box .button {
    width: 176px;
    height: 43px;
  }

  .top-other-box .button span {
    font-size: 1.264rem;
  }

  .top-other-box .button-icon {
    width: 14px;
  }

}

/* Contact02
----------------------------------------------------------------------------------------------------*/
.top-contact02 {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto 180px;
  padding-right: 30px;
  padding-left: 30px;
}

.top-contact02-wrapper {
  display: flex;
  justify-content: space-between;
}

.top-contact02-left {
  width: calc(1044 / 1509 *100%);
}

.top-contact02-right {
  width: calc(425 / 1509 *100%);
}

.top-contact02 h3 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 54px;
  padding-bottom: 50px;
  border-bottom: solid 1px #cccccc;
}

.top-contact02-left p {
  font-size: 2.0rem;
}

.top-contact02-left_scroll {
  margin-bottom: 20px;
}

.top-contact02-left ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  margin-bottom: 30px;
  gap: 15px 30px;
  padding: 0;
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.top-contact02-left li {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  padding: 5px 2px;
  border: solid #000 1px;
}

.top-contact02-right {
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}


@media screen and (max-width: 1510px) {

  .top-contact02-wrapper {
    flex-direction: column;
  }

  .top-contact02-right {
    width: 100%;
    height: 100px;
  }

  .top-contact02-left {
    width: 100%;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 768px) {

  .top-contact02 {
    margin-bottom: 80px;
  }


  .top-contact02 h3 {
    font-size: 2.4rem;
    margin-bottom: 32px;
    padding-bottom: 30px;
  }

  .top-contact02-left_scroll {
    overflow-x: auto;
    scrollbar-color: #cccccc #FFF;
  }


  .top-contact02-left p {
    font-size: 1.6rem;
  }

  .top-contact02-left_scroll::-webkit-scrollbar {
    display: none;
  }

  .top-contact02-left ul {
    padding: 18px;
    margin-bottom: 0;
  }

  .top-contact02-left li {
    width: 320px;
  }

}



/* Info
----------------------------------------------------------------------------------------------------*/
.top-info {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto 160px;
  padding-right: 30px;
  padding-left: 30px;
  /* デフォルトの列幅 */
  --date-width: 152px;
  --label-width: 152px;
}

.top-info h3 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 54px;
  padding-bottom: 50px;
  border-bottom: solid 1px #cccccc;
}

.news-list {
  font-family: "Noto Sans JP", sans-serif;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.news-list li>div {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  transition: all ease 0.5s;
}

.news-list li>div .date {
  display: block;
  flex: 0 0 var(--date-width);
  min-width: 0;
  /* 重要：子要素の折返しのため */
  box-sizing: border-box;
  font-size: 1.6rem;
}

.news-list li>div .label {
  flex: 0 0 var(--label-width);
  width: var(--label-width);
  height: 32px;
  height: 32px;
  font-size: 1.6rem;
  border-radius: 15px;
  color: #fff;
  display: inline-flex;
  /* 中央寄せにするなら inline-flex + center */
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* タイトル（伸長） */
.news-list li>div .title {
  flex: 1 1 auto;
  font-size: 2.0rem;
  min-width: 0;
  /* 重要：長いテキストで横スクロールしないようにする */
  line-height: 1.4;
}


/* .news-list li>a:hover {
  background-color: #eaeaea;
} */

/* .news-list li>a:hover .date,
.news-list li>a:hover .title {
  color: #FFF;
} */

/* バリエーション色 */
.label.event {
  background: #3fa9f5;
}

.label.update {
  background: #7ac943;
}

.label:not(.event):not(.update) {
  background: #f15a24;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {

  .top-info {
    /* 変数をコンテナで上書き */
    --date-width: 120px;
    --label-width: 120px;
  }
}

@media screen and (max-width: 768px) {

  .top-info {
    margin-bottom: 140px;
  }

  .top-info h3 {
    font-size: 2.4rem;
    margin-bottom: 32px;
    padding-bottom: 30px;
  }

  .news-list li {
    display: none;
    padding: 0;
  }

  /* 最初の1件だけ表示する */
  .news-list li:first-child {
    display: block;
  }

  /* 最初の1件だけ grid にして見出しとラベルを整列 */
  .news-list li:first-child>div {
    display: grid;
    /* 重要：左列＝日付、右列＝ラベル／本文。右列（1fr）がタイトルの左端になる */
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date label"
      "title title";
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }

  /* 日付（左列） */
  .news-list li:first-child .date {
    grid-area: date;
    width: 80px;
    /* モバイルでも変数で調整可能 */
    min-width: 0;
    white-space: normal;
    font-size: 1.6rem;
    align-self: start;
  }

  /* ラベル（右列） — 左詰めにする */
  .news-list li:first-child .label {
    grid-area: label;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 15px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .news-list li:first-child .title {
    grid-area: title;
    white-space: normal;
    min-width: 0;
    font-size: 1.4rem;
  }
}


/* Link
----------------------------------------------------------------------------------------------------*/
.top-link {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  /* 明示的に2列にする（左・右）とする */
  grid-template-columns: repeat(2, 1fr);
  /* 1行目は banner-xon を2列にまたがらせる */
  grid-template-areas:
    "banner-xon banner-xon"
    "banner-nakagawa banner-regi-fukuro";
  column-gap: 18px;
  row-gap: 20px;
  align-items: stretch;
  box-sizing: border-box;
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 140px;
}

/* 共通スタイル */
a.banner-xon,
a .banner-nakagawa,
a .banner-regi-fukuro {
  border: 1px solid #c8c9ca;
  border-radius: 10px;
  transition: 0.5s all ease;
  /* overflow: hidden;
  background: #fff;
  box-sizing: border-box; */
}

a.banner-xon:hover,
a:hover .banner-nakagawa,
a:hover .banner-regi-fukuro {
  opacity: 0.5;
  border: 1px solid #93af2f;
}


/* gridエリアを割り当てる（重要） */
.banner-xon {
  grid-area: banner-xon;
  height: 140px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-xon div {
  white-space: nowrap;
}

.banner-xon-img {
  max-width: 460px;
}

/* 下段の左右 */
.banner-nakagawa {
  grid-area: banner-nakagawa;
  height: 100px;
}

.banner-regi-fukuro {
  grid-area: banner-regi-fukuro;
  height: 100px;
}

/* 画像がはみ出ないように */
.banner-nakagawa,
.banner-regi-fukuro {
  /* もし要素が img タグのままなら以下で対応 */
  width: 100%;
}

.banner-nakagawa img,
.banner-regi-fukuro img,
.banner-xon img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* スマホ等：1列に並べる */
@media screen and (max-width: 768px) {
  .top-link {
    margin: 0 auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner-xon"
      "banner-nakagawa"
      "banner-regi-fukuro";
  }

  .banner-xon {
    height: auto;
    padding: 12px 25px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .banner-xon div {
    font-size: 1.4rem;
  }


  .banner-nakagawa,
  .banner-regi-fukuro {
    height: auto;
    /* 高さ自動 */
    width: 100%;
  }

}