#search-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-family: sans-serif;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.input-with-button {
  display: flex;
  align-items: center;
}

.input-with-button input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.input-with-button button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-left: none;
  background: #e3e3e3;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  align-items: stretch; /* ← ここがポイント */
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem; /* ← gapを小さく */
  margin-top: 2rem;
}



.form-actions button:hover {
  background-color: #0056b3;
}

.toggle-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hidden {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-body {
  text-align: left;
}

.modal-content label {
  display: block;
  margin: 0.25rem 0;
  font-weight: normal;
  text-align: left;
}

.job-sub {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  margin-left: 1.5rem;
  line-height: 1.4;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #000;
}

/* search.css 修正スタイル（Heroセクションのボタンと統一） */

/* タイトルスタイル */
.search-title {
  margin-top: 100px; 
  padding-top: 2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #0a2f73;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
  background-color: #eafaf3;
  padding-bottom: 0;
}


.search-subtitle {
  text-align: center;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.search-title-underline {
  width: 120px;
  height: 4px;
  background-color: #0a2f73;
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

.salary-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with-button {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #fff;
  transition: all 0.3s ease-in-out;
  border: 1px solid #ccc;
  height: 3.2rem;
}

.input-with-button input[type="text"] {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: #000;
  height: 100%;
  line-height: 1.5;
}

.input-with-button button {
  width: 3.2rem;
  height: 100%;
  border: none;
  background: #00b88a;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease-in-out;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 184, 138, 0.3);
}

.input-with-button button:hover {
  transform: scale(1.05);
  background-color: #009f76;
  box-shadow: 0 6px 15px rgba(0, 184, 138, 0.4);
}

.input-with-button button::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../img/icon-search.jpg');
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

.input-with-button::after {
  content: "ここを押して選択";
  font-size: 0.75rem;
  color: #666;
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
}

select {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 120px;
  font-size: 1rem;
  height: 3.2rem;
  color: #000;
  box-sizing: border-box;
}

input[type="text"],
input[type="number"] {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  height: 3.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: #000;
}

.form-actions button {
  flex: 1; 
  min-width: 0; 
  padding: 0.8rem;
  font-size: 1rem;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
  height: 3.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1; 
  align-self: stretch;
}


.form-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.form-actions .btn-search {
  background-color: #00b88a;
  height: 3.2rem; /* 明示 */
}

.form-actions .btn-search:hover {
  background-color: #009f76;
}

.form-actions .btn-clear {
  background-color: #e53935;
}

.form-actions .btn-clear:hover {
  background-color: #c62828;
}

.form-actions .btn-favorites {
  background-color: #1e88e5;
  background-image: url('../img/icon-favorite.png');
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 1.2rem auto;
  justify-content: center;
  padding-left: 1.5rem;
}

/* 求人 */

.job-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0;
  justify-content: center;
}

.job-card {
  width: calc(25% - 18px); 
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.job-card:hover {
  transform: translateY(-5px);
}

/* サムネイル画像 */
.job-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* コンテンツ部分 */
.job-card-content {
  padding: 16px;
  flex-grow: 1;
}

.job-card h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}

.job-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 10px;
}

.job-content {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 12px;
}

.job-card a {
  text-align: center;
  display: block;
  text-decoration: none;
  background-color: #007bff;
  color: white;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  font-weight: bold;
  transition: background-color 0.2s;
}

.job-card a:hover {
  background-color: #0056b3;
}

@media (max-width: 1024px) {
  .job-card {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .job-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  .job-card {
    width: 100%;
  }
}

body.page-id-26 .job-card {
  position: relative;
}

body.page-id-26 .job-card .favorite-icon-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ccc;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* お気に入り済みのときの色 */
body.page-id-26 .job-card .favorite-icon-btn .favorited {
  color: gold;
}



/* モバイル対応 */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .form-actions button {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
  }

  .form-actions .btn-favorites {
    justify-content: center;
    padding-left: 2rem; 
    background-position: center left 1rem;
    background-size: 1rem auto;
  }
}

/* 求人詳細 */
.job-detail {
  max-width: 800px;
  margin: 80px auto 40px auto; 
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.job-detail-image {
  margin-bottom: 20px;
  text-align: center;
}

.job-detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.job-detail-meta ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.job-detail-meta li {
  margin-bottom: 8px;
  font-size: 16px;
}

.job-detail-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.job-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 16px;
}

.job-detail-actions .btn-apply,
.job-detail-actions .btn-back {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  width: 240px;
}

.job-detail-actions .btn-apply {
  background-color: #007bff;
  color: #fff;
}

.job-detail-actions .btn-apply:hover {
  background-color: #0056b3;
}

.job-detail-actions .btn-back {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
}

.job-detail-actions .btn-back:hover {
  background-color: #e1e1e1;
  color: #000;
}

/* タイトル + 星ボタン */
.job-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #ccc;
  position: relative;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-title-wrap h1.job-title {
  font-size: 28px;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  color: #0a2f73;
  font-weight: bold;
  word-break: break-word;
}

.btn-applied {
  background-color: #ccc;
  color: #666;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: not-allowed;
}


/* お気に入り星ボタン */
.favorite-icon-form {
  margin-left: auto;
}

.favorite-icon-btn {
  background: #fff; 
  border: none;
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.2s ease-in-out;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
}


.favorite-icon-btn:hover {
  transform: scale(1.15);
  background: #fff; 
}

.favorite-icon-btn i {
  color: #ccc;
  transition: color 0.3s ease;
}

.favorite-icon-btn i.favorited {
  color: #FFD700;
}

.favorite-icon-btn:hover i {
  color: #ffcc00;
}

.vertical-list .list-card {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
}


.dm-form-section,
.dm-form-container {
  margin-top: 40px;
  padding: 30px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.dm-form-section h3,
.dm-form-container h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.dm-form-section textarea,
.dm-form-container textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.dm-form-section .btn-dm-send,
.dm-form-container input[type="submit"] {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dm-form-section .btn-dm-send:hover,
.dm-form-container input[type="submit"]:hover {
  background-color: #005e8e;
}

.dm-reply-form {
  margin-top: 10px;
}

.dm-reply-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  resize: vertical;
}

.btn-reply-send {
  margin-top: 8px;
  background-color: #0073aa;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-reply-send:hover {
  background-color: #005f8d;
}

.dm-subsection {
  margin-bottom: 30px;
}

.dm-subheading {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0073aa;
}

.dm-read-status {
  font-size: 14px;
  color: #999;
  font-style: italic;
}


/* --- ログインしていない場合の注意 --- */
.dm-login-notice {
  margin-top: 30px;
  padding: 20px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  border-radius: 4px;
}

/* --- 応募済みボタン --- */
.applied-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: default;
}

/* --- DM通知 --- */
.dm-notification {
  color: red;
  margin-left: 10px;
  font-weight: bold;
}

/* --- DM一覧 --- */
.mypage-dm-section {
  margin-top: 40px;
}

.dm-message-list {
  list-style: none;
  padding: 0;
}

.dm-message-item {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  background-color: #fff;
}

.dm-message-item.unread {
  background-color: #fff9e6;
}

/* ログイン促しリンク */
.favorite-login-prompt {
  font-size: 14px;
  color: #007bff;
  text-decoration: underline;
  margin-left: 1rem;
}

.favorite-login-prompt:hover {
  color: #0056b3;
}

/* ================================
  求人検索ページ：スマホ最適化修正
================================ */
@media (max-width: 768px) {
  /* タイトル周りの余白を詰める */
  .search-header-section {
    margin: 72px 0 12px !important; 
  }

  #search-form {
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1.75rem;
  }
  #search-form .form-group {
    margin-bottom: 1.1rem;
  }
  #search-form label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  /* 1行UIのタップ領域をキープ（高さは既に3.2rem指定あり） */
  .input-with-button {
    height: 3.2rem;
  }
  .input-with-button::after {
    display: none;
  }

  /* 給与レンジ：縦積みで迷いにくく */
  .salary-range {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .salary-range select {
    width: 100%;
    min-width: 0;
  }

  select,
  input[type="text"],
  input[type="number"] {
    width: 100%;
    font-size: 1rem;
  }

  .toggle-btn {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0;
    font-size: 1rem;
  }
  #welcome-conditions label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .form-actions .btn-clear,
  .form-actions .btn-search {
    width: 100%;
    height: 3.2rem;
    font-size: 1rem;
  }

  /* モーダル：全画面ドロワー風で選びやすく */
  .modal {
    align-items: flex-end;        
  }
  .modal-content {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;                 
    border-radius: 14px 14px 0 0;
    padding: 1rem 1rem 84px;       
    overflow: hidden;             
    position: relative;
  }
  .modal-content h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
  }
  .modal-content .modal-body {
    overflow-y: auto;
    height: calc(100% - 2.6rem);   
    padding-right: 2px;             
  }

  /* チェック群：2列グリッドで一覧性UP */
  .job-type-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
  }
  
  .location-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    text-align: left;
  }
  .modal-content label {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
  }
  
  .job-sub {
    font-size: 0.75rem;
    margin-left: 1.2rem;
  }

  /* “内容を反映”ボタンは固定で常に見える */
  .job-type-modal > button,
  .location-modal > button {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: env(safe-area-inset-bottom, 16px);
    height: 44px;
    border-radius: 999px;
    background: #00b88a;
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0,184,138,.24);
  }

  /* 閉じるボタンの押しやすさ */
  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
  }

  /* 求人カード：タップしやすい余白と文字サイズだけ微調整 */
  .job-card h3 {
    font-size: 1rem;
    line-height: 1.45;
    padding: 0 12px;
    margin: 10px 0;
    word-break: break-word;      
  }
  .job-meta {
    font-size: 0.85rem;
    padding: 0 12px 10px;
  }
  .job-card a.job-detail-link {
    padding: 12px 0;
    font-size: 0.95rem;
  }
}

/* さらに小さい端末でモーダルの選択肢を1列に */
@media (max-width: 420px) {
  .job-type-modal .modal-body {
    grid-template-columns: 1fr;
  }
  
  .location-modal .modal-body {
    grid-template-columns: 1fr;
  }
}


/* ================================
   求人カード内テキスト（・なし）
================================ */
.job-card ul {
  padding-left: 0;             
  margin: 0 0 0.5rem;
  list-style: none;              
}

.job-card li {
  line-height: 1.6;
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 0.4rem;      
  word-break: break-word;
}

.job-card p {
  line-height: 1.6;
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 0.6rem;
}

/* スマホでの可読性UP */
@media (max-width: 768px) {
  .job-card li,
  .job-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* 1) カードを縦のフレックスにして、詳細リンクを最下部へ固定 */
.job-card{
  display:flex;              
  flex-direction:column;    
}

/* 2) これで内容が多くてもボタンは必ず下に来る */
.job-card .job-detail-link{
  margin-top:auto;          
}

/* 3) 見出し・メタの余白を安定させる（高さの不揃いを減らす） */
.job-card h3{ margin: 10px 16px 8px; }
.job-meta{
  margin: 0 16px 12px;
  padding: 0;
  list-style: none;
}

/* 4) 画像がある/なしでも高さが安定するように（画像ありでも明示）*/
.job-card .job-image{ height:150px; }      
.job-card .job-image img{ height:100%; }    



/* ================================
   single-job：星ボタンを右側へ
================================ */
.job-title-wrap .favorite-icon-btn{
  margin-left: auto;  
  flex-shrink: 0;     
  align-self: center; 
}

@media (max-width: 600px){
  .job-title-wrap .favorite-icon-btn{
    white-space: nowrap;
  }
}

/* ================================
   「この求人に応募する」ボタンの青い“枠”を落ち着かせる
================================ */
.job-detail-actions .btn-apply{
  outline: none;
  box-shadow: none;
  border: 1px solid #cdd5df; 
}

.job-detail-actions .btn-apply:focus,
.job-detail-actions .btn-apply:focus-visible{
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.08);
}

.job-detail-actions .btn-apply:hover{
  background-color: #0066d6; 
}

/* ================================
   応募後の「メッセージを送信」ボタンにデザインを適用
================================ */
.dm-form-container .btn-dm-send{
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .3s, transform .05s;
}

.dm-form-container .btn-dm-send:hover{
  background-color: #005e8e;
}

.dm-form-container .btn-dm-send:active{
  transform: translateY(1px);
}

.mypage-newdm .profile-content { display: block; }
.mypage-newdm .dm-new-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 720px;
}
.mypage-newdm .dm-new-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: block;
  margin-top: 6px;
}
.mypage-newdm .dm-new-form select,
.mypage-newdm .dm-new-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}
.mypage-newdm .dm-new-note {
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

/* 入力系のフォントを検索バーと完全統一（placeholder含む） */
.mypage-container,
.mypage-container input,
.mypage-container select,
.mypage-container textarea,
.mypage-container button,
.mypage-container input::placeholder,
.mypage-container textarea::placeholder {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", "Noto Sans JP",
               Helvetica, Arial, sans-serif !important;
}

/* スレッドの初期非表示用クラス */
.thread-more-hidden { display: none !important; }


/* ---- Modal open 管理 ---- */
.modal.open { display: flex; }
body.no-scroll { overflow: hidden; }

/* ---- モーダルの固定フッター（反映ボタン） ---- */
.modal-apply{
  position: sticky; /* PCでも見失わない */
  bottom: 0;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #00b88a;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,184,138,.24);
}

/* ---- アコーディオン ---- */
.accordion { display: grid; gap: 10px; }
.acc-item { border-radius: 10px; overflow: hidden; background: #fff; }
.acc-header{
  width: 100%;
  text-align: left;
  padding: 14px 44px 14px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 700;
  position: relative;
  cursor: pointer;
}
.acc-header::after{
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid #666; border-bottom: 2px solid #666;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s, border-color .2s;
}
.acc-header[aria-expanded="true"]{
  background: #00b88a; color: #fff; border-color: #00b88a;
}
.acc-header[aria-expanded="true"]::after{ transform: translateY(-50%) rotate(-135deg); border-color:#fff; }

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
  background: #fafafa;
}
.acc-item.open .acc-panel{ padding: 12px 12px; }

.acc-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px 12px;
}
.acc-grid label{ display: flex; align-items: center; gap: 6px; }

/* スマホで読みやすく */
@media (max-width: 768px){
  .acc-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .acc-grid{ grid-template-columns: 1fr; }
}

/* ---- 非ログイン時の★を無効化 ---- */
.favorite-icon-btn.is-disabled,
body:not(.logged-in) .favorite-icon-btn {
  pointer-events: none;   /* クリック無効 */
  cursor: default;
  opacity: .7;
}



/* 1) ヘッダーの <select> を main.css と同じトーンに戻す */
body.page-id-26 .header .lang-switch select,
body.page-id-26 .header .header-lang select,
body.page-id-26 .header .gtranslate_wrapper select#gtranslate_selector {
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  width: 118px !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}

/* 2) GTranslate が "スイッチャ（a要素）" を使う場合の見た目も main.css に合わせる */
body.page-id-26 .header .gt_switcher .gt_selected,
body.page-id-26 .header .switcher .selected {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
body.page-id-26 .header .gt_switcher .gt_options { min-width: 118px !important; }

/* 3) ヘッダー内の言語ブロックの幅・間隔（main.css に合わせる） */
body.page-id-26 .header .header-lang .switcher,
body.page-id-26 .header .header-lang .gt_switcher,
body.page-id-26 .header .header-lang select,
body.page-id-26 .header .gt_switcher,
body.page-id-26 .header .gt_switcher_wrapper,
body.page-id-26 .header .gt_selector,
body.page-id-26 .header .gtranslate_wrapper select#gtranslate_selector {
  width: 118px !important;
  max-width: 118px !important;
}
body.page-id-26 .header .logo-nav .nav-right > .gtranslate_wrapper,
body.page-id-26 .header .logo-nav .nav-right > .lang-switch,
body.page-id-26 .header .logo-nav .nav-right > .gt_switcher_wrapper {
  margin-right: 24px !important;
}

/* 4) 念のため：検索ページの“全体 select 指定”をヘッダーだけ無効化 */
body.page-id-26 .header select {
  height: auto !important;
  padding: 6px 10px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* 5) 今後の事故防止：フォーム部品は #search-form 内のみに限定して上書き */
body.page-id-26 #search-form select,
body.page-id-26 #search-form input[type="text"],
body.page-id-26 #search-form input[type="number"] {
  height: 3.2rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 1rem;
}

/* ================================
   page-search（スマホ）モーダルUI修正
================================ */
@media (max-width: 768px){

  /* モーダル本体：上は×分の余白、下は反映ボタン分の余白を確保 */
  body.page-id-26 .modal-content{
    height: 100dvh;
    border-radius: 14px 14px 0 0;
    padding-top: 52px; 
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); 
    overflow: hidden;
    position: relative;
  }
  body.page-id-26 .modal-content .modal-body{
    overflow-y: auto;
    height: calc(100% - 52px); 
    -webkit-overflow-scrolling: touch;
  }

  /* × ボタンを右上に（テーマ側の装飾をリセット） */
  body.page-id-26 .modal-content .modal-close{
    all: unset;                     
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
  }

  /* 「内容を反映」ボタンを下部中央に、小さめで固定 */
  body.page-id-26 .modal-content .modal-apply{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(88%, 320px);          /* 画面からはみ出さない小さめ幅 */
    height: 44px;
    border-radius: 999px;
    z-index: 20;
  }
}

/* ================================
   page-search（PC）モーダルを少し下げる
================================ */
@media (min-width: 769px){
  :root{ --search-pc-modal-offset: 56px; } 

  body.page-id-26 .modal{
    /* 中央揃え → 上から少し下げた位置に */
    align-items: flex-start;
    padding-top: var(--search-pc-modal-offset);
  }
 
  body.page-id-26 .modal-content{ margin-top: 0; }
}

@media (min-width: 1025px){
  body.page-id-26 .search-header-section{
    margin-top: 96px !important; 
  }
}













