/*
Theme Name: osakasayama
Author: yamadori
Author URI: https://yamadori.co.jp/
Description: yamadori
*/

/* =========================
   共通基本設定
========================= */
body {
  font-size: 1.125rem; /* 約18px */
  line-height: 1.7;
  color: #212529;
  background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
  text-decoration: none;
}

h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1a237e;
  border-left: 6px solid #1a73e8;
  padding-left: 12px;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a237e;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 1rem;
}
h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #3949ab;
  margin-bottom: 0.75rem;
}
h5 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.5rem;
}

/* =========================
   ナビゲーション
========================= */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0;
}
.navbar .nav-link {
  color: #212529 !important;
  font-size: 1rem;
}
.navbar .nav-link:hover {
  color: #1a237e !important;
}
.navbar-brand {
  color: #1a237e !important;
}

/* =========================
   ヒーロー（トップページ）
========================= */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background: url('./images/hero_1.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0.2rem;         /* 下に余白 */
  padding-bottom: 0.2rem;         /* 線との間隔 */
  border-bottom: 1px solid #fff;  /* 白い線を追加 */
  display: inline-block;          /* 中央寄せで自然に線が収まる */
     text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
     text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* =========================
   スマホ表示用調整
========================= */
@media (max-width: 576px) {
  .hero {
    height: 50vh;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1.5px solid #fff; /* スマホでは少し細め */
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.2;
  }
}
/* =========================
   事業団について（トップ）
========================= */
.about-banner {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
.about-banner:hover {
  background: #ffffff;
}
.about-icon {
  font-size: 3rem;
  color: #1a237e;
}

/* =========================
   お知らせ（トップ・投稿・アーカイブ共通）
========================= */
.news-section {
  background-color: #f8f9fa;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.news-item:last-child {
  border-bottom: none;
}
.news-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 0.95rem;
  color: #6c757d;
}
.news-tag {
  margin-right: 15px;
}
.news-tag .badge {
  background-color: #1a73e8 !important;
  color: #fff !important;
  font-size: 0.85rem;
  padding: 0.35em 0.7em;
}
.news-title {
  flex-grow: 1;
  font-size: 1rem;
  text-decoration: none;
  color: #212529;
}
.news-title:hover {
  color: #1a237e;
}
.news-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  background-color: #fff;
}
.news-section .btn {
  background-color: #1a237e;
  color: #fff;
  border: none;
  font-size: 1rem;
}
.news-section .btn:hover {
  background-color: #3949ab;
  color: #fff;
}

/* =========================
   フッター（共通）
========================= */
.footer {
  background: #333333;
  color: #fff;
  padding: 50px 0 20px;
}
.footer-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #fff;
  padding-bottom: 6px;
  border-bottom: 1px solid #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fbc02d;
  text-decoration: underline;
}
.footer-buttons .btn {
  min-width: 140px;
  margin-right: 10px;
  border-color: #fff;
  color: #fff;
}
.footer-buttons .btn:hover {
  background-color: #fbc02d;
  border-color: #fbc02d;
  color: #333;
}
.footer p,
.footer li,
.footer a {
  font-size: 0.95rem;
}
.footer-copyright {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 30px;
  color: #fff;
}

/* =========================
   固定ページ（完成版_固定ページ）
========================= */
.sub-hero {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
  padding: 60px 0;
}
.sub-hero-title {
  font-size: 2rem;
  font-weight: bold;
}
.breadcrumb-wrapper {
  background: #f8f9fa;
  padding: 8px 0;
  margin-bottom: 0;
}
.breadcrumb {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.breadcrumb a {
  color: #1a237e;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.sub-page-content {
  background: #f8f9fa;
  padding: 40px 0;
}
.sub-page-inner {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 30px;
}

/* =========================
   投稿ページ（完成版_投稿ページ）
========================= */
.post-meta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.post-meta {
  font-size: 0.9rem;
  color: #666;
}
.post-meta i {
  margin-right: 5px;
  color: #1a237e;
}
.post-category .badge {
  background-color: #1a73e8 !important;
  color: #fff !important;
  font-size: 0.9rem;
  padding: 0.4em 0.8em;
}

/* =========================
   アーカイブページ（完成版_アーカイブページ）
========================= */
.archive-list .news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.archive-list .news-item:last-child {
  border-bottom: none;
}
.archive-list .news-meta {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.archive-list .news-date {
  font-size: 0.95rem;
  color: #6c757d;
  margin-right: 10px;
}
.archive-list .news-category .badge {
  background: #1a73e8;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35em 0.7em;
}
.archive-list .news-title {
  flex-grow: 1;
  font-size: 1rem;
  text-decoration: none;
  color: #212529;
}
.archive-list .news-title:hover {
  color: #1a237e;
}

/* スマホ（アーカイブ記事は2行表示） */
@media (max-width: 768px) {
  .archive-list .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .archive-list .news-meta {
    margin-bottom: 5px;
  }
}

/* =========================
   テーブル・引用・リスト
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #dee2e6;
}

table th,
table td {
  border: 1px solid #dee2e6;
  padding: 12px;
  font-size: 0.95rem;
  text-align: left;
}

table th {
   background: #f8f9fa !important;  /* 強制的に適用 */
  font-weight: bold;
  width: %;           /* 左列の幅（調整可） */
}

table td {
  background: #fff;     /* td は常に白 */
}
ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
ul li {
  margin-bottom: 0.5rem;
}

/* =========================
   PC幅調整
========================= */
@media (min-width: 1200px) {
  .container:not(.container-fluid) {
    max-width: 1040px;
  }
}

.map {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================
   Contact Form 7 基本スタイル
========================= */

/* フォーム外枠 */
.wpcf7 {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* 各項目の間隔 */
.wpcf7 form p,
.wpcf7 form label {
  display: block;
  margin: 0 0 16px;
}

/* ラベル */
.wpcf7 form label {
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 8px;
}

/* 入力欄共通 */
.wpcf7-form-control-wrap,
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  display: block;
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  padding: 12px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #fff;
  color: #212529;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
  box-sizing: border-box;
}

/* プレースホルダー */
.wpcf7 ::placeholder {
  color: #9aa5ae;
}

/* フォーカス */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26,115,232,0.12);
}

/* テキストエリア */
.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

/* 必須マーク（任意） */
.wpcf7 form label:has([aria-required="true"])::after {
  content: "必須";
  margin-left: 8px;
  font-size: 12px;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
  padding: 2px 6px;
}

/* バリデーション */
.wpcf7 .wpcf7-not-valid {
  border-color: #e53935 !important;
  background-color: #fff7f7;
}
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #e53935;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 14px;
}
.wpcf7 .wpcf7-mail-sent-ok {
  color: #1b5e20;
  background: #e8f5e9;
  border-color: #a5d6a7;
}
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

/* スピナー */
.wpcf7 .wpcf7-spinner {
  margin-left: 8px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #1a237e;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: #3949ab;
  box-shadow: 0 6px 18px rgba(26,35,126,0.25);
}
.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
  transform: translateY(1px);
}

/* =========================
   レイアウト（常に1カラム）
========================= */
.wpcf7 form {
  display: grid;
  grid-template-columns: 1fr; /* 常に縦並び */
  gap: 16px;
}

/* メッセージ本文と送信ボタンも全幅扱い */
.wpcf7 .wpcf7-form-control-wrap-your-message {
  grid-column: 1 / -1;
}
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  grid-column: 1 / -1;
  justify-self: start; /* 左寄せ。中央にしたい場合は center */
  margin-top: 8px;
}

/* 画面が広いときの微調整 */
@media (min-width: 1200px) {
  .wpcf7 { padding: 32px; }
  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    font-size: 17px;
  }
}