/* 全体 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;/*ハンバーガーメニューを開いた際でもスクロールバーを維持*/
}

body {
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  padding-right: 0 !important;/* ブートストラップ内の設定を強制解除(余計な余白を追加してしまう仕様になっているため) */
  background-image: url(../img/white_background.jpg);
  background-size: cover;      /* 画像を要素いっぱいに広げる*/
  background-repeat: no-repeat;/* 画像を繰り返さない */
  background-position: center; /* 画像の表示位置を中央にする */
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

/* <ハンバーガーメニュー> */
.navbar {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 3;
  color: transparent;
  padding: 0;
  background-color: #25252588;
  border-radius: 2px;
}

/* トップ画面 */
.font-size {
  font-size: 30px;
}

/* スライドショーの高さ */
.slideshow {
  height: 600px;
}

/* 画像の中心部分を表示 */
.slideshow img {
  height: 600px;
  object-fit: cover;
  object-position: center;
}

/* 要素を中心に持ってくる */
.mainview-wrapper {
  width: 100%;
  height: auto;
  padding: 50px 5%;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* 会社名の文字サイズ変更 */
.mainview-wrapper h1 {
  font-size: clamp(48px, 5vw, 96px);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mainview-wrapper h2 {
  font-size: clamp(50px, 5vw, 100px);
  text-shadow: 2px 2px 4px rgba(80, 80, 80, 0.5);
}

.mainview-info {
  font-size: 30px;
  margin-top: 50px;
}

.mainview-info button {
  width: 200px;
  height: 50px;
}

#visitor {
  color: black;
  font-size: 40px;
}

/* topニュース */
.top-news {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 20% 0 20%;
}

.link-character {
  color:darkblue;
  text-decoration: none;
}

.link-character:hover {
  opacity: 0.7;
}

.arrow {
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  display: inline-block;
  color: darkblue;
}

.link-arrow {
  display: inline-block;
}

.link-arrow:hover .arrow {
  opacity: 1;
  visibility: visible;
  color: darkblue;
}

/* 目玉商品 */
.featured-products-container {
  width: 70%;
  margin: 30px auto;
}

.featured-products-container h2 {
  display: flex;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-products-wrapper {
  width: 90%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px auto;
}

.featured-products-wrapper a {
  width: 45%;
  max-width: 400px;
  margin: 20px 2.5% 0 2.5%;
  display: block;
}

.featured-products-wrapper img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

/* <ニュース一覧画面> */
.news-container {
  width:50%;
  min-width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;/* 要素を縦に並べる */
  margin: 50px 27% 200px 23%;
}

.news-wrapper {
  margin-left: 30px;
  margin-top: 30px;
}

.news-wrapper h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.display-count {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.display-count a {
  color: #000;
}

.display-count a:hover {
  color: grey;
}

.news-list {
  margin-left: 30px;
}

.top-btn {
  margin: 30px;
  display: flex;
  justify-content: center;
}

.focus-element:hover {
  transform: translateY(5px);
}

.news-pagination {
  margin: 40px 0 20px 0;
  display: flex;
  justify-content: center;
}

.pagination .page-link {
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  transition: 0.2s;
}

.pagination .page-link:hover {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.pagination .page-item.disabled .page-link {
  color: #999;
  background-color: #eee;
  border-color: #ccc;
}

.pagination .page-link {
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
/* <ニュース詳細画面> */
.news-detail-container {
  width: 60%;
  height: auto;
  display: flex;
  flex-direction: column;/* 要素を縦に並べる */
  margin: 100px 20% 200px 20%;
}

.news-detail-wrapper {
  width: 80%;
  margin: 50px 10% 50px 10%;
}

.news-detail-wrapper h2 {
  font-size: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.news-info {
  width: 95%;
  margin: 20px 0 0 5%;
  background-color: rgb(185, 185, 185);
}



/* <商品一覧画面> */
.product-list-container {
  width: 80%;
  height: auto;
  display: flex;
  flex-direction: column;/* 要素を縦に並べる */
  margin: 50px 10% 200px 10%;
}

/* カテゴリー */
.category {
  margin: 40px 0 20px 0;
  width: 100%;
  height: auto;
}

.category h2 {
  margin-left: 30px;
}

/* 商品要素 */
.items {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
}

.item {
  width: 20%;
  margin: 20px 2.5% 0 2.5%;
  flex-shrink: 0;
  position: relative;
}

.item:hover {
  opacity: 0.7;
}

.item img {
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}

.item p {
  position: absolute;
  bottom: -17px;
  width: 100%;
  height: auto;
  font-size: clamp(8px, 1.5vw, 16px);
  padding: 0 5px 5px 5px;
}

/* <商品詳細画面> */
.detail-container {
  width: clamp(300px, 80vw, 1300px);
  height: auto;
  display: flex;
  flex-direction: column;/* 要素を縦に並べる */
  margin: 100px auto 200px auto;
}

.product-detail-wrapper {
  width: 95%;
  height: auto;
  margin: 50px 0 100px 5%;
  display: flex;
}

.product-detail-wrapper img {
  width: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}

#productPrice {
  font-size: 30px;
}

.store-link {
  color: black;
  text-decoration: none;
}

.store-link:hover {
  color: gray;
}

/* 商品説明 */
.product-info {
  width: 40%;
  margin: 20px 0 0 50px;
  background-color: rgb(185, 185, 185);
}

.section-title {
  font-size: 2.5vw;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  display: inline-block;
  position: relative;

  font-size: 2rem;
  font-weight: bold;
  padding: 20px 0 10px 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;

  color: #212529; /* Bootstrap文字色 */
}

.section-title::after{
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(
    to right,
    #000000,
    rgba(13,110,253,0)
  );
}

.text-contents {
  /* margin-left: 10px; */
  padding:10px;
  font-weight: 500;
  font-size: large;
  background-color: rgb(185, 185, 185);
}

/* 問い合わせボタン */
.inquiry-btn {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.inquiry-btn button {
  width: 50%;
  max-width: 400px;
  height: auto;
}

/* 採用情報 */
.careers-container {
  margin: 50px auto 100px auto;
  width: 70%;
  height: auto;
}

.careers-wrapper {
  width: 100%;
  height: auto;
  margin: 30px auto;
  font-size: large;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.recruit {
  margin: 50px auto 100px auto;
  width: 100%;
  height: auto;
  text-align: center;
}

.recruit h1 {
  align-self: center;
  padding-bottom: 5px;
  border-bottom: 1px solid black;
}

.recruit-content {
  background-color: rgb(255, 255, 255);
  width: 100%;
  font-size: large;
}

.careers-wrapper tr {
  background-color: rgb(206, 206, 206);
  width: 100%;
  border-bottom: 1px solid black;
  margin: 50px auto 100px auto;
}

.careers-wrapper th,
.careers-wrapper td {
  padding: 10px;
  height: auto;
}

.careers-wrapper th {
  width: 30%;
}

.careers-wrapper td {
  width: 70%;
}
/* 企業概要 */
.corporate-container {
  margin: 50px auto 100px auto;
  width: 80%;
  height: auto;
}

.corporate-wrapper {
  width: 100%;
  height: auto;
  margin: 30px auto;
  font-size: large;
  display: flex;
  justify-content: center;
}

.corporate-wrapper table {
  width: 100%;
  table-layout: fixed;
}

.corporate-wrapper tr {
  background-color: rgb(206, 206, 206);
  width: 100%;
  border-bottom: 1px solid black;
  margin: 50px auto 100px auto;
}

.corporate-wrapper th,
.corporate-wrapper td {
  padding: 10px;
  height: auto;
}

.corporate-wrapper th {
  width: 30%;
}

.corporate-wrapper td {
  width: 70%;
}

.station-select-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 10px 0 20px 0;
}

.station-select-wrapper select {
  width: 80%;
  margin-left: 10px;
  margin-bottom: 0 !important;
}

#googleMap {
  width: 100%;
  height: 450px;
}
/* お問い合わせ画面 */
.inquiry-container {
  margin: 50px auto 100px auto;
  width: 70%;
  height: auto;
}

.inquiry-wrapper {
  width: 80%;
  margin: 50px 10% 0 10%;
  font-size: large;
  background-color: rgb(206, 206, 206);
}

.inquiry-list {
  width: 100%;
  height: auto;
  border-bottom: 1px solid gray;
  padding: 20px;
  display: flex;
}

.inquiry-label {
  width: 30%;
  padding-right: 20px;
  text-align: right;
}

.inquiry-input {
  width: 70%;
  gap: 20px;
}

#productElement {
  display: none;
}

#recruitElement {
  display: none;
}

#characterCount {
  display: none;
}

.select-item {
  margin: 0 0 20px 0;
}

.select-item select{
  width: 200px !important;
}

.flex-element {
  display: flex;
  align-items: center;
  gap: 20px;
}

.input-left {
  width: 50%;
}

.input-right {
  width: 50%;
}

.select-
.inquiry-input textarea {
  width: 100%;
  height: 100px;
  max-height: 200px;
  min-height: 100px;
}

.inquiry-input input {
  width: 15px;
  height: 15px;
}

.column-element {
  display: flex;
  flex-direction: column;
}

.right-element {
  float: right;
}

.preview-img {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
}

.modal-list {
  padding: 10px;
  display: flex;
}

.modal-label {
  width: 40%;
}

.modal-input {
  width: 60%;
  display: flex;
  justify-content: flex-end;
}

.modal-input input {
  height: 40px;
  padding: 5px;
}

#fullName {
  width: 150px;
}

#phoneNumber {
  width: 200px;
}

#mailAddress {
  width: 300px;
}

.error-tooltip .tooltip-inner {
  background-color: #940000;
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #ff002b;
}

.error-tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #ff4d6d;
}

.input-error {
  border: 2px solid #ca0000;
  border-radius: 10px;
  background-color: #ffe5ec;
  padding: 5px;
}

.tooltip-inner {
  max-width: none;
  text-wrap: nowrap;
}

.error-btn {
  background-color: #940000;
}

.error-btn:hover {
  background-color: #8b3838 !important;
}

.submit-area {
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.submit-area button {
  width: 100px;
  height: auto;
  font-size: large;
}

.submit-area button:disabled {
  cursor: not-allowed;
  pointer-events: auto;
}

/* 店舗検索画面 */
.search-stores-container {
  margin: 50px auto 100px auto;
  width: 70%;
  height: auto;
}

.japan-map {
  width: 100%;
  height: auto;
  margin: 50px auto;
  display: flex;
  justify-content: center;
}

.japan-map img {
  width: 100%;
  max-width: 800px;
}

/* 店舗一覧画面 */
.locations-container {
  margin: 50px auto 100px auto;
  width: 70%;
  height: auto;
}

.locations-wrapper {
  width: 70%;
  margin: 50px 15% 0 15%;
}

.margin-element {
  margin: 20px;
}

.store-list-card {
  width: 100%;
}

/* 店舗詳細画面 */
.store-detail-wrapper {
  width: 95%;
  height: auto;
  margin: 50px 0 100px 5%;
  display: flex;
}

.store-detail-wrapper img {
  width: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}

.store-info {
  width: 40%;
  margin: 20px 0 0 50px;
  background-color: rgb(185, 185, 185);
}
/* <フッター> */
footer {
  height: 150px;
  width: 100%;
  padding: 20px clamp(50px, 15vw, 800px);
  color: white;
  background-image: url(../img/black_background.jpg);
  background-size: cover;      /* 画像を要素いっぱいに広げる*/
  background-repeat: no-repeat;/* 画像を繰り返さない */
  background-position: center; /* 画像の表示位置を中央にする */
  text-align: center;
  bottom: 0;
}

.footer-info {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.contact-item {
  font-size: 1rem;
}

.contact-item p {
  font-size: 1.5rem;
  margin-bottom:3px;
}

.contact-item a,
.contact-item span {
  color: white;
  text-decoration: none;
}

.contact-item a:hover {
  color: lightgray;
}