body {
  font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
  overflow-x: hidden;
}


::selection{
  background: #ff4400;
  color: #fff;
}

.toparea {
  width: 100%;
  height: 420px;
  background-size: cover; /* 画像をコンテナに合わせてリサイズ */
  background-position: center; /* 画像を中央に配置 */
  background-repeat: no-repeat; /* 画像の繰り返しを防ぐ */
}


@media screen and (min-width: 980px)  {

  

  .wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 286px;
    box-sizing: border-box;
}

  /* ヘッダー */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background-color: #000020;
  z-index: 10;
}

.container {
  display: flex;
  align-items: center; /* これにより、要素は上下中央に配置されます */
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  height: 100%; 
}

.container img{
  width: 94px;
  height: 20px;
}

.logo {
  width: 92px;
  height: 19px;
}

.menu {
  display: flex;
  gap: 20px;
  letter-spacing: 0.1em;
}

.menu-item, .overlay-item {
  position: relative;
  color: #fff; /* テキストの色を白に設定 */
  text-decoration: none; /* 既存の下線を削除 */
  padding-bottom: -3px; /* 下線の位置を調整 */
}

.menu-item::before, .overlay-item::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff; /* 下線の色を白に設定 */
  transition: width 0.3s ease; /* 滑らかなアニメーションを追加 */
}

.menu-item:hover::before, .overlay-item:hover::before {
  width: 100%; /* ホバー時に下線の幅を100%に設定 */
}

.hamburger {
  display: none;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay-item:hover {
  border-bottom: 2px solid;
  transition: border-bottom 0.3s ease;
}

/* ヘッダー終了 */



.toparea {
  background-image: url('../img/web_pc.webp'); /* ここに大きなデバイス用の画像のパスを指定 */
  margin-top: 20px;
  margin-bottom: 50px;
}

/* ボディ */

.contents{
  margin: 0 auto;
  max-width: 880px;
}



.Calligraphy_Design{
  margin-bottom: 100px;
}


.Calligraphy_Design_contents {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}

.image-container {
  width: calc((880px - 2 * 20px) / 3);
  text-align: left; 
}

.image-container img {
  width: 100%; 
  height: auto; 
  margin-bottom: 20px;
}

.image-container p {
  margin: 0; 
}

.image-container:first-child {
  margin-right: 20px;
  width: 430px;
}

.image-container:last-child {
  width: 430px;
}


/* ニュースセクションのスタイル */

.news {
  background-color: #000020; /* 背景色を指定 */
  padding: 130px 0;
  width: 100vw; /* ビューポートの横幅を100%に設定 */
  position: relative; /* 相対位置を設定 */
  left: 50%; /* 左端から50%の位置に設定 */
  right: 50%; /* 右端から50%の位置に設定 */
  margin-left: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  margin-right: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  max-width: none; /* 最大幅の設定を無効化 */
  margin-top: 130px;
}

.news-section{
  max-width: 880px;
  margin: 0 auto;
}

.news-section h1{
  font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
  font-size: 26px;
  color: #ffffff;
  font-feature-settings: "palt";
}

.news-section .macle_text{
  text-align: justify;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ffffff;
}

.macle_text a {
  position: relative;
  color: #ff4400; /* テキストの色を白に設定 */
  text-decoration: none; 
}

.macle_text a::before {
  content: "";
  position: absolute;
  bottom: -5px; /* 下線の位置をリンクの-5pxに設定 */
  left: 0;
  width: 0; /* 下線の初期幅を0に設定 */
  height: 1px;
  background-color: #ff4400; /* 下線の色を白に設定 */
  transition: width 0.3s ease; /* 滑らかなアニメーションを追加 */
}

.macle_text a:hover::before {
  width: 100%; /* ホバー時に下線の幅を100%に設定 */
}

.date{
  margin: 20px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ffffff;
}


.news-area{
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
  padding-bottom: 20px;
}
  


.detail-link{
  margin: 30px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ff4400;
}

/* Galleryの基本スタイル */
.gallery {
  margin-top: 20px;
  width: 880px;
  margin-bottom: 60px; /* Galleryの下の余白 */
}

.gallery_work {
  width: 880px;
  margin-bottom: 20px; /* Galleryの下の余白 */
}

/* 画像コンテナのスタイル */
.gallery_image {
  float: left; /* 2列にするためのフロート */
  width: 33.33%;
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  overflow: hidden; /* はみ出したテキストを隠す */
}

/* 画像のスタイル */
.gallery_image img {
  width: 100%; /* コンテナに合わせて画像を拡大 */
  transition: filter 0.3s; /* ホバー時のフィルター変化を滑らかに */
}

/* ホバー時の画像スタイル */
.gallery_image:hover img {
  filter: grayscale(0); /* カラーに戻す */
}

/* オーバーレイのスタイル */
.image-overlay {
  position: absolute; /* 絶対位置 */
  top: 50%; /* 上下中央 */
  left: 50%; /* 左右中央 */
  transform: translate(-50%, -50%); /* 完全中央に */
  text-align: center; /* テキストを中央揃え */
  opacity: 0; /* 初期状態では見えない */
  transition: opacity 0.3s; /* ホバー時の透明度変化を滑らかに */
  background: #ffffffbd; /* 背景を半透明の黒に設定 */
  color: white; /* テキストの色を白に設定 */
  width: 100%; /* オーバーレイの幅を画像に合わせる */
  height: 100%; /* オーバーレイの高さを画像に合わせる */
  display: flex; /* フレックスボックスを使って中央揃えに */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

.image-link {
  display: block; /* リンクをブロック要素として扱う */
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  width: 100%; /* リンクの幅を画像コンテナに合わせる */
  height: 100%; /* リンクの高さを画像コンテナに合わせる */
  text-decoration: none; /* リンクの下線を消す */
}

/* ホバー時のオーバーレイスタイル */
.gallery_image:hover .image-overlay {
  opacity: 1; /* テキストを表示 */
}

/* クリアフィックス */
.gallery-section::after {
  content: "";
  display: table;
  clear: both;
}


/* Aboutセクション */

.about-section{
  margin-top: 150px;
}

.icon_logo-section{
  margin-top: 20px;
  display: flex;
  align-items: center; /* アイコンとロゴを縦方向の中央に揃えます */
}

.icon {
  margin-right: 20px; 
}

.icon img{
  width: 53px;
  height: 53px;
  transform: rotate(-19deg);
  border-radius: 43% 57% 43% 57% / 57% 43% 57% 43%;
}

.about_logo img{
  width: 160px;
  height: 100%;
}

.about_text{
  text-align: justify;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
}

.about_text_inner{
  text-align: justify;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
  max-width: 489px;
  float: left;
}

.about_text_inner img{
  max-width: 489px;
  margin: 40px 0 40px 0;
  display: flex;
  align-items: center; /* 画像とテキストを垂直方向の中央に揃える */
}

.prof_right img{
  width: 351px;
  height: 475px;
  margin: 26px 0 0 40px;
}

.prof_message {
  max-width: 489px;
}

.prof_message p{
  margin-top:70px;
  font-weight: 510;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
}

/* 38pxで表示する文字のスタイル */
.big-text {
  font-size: 38px;
}

/* 38pxの80%で表示する文字のスタイル */
.small-text {
  font-size: 30.4px; 
  vertical-align: baseline;
}

.message_right img{
  width: 351px;
}

.message_right img{
  margin: 26px 0 0 40px;
  width: 351px;
}

/* フッター */

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 286px;
  background-color: #000020;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.footer_contents {
  display: flex;
  align-items: center;
  max-width: 880px;
  width: 100%;
  position: relative; /* 追加 */
}

/* 無限回転のアニメーションを定義 */
@keyframes rotateInfinite {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.text_circle {
  position: absolute;
  right: 0; /* 右端に固定 */
  top: 50%; /* 上下中央に配置 */
  transform: translateY(-50%); /* 上下中央に配置の調整 */
  animation: rotateInfinite 10s linear infinite; /* 10秒で360度回転し、無限に繰り返す */
}

.footer_logo {
  margin-top: -34px;
}

.footer_logo img {
  width: 60px;
  height: 60px;
}

.footer_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 40px;
}

.footer_links {
  display: flex;
  gap: 20px;
  letter-spacing: 0.15em;
}

.footer_links a {
  position: relative;
  color: white;
  text-decoration: none;
  padding-bottom: 5px;
  margin-right: 10px;
}

.footer_links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

.footer_links a:hover::before {
  width: 100%;
}

.footer_social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer_social a {
  display: inline-block;
}

.footer_social img {
  width: 30px;
  height: 30px;
}

.footer_copyright {
  margin-top: 20px;
  text-align: left;
  width: 100%;
  letter-spacing: 0.1em;
  font-size: 14px;
}


.text_circle img {
  cursor: pointer;
  height: 100px;
  width: 100px;
}

.text_circle_mb{
  display: none;
}

/* フッター終了 */

} /*@media screen and (min-width: 980px) */

@media screen and (min-width: 600px) and (max-width: 979px) {

    .wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 286px;
    box-sizing: border-box;
}

  
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background-color: #000020;
  z-index: 10;
}

.container {
  display: flex;
  align-items: center; /* これにより、要素は上下中央に配置されます */
  justify-content: space-between;
  max-width: 85%;
  margin: 0 auto;
  height: 100%; 
}

.container img{
  width: 94px;
  height: 20px;
}

.logo {
  width: 92px;
  height: 19px;
}

.menu {
  display: flex;
  gap: 20px;
  letter-spacing: 0.1em;
}

.menu-item, .overlay-item {
  position: relative;
  color: #fff; /* テキストの色を白に設定 */
  text-decoration: none; /* 既存の下線を削除 */
  padding-bottom: -3px; /* 下線の位置を調整 */
}

.menu-item::before, .overlay-item::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff; /* 下線の色を白に設定 */
  transition: width 0.3s ease; /* 滑らかなアニメーションを追加 */
}

.menu-item:hover::before, .overlay-item:hover::before {
  width: 100%; /* ホバー時に下線の幅を100%に設定 */
}

.hamburger {
  display: none;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay-item:hover {
  border-bottom: 2px solid;
  transition: border-bottom 0.3s ease;
}

  .toparea {
    background-image: url('../img/web_tab.webp'); /* ここに中サイズのデバイス用の画像のパスを指定 */
    margin-top: 20px;
    margin-bottom: 50px;
}

/* ボディ @media screen and (min-width: 600px) and (max-width: 979px) */

.contents{
  margin: 0 auto;
  max-width: 80%;
}



.Calligraphy_Design{
  margin-bottom: 100px;
}


.Calligraphy_Design_contents {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}

.image-container {
  width: calc((880px - 2 * 20px) / 3);
  text-align: left; 
}

.image-container img {
  width: 100%; 
  height: auto; 
  margin-bottom: 20px;
}

.image-container p {
  margin: 0; 
}

.image-container:first-child {
  width: 431px;
}

.image-container:last-child {
  margin-left: 20px;
  width: 431px;
}



/* ニュースセクションのスタイル */

.news{
  background-color: #000020; /* 背景色を指定 */
  padding: 130px 0;
  width: 100vw; /* ビューポートの横幅を100%に設定 */
  position: relative; /* 相対位置を設定 */
  left: 50%; /* 左端から50%の位置に設定 */
  right: 50%; /* 右端から50%の位置に設定 */
  margin-left: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  margin-right: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  max-width: none; /* 最大幅の設定を無効化 */
  margin-top: 130px;
}

.news-section{
  max-width: 80%;
  margin: 0 auto;
}

.news-section h1{
  font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
  font-size: 26px;
  color: #ffffff;
  font-feature-settings: "palt";
}

.news-section .macle_text{
  text-align: justify;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ffffff;
}

.macle_text a {
  position: relative;
  color: #ff4400; /* テキストの色を白に設定 */
  text-decoration: none; 
}

.macle_text a::before {
  content: "";
  position: absolute;
  bottom: -5px; /* 下線の位置をリンクの-5pxに設定 */
  left: 0;
  width: 0; /* 下線の初期幅を0に設定 */
  height: 1px;
  background-color: #ff4400; /* 下線の色を白に設定 */
  transition: width 0.3s ease; /* 滑らかなアニメーションを追加 */
}

.macle_text a:hover::before {
  width: 100%; /* ホバー時に下線の幅を100%に設定 */
}


.date{
  margin: 20px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
}

.news-area{
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
  padding-bottom: 20px;
}
  


.detail-link{
  margin: 30px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ff4400;
}

/* Galleryの基本スタイル */
.gallery {
  margin-top: 20px;
  max-width: 100%;
  margin-bottom: 50px; /* Galleryの下の余白 */
}

.gallery_work {
  max-width: 100%;
  margin-bottom: 20px; /* Galleryの下の余白 */
}

/* 画像コンテナのスタイル */
.gallery_image {
  float: left; /* 2列にするためのフロート */
  width: 50%; /* 画像の横幅 */
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  overflow: hidden; /* はみ出したテキストを隠す */
}

/* 画像のスタイル */
.gallery_image img {
  width: 100%; /* コンテナに合わせて画像を拡大 */
  transition: filter 0.3s; /* ホバー時のフィルター変化を滑らかに */
}

/* ホバー時の画像スタイル */
.gallery_image:hover img {
  filter: grayscale(0); /* カラーに戻す */
}

/* オーバーレイのスタイル */
.image-overlay {
  position: absolute; /* 絶対位置 */
  top: 50%; /* 上下中央 */
  left: 50%; /* 左右中央 */
  transform: translate(-50%, -50%); /* 完全中央に */
  text-align: center; /* テキストを中央揃え */
  opacity: 0; /* 初期状態では見えない */
  transition: opacity 0.3s; /* ホバー時の透明度変化を滑らかに */
  background: #ffffffbd; /* 背景を半透明の黒に設定 */
  color: white; /* テキストの色を白に設定 */
  width: 100%; /* オーバーレイの幅を画像に合わせる */
  height: 100%; /* オーバーレイの高さを画像に合わせる */
  display: flex; /* フレックスボックスを使って中央揃えに */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

.image-link {
  display: block; /* リンクをブロック要素として扱う */
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  width: 100%; /* リンクの幅を画像コンテナに合わせる */
  height: 100%; /* リンクの高さを画像コンテナに合わせる */
  text-decoration: none; /* リンクの下線を消す */
}

/* ホバー時のオーバーレイスタイル */
.gallery_image:hover .image-overlay {
  opacity: 1; /* テキストを表示 */
}

/* クリアフィックス */
.gallery-section::after {
  content: "";
  display: table;
  clear: both;
}


/* Aboutセクション */

.about-section{
  margin: 150px 0 351px;
}

.icon_logo-section{
  margin-top: 20px;
  display: flex;
  align-items: center; /* アイコンとロゴを縦方向の中央に揃えます */
}

.icon {
  margin-right: 20px; 
}

.icon img{
  width: 53px;
  height: 53px;
  transform: rotate(-19deg);
  border-radius: 43% 57% 43% 57% / 57% 43% 57% 43%;
}

.about_logo img{
  width: 160px;
  height: 100%;
}

.about_text{
  text-align: justify;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
}

.about_text_inner{
  text-align: justify;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
  max-width: 100%;
  float: left;
}

.about_text_inner img{
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0 40px 0;
  display: flex;
}

.prof_right{
  display: none;
}

.prof_message {
  max-width: 100%;
}

.prof_message p{
  margin-top: 595px;
  font-weight: 510;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
}

/* 38pxで表示する文字のスタイル */
.big-text {
  font-size: 38px;
}

/* 38pxの80%で表示する文字のスタイル */
.small-text {
  font-size: 30.4px; 
  vertical-align: baseline;
}

.message_right {
  display: none;
}




/* フッター */

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 286px;
  background-color: #000020;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.footer_contents {
  display: flex;
  align-items: center;
  max-width: 85%;
  width: 100%;
  position: relative; /* 追加 */
}

/* 無限回転のアニメーションを定義 */
@keyframes rotateInfinite {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.text_circle {
  position: absolute;
  right: 0; /* 右端に固定 */
  top: 50%; /* 上下中央に配置 */
  transform: translateY(-50%); /* 上下中央に配置の調整 */
  animation: rotateInfinite 10s linear infinite; /* 10秒で360度回転し、無限に繰り返す */
}

.footer_logo {
  margin-top: -112px;
}

.footer_logo img {
  width: 60px;
  height: 60px;
}

.footer_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 40px;
}

.footer_links {
  display: block;
}

.footer_links a {
  position: relative;
  color: white;
  text-decoration: none;
  padding-bottom: 5px;
  display: block; /* この行を変更 */
  box-sizing: border-box;
  letter-spacing: 0.15em;
  width: fit-content;
  margin-bottom: 10px; /* 必要に応じてマージンを調整 */
}

.footer_links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* ここを0に設定 */
  height: 1px;
  background-color: white;
  transition: all 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
  box-sizing: border-box;
}

.footer_links a:hover::before {
  width: 100%; /* ホバー時にwidthを100%に設定 */
  transform: scaleX(1);
}

.footer_social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer_social a {
  display: inline-block;
}

.footer_social img {
  width: 30px;
  height: 30px;
}

.footer_copyright {
  margin-top: 20px;
  text-align: left;
  width: 100%;
  letter-spacing: 0.1em;
  font-size: 13px;
}


.text_circle img {
  cursor: pointer;
  height: 100px;
  width: 100px;
}

.text_circle_mb{
  display: none;
}

/* フッター終了 */


} /*@media screen and (min-width: 600px) and (max-width: 979px)*/

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

    .wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 470px;
    box-sizing: border-box;
  }

  
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background-color: #000020;
  z-index: 10;
}

.container {
  display: flex;
  align-items: center; /* これにより、要素は上下中央に配置されます */
  justify-content: space-between;
  max-width: 80%;
  margin: 0 auto;
  height: 100%; 
}

.container img{
  width: 94px;
  height: 20px;
}

.logo {
  width: 92px;
  height: 19px;
}

  /* 通常のメニューを非表示にする */
.menu {
  display: none;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
  display: block;
  width: 23px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* バツマークのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* オーバーレイのスタイル */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0; /* 初期状態では透明 */
  visibility: hidden; /* 初期状態では非表示 */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* 透明度と可視性のトランジションを追加 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ハンバーガーメニューがアクティブなときのオーバーレイのスタイル */
.overlay.active {
  opacity: 1; /* オーバーレイを表示 */
  visibility: visible; /* オーバーレイを可視にする */
  z-index: 2;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-item, .overlay-item {
  position: relative;
  color: #000020; /* テキストの色を白に設定 */
  text-decoration: none; /* 既存の下線を削除 */
}

.overlay-item {
  /* 既存のスタイル */
  position: relative;
  color: inherit;
  text-decoration: none;
  padding-bottom: 5px;
  display: inline-block;
  box-sizing: border-box;
  width: fit-content;

  /* センター揃えのスタイルを追加 */
  text-align: center;
}

.overlay-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform: scaleX(0);
  transform-origin: center; /* 中心からのアニメーション */
  box-sizing: border-box;
}

.overlay-item:hover::before {
  width: 100%; /* ホバー時にwidthを100%に設定 */
  left: 0; /* 左端から開始 */
  transform: scaleX(1);
}

.toparea {
  background-image: url('../img/web_phone.webp'); /* ここに小さなデバイス用の画像のパスを指定 */
  margin: 20px 0 50px 0;
}

/* @media screen and (max-width: 599px)  */


.contents{
  margin: 0 auto;
  max-width: 80%;
}



.Calligraphy_Design{
  margin-bottom: 100px;
}


.Calligraphy_Design_contents {
  margin-top: 50px;
}

.image-container {
  text-align: left; 
  margin-bottom: 30px;
}

.image-container img {
  width: 100%; 
  height: auto; 
  margin-bottom: 10px;
}

.image-container p {
  margin: 0; 
}




/* ニュースセクションのスタイル */

.news{
  background-color: #000020; /* 背景色を指定 */
  padding: 130px 0;
  width: 100vw; /* ビューポートの横幅を100%に設定 */
  position: relative; /* 相対位置を設定 */
  left: 50%; /* 左端から50%の位置に設定 */
  right: 50%; /* 右端から50%の位置に設定 */
  margin-left: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  margin-right: -50vw; /* マージンをビューポートの横幅の半分に設定 */
  max-width: none; /* 最大幅の設定を無効化 */
  margin-top: 130px;
}

.news-section{
  max-width: 80%;
  margin: 0 auto;
}

.news-section h1{
  font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
  font-size: 26px;
  color: #ffffff;
  font-feature-settings: "palt";
}

.news-section .macle_text{
  text-align: justify;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ffffff;
}

.macle_text a {
  position: relative;
  color: #ff4400; /* テキストの色を白に設定 */
  text-decoration: none; 
}

.macle_text a::before {
  content: "";
  position: absolute;
  bottom: -5px; /* 下線の位置をリンクの-5pxに設定 */
  left: 0;
  width: 0; /* 下線の初期幅を0に設定 */
  height: 1px;
  background-color: #ff4400; /* 下線の色を白に設定 */
  transition: width 0.3s ease; /* 滑らかなアニメーションを追加 */
}

.macle_text a:hover::before {
  width: 100%; /* ホバー時に下線の幅を100%に設定 */
}


.date{
  margin: 20px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ffffff;
}

.news-area{
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
  padding-bottom: 20px;
}
  


.detail-link{
  margin: 30px 0 5px 0;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #ff4400;
}

/* Galleryの基本スタイル */
.gallery {
  margin-top: 20px;
  max-width: 100%;
  margin-bottom: 50px; /* Galleryの下の余白 */
}

.gallery_work {
  max-width: 100%;
  margin-bottom: 20px; /* Galleryの下の余白 */
}

/* 画像コンテナのスタイル */
.gallery_image {
  float: left; /* 2列にするためのフロート */
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  overflow: hidden; /* はみ出したテキストを隠す */
}

/* 画像のスタイル */
.gallery_image img {
  width: 100%; /* コンテナに合わせて画像を拡大 */
  transition: filter 0.3s; /* ホバー時のフィルター変化を滑らかに */
}

/* ホバー時の画像スタイル */
.gallery_image:hover img {
  filter: grayscale(0); /* カラーに戻す */
}

/* オーバーレイのスタイル */
.image-overlay {
  position: absolute; /* 絶対位置 */
  top: 50%; /* 上下中央 */
  left: 50%; /* 左右中央 */
  transform: translate(-50%, -50%); /* 完全中央に */
  text-align: center; /* テキストを中央揃え */
  opacity: 0; /* 初期状態では見えない */
  transition: opacity 0.3s; /* ホバー時の透明度変化を滑らかに */
  background: #ffffffbd; /* 背景を半透明の黒に設定 */
  color: white; /* テキストの色を白に設定 */
  width: 100%; /* オーバーレイの幅を画像に合わせる */
  height: 100%; /* オーバーレイの高さを画像に合わせる */
  display: flex; /* フレックスボックスを使って中央揃えに */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

.image-link {
  display: block; /* リンクをブロック要素として扱う */
  position: relative; /* オーバーレイの位置指定のための相対位置 */
  width: 100%; /* リンクの幅を画像コンテナに合わせる */
  height: 100%; /* リンクの高さを画像コンテナに合わせる */
  text-decoration: none; /* リンクの下線を消す */
}

/* ホバー時のオーバーレイスタイル */
.gallery_image:hover .image-overlay {
  opacity: 1; /* テキストを表示 */
}

/* クリアフィックス */
.gallery-section::after {
  content: "";
  display: table;
  clear: both;
}


/* Aboutセクション */

.about-section{
  margin: 150px 0 341px;
}

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

  .about-section{
    margin: 150px 0 451px;
  }

}

.icon_logo-section{
  margin-top: 20px;
  display: flex;
  align-items: center; /* アイコンとロゴを縦方向の中央に揃えます */
}

.icon {
  margin-right: 20px; 
}

.icon img{
  width: 53px;
  height: 53px;
  transform: rotate(-19deg);
  border-radius: 43% 57% 43% 57% / 57% 43% 57% 43%;
}

.about_logo img{
  width: 110px;
  height: 100%;
}

.about_text{
  text-align: justify;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
}

.about_text_inner{
  text-align: justify;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.7em;
  font-feature-settings: "palt";
  color: #000020;
  margin-top: 20px;
  max-width: 100%;
  float: left;
}

.about_text_inner img{
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0 40px 0;
  display: flex;
}


.prof_message {
  max-width: 100%;
}

.prof_message p{
  margin-top: 590px;
  font-weight: 510;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
}

/* 38pxで表示する文字のスタイル */
.big-text {
  font-size: 6.8vw;
}

/* 38pxの80%で表示する文字のスタイル */
.small-text {
  font-size: 5.8vw;
  vertical-align: baseline;
}

.prof_right,
.message_right {
  display:none;
}


/* フッター */

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 286px;
  background-color: #000020;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.footer_contents {
  display: flex;
  align-items: center;
  position: relative; /* 追加 */
}

/* 無限回転のアニメーションを定義 */
@keyframes rotateInfinite {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.text_circle_mb {
  position: absolute;
  z-index: 1;
  animation: rotateInfinite 10s linear infinite;
  cursor: pointer;
  margin-top: -466px;
}

.text_circle {
  display: none;
}

.text_circle_mb img{
  height: 70px;
  width: 70px;
}

.footer_logo {
  margin-top: -112px;
}

.footer_logo img {
  width: 60px;
  height: 60px;
}

.footer_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 40px;
}

.footer_links {
  display: block;
}

.footer_links a {
  position: relative;
  color: white;
  text-decoration: none;
  padding-bottom: 5px;
  display: block; /* この行を変更 */
  box-sizing: border-box;
  letter-spacing: 0.15em;
  width: fit-content;
  margin-bottom: 10px; /* 必要に応じてマージンを調整 */
}

.footer_links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* ここを0に設定 */
  height: 1px;
  background-color: white;
  transition: all 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
  box-sizing: border-box;
}

.footer_links a:hover::before {
  width: 100%; /* ホバー時にwidthを100%に設定 */
  transform: scaleX(1);
}

.footer_social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer_social a {
  display: inline-block;
}

.footer_social img {
  width: 30px;
  height: 30px;
}

.footer_copyright {
  margin-top: 20px;
  text-align: left;
  width: 100%;
  letter-spacing: 0.1em;
  font-size: 13px;
}




/* フッター終了 */

} /*@media screen and (max-width: 599px)*/