@charset "UTF-8";

/*************** 
 * ヘッダー
***************/
.header {
  background-color: hsl(171, 100%, 41%); /* .is-primaryと同じ色 */
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1); /* 影を追加 */
}

body, html {
  overflow-x: hidden; /* 横スクロールを無効化してレイアウト崩れを防止 */
}

body {
  background-color: #eceaea; /* 薄いグレーに設定 */
  font-family: 'Noto Sans JP', sans-serif;
  font-feature-settings: "palt"; /* プロポーショナル幅を統一 */
  font-size: 1rem; /* 基本フォントサイズを設定 */
}

/*************** 
 * ボディ
***************/
.body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #ffffff; /* 背景色を白に設定 */
  width: 85vw; /* ビューポート幅の85%に設定 */
  margin: 0 auto; /* 中央揃え */
  box-sizing: border-box; /* パディングを含めた幅を計算 */
  overflow: hidden; /* 子要素が領域を超えないようにする */
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1); /* 影を追加 */
  margin-bottom: 2rem;
}

/* ヒーローイメージ */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%; /* 画面幅いっぱいに表示 */
  height: calc(100vh - 5rem); /* ヘッダーの高さを引いた分を画面いっぱいに表示 */
  flex-direction: column;
  overflow: hidden; /* 子要素が領域を超えないようにする */
}

.hero-body {
  position: relative;
  width: 100%; /* .heroの幅に合わせる */
  height: 100%; /* .heroの高さに合わせる */
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  flex-direction: row; /* 縦方向に並べる */
  box-sizing: border-box;
}
/* */
.v-style-oshiage, .senju-cho-me-shinchiku {
  position: absolute;
  width: 50%; /* 幅を50%に維持 */
  height: 100%; /* 親要素の高さに合わせる */
  top: 0;
  background-size: cover; /* 画像がコンテナ全体を覆うようにする */
  background-repeat: no-repeat; /* タイル表示を防止 */
  background-position: center; /* 画像を中央に配置 */
}

.v-style-oshiage {
  left: 0;
  background-image: url(/img/top_01.jpeg);
}

.senju-cho-me-shinchiku {
  left: 50%;
  background-image: url(/img/top_02.jpeg);
}

/* 背景色のボックスは削除 */
.hero-image-container {
  position: relative;
  width: 50%;
  height: 100%; /* .heroの領域いっぱいに表示 */
  overflow: hidden;
  margin: 0;
  display: flex;
}

.hero-image {
  width: auto; /* 画像の幅を自動調整 */
  height: auto; /* .heroの領域いっぱいに表示 */
  display: block;
  z-index: 1;
}

.hero .title {
  position: relative;
  color: white;
  font-size: 2.4rem;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  z-index: 2; /* 画像の前面に表示 */
  margin-top: 1.25rem; /* タイトルと画像の間に余白を追加 */
}

/* テキストのオーバーレイ */
.hero-text {
  position: absolute;
  top: 8vh; /* 画面より少し上の位置に調整 */
  left: 4.5vw;
  color: hsl(148, 89%, 48%);
  font-size: 3.8rem;
  font-weight: bold;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  z-index: 3;
  word-wrap: break-word; /* テキストが領域を超えないようにする */
  padding: 0.625rem 1.25rem; /* 背景色内に余白を追加 */
  box-sizing: border-box;
  text-align: left; /* テキストを左詰に */
}

.hero-text span {
  display: block; /* 各テキストをブロック要素にして分割 */
  margin: 0; /* 上下に十分な隙間を追加 */
  padding: 0.3125rem 1.25rem; /* 各行に余白を追加 */
  box-sizing: border-box;
}

/* メインコンテンツ */
main.container {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 1.25rem; /* ヒーローイメージとメインコンテンツの間に余白を追加 */
}

/* タイトル */
.title {
  margin: 1.25rem 0 2.5rem 0 !important; /* タイトルの上下に余白を追加 */
  font-size: 3rem;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

.message {
  background-color: #ffffff;
}

.message-container {
  width: 80%;
  margin: 0 auto;
  text-align: left;
} 

.message-container p {
  font-size: 1.1rem;
}

/* メッセージ署名 */
.message-signature {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  text-align: right;
}

/* ボタンのスタイル */
.buttons.is-centered {
  max-width: 26.25rem;
  margin: 0 auto;
}

.buttons.is-centered .button {
  max-width: 12.5rem;
  margin-right: 0.625rem;
}

.buttons.is-centered .button:last-child {
  margin-right: 0;
}

.button {
  border: none; /* 枠線を非表示にする */
  font-weight: bold;
}

/* メインコンテンツ内のボタンエリア */
.main-content-buttons {
  margin-top: 5rem !important;
}

/* パンくずリストのスタイル */
nav.breadcrumb {
  border-top: 0.0625rem solid #ccc;
  padding-top: 0.625rem;
  padding-bottom: 1.1875rem;
  background-color: #ffffff;
  margin-bottom: 0px !important;
}

nav.breadcrumb ul {
  padding-left: 1.25rem;
}

.work-description {
  margin-left: 1.25rem;
}

/* .worksクラス内のp要素のスタイル */
.work-description .work-text {
  text-align: left; /* テキストを左寄せに */
  line-height: 1.7; /* 行間を広げて読みやすく */
  margin-bottom: 0.9375rem; /* 各段落の間に余白を追加 */
  font-size: 1.4rem;
}

/* メディアクエリを使用して、ディスプレイサイズに応じて調整 */
@media (max-width: 768px) {
  .body {
    width: 100vw;
    padding: 0;
    margin: 0;
  }

  .title {
    font-size: 1.9rem;
    margin-top: 10px; /* タイトルの上下に余白を追加 */
  }

  .message-container
  , .work-text {
    font-size: 0.8em !important;
    margin: 0 auto;
  }

  .hero {
    height: calc(100vh - 5rem); /* ヘッダーの高さを引いた分を画面いっぱいに表示 */
  }

  .hero-body {
    flex-direction: column; /* 縦方向に並べる */
    align-items: center; /* 中央揃え */
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh; /* ビューポートの高さに合わせる */
  }

  .hero-image-container {
    width: 100vw; /* ビューポート幅いっぱいに設定 */
    height: calc(100vh - 5rem); /* ヘッダーの高さを考慮してビューポートいっぱいに設定 */
    overflow: hidden; /* 子要素が領域を超えないようにする */
    display: flex;
    justify-content: center; /* 中央揃え */
  }

  .v-style-oshiage {
    width: 100%; /* 左側の画像を画面幅いっぱいに */
    height: 100%; /* 高さを親要素に合わせる */
    left: 0; /* 左端に配置 */
    background-size: cover; /* 画像がコンテナ全体を覆うようにする */
    background-repeat: no-repeat; /* タイル表示を防止 */
    background-position: center; /* 画像を中央に配置 */
    display: block; /* 表示 */
  }

  .senju-cho-me-shinchiku {
    display: none; /* 右側の画像を非表示にする */
  }

  .hero-image {
    width: 100%;
    transform: translateX(0); /* 小さい画面では画像を中央に戻す */
  }

  .hero .title {
    font-size: 1.8em;
    margin-top: 10px;
  }

  .hero-text {
    font-size: 1.7rem;
    top: 60%;
    left: 2%;
  }

  .navbar-burger {
    display: block; /* ハンバーガーメニューを表示 */
  }

  .navbar-menu {
    display: none; /* デフォルトで非表示 */
  }

  .navbar-menu.is-active {
    display: flex; /* アクティブ時に表示 */
  }

  .breadcrumb {
    display: none; /* TODO */
  }

  .main-content-buttons {
    display: flex;
    flex-direction: column; /* 垂直方向に並べる */
    gap: 30px; /* 垂直方向の間隔を10px空ける */
    margin-top: 30px !important;
  }

  .main-content-buttons .button {
    width: 100%; /* ボタンを画面幅いっぱいに */
    margin: 0 !important; /* マージンをリセット */
  }
}

/* no-scrollクラスのスタイル */
.no-scroll {
  overflow: hidden !important;
  height: 100%; /* スクロールを完全に無効化 */
}