* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}


/* ヘッダー */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.tlogo {
  width: 150px;
}




/* ナビメニュー */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

.nav-links li a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #1e90ff;
}








/* トップページ */
/* index */



/* メイン */
/* 検索エリア */
.top {
  /* background-image: url('/images/top.jpg'); */
  background-size: cover;
  background-position: center;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-h1 {
      font-size: 14px;
}

.top-layer {
  background-color: rgba(220, 220, 220, 0.8);
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .top-layer p {
      margin-top: 0px;
      font-size: 20px;
      color: #555;
    }

.search-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}




/* TOP検索フォーム */
    .search-form-top {
      display: flex;
      align-items: center;
      border: 1px solid #ccc;
      border-radius: 12px;
      overflow: hidden;
      max-width: 600px;
      margin: auto;
    }

    .search-select-top {
      appearance: none;
      background-color: #f7f7f7;
      border: none;
      padding: 12px 16px;
      font-size: 14px;
      height: 48px;
      outline: none;
    }

    .search-input-top {
      flex: 1;
      background-color: #fff;
      border: none;
      padding: 12px 16px;
      font-size: 14px;
      height: 48px;
      outline: none;
    }

    .search-button-top {
      background-color: #1e90ff;
      color: #fff;
      border: none;
      padding: 0 24px;
      font-size: 16px;
      height: 48px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .search-button-top:hover {
      background-color: #0077cc;
    }







/* 検索てすと中　必要ないかも　削除対象 */
/* .search-form input {
  padding: 0.5rem 1rem;
  border: 1px solid #aaa;
  border-radius: 8px;
  width: 250px;
  margin-right: 0.5rem;
}

.search-form button {
  padding: 0.5rem 1rem;
  background-color: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #0077cc;
} */











/* 投稿検索 */
/* post/search */

.profile-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 800px;
  height: auto;
  margin:  0 auto;            /* 中央寄せ */
  margin-bottom: 100px;
  margin-top: 50px;
  
}

.custom-select,
.custom-input {
    height: 48px; /* Bootstrapの form-control-lg に合わせた高さ */
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}



      /* 検索フォーム */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0px 10px 0px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
}

.form-group select,
.form-group input {
  padding: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-group.keyword {
  flex: 2; /* キーワード入力は少し広めに */
}

.form-group button {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 16px;
}













table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 30px 0px 10px 0px

}

td {
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

td.label {
  font-weight: bold;
  width: 15%;
  color: #333;
}

td.value {
  color: #555;
}

.post-list {
  max-width: 800px;
  margin: 0 auto;
  
}

.post-item {
  display: flex;
  background-color: #fff;  
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.post-card {
  background-color: #ffffff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.post-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.post-body {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.post-image {
  width: 200px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.post-user {
  font-size: 12px;
  color: #888;
}


.post-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
  text-align: left;

}

.post-body {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-align: left;

}

.post-meta {
  display: flex;
  justify-content: flex-start;
  font-size: 12px;
  color: #999;
}

.post-author::after {
  content: "・";
  margin: 0 6px;
  color: #ccc;
}









/* 投稿詳細 */
/* post/show */
.post-image-show {
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.p-s-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-s-user {
  text-align: left;
  margin-bottom: 20px;
}
.p-s-time {
  text-align: right;
  margin-bottom: 20px;
}
.post-show-user-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;

}
.post-show-title {
  width: auto;
  text-align: left;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 20px;
}
.post-show-content {
  width: auto;
  text-align: left;
  margin-bottom: 20px;
}






/* TOP最新投稿表示 */


  .new-section {
      width: 100%;
      margin-top: 50px;
      box-sizing: border-box;
      flex-direction: row;
      gap: 100px;
  }

  .new-h2 {
  text-align: center;
  margin-bottom: 30px;

    
  }

.new-post-list {
  max-width: 800px;
  margin: 0 auto;
  
}
.new-post-image {
  width: 200px;
  border-radius: 5px;
  margin-top: 15px;
}
.new-post-item {
  display: flex;
  background-color: #fff;  
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.new-post-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.new-post-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
  text-align: left;

}
.new-post-body {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-align: left;

}
.new-post-meta {
  display: flex;
  justify-content: flex-start;
  font-size: 12px;
  color: #999;
}








/* product/index */
/* セクション */

.section1 {
      display: flex;
      width: 100%;
      padding: 80px 6%;
      box-sizing: border-box;
      /* align-items: center; */
      flex-direction: row;
      background-color: #f5f3f3;
      gap: 100px;
    }

.section2 {
      display: flex;
      width: 100%;
      padding: 80px 6%;
      box-sizing: border-box;
      /* align-items: center; */
      flex-direction: row-reverse;
      background-color: #ffffff;
      gap: 100px;
    }


    .text-block {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: left;
            padding: 0px 0px 0px 20px;

      /* justify-content: space-between; */
      /* height: 100px; */
    }

    .text-block h2 {
      max-width: 95%;
      margin: 0;
      font-size: 30px;

    }

    .text-block p {
      max-width: 95%;
      margin-top: 30px;
      font-size: 22px;
      color: #555;
    }

    .image-block {
      flex: 1;
      display: flex;
      justify-content: center;
    }

    .image-block img {
      max-width: 90%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    }



    .heading-1 {
        padding: 0.4em 0.7em;
        border-left: 5px solid #2589d0;
        color: #333333;
    }



    .button-register {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    margin:30px auto 30px auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #2589d0;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    }

    .button-register:hover {
        background-color: #1579c0;
    }









    /* 利用規約 */
.terms-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: center;
}
.guide-h1 {
  font-size: 28px;
  border-bottom: 2px solid #2589d0;
  padding-bottom: 10px;
  margin: 20px 0;
  color: #2589d0;
}
.guide-h2 {
  font-size: 20px;
  margin-top: 30px;
  color: #333;
  border-left: 4px solid #2589d0;
  padding-left: 10px;
}
.guide-p {
  margin: 15px 0;
}
.guide-span {
  color: #2589d0;
}



/* 問合せページ */
.contact-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-family: sans-serif;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.submit-button {
    background-color: #2589d0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #1a6dad;
}

.success-message {
    max-width: 500px;
    margin: 10px auto;
    padding: 10px;
    background-color: #e6ffed;
    border: 1px solid #8fd19e;
    color: #2d7d46;
    border-radius: 4px;
    font-size: 0.95em;
}
.large-textarea {
    height: 300px;
}





/* ログイン画面 */
/* login */
.guest {
    font-family: 'Helvetica Neue', sans-serif;
    margin-top: 20px;
    font-size: 20px;
}
.guest2 {
    font-family: 'Helvetica Neue', sans-serif;
    margin-top: 5px;
    font-size: 14px;
}



/* エンバースとは */
/* site */

.weight-site {
    font-weight:  bold;
}







.footer {
    background-color: #c7c6c6;
    color: #555;
    padding: 40px 35px;
    margin-top: 50px;
    font-size: 14px;

    
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left a {
    margin-right: 20px;
    text-decoration: none;
    color: #555;
}

.footer-left a:hover {
    text-decoration: underline;
}




/* スマホ非表示 */
   .top-sp {
      display: none;
  }

   .post-container-sp {
      display: none;
  }
  
  .section-sp {
  display: none;
}



/*====================
 スマートフォン用のスタイル
=====================*/
@media screen and (max-width: 767px) {


  .btn-outline-primary {
  background-color: #007bff;
  color: #fff;
  padding: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;

}

  .none {
    display: none;
  }






  .search-title {
    font-size: 20px;
  }

  .section-pc {
    display: none;
  }

   .section-sp {
    display: block;
  }
  

  /*TOPページ セクション */

  .section1,
  .section2 {
    flex-direction: column !important;
    padding: 40px 5%;
    gap: 40px;
  }

  .image-block {
    order: 1;
    width: 70%;
  margin-left: auto;
  margin-right: auto;
  }

  .text-block {
    order: 0;
    padding: 0;
  }

  .text-block h2 {
    font-size: 22px;
  }

  .text-block p {
    font-size: 16px;
    margin-top: 20px;
  }

  .image-block img {
    max-width: 100%;
  }




/*TOPページ 全国最新投稿 */
.new-post-image {
  width: 100px;
  border-radius: 5px;
  margin-top: 15px;
}


/* 投稿一覧検索 */
  .profile-container {
    width: 100%;
  }
   .post-list {
    display: none;
  }
   .post-container-sp {
    display: block;
  }


.post-container-sp {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  font-family: sans-serif;
  background-color: #fff;  
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-image-sp {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.post-meta-sp {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
  color: #555;
}

.post-name-sp {
  font-weight: bold;
}

.post-date-sp {
  text-align: right;
  white-space: nowrap;
}

.post-title-sp {
  font-size: 18px;
  margin: 8px 0;
  color: #222;
  text-align: left;
}

.post-body-sp {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}





/* 検索フォーム */


 .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .form-group {
    width: 100%;
  }

  .form-group button {
    width: 100%;
    font-size: 16px;
  }

  .form-group select,
  .form-group input {
    font-size: 16px;
    padding: 12px;
  }




/* TOP検索フォーム */

  .top {
  /* background-image: url('/images/top.jpg'); */
  background-size: cover;
  background-position: center;
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .top-layer {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem; /* 左右の余白を少なめに */
    box-sizing: border-box;
  }
  .search-form-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-select-top,
  .search-input-top,
  .search-button-top {
    width: 100%;
    font-size: 16px;
  }

  .search-button-top {
    padding: 12px;
  }





      .button-register {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin:30px auto 30px auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #2589d0;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    }

    .button-register:hover {
        background-color: #1579c0;
    }

  }