@charset "UTF-8";

/*
Theme Name: WordPress Template
Author:
Author URI:
Description:
Version: 1.0.0
*/

/* ======================================================================
 MW WP Form スタイリング
====================================================================== */
/* フォーム全体 */
.mw_wp_form {
  font-size: 1rem;
}

/* ラベル */
.mw_wp_form label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* 必須マーク */
.mw_wp_form .mwform-must {
  color: #ef4444;
}

/* テキスト入力、メール、電話番号、セレクト */
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"],
.mw_wp_form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-size: 1rem;
}

.mw_wp_form input[type="text"]:focus,
.mw_wp_form input[type="email"]:focus,
.mw_wp_form input[type="tel"]:focus,
.mw_wp_form select:focus {
  outline: none;
  border-color: #367B38;
  box-shadow: 0 0 0 3px rgba(54, 123, 56, 0.2);
}

/* テキストエリア */
.mw_wp_form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-size: 1rem;
  resize: vertical;
}

.mw_wp_form textarea:focus {
  outline: none;
  border-color: #367B38;
  box-shadow: 0 0 0 3px rgba(54, 123, 56, 0.2);
}

/* チェックボックス */
.mw_wp_form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  accent-color: #367B38;
}

.mw_wp_form .mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}

/* ラジオボタン */
.mw_wp_form input[type="radio"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  margin-right: 0.5rem;
  accent-color: #367B38;
}

.mw_wp_form .mwform-radio-field label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  margin-right: 1rem;
}

/* 送信ボタン、戻るボタン */
.mw_wp_form input[type="submit"],
.mw_wp_form button {
  background-color: #FE7D14;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.mw_wp_form input[type="submit"]:hover,
.mw_wp_form button:hover {
  opacity: 0.9;
}

.mw_wp_form .mwform-back-button {
  background-color: #6b7280;
  margin-left: 1rem;
}

/* エラーメッセージ */
.mw_wp_form .error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.mw_wp_form .mwform-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* 確認画面のスタイル */
.mw_wp_form .mwform-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.mw_wp_form .mwform-preview-table th,
.mw_wp_form .mwform-preview-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.mw_wp_form .mwform-preview-table th {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  width: 30%;
}

.mw_wp_form .mwform-preview-table td {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 500;
}

/* ボタンを中央に配置 */
.mw_wp_form .mwform-button-area {
  text-align: center;
  margin-top: 2rem;
}

/* グリッドレイアウト対応 */
.mw_wp_form .grid {
  display: grid;
  gap: 1.5rem;
}

.mw_wp_form .grid.md\:grid-cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .mw_wp_form .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* マージン調整 */
.mw_wp_form .mb-6 {
  margin-bottom: 1.5rem;
}

/* ======================================================================
 newspost 見出しスタイリング
====================================================================== */
.newspost h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid #367B38;
  line-height: 1.4;
  scroll-margin-top: 100px;
}

.newspost h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  line-height: 1.4;
}

.newspost h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  padding-left: 0.75rem;
  border-left: 3px solid #9ca3af;
  line-height: 1.4;
}

.newspost h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* ======================================================================
 newspost リストスタイリング
====================================================================== */
.newspost ul,
.newspost ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: #f9fafb;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: 0.5rem;
}

.newspost ul li,
.newspost ol li {
  margin-bottom: 0;
  line-height: 1.6;
  color: #374151;
}

.newspost ul li {
  font-weight: 600;
}

.newspost ul li:last-child,
.newspost ol li:last-child {
  margin-bottom: 0;
}

.newspost ul {
  list-style-type: disc;
}

.newspost ul li::marker {
  color: #367B38;
  font-size: 1.2em;
}

.newspost ol {
  list-style-type: decimal;
  counter-reset: item;
}

.newspost ol li::marker {
  color: #367B38;
  font-weight: 600;
}

/* ネストされたリスト */
.newspost ul ul,
.newspost ol ol,
.newspost ul ol,
.newspost ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: transparent;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0;
  padding-right: 0;
}

.newspost ul ul {
  list-style-type: circle;
}

.newspost ul ul ul {
  list-style-type: square;
}

/* ======================================================================
 newspost ボタンスタイリング
====================================================================== */
.newspost .wp-block-button {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.newspost .wp-block-button__link {
  display: inline-block;
  background-color: #367B38;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #367B38;
  cursor: pointer;
}

.newspost .wp-block-button__link:hover {
  background-color: #2d6630;
  border-color: #2d6630;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(54, 123, 56, 0.3);
}

.newspost .wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(54, 123, 56, 0.2);
}

/* アウトラインスタイルのボタン */
.newspost .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #367B38;
  border: 2px solid #367B38;
}

.newspost .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #367B38;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(54, 123, 56, 0.3);
}

/* グラデーションスタイルのボタン */
.newspost .wp-block-button.is-style-gradient .wp-block-button__link {
  background: linear-gradient(135deg, #367B38 0%, #4a9d4f 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 6px rgba(54, 123, 56, 0.2);
}

.newspost .wp-block-button.is-style-gradient .wp-block-button__link:hover {
  background: linear-gradient(135deg, #2d6630 0%, #3d8841 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(54, 123, 56, 0.4);
}

/* シャドウ強調スタイルのボタン */
.newspost .wp-block-button.is-style-shadow .wp-block-button__link {
  background-color: #367B38;
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 16px rgba(54, 123, 56, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.newspost .wp-block-button.is-style-shadow .wp-block-button__link:hover {
  background-color: #2d6630;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(54, 123, 56, 0.5), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.newspost .wp-block-button.is-style-shadow .wp-block-button__link:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(54, 123, 56, 0.35), 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* 角丸フル（pill型）スタイルのボタン */
.newspost .wp-block-button.is-style-pill .wp-block-button__link {
  background-color: #367B38;
  color: #ffffff;
  border: 2px solid #367B38;
  border-radius: 50px;
  padding: 0.875rem 2.5rem;
}

.newspost .wp-block-button.is-style-pill .wp-block-button__link:hover {
  background-color: #ffffff;
  color: #367B38;
  border-color: #367B38;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(54, 123, 56, 0.3);
}

/* ======================================================================
 newspost 引用スタイリング
====================================================================== */
.newspost blockquote,
.newspost .wp-block-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background-color: #f9fafb;
  border-left: 5px solid #367B38;
  border-radius: 0 0.5rem 0.5rem 0;
  position: relative;
  font-style: italic;
  color: #4b5563;
}

.newspost blockquote::before,
.newspost .wp-block-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 3rem;
  color: #367B38;
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.newspost blockquote p,
.newspost .wp-block-quote p {
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
}

.newspost blockquote p + p,
.newspost .wp-block-quote p + p {
  margin-top: 1rem;
}

.newspost blockquote cite,
.newspost .wp-block-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
  text-align: right;
}

.newspost blockquote cite::before,
.newspost .wp-block-quote cite::before {
  content: '— ';
}

/* ======================================================================
 newspost テーブルスタイリング
====================================================================== */
.newspost table,
.newspost .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}

/* 上が見出しスタイル */
.newspost table thead th,
.newspost .wp-block-table table thead th,
.newspost .wp-block-table.is-style-top-header table thead th {
  background-color: #367B38;
  color: #ffffff;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border: 1px solid #2d6630;
}

.newspost table tbody td,
.newspost .wp-block-table table tbody td,
.newspost .wp-block-table.is-style-top-header table tbody td {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.newspost table tbody tr:nth-child(even),
.newspost .wp-block-table table tbody tr:nth-child(even),
.newspost .wp-block-table.is-style-top-header table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.newspost table tbody tr:hover,
.newspost .wp-block-table table tbody tr:hover,
.newspost .wp-block-table.is-style-top-header table tbody tr:hover {
  background-color: #f3f4f6;
}

/* 左が見出しスタイル */
.newspost .wp-block-table.is-style-left-header table thead {
  display: none;
}

.newspost .wp-block-table.is-style-left-header table tbody tr td:first-child {
  background-color: #367B38;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid #2d6630;
  width: 30%;
}

.newspost .wp-block-table.is-style-left-header table tbody tr td:not(:first-child) {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.newspost .wp-block-table.is-style-left-header table tbody tr:nth-child(even) td:not(:first-child) {
  background-color: #f9fafb;
}

.newspost .wp-block-table.is-style-left-header table tbody tr:hover td:not(:first-child) {
  background-color: #f3f4f6;
}

/* ======================================================================
 newspost 目次スタイリング
====================================================================== */
.newspost .table-of-contents {
  background-color: #f9fafb;
  border: 2px solid #367B38;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0 3rem;
}

.newspost .toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #367B38;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #367B38;
}

.newspost .toc-header i {
  font-size: 1.25rem;
}

.newspost .toc-title {
  letter-spacing: 0.05em;
}

.newspost .toc-list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.newspost .toc-item {
  margin-bottom: 0.5rem;
  counter-increment: toc-counter;
}

.newspost .toc-item:last-child {
  margin-bottom: 0;
}

.newspost .toc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.newspost .toc-link:hover {
  background-color: #367B38;
  color: #ffffff;
  border-left-color: #2d6630;
  transform: translateX(5px);
}

.newspost .toc-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background-color: #367B38;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.newspost .toc-link:hover .toc-number {
  background-color: #ffffff;
  color: #367B38;
}

.newspost .toc-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}
