/* WordPress 化で足した部品の見た目。元デザイン CSS（common.css ほか）は触らない。
   ここに書くのは元 HTML に無い状態・部品だけ（初めて開いたときの見た目は元と同じ）。理由は README 判断ログ。 */

/* フォームの迷惑送信よけ（honeypot）: 人には見えない画面外の欄 */
.tsuboi-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* お問い合わせ: 確認・完了（G-3）。元の .contact__item・.contact__button を使い、足りない所だけ足す */
.js-contact-form.is-confirm .contact__item-input input,
.js-contact-form.is-confirm .contact__item-input textarea,
.js-contact-form.is-confirm .js-contact-confirm {
  display: none;
}
.tsuboi-contact__value {
  min-height: 40px;
  padding: 8px 0;
  color: #333;
  font: 400 1.6rem/1.75 "Noto Sans JP", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tsuboi-contact__field-error {
  margin-top: 6px;
  color: #a72126;
  font: 500 1.4rem/1.5 "Noto Sans JP", sans-serif;
}
.contact__item.is-error .contact__item-input input,
.contact__item.is-error .contact__item-input textarea {
  border-color: #a72126;
}
.tsuboi-contact__error {
  margin-top: 30px;
  color: #a72126;
  text-align: center;
  font: 500 1.6rem/1.75 "Noto Sans JP", sans-serif;
}
.tsuboi-contact__error:empty {
  display: none;
}
.tsuboi-contact__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.tsuboi-contact__actions .contact__button {
  flex: 1 1 0;
  margin: 0;
}
.tsuboi-contact__back {
  color: #eb9696;
  background-color: #fff;
}
.tsuboi-contact__back:hover {
  color: #fff;
  background-color: #eb9696;
}
.js-contact-send.is-sending {
  opacity: 0.6;
  pointer-events: none;
}
.tsuboi-contact__done {
  padding-top: 40px;
  color: #333;
  text-align: center;
  font: 400 1.6rem/2 "Noto Sans JP", sans-serif;
}
.tsuboi-contact__done p + p {
  margin-top: 1em;
}
@media screen and (max-width: 767px) {
  .tsuboi-contact__value {
    font-size: 13px;
  }
  .tsuboi-contact__field-error {
    font-size: 12px;
  }
  .tsuboi-contact__error {
    margin-top: 15px;
    font-size: 13px;
  }
  .tsuboi-contact__actions {
    gap: 10px;
    margin-top: 15px;
  }
  .tsuboi-contact__actions .contact__button {
    font-size: 15px;
  }
  .tsuboi-contact__done {
    padding-top: 20px;
    text-align: left;
    font-size: 13px;
  }
}

/* 404（G-6）: お知らせ一覧の枠＋プライバシーポリシーのボタン。案内文だけ中央に */
.tsuboi-404__text {
  display: block;
  text-align: center;
}

/* お知らせ一覧の年タブ（2026-10-07 クライアント指示）:
   4 つまでは元のデザインどおり横一列。5 つ目（古い年）からは 2 段目に折り返さず、右へスライドして見せる。
   1 枠の幅は元と同じ「(全幅 − 間隔 3 つ) ÷ 4」なので、4 つ以下のときは元と 1px も変わらない。 */
.news__category {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 30px) / 4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news__category::-webkit-scrollbar {
  display: none;
}
.news__category a {
  scroll-snap-align: start;
}
@media screen and (max-width: 767px) {
  .news__category {
    grid-auto-columns: calc((100% - 15px) / 4);
  }
}
/* 右にまだ年があることを示す（5 つ以上のときだけ JS が付ける。4 つ以下では出ない） */
.tsuboi-years-wrap {
  display: contents;
}
.tsuboi-years-wrap.tsuboi-years {
  display: block;
  position: relative;
  margin-bottom: 30px;
}
.tsuboi-years-wrap.tsuboi-years .news__category {
  margin-bottom: 0;
}
.tsuboi-years-wrap.tsuboi-years::after {
  content: "›";
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 46px;
  height: 50px;
  padding-right: 8px;
  color: #eb9696;
  font-size: 2.6rem;
  line-height: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 60%);
}
.tsuboi-years-wrap.tsuboi-years.is-end::after {
  opacity: 0;
}
@media screen and (max-width: 767px) {
  .tsuboi-years-wrap.tsuboi-years::after {
    width: 26px;
    height: 22px;
    padding-right: 4px;
    font-size: 1.6rem;
  }
}

/* お知らせの詳細ページ（2026-10-13 追加。デザインには無い。一覧・トップからはリンクしない）。
   枠はお知らせ一覧（news.css）、戻るボタンはプライバシーポリシー（privacy.css）の部品をそのまま使う。 */
.tsuboi-single {
  max-width: 800px;
  margin-inline: auto;
}
/* 戻るボタン（privacy.css の .privacy__button）は本文から離す。404 の同じボタンには効かせない */
.tsuboi-single ~ .privacy__button {
  margin-top: 70px;
}
@media screen and (max-width: 767px) {
  .tsuboi-single ~ .privacy__button {
    margin-top: 35px;
  }
}
.tsuboi-single__date {
  margin-bottom: 10px;
  text-align: center;
}
.tsuboi-single__title {
  margin-bottom: 25px;
  font-size: 3rem;
  line-height: 1.5em;
  letter-spacing: 0.1em;
}
.tsuboi-single__lead {
  margin-bottom: 30px;
  padding-bottom: 30px;
  color: #333;
  font: 500 1.6rem/1.75 "Noto Sans JP", sans-serif;
  border-bottom: 1px solid #eb9696;
}
.tsuboi-single__body {
  color: #464646;
  font: 400 1.6rem/2 "Noto Sans JP", sans-serif;
}
.tsuboi-single__body > * + * {
  margin-top: 1.5em;
}
.tsuboi-single__body h2,
.tsuboi-single__body h3,
.tsuboi-single__body h4 {
  color: #333;
  font-family: "Zen Old Mincho", sans-serif;
  font-weight: 700;
  line-height: 1.6em;
}
.tsuboi-single__body h2 { font-size: 2.4rem; }
.tsuboi-single__body h3 { font-size: 2rem; }
.tsuboi-single__body h4 { font-size: 1.8rem; }
.tsuboi-single__body a {
  color: #a72126;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tsuboi-single__body a:hover {
  text-decoration: none;
}
.tsuboi-single__body ul,
.tsuboi-single__body ol {
  padding-left: 1.5em;
}
.tsuboi-single__body ul { list-style: disc; }
.tsuboi-single__body ol { list-style: decimal; }
.tsuboi-single__body li + li {
  margin-top: 0.5em;
}
.tsuboi-single__body img {
  height: auto;
  max-width: 100%;
}
.tsuboi-single__body figure img {
  display: block;
}
.tsuboi-single__body figcaption {
  margin-top: 8px;
  color: #666;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.6em;
}
.tsuboi-single__body blockquote {
  padding-left: 1em;
  color: #666;
  border-left: 3px solid #eb9696;
}
.tsuboi-single__body table {
  width: 100%;
  border-collapse: collapse;
}
.tsuboi-single__body th,
.tsuboi-single__body td {
  padding: 10px;
  text-align: left;
  border: 1px solid #d6d8d7;
}
@media screen and (max-width: 767px) {
  .tsuboi-single__title {
    margin-bottom: 15px;
    font-size: 17px;
  }
  .tsuboi-single__lead {
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-size: 13px;
  }
  .tsuboi-single__body {
    font-size: 13px;
  }
  .tsuboi-single__body h2 { font-size: 16px; }
  .tsuboi-single__body h3 { font-size: 15px; }
  .tsuboi-single__body h4 { font-size: 14px; }
  .tsuboi-single__body figcaption { font-size: 12px; }
}

/* お知らせ一覧の行を、記事ごとのページへのリンクにする（2026-10-14 ユーザー指示）。
   元は <li> の直下に日付と本文が並ぶだけだった。<a> を 1 枚挟んでも、
   common.css の `a { color: inherit; text-decoration: none }` と
   .news__item の display:flex を引き継ぐので、見た目は元のまま。 */
.tsuboi-news-link {
  display: flex;
  width: 100%;
}
.tsuboi-news-link:hover .news__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
