/*
Theme Name: new-thema
Theme URI: https://marui-clinic.net
Author: まるいクリニック
Author URI: https://marui-clinic.net
Description: まるいクリニック公式テーマ - 精神科・心療内科クリニックのWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-thema
Tags: custom-menu, featured-images, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/*
 * メインCSSは assets/css/main.css に配置しています。
 * functions.php でエンキューされます。
 *
 * このファイルには WordPress テーマ識別用のヘッダーコメントと
 * 追加のユーティリティスタイルのみ記載しています。
 */

/* ============================================================
   Responsive breakpoint helpers
   ============================================================ */
.br-sp { display: none; }
.br-pc { display: inline; }

@media (max-width: 768px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }
}

/* ============================================================
   Contact Form 7 スタイル
   ============================================================ */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-form__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.6;
}

.contact-form__required {
  display: inline-block;
  background-color: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.contact-form__input input,
.contact-form__input textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-family);
  line-height: 1.6;
}

.contact-form__input textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__submit {
  text-align: center;
  margin-top: 32px;
}

.contact-form__submit input[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 80px 20px;
  background-color: var(--color-green);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  font-family: var(--font-family);
}

.contact-form__submit input[type="submit"]:hover,
.wpcf7-submit:hover {
  opacity: 0.8;
}

/* ============================================================
   求人詳細 the_content() 出力用スタイル
   ============================================================ */
.recruit-detail__content {
  width: 100%;
}

.recruit-detail__content table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-detail__content table th {
  width: 250px;
  background-color: #ddf4f6;
  font-size: 16px;
  font-weight: 500;
  color: #434343;
  line-height: 1.6;
  padding: 32px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #fff;
}

.recruit-detail__content table td {
  font-size: 16px;
  font-weight: 400;
  color: #434343;
  line-height: 1.6;
  padding: 32px;
  vertical-align: top;
  border: 1px solid #ddf4f6;
}

.recruit-detail__content ul {
  list-style: disc;
  margin-left: 24px;
}

@media (max-width: 768px) {
  .recruit-detail__content table,
  .recruit-detail__content table tbody,
  .recruit-detail__content table tr {
    display: block;
    width: 100%;
  }
  .recruit-detail__content table th,
  .recruit-detail__content table td {
    display: block;
    width: 100%;
    padding: 16px;
  }
  .recruit-detail__content table th {
    border-bottom: none;
  }
  .recruit-detail__content table td {
    border-top: none;
  }
}

/* ============================================================
   記事詳細 アイキャッチ画像
   ============================================================ */
.news-detail__thumbnail,
.recruit-detail__thumbnail {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

/* ============================================================
   お知らせ 2カラムレイアウト
   ============================================================ */
.news-layout {
  display: flex;
  gap: 60px;
  max-width: 1366px;
  margin: 0 auto;
  padding: 80px 143px 120px;
}

.news-layout__main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   サイドバー
   ============================================================ */
.news-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.news-sidebar__section {
  margin-bottom: 40px;
}

.news-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  color: #266ad4;
  line-height: 1.4;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #266ad4;
}

/* --- カテゴリ一覧 --- */
.news-sidebar__cat-list {
  list-style: none;
}

.news-sidebar__cat-item {
  border-bottom: 1px solid #f0f3f5;
}

.news-sidebar__cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 400;
  color: #434343;
  line-height: 1.6;
  transition: color 0.2s;
}

.news-sidebar__cat-item a:hover {
  color: #266ad4;
}

.news-sidebar__cat-count {
  font-size: 13px;
  color: #999;
}

/* --- 最新の投稿 --- */
.news-sidebar__recent-list {
  list-style: none;
}

.news-sidebar__recent-item {
  border-bottom: 1px solid #f0f3f5;
}

.news-sidebar__recent-link {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  transition: opacity 0.2s;
}

.news-sidebar__recent-link:hover {
  opacity: 0.7;
}

.news-sidebar__recent-thumb {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-sidebar__recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-sidebar__recent-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news-sidebar__recent-date {
  font-size: 13px;
  font-weight: 500;
  color: #266ad4;
  line-height: 1;
}

.news-sidebar__recent-title {
  font-size: 14px;
  font-weight: 400;
  color: #434343;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- レスポンシブ（タブレット） --- */
@media (max-width: 1024px) {
  .news-layout {
    padding: 60px 20px 80px;
    gap: 40px;
  }

  .news-sidebar {
    width: 240px;
  }
}

/* --- レスポンシブ（スマホ） --- */
@media (max-width: 768px) {
  .news-layout {
    flex-direction: column;
    padding: 40px 16px 60px;
    gap: 48px;
  }

  .news-sidebar {
    width: 100%;
  }
}

.news-detail__thumbnail img,
.recruit-detail__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
