@charset "utf-8";

/* 基本スタイル */
body {
  margin: 0;
  /* font-family: 'Roboto', 'Noto Sans JP', sans-serif; */
  font-family: Arial, sans-serif;
  background-color: #fff;
  /* 背景色 */
}

/* 視覚的に隠すけど読み上げられる */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  display: block;
}

.text-container {
  position: relative;
  width: 770px;
  height: 150px;
  overflow: hidden;
}

.text1,
.text2 {
  position: absolute;
  top: 0;
  left: -100%;
  font-size: 104px;
  font-weight: bold;
}

.text1 {
  top: 0;
  background: linear-gradient(to right, rgba(1, 150, 249, 0.2), rgba(226, 252, 191, 0.5), rgba(1, 150, 249, 0.2));
  /* 指定された色のグラデーション */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text2 {
  top: 30px;
  animation-delay: 0.5s;
  -webkit-text-stroke: 1px #2f3a91;
  /* アウトラインのスタイル */
  color: transparent;
}

@keyframes slideInText1 {
  0% {
    left: -100%;
  }

  100% {
    left: 20px;
    /* テキスト1の最終位置を右に50ピクセル移動 */
  }
}

@keyframes slideInText2 {
  0% {
    left: -100%;
  }

  100% {
    left: 40px;
    /* テキスト2の最終位置を右に30ピクセル移動 */
    top: 20px;
  }
}

.r {
  display: flex;
  justify-content: flex-end;
  /* margin-bottom: 100px; */
  max-width: 100%;
  margin: 0 auto;

}

.l {
  display: flex;
  justify-content: flex-start;
  /* margin-bottom: 100px; */
  max-width: 100%;
  margin: 0 auto;
}

.text-container1 {
  position: relative;
  width: 1100px;
  height: 150px;
  overflow: hidden;
  right: 0;
  /* 右に配置 */
}

.text3,
.text4 {
  position: absolute;
  top: 0;
  right: -100%;
  font-size: 104px;
  font-weight: bold;
}

.text3 {
  top: 0;
  background: linear-gradient(to right, rgba(1, 150, 249, 0.2), rgba(226, 252, 191, 0.5), rgba(1, 150, 249, 0.2));
  /* 指定された色のグラデーション */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text4 {
  top: 30px;
  animation-delay: 0.5s;
  -webkit-text-stroke: 1px #2f3a91;
  /* アウトラインのスタイル */
  color: transparent;
}

@keyframes slideInText3 {
  0% {
    right: -100%;
  }

  100% {
    right: 20px;
  }
}

@keyframes slideInText4 {
  0% {
    right: -100%;
  }

  100% {
    right: 40px;
    top: 20px;
  }
}

/* アニメーションを開始するクラス */
.start .text1,
.start .text2 {
  animation: slideInText1 1s forwards cubic-bezier(0.33, 0, 0.2, 1);
}

.start .text2 {
  animation: slideInText2 1s forwards cubic-bezier(0.33, 0, 0.2, 1);
  animation-delay: 0.5s;
}

.start .text3 {
  animation: slideInText3 1s forwards cubic-bezier(0.33, 0, 0.2, 1);
}

.start .text4 {
  animation: slideInText4 1s forwards cubic-bezier(0.33, 0, 0.2, 1);
  animation-delay: 0.5s;
}

/* トップ画面のsnsアイコン */

/* ヘッダーのスタイル */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 中央揃え */
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  background-color: #fff;
}

.header-logo-bg {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

/* ロゴのスタイル */
.header-logo {
  display: flex;
  /* 明示的にflexに設定 */
  margin: 20px;
}

svg#defro-icon {
  width: 40px;
}

.cls-11 {
  fill: #2f3a91;
  stroke-width: 0px;
}

/* ナビゲーションバーのスタイル */
.navbar {
  font-weight: bold;
  margin: 10px 25px;
  /* ロゴと同じ余白を設定 */
}

.accordion {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.button-name {
  font-size: 1rem;
}

.navbar .accordion-button {
  position: relative;
  overflow: hidden;
  /* 下線アニメーションのために必要 */
  color: #2f3a91;
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  background-color: #fff;
}

/* 下線アニメーションのスタイル */
.navbar .accordion-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #2f3a91;
  /* 下線の色 */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

/* ホバー時の下線アニメーション */
.navbar .accordion-button:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#works-accordion .accordion-content {
  background-color: rgb(255, 255, 255, 0.7);
  /* お好みの色に設定 */
  width: 202px;
}

.navbar .accordion-content {
  position: absolute;
  top: 100%;
  width: 200px;
  max-height: 0;
  /* 初期状態では高さ0 */
  overflow: hidden;
  background-color: rgb(255, 255, 255, 0.7);
  transition: max-height 0.5s ease-in-out;
  /* アニメーション効果 */
}

.navbar .accordion-content a {
  color: #0196f9;
  padding: 5px;
  text-decoration: none;
  display: block;
  font-weight: bold;
  text-align: left;
  /* リンクテキストも左揃えにする */
}

.navbar .accordion-content a:hover {
  background-color: #FEFFAC;
}

.navbar .accordion-button.active+.accordion-content {
  max-height: 500px;
  /* 十分な高さを設定 */
}

/* ハンバーガーメニューのスタイル */
/* ========== ハンバーガーメニュー（スマホ用） ========== */
.hamburger-menu {
  position: fixed;
  top: 0;
  right: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 60px;
  height: 60px;
  z-index: 2000;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 40px;
  height: 2px;
  background-color: #2f3a91;
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}

/* バツ（×）アニメーション */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
}

/* ========== ハンバーガーナビ（スマホ時） ========== */
.hamburger-nav {
  position: fixed;
  top: 0;
  left: -100%;
  /* 非表示（初期） */
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  transition: left 0.3s ease;
  z-index: 1000;
}

/* メニュー表示状態 */
.hamburger-nav.open {
  left: 0;
}

.hamburger-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.hamburger-nav li a {
  text-decoration: none;
  color: #2f3a91;
  font-size: 1rem;
}


/* ========== メディアクエリ：PCサイズ（768px〜） ========== */
@media screen and (min-width: 768px) {

  /* ハンバーガーメニューは非表示に */
  .hamburger-menu {
    display: none;
  }

  /* 通常のナビゲーション（.navbar）を表示 */
  .navbar {
    display: block;
  }
}

/* ========== メディアクエリ：スマホサイズ（〜767px） ========== */
@media screen and (max-width: 767px) {
  .navbar {
    display: none;
  }
}

/* 流れるテキストーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.flowing-text {
  position: fixed;
  top: 80px;
  /* ナビゲーションバーの下に配置 */
  left: 0;
  width: 100%;
  background-color: #fff;
  /* 背景色を半透明に設定 */
  z-index: 150;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* 画像とテキストを中央揃え */
  height: 50px;
}

.flowing-content {
  display: flex;
  align-items: center;
  animation: flow 20s linear infinite;

}

.flowing-text img {
  width: 40px;
  /* 画像の高さを調整 */
  height: auto;
  margin-left: 40px;
}

.flowing-text p {
  font-size: 1.2em;
  color: #2f3a91;
  /* テキストの色 */
  margin-left: 10px;
  font-weight: 500;
}


@keyframes flow {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  .flowing-text {
    top: 60px;
    /* さらに小さい画面での位置を調整 */
  }

  .flowing-content {
    animation: flow 15s linear infinite;
    /* アニメーションの速度を速くする */
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .flowing-text {
    top: 60px;
    /* さらに小さい画面での位置を調整 */
  }

}

/* メディアクエリで小さい画面の調整 */
@media (max-width: 640px) {
  .flowing-text {
    top: 60px;
    /* さらに小さい画面での位置を調整 */
  }

  .flowing-text p {
    font-size: 1.0em;
  }

  .flowing-content {
    animation: flow 15s linear infinite;
    /* アニメーションの速度を速くする */
  }
}

/* 流れるテキストここまでーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

/* TOPセクションのスタイルーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.main_block {
  position: relative;
  z-index: 111;
  height: 100vh;
  margin-bottom: 150px;
}

.slide-container {
  position: absolute;
  width: 700px;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  top: 0;
  right: 0;
  z-index: -1;
  gap: 20px;
  flex-direction: column;
}

.slide-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 4440px;
  animation: slide-flow 50s infinite linear 1s both;
}

.slide {
  width: 800px;
  object-fit: cover;
  border: 1px solid #ddd;
}

@keyframes slide-flow {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

.title {
  position: sticky;
  top: 35%;
  /* left: 10%; */
  margin-left: 10%;
}

.title .outline-text {
  display: inline-block;
  /* インラインブロック要素として表示 */
  -webkit-text-stroke: 1.5px #0196f9;
  /* アウトラインの色と太さを設定 */
  color: transparent;
  /* テキストの色を透明に設定 */
  font-size: 80px;
  /* テキストのサイズを大きくする */
  text-align: left;
  /* テキストを左揃えに */
  margin: 0;
  /* 余白をリセット */
  font-family: 'Noto Serif JP', serif;
}

span.outline-text-c {
  font-size: 50px;
  color: transparent;
  /* テキストの色を透明に設定 */
  -webkit-text-stroke: 1.2px #0196f9;
  /* アウトラインの色と太さを設定 */
  text-align: left;
  /* テキストを左揃えに */
  margin: 0;
  /* 余白をリセット */
  font-family: 'Noto Serif JP', serif;
}

.outline-text,
.outline-text-c {
  letter-spacing: 1px;
  /* ここで文字間のスペースを調整 */
}

/* 768px以下の画面幅の場合 */
@media screen and (max-width: 768px) {

  .title h1 .outline-text,
  .title h1 .outline-text-c {
    mix-blend-mode: difference;
    color: #0196f9;
    /* ブレンドモードを適用したときのテキスト色 */
  }
}

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

  .title h1 .outline-text,
  .title h1 .outline-text-c {
    mix-blend-mode: difference;
    color: #0196f9;
    /* ブレンドモードを適用したときのテキスト色 */
  }
}

/* 画面幅 576px から 767px の場合 */
@media screen and (min-width: 576px) and (max-width: 767px) {

  .title h1 .outline-text,
  .title h1 .outline-text-c {
    mix-blend-mode: difference;
    color: #0196f9;
    /* ブレンドモードを適用したときのテキスト色 */
  }
}

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

  .title h1 .outline-text,
  .title h1 .outline-text-c {
    mix-blend-mode: difference;
    color: #0196f9;
    /* ブレンドモードを適用したときのテキスト色 */
  }
}

.svg-container {
  position: absolute;
  right: 10px;
  bottom: 20px;
  z-index: 10;
}

.svg-container svg {
  width: 50%;
  height: auto;
}

.cls-1 {
  fill: none;
  stroke: #caff60;
  stroke-miterlimit: 10;
  stroke-width: 1.42px;
}

.cls-2 {
  fill: #caff60;
  /* グラデーションを適用 */
  stroke-width: 0px;
}

#works {
  width: 100%;
  /* 幅を100%に設定 */
  padding: 20px;
  /* パディングを設定 */
  box-sizing: border-box;
  /* ボックスサイズをborder-boxに設定 */
}

.section-title {
  position: relative;
  margin: 0 auto;
}

/* グラデーションテキストのスタイル */
.background-title {
  position: absolute;
  top: -130%;
  font-size: 200px;
  background: linear-gradient(to right, rgba(1, 150, 249, 0.2), rgba(226, 252, 191, 0.3), rgba(1, 150, 249, 0.1));
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

/* アウトラインテキストのスタイル */
.foreground-title {
  position: absolute;
  top: 50px;
  /* 親要素の中央に配置 */
  left: 25px;
  /* 親要素の中央に配置 */
  font-size: 150px;
  -webkit-text-stroke: 1.5px #2f3a91;
  /* アウトラインの色と太さ */
  color: transparent;
  white-space: nowrap;
  /* 改行を防ぐ */
  opacity: 0;
  /* 初期状態では透明 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

.start-animation .foreground-title,
.start-animation .background-title {
  animation: slideInFromLeft 1s ease forwards;
  /* アニメーションを適用 */
}

/* グラデーションテキストのスタイル */
.background-title-1 {
  position: absolute;
  top: -130%;
  /* 親要素の中央に配置 */
  right: 25px;
  /* 親要素の中央に配置 */
  font-size: 200px;
  background: linear-gradient(to right, rgba(1, 150, 249, 0.2), rgba(226, 252, 191, 0.3), rgba(1, 150, 249, 0.1));
  /* 指定された色のグラデーション */
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  /* 改行を防ぐ */
  opacity: 0;
  /* 初期状態では透明 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

/* アウトラインテキストのスタイル */
.foreground-title-1 {
  position: absolute;
  top: 50px;
  /* 親要素の中央に配置 */
  right: 25px;
  /* 親要素の中央に配置 */
  font-size: 150px;
  -webkit-text-stroke: 1.5px #2f3a91;
  /* アウトラインの色と太さ */
  color: transparent;
  white-space: nowrap;
  /* 改行を防ぐ */
  opacity: 0;
  /* 初期状態では透明 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

.start-animation .foreground-title-1,
.start-animation .background-title-1 {
  animation: slideInFromRight 1s ease forwards;
  /* アニメーションを適用 */
}

/* トピックセクションーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#infom {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  margin: 80px auto;
  margin-bottom: 40px;
}

/* .info {
  color: rgb(100, 249, 50);
  font-family: "Hiragino Mincho Pro", "MS PMincho", "serif"; 
  font-size: 2rem;
  margin-left: 30px;
} */
/* アウトライン文字のスタイル */
.info {
  /* -webkit-text-stroke: 1px #2f3a91; */
  font-family: "Hiragino Mincho Pro", "MS PMincho", "serif";
  /* 明朝体フォントを指定 */
  /* color: transparent;  */
  font-size: 2rem;
  /* フォントサイズの調整 */
  /* font-weight: bold;  */
  padding-left: 100px;
  color: #a9a7a7;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .info {
    font-size: 2rem;
    /* フォントサイズを調整 */
    padding-left: 100px;
  }
}

/* 画面幅 576px から 767px の場合 */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .info {
    font-size: 2rem;
    margin: 0 auto;
    padding: 0;
  }
}

@media screen and (max-width: 575px) {
  .info {
    font-size: 1.5rem;
    margin: 0 auto;
    padding: 0;
  }
}

.topics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  /* 縦のスペースを縮めるためにgapを小さく設定 */
  /* background: #f6f6f6; */
  /* padding: 20px; */
  /* 縦のスペースを縮めるためにpaddingを小さく設定 */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  max-width: 1000px;
  margin: 20px auto;
  /* トピックス全体のマージンを小さく設定 */
}

.topics-line {
  display: flex;
}

/* フェードアップアニメーションのスタイル */
#infom .topics {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.topics img {
  /* width: 300px; */
  /* 画像の最大幅を指定してサイズを小さく設定 */
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.topics-text {
  box-sizing: border-box;
  max-width: 600px;
  /* padding: 10px 30px 10px 20px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2f3a91;
  line-height: 1.7;
  /* 行間を縮める */
  font-weight: 500;
}

.topics-text h2 {
  color: #2f3a91;
  margin-bottom: 10px;
  /* 縦のスペースを縮めるためにmarginを小さく設定 */
  /* font-family: "Hiragino Mincho Pro", "MS PMincho", "serif";  */
}

.topics-text p {
  margin-bottom: 10px;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-all;
  /* 縦のスペースを縮めるためにmarginを小さく設定 */
  /* font-family: "Hiragino Mincho Pro", "MS PMincho", "serif"; */
}

.date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f05328;
  text-decoration: line-through;
  opacity: 0.8;
  margin-bottom: 10px;
  font-family: "Hiragino Mincho Pro", "MS PMincho", "serif";
  /* 明朝体フォントを指定 */
}

.topics-button {
  margin-top: 10px;
  /* 縦のスペースを縮めるためにmarginを小さく設定 */
  padding: 10px 10px;
  width: 200px;
  background-color: transparent;
  color: #2f3a91;
  text-decoration: none;
  border: 1px solid #2f3a91;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
  align-self: center;
}

.topics-button:hover {
  background-color: #2f3a91;
  color: #ffffff;
  transform: scale(1.05);
}

.topics-button:active {
  background-color: transparent;
  color: #2f3a91;
  transform: scale(1);
}

.topics-image {
  flex: 1;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}
.topics-image img {
  width: 100%;
}

/* モーダルのスタイルーーーーーーーーーーーーーーーーーーーーーーーーー */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  box-sizing: border-box;
  text-align: center;
  overflow: auto;
  /* モーダル内コンテンツのスクロールを許可 */
  max-height: 80vh;
  /* モーダルの最大高さを設定 */

}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 準備中メッセージのスタイル */
#preparation-message {
  font-size: 1.5em;
  color: coral;
  margin-top: 20px;
  font-family: "Hiragino Mincho Pro", "MS PMincho", "serif";
  /* 明朝体フォントを指定 */
}

/* フライヤー画像のスタイル */
.flyers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* 画像が折り返されるようにする */
  margin-bottom: 10px;
}

.flyers img {
  max-width: 48%;
  margin: 1%;
  height: auto;
  display: inline-block;
  /* 画像を横並びに表示 */
}

/* Responsive Styles */
@media (max-width: 768px) {
  #infom {
    margin-bottom: 20px;
  }

  .topics {
    flex-direction: column-reverse;
    align-items: center;
    margin: 20px;
    padding-top: 20px;
    gap: 20px;
  }

  .topics-text {
    max-width: 100%;
    /* padding: 20px; */
    text-align: start;
    padding-bottom: 20px;
  }

  .date {
    font-size: 1rem;
    color: coral;
    padding: 0 5px;
    text-align: center;
  }

  .topics img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    /* レスポンシブ用のマージンを小さく設定 */
  }

  .topics-button {
    width: auto;
  }

  .modal-content {
    width: 90%;
    max-height: 80vh;
    /* モーダルの最大高さを設定 */
  }

  .flyers {
    flex-direction: column;
  }

  .flyers img {
    max-width: 100%;
    margin-bottom: 10px;
    display: block;
    /* 画像を縦並びに表示 */
  }
}

/* トピックセクションはここまでーーーーーーーーーーーーーーーーーーー */

/* GOODSセクションはここカラーーーーーーーーーーーーーーーーーーーーー */
#goods {
  padding: 10px;
}

.goods-container {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  /* background: #d3fae0; */
  margin: 0 auto;
  max-width: 1200px;
  gap: 50px;
  margin-bottom: 50px;
  margin-top: 50px;
}

/* フェードアップアニメーションのスタイル */
.goods-container {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.goods-item {
  flex: 1;
  text-align: center;
}

.goods-item img {
  width: 100%;
  max-width: 75%;
  /* 画像の幅をコンテナに合わせる */
  height: auto;
  vertical-align: bottom;
}

.goods-text {
  flex: 2;
  padding: 0 20px;
  max-width: 45%;
  background: #f6f6f6;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.goods-text h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2f3a91;
}

.goods-text p {
  /* margin-bottom: 10px; */
  /* font-size: 16px; */
  line-height: 1.7;
  color: #2f3a91;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-all;
}

.goods-button {
  margin-top: 10px;
  /* 縦のスペースを縮めるためにmarginを小さく設定 */
  padding: 10px 10px;
  width: 200px;
  background-color: transparent;
  color: #2f3a91;
  text-decoration: none;
  border: 1px solid #2f3a91;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
}

.goods-button:hover {
  background-color: #2f3a91;
  color: #ffffff;
  transform: scale(1.05);
}

.goods-button:active {
  background-color: transparent;
  color: #2f3a91;
  transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .goods-container {
    flex-direction: column;
    align-items: center;
    margin: 0 20px 40px;
    gap: unset;
  }

  .goods-text {
    max-width: 100%;
    /* text-align: center; */
    padding: 10px;
  }

  .goods-item {
    max-width: 100%;
  }

  .goods-item img {
    width: 100%;
    /* レスポンシブ時に画像の幅を調整 */
  }

  .goods-button {
    width: auto;
  }
}

/* GOODSセクションはここまでーーーーーーーーーーーーーーーーーーーーーーーー */

/* グリッドコンテナのスタイル */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3列のグリッド */
  grid-auto-rows: 1fr;
  /* ← これを追加！ */
  grid-gap: 20px;
  /* グリッドアイテム間のギャップ */
  /* padding: 20px; */
  /* コンテナのパディング */
  max-width: 1200px;
  /* 最大幅 */
  margin: 100px auto 40px;
  /* 中央揃え */
}

.grid-item {
  background-color: #fff;
  /* 背景色 */
  text-align: center;
  /* テキストを中央揃え */
  border: 1px solid #ccc;
  /* 境界線 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 影の追加 */
  text-decoration: none;
  /* リンクの下線を消す */
  color: inherit;
  /* リンクの色を継承 */
  overflow: hidden;
  /* はみ出した部分を隠す */
  /* opacity: 0; */
  /* 初期状態では透明 */
  /* transform: translateY(60px); */
  /* 少し下にずらしておく */
  /* min-height: 180px;  */
  min-height: unset;
  /* もし指定していたら外す or 調整する */
  transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.5s ease-in-out;
  /* アニメーションの設定 */
}

/* アニメーションを適用するクラス */
.grid-item.visible {
  opacity: 1;
  /* 完全に不透明に */
  transform: none;
  /* 元の位置に戻す */
}

/* ホバー時のスタイル */
.grid-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* 影を強調 */
  /* background-color: #9bfe99; */
  background-color: rgba(155, 254, 153, 0.6);
  /* 透明度は0.0〜1.0で調整 */
}

/* ホバー前のスタイル */
.grid-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.grid-item:hover img {
  transform: scale(1.1);
}

.grid-item h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #2f3a91;
  padding: 0 8px;
}

.grid-item p {
  font-size: 0.85rem;
  color: #2f3a91;
  padding: 0 8px;
  line-height: 1.6;
}

.grid-item .subtitle {
  font-size: 0.95em;
  color: #2f3a91;
  padding: 0 20px;
  margin: 0 0 4px 0;
  /* 下だけ少し余白、上は0 */
  text-align: left;
  line-height: 1.0;
}

.grid-item .maintitle {
  font-size: 1.2em;
  color: #2f3a91;
  margin: 0;
  /* 上下とも余白をなくす */
  padding: 0 30px;
  text-align: left;
  line-height: 1.0;
}

.grid-item.new {
  position: relative;
}

.grid-item.new::before {
  content: '新着';
  position: absolute;
  top: 15px;
  left: 10px;
  background-color: #caff60;
  /* あなたの指定した黄緑色 */
  color: #333;
  font-size: 0.8em;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 5px;
  animation: blink 1.8s infinite;
  z-index: 1;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* h3とp要素のスタイル */
.grid-item h2,
.grid-item p {
  text-align: left;
  /* テキストを左寄せに設定 */
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    /* 画面が小さい場合は2列に */
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
    /* さらに小さい画面では1列に */
    margin-bottom: 50px;
  }
}

#about {
  position: relative;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 40px;
}

/* フェードアップアニメーションのスタイル */
.about-container .about-content,
.about-container .about-image,
#access .access-container .company-info-list,
#access .access-container .access-map {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-container .about-content.fade-up,
.about-container .about-image.fade-up,
#access .access-container .company-info-list.fade-up,
#access .access-container .access-map.fade-up {
  opacity: 1;
  transform: translateY(0);
}

.section-title-right {
  position: relative;
  /* 子要素の絶対位置指定の基準点 */
  margin: 0 auto;
}

/* ABOUTセクションのスタイル */
.about-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 70px auto 0;
  align-items: end;
}

.about-content {
  flex: 2;
  padding-right: 20px;
  color: #2f3a91;
}

.about-content h3 {
  font-size: 1.5rem;
  color: #2f3a91;
}

.about-content .subtitle {
  font-size: 1.2rem;
  color: #2f3a91;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-all;
}

.about-image {
  flex: 1.5;
  margin-left: 90px;
}

/* ABOUTセクションの写真スタイル */
.about-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  display: block;
}

h3.boss {
  font-size: 1.8em;
  /* 通常のフォントサイズ */
}

.career-content {
  background-color: #f6f6f6;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin: 20px 0;
  /* 上下のマージン */
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 70px;
}

.title1 {
  color: #2f3a91;
}

.history-box,
.achievement {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  color: #2f3a91;
}

.achievement h4 {
  font-weight: bold;
  margin-bottom: 10px;
  color: #2f3a91;
}

.achievement p {
  margin-bottom: 10px;
  color: #2f3a91;
}

/* 最後の実績項目の下線を削除 */
.achievement:last-child {
  border-bottom: none;
}

#access {
  width: 100%;
  margin-bottom: 50px;
}

.access-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 70px auto;
  gap: 30px;
}

.company-info-list {
  width: 48%;
  /* 両方とも幅を48%に設定 */
}

.access-map {
  width: 70%;
}

.access-map iframe {
  width: 100%;
  /* iframeの幅を親要素に合わせる */
  height: 410px;
  vertical-align: bottom;
}

/* 会社情報リストのスタイル */
.company-info-list {
  width: 100%;
  box-sizing: border-box;
  list-style: none;
  padding: 0 15px;
  margin: 0 auto;
  color: #2f3a91;
  line-height: 2.5;
}

.company-info-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  /* 下線を追加 */
  padding-bottom: 10px;
  /* 下線とテキストの間隔 */
}

.company-info-item dl {
  display: flex;
  align-items: center;
  width: 100%;
}

.company-info-item dt {
  font-weight: 600;
  color: #2f3a91;
  width: 30%;
  /* dt要素の幅を30%に設定 */
  min-width: 100px;
  font-size: 1rem;
  /* dt要素の最小幅を設定 */
}

.company-info-item dd {
  margin: 0;
  /* マージンをリセット */
  text-align: left;
  /* テキストを左揃えに */
  width: 70%;
  /* dd要素の幅を70%に設定 */
}
.company-info-item dd:last-of-type {
  width: 100%;
} 

.company-info-list li a {
  text-decoration: none;
  font-weight: 600;
  color: #2f3a91;
}

.company-info-list li a :hover {
  color: coral;
}

#contact {
  display: flex;
  /* Flexboxを使用 */
  justify-content: center;
  /* 横方向の中央揃え */
  align-items: center;
  /* 縦方向の中央揃え */
  padding: 20px;
  /* 必要に応じてパディングを設定 */
  margin-top: 50px;
}

.contact-container {
  position: relative;
  max-width: 900px;
  /* 必要に応じて調整 */
  width: 100%;
  margin: 0 auto;
  /* コンテナを中央に配置 */
  margin-bottom: 100px;
  padding: 15px;
  /* コンテナの周囲にスペースを追加 */
  border: 1px solid #2f3a91;
  /* border-radius: 10px; */
}

/* フェードアップアニメーションのスタイル */
.contact-container {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-container.fade-up {
  opacity: 1;
  transform: translateY(0);
}

#contact h3 {
  color: #2f3a91;
  font-size: 1rem;
  /* タイトルのフォントサイズ */
  text-align: start;
  /* タイトルを中央揃えに */
  margin-bottom: 20px;
  /* タイトルとフォーム要素との間のマージン */
}



/* 非常に小さな画面用の追加メディアクエリ */
@media (max-width: 480px) {
  /* ここに必要なスタイルを追加 */
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.form-group div {
  display: flex;
  /* ラジオボタンを横並びにする */
  align-items: center;
  /* 中央揃え */
  justify-content: space-around;
  gap: 15px;
  /* ボタン間の間隔 */
  margin-top: 20px;
}

.form-group label {
 width: 20%;
  align-items: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #2f3a91;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #2f3a91;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
  vertical-align: bottom;
}

.form-group input[type="radio"] {
  margin-right: 5px;
}

.form-group button[type="submit"] {
  background-color: #2f3a91;
  color: white;
  font-weight: bold;
  padding: 10px 80px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0 auto;
}

.form-group button[type="submit"]:hover {
  background-color: #d2fd78;
  color: #2f3a91;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    width: 100%;
    /* 小さな画面での全幅 */
  }

.form-group label {
  width: 100%;
}
}
/* フッターのスタイル */
footer {
  background-color: #2f3a91;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  /* margin-top: 200px; */
  width: 100%;
}

.footer-menu {
  list-style: none;
  padding: 0;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 30px auto 20px;
  align-items: center;
}

.footer-menu li {
  position: relative;
  /* サブメニューの位置調整のため */
}

.footer-menu li a {
  position: relative;
  /* font-weight: bold; */
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

/* ホバー時の下線アニメーション */
.footer-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #fff;
  /* 下線の色 */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

/* リンクにホバーしたときのスタイル */
.footer-menu li a:hover {
  color: #d2fd78;
  /* ホバー時のテキスト色 */
}

.footer-menu li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

footer p {
  font-size: 13px;
  margin-top: 30px;
  display: inline-block;
}

/* topに配置したアイコン */
.footer-icon {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  position: fixed;
  top: 80%;
  right: 1%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

svg.icon-x {
  fill: #000;
}

svg.icon-y {
  fill: rgb(102, 102, 102);
}
/* トップに戻るボタン */
.button_top {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 20px;
  right: 25px;

  /* 表示制御 */
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s, transform 0.5s, background-color 0.5s, color 0.5s;

  /* 見た目 */
  z-index: 999;            /* ← 前面へ（0だと埋もれます） */
  cursor: pointer;
  background-color: #d2fd78;
  color: #2f3a91;
  text-decoration: none;
  font-size: 16px;
  border-radius: 50%;

  /* 中央寄せ */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  /* 疑似要素の基準にする */
  position: fixed;
  /* 追加！ */
  /* fixedでも “基準” にしたいので relative も付与 */
  /* 一部ブラウザで absolute の包含ブロックが安定します */
  /* Safari対策として transform コンテキストを作るのも有効 */
  transform-origin: center;
}
.button_top { position: fixed; }
.button_top::before {
  content: none !important;
  position: absolute;          /* ← 円の中央基準で配置 */
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-50%, -55%) rotate(-45deg);
  pointer-events: none;        /* タップ反応を邪魔しない */
}

/* ホバー（PC向けだけの装飾。スマホはほぼ発火しません） */
.button_top:hover {
  background-color: #fff !important;
  color: #2f3a91 !important;
  transform: translateX(0) scale(1.06); /* 少しだけ拡大に弱める */
}
/* .button_top:hover::before {
  
} */

/* 表示時クラス */
.button_top.visible {
  opacity: 1;
  transform: translateX(0);
}

/* スマホで少し小さくしてズレ/はみ出しを回避 */
@media (max-width: 480px) {
  .button_top {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    font-size: 14px;
  }
  .button_top::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}
/* 左からスライドインするアニメーション */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 右からスライドインするアニメーション */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.col {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  /* SVGを背景に */
}

.company-name {
  font-size: 1.5em;
  /* 適切なフォントサイズに調整 */
  margin-top: 20px;
  /* 上部のマージンを調整 */
}

.content-container {
  display: flex;
  /* フレックスボックスを使用 */
  gap: 50px;
  align-items: flex-start;
  /* 上部で要素を揃える */
  padding: 20px;
}

.breadcrumb-container {
  flex-basis: 20%;
  /* 左側のカラムの幅 */
  position: sticky;
  /* 固定表示 */
  top: 150px;
  /* 上部に固定 */
}

#policy {
  max-width: 900px;
  padding: 20px;
  margin-top: 100px;
  /* パンくずリストとの間隔 */
  flex-basis: 80%;
  /* 右側のカラムの幅 */
  overflow-y: auto;
  /* 縦スクロール */
}

div#policy h1,
h2 {
  color: #2f3a91;
  margin-top: 20px;
  /* 上のマージン */
}

div#policy p {
  color: #2f3a91;
  font-size: 1rem;
  /* フォントサイズ */
  line-height: 1.6;
  /* 行の高さ */
  margin-bottom: 15px;
  /* 下のマージン */
}

#polycy dd {
  color: #2f3a91;
}

div#policy a {
  color: #2f3a91;
  text-decoration: none;
  /* 下線を消す */
}

.breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  z-index: 1000;
  /* 他の要素より前面に表示 */
  width: 100%;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #2f3a91;
}

.breadcrumb-item a {
  color: #2f3a91;
  text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: '>';
  padding: 0 10px;
  color: #2f3a91;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(80px);
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 0.8s;
  /* 0.5秒遅らせる */
}

/* アクセスセクションのフェードアップアニメーション */
#access .access-container .company-info-list,
#access .access-container .access-map {
  opacity: 0;
  /* 初期状態では透明 */
  transform: translateY(80px);
  /* 少し下にずらしておく */
}

#access .access-container .company-info-list.fade-up,
#access .access-container .access-map.fade-up {
  animation: fadeUp 1.0s ease-out forwards;
  animation-delay: 0.5s;
  /* 0.8秒遅らせる */
}

.grid-container-w {
  margin-top: 100px;
}

.works-2 {
  display: flex;
}

.works-2 h2 {
  margin: 0;
}

.works-2 p {
  margin: 0;
}

.works-2 img {
  width: 100%;
}

.c-form {
  max-width: 600px;
  margin: 0 auto;
}

.c-form__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
}

.c-form__label,
.c-form__input {
  padding: 10px;
}

.c-form__label {
  width: 90%;
}

.c-form__input {
  width: 90%;
  font-size: 16px;
  border: solid 1px #333;
  border-radius: 4px;
}

.c-form__input:focus-visible {
  outline: green auto 1px;
}

.c-form__required {
  color: #fff;
  background-color: green;
  border-radius: 4px;
  padding: 5px 5px;
  margin: 0 0 0 18px;
}

textarea.c-form__input {
  height: 160px;
}

.c-form__submit {
  text-align: center;
}

.c-form__submit button {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: green;
  border: solid 1px green;
  border-radius: 4px;
  padding: 5px 32px;
  transition: 0.4s;
  cursor: pointer;
}

.c-form__submit button:hover {
  color: green;
  background-color: transparent;
}

section[id] {
  scroll-margin-top: 100px;
  /* ヘッダーの高さに合わせて調整 */
}

/* ページ内リンクのスクロール位置調整 */
section[id]::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
}

@media screen and (max-width: 767px) {
  [id]::before {
    height: 50px;
    margin-top: -50px;
  }
}