/*
 Theme Name: Stella Theme
 Author: Tarou Genkai
 Description: A custom WordPress theme for the Stella site.
 Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap');

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Noto Serif JP', serif;
}

/* トップ画像のスタイルとズームアニメーション */
.top-image {
  background-image: url('img/LINE_ALBUM_20240916_240916_14.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden; /* 外枠の外にはみ出ないようにする */
}

.top-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  animation: zoomEffect 20s forwards ease-in-out;
}

@keyframes zoomEffect {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.2);
  }
}

/* トップイメージ:マークのスタイル */
.top-image-mark {
  width:110px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.top-image-mark {
  width:110px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
  .top-image-mark {
    top: 20%;
  }
}

/* 固定画像（左上と右下）のスタイル */
.fixed-image {
  position: fixed;
  z-index: 3;
}

.fixed-image.top-left {
  top: 30px;
  left: 30px; /* 左端からの余白を設定 */
  width: 80px;
}

.fixed-image.top-left img {
  width: 160px;
}

.fixed-image.bottom-right {
  bottom: 0;
  right: 30px; /* 右端からの余白を設定 */
}

.hamburger {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 6;
  cursor: pointer;
}

.hamburger div {
  width: 20px;
  height: 3px;
  background-color: #f6ce82 !important;
  margin: 5px 0;
}

/* ハンバーガーをバツ印に変えるアニメーション */
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* フルスクリーンメニューのスタイル */
.menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 5;
  color: white;
  font-size: 1.2em;
  padding: 2em;
  box-sizing: border-box;
  text-align: center; /* テキストを中央揃えに */
}

.menu a {
  display: inline-block; /* 改行を維持しつつ、要素をブロック要素化 */
  color: #fff;
  text-decoration: none;
  margin-bottom: 1em;
}

.menu.open {
  display: flex;
  flex-direction: column;
  align-items: center; /* 水平方向で中央揃え */
  justify-content: center; /* 垂直方向で中央揃え */
}


.menu a:hover {
  color: #ccc; /* ホバー時の文字色を変更 */
}

/* 思いのスタイル */
.omoi {
  position: absolute;
  top: 75%; /* ロゴの下に配置するために調整 */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1em;
  color: #fff;
  line-height: 1.8em;
  text-align: center;
  z-index: 2;
}

/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
  .omoi {
    top: 60%;
    font-size:1.0em;
    line-height: 1.8em;
    font-size: 0.9em;
    width:80%;
    max-width:80%;
  }
}

/* メインカラムのスタイル */
.main {
  width:100%;
  text-align:center;
}

/* センターブロックのスタイル */
.center-block {
  margin:2em auto 2em auto;
  padding:0em;
  width:1200px;
  background-color:#fff;
  text-align: center;          
}

/* コンセプトのスタイル */
.concept {
  margin: 2em auto;
  padding: 0;
  width: 1200px;
  background-color: #fff;
  text-align: center;          
}

.subtitle {
  width: 100%;
  text-align: center;
  margin-bottom: 1em;
}

.subtitle-image {
  width: 600px;
}

.text-area {
  display: flex;
  justify-content: space-between; /* 左右に要素を配置 */
  align-items: flex-start; /* 要素の上部を揃える */
  margin: 0 auto 2em auto;
  width: 80%;
  font-size: 1.0em;
  color: #444;
  background-color: #fff;
  text-align: left;
  line-height: 2.0em;
  padding: 0 3em;
  border-left: 0.5px solid #666;
}
@media (max-width: 768px) {
  .text-area {
    font-size: 0.9em;
  }
}




.text-content {
  width: 60%; /* テキストコンテンツの幅を調整 */
}

.text-image {
  width: 35%; /* 画像の幅を調整 */
  display: flex;
  justify-content: flex-end; /* 画像を右端に配置 */
}

.text-image-name {
  margin-left:4pt;
  width: 20pt;
  justify-content: flex-end; /* 画像を右端に配置 */
  color: #555;
  font-family: "Yuji Syuku", serif;
  font-weight: 400;
  font-style: normal;
  font-size:16pt;
}

.text-image img {
  max-width: 100%; /* 画像がコンテナを超えないように調整 */
  height: auto; /* 画像のアスペクト比を保つ */
}

/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
  .subtitle-image {
    width: 100%;
  }

  .concept {
    width: 100%; /* 幅を100%にして、モバイル画面での表示を調整 */
  }

  .text-area {
    flex-direction: column; /* 要素を縦に並べる */
    width: 90%; /* 幅を調整 */
    padding: 0; /* パディングを調整 */
  }

  .text-content, .text-image {
    width: 90%; /* テキストと画像をそれぞれ100%幅に */
  }

  .text-content {
    padding: 0 0em 1em 2em;
    text-align: left;
    margin-bottom: 1em; /* テキストと画像の間にスペースを作る */
  }

  .text-image {
    text-align: center; /* モバイルでの表示を中央寄せに */
    justify-content: center; /* 画像を中央に配置 */
  }

  .text-image-photo {
    width:80%;
  }
}


.text-area2 {
  margin: 0 auto 2em auto;
  width: 80%;
  font-size: 1.0em;
  color: #444;
  background-color: #fff;
  text-align: left;
  line-height: 2.0em;
  padding: 0em 3em 0em 3em;
  border-left: 0.5px solid #666;
}

.full-width-block {
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header {
  width: 100%; /* 横幅を全幅に */
  height: 300px; /* 高さを300pxに固定 */
  margin: 0; /* 余白をなくす */
  padding: 0; /* パディングをなくす */
  overflow: hidden; /* はみ出るコンテンツを隠す */
  box-sizing: border-box; /* パディングとボーダーを含めてサイズを計算 */
}

header img {
  width: 100%; /* 画像の横幅を全幅に */
  height: 100%; /* 画像の高さをヘッダの高さに合わせる */
  object-fit: cover; /* 画像のアスペクト比を保ちつつ、指定された高さと幅に収める */
}

footer {
  width: 100%; /* 横幅を全幅に */
  background-color: #111; /* 背景色を設定 */
  padding: 20px 0; /* 上下に余白を設定 */
  box-sizing: border-box; /* パディングを含めたサイズ計算 */
  display: flex;
  justify-content: center; /* カラムを中央に配置 */
}

.footer-columns {
  width:1200px;
  display: flex;
  justify-content: space-between; /* カラムの間にスペースを配置 */
  flex-wrap: wrap; /* 幅が狭くなったときに折り返すように設定 */
}

.footer-column {
  color: #fff;
  width: calc(33.333% - 20px); /* カラム間のスペースを調整 */
  padding: 20px;
  box-sizing: border-box;
  border-left: 1px solid #444;
}

/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
  .footer-columns {
    width: 100%;
  }
  .footer-column {
    width: 100%; /* 各カラムを幅100%で表示 */
    border-left: none; /* 縦並びにした場合、ボーダーは不要 */
    border-top: 1px solid #444; /* 上部にボーダーを追加 */
  }

  .footer-column:first-child {
    border-top: none; /* 最初のカラムには上部ボーダーを適用しない */
  }
}


.footer-column a {
  color: #fff; /* リンクの文字色を白に設定 */
  text-decoration: none; /* アンダーラインを消す */
  display: block; /* 各リンクをブロック要素にして縦に並べる */
  margin-bottom: 10px; /* リンクの間に余白を設定 */
}

.footer-column a:hover {
  color: #ccc; /* ホバー時のリンク色を薄いグレーに変更 */
}

.footer-mark {
  width:80px;
  display: block;
  margin-bottom:14px;
}

.page-title {
  width: 100%;
  text-align:center;
}

.main-column {
  text-align:left;
  margin:0 auto;
  width: 1200px;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap; /* 複数行に対応 */
    justify-content: space-between; /* 各要素の間にスペースを均等に配置 */
}

.post-excerpt {
    width: 32%; /* 各投稿が33%未満の幅を占めるように設定 */
    margin-bottom: 20px; /* 下に適度なマージンを追加 */
    box-sizing: border-box;
    background-color: #fff; /* 背景色を設定 */
    padding: 10px;
    border: 1px solid #ddd; /* ボーダーを追加 */
    display: flex;
    flex-direction: column;
}

.post-excerpt h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.post-excerpt h2 a {
  color: #000; /* 黒色に設定 */
  text-decoration: none; /* アンダーラインを削除 */
  transition: color 0.3s ease; /* ロールオーバー時の色変更にアニメーションを適用 */
}

.post-excerpt h2 a:hover {
  color: #555; /* ホバー時に少し薄い黒に変更 */
}

.post-content {
    display: flex;
    justify-content: space-between; /* テキストと画像を左右に配置 */
    flex-direction: row;
    gap: 10px;
}

.post-text {
    width: 50%; /* テキスト部分を50%に設定 */
}

.post-thumbnail {
    width: 45%; /* 画像部分を50%に設定 */
    display: flex;
    align-items: center; /* 画像を垂直方向の中央に配置 */
    justify-content: center; /* 画像を水平方向の中央に配置 */
}

.post-thumbnail img {
    max-width: 100%; /* 画像の幅をコンテナに収める */
    height: auto; /* アスペクト比を保持 */
}



/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
    .main-column {
      width: 100%;
    }
    .center-block {
      width:100%;      
    }
    .concept {
      width:100%;     
    }
    .post-excerpt {
        width: 48%; /* 幅を半分に設定 */
    }
    .footer-columns {
      width: 100%;
    }
}

/* レスポンシブ対応 - 幅が480px以下のとき */
@media (max-width: 480px) {
    .main-column {
        width: 100%;
    }
    .center-block {
      width:100%;      
    }
    .concept {
      width:100%;     
    }
    .post-excerpt {
        width: 100%; /* 幅を100%にして1列に */
        margin-bottom: 20px;
    }
    .post-content {
        flex-direction: column; /* テキストと画像を縦に並べる */
    }
    .post-text, .post-thumbnail {
        width: 100%; /* テキストと画像を100%幅に */
    }
    .footer-columns {
      width: 100%;
    }
}

.blog-block-column {
  width:60%;
  margin:0 auto;
  display: block;
}

.blog-single-content {
  width:100%;
  text-align: left;
  display: block;
}

.blog-single-date {
  color: #666;
  font-size:1em;
}

.blog-single-clear {
  width:100%;
}


@media (max-width: 768px) {
  .blog-block-column {
    width:80%;
    margin:0 auto;
    display: block;
  }
}


.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

.prev-post a,
.to-post-list a,
.next-post a {
  font-size: 0.8em;
  display: inline-block;
  padding: 5px 10px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease; /* アニメーション効果 */
}

.prev-post a:hover,
.to-post-list a:hover,
.next-post a:hover {
  background-color: #f0f0f0; /* ホバー時に薄い灰色に変わる */
  border-color: #aaa; /* ホバー時にボーダーを少し濃くする */
}







/* トップページお知らせセクションのスタイル */
.top-recent-posts {
  width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
  text-align: center;
}

.top-recent-posts h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #444;
}

.top-post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.top-post-block {
  width: 32%;
  background-color: #fff;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row-reverse; /* 画像を右側に配置 */
  align-items: stretch; /* 高さを合わせる */
  overflow: hidden; /* 全体のオーバーフローを隠す */
}

.top-post-image {
  width: 40%; /* 横幅を40%に設定 */
  height: 100%; /* 縦幅を親要素いっぱいに設定 */
  overflow: hidden; /* 画像がはみ出るのを防ぐ */
}

.top-post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をコンテナに収めて、アスペクト比を保つ */
  object-position: center; /* 画像の中央部分を表示 */
}

.top-post-content {
  width: 60%;
  text-align: left;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.top-post-date {
  font-size: 0.9em;
  color: #999;
}

.top-post-title {
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.top-post-title a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-post-title a:hover {
  color: #555;
}

.top-post-excerpt {
  font-size: 0.8em;
  color: #444;
}

/* レスポンシブ対応 - 幅が768px以下のとき */
@media (max-width: 768px) {
  .top-recent-posts {
    width: 100%;
  }
  .top-post-block {
      width: 80%;
      flex-direction: column;
      text-align: center;
  }

  .top-post-image {
      width: 100%;
      height: auto;
      margin-left: 0;
      margin-bottom: 10px;
  }

  .top-post-content {
      width: 100%;
      padding-right: 0;
  }
}

.submit-button {
  left: 60%;
  transform: translate(-50%, -50%); 
}

.wpcf7-spinner {
  width: 12px;
  margin: 0px !important;
}

.middle-title {
  width: 100%;
  text-align:center;
  font-size: 20pt;
}


@media (max-width: 768px) {
  .mobile-only {
    display: inline;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

@media (min-width: 769px) {
  .pc-only {
    display: inline;
  }
}



@media (max-width: 768px) {
  .price-table {
    width: 100%;
  }

  .price-table-title-td {
    width: 60%;
  }
}

@media (min-width: 769px) {
  .price-table {
    width: 80%;
  }

  .price-table-title-td {
    width: 50%;
  }
}




