/*
    Theme Name: SWELL CHILD - JELMA
    Theme URI: https://swell-theme.com/
    Description: 一般社団法人日本感情労働マネジメント協会（JELMA）用 SWELLカスタム子テーマ。トップページ専用デザインを front-page.php で提供します。投稿・固定ページ等は親テーマSWELLの表示を使用します。
    Version: 1.0.0
    Template: swell
    Author: QRONOS
    Text Domain: swell-child-jelma
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* トップページ専用のデザインCSSは assets/css/front-page.css に分離し、
   is_front_page() のときだけ読み込みます（他ページへ影響させないため）。
   この style.css には全ページ共通の上書きが必要になった場合のみ追記してください。 */

/* =========================================================
   JELMA 下層ページ共通スタイル（お問い合わせ / プライバシー / 特商法）
   トップページのブランドトークンに合わせた配色・質感
   navy #1b3a5c / pearl #faf7f2 / stone #c9bba3 / pink #e94976 / yellow #f2c744
   ========================================================= */

/* --- 下層ページの下地をパールに（白一色の殺風景さを解消） --- */
.jelma-subpage #content {
  background: linear-gradient(180deg, #faf7f2 0%, #f3ede3 100%);
  /* カード周りに余白を確保し、フッター手前で背景が詰まらないようにする */
  padding-top: clamp(12px, 2vw, 28px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

/* --- ページ見出し（SWELL c-pageTitle）をブランド調に --- */
.jelma-subpage .c-pageTitle__inner {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  color: #1b3a5c;
  letter-spacing: .04em;
}

/* --- 共通の読み物幅・書体 --- */
.jelma-contact-intro,
.jelma-form,
.jelma-legal {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #2b2722;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.jelma-contact-intro {
  margin-bottom: 1.8em;
  color: #4a443c;
}
.jelma-contact-intro p { margin: 0 0 .8em; }

/* --- お問い合わせフォーム（カード化） --- */
.jelma-form {
  background: #fff;
  border: 1px solid #ece4d7;
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 14px 32px rgba(27, 58, 92, .08);
}
.jelma-form .jelma-field { margin: 0 0 1.5em; }
.jelma-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: 700;
  font-size: .95rem;
  color: #1b3a5c;
  letter-spacing: .02em;
}
.jelma-req {
  display: inline-block;
  margin-left: .6em;
  padding: .15em .6em;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  /* ブランドピンク#e94976の濃色。白文字とのコントラスト5.04:1（WCAG AA準拠） */
  background: #cc3061;
  border-radius: 999px;
  vertical-align: middle;
}
.jelma-form input[type="text"],
.jelma-form input[type="email"],
.jelma-form input[type="tel"],
.jelma-form select,
.jelma-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .85em 1em;
  border: 1.5px solid #e0d8c8;
  border-radius: 12px;
  background: #fcfaf6;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.jelma-form input::placeholder,
.jelma-form textarea::placeholder { color: #b3a994; }
.jelma-form input:focus,
.jelma-form select:focus,
.jelma-form textarea:focus {
  outline: none;
  border-color: #1b3a5c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 58, 92, .12);
}
.jelma-form textarea { min-height: 170px; resize: vertical; }
.jelma-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b3a5c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}
.jelma-consent {
  margin: 1.8em 0 .5em;
  text-align: center;
  font-size: .92rem;
  color: #4a443c;
}
.jelma-consent a {
  color: #1b3a5c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jelma-submit { margin-top: 1.4em; text-align: center; }

/* 送信ボタン（ネイビーのピル）。SWELL既定ボタンを確実に上書き */
.jelma-form input[type="submit"],
.jelma-form input.wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: inline-block;
  min-width: min(280px, 80%);
  padding: .95em 3em !important;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .08em;
  color: #fff !important;
  background: #1b3a5c !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(27, 58, 92, .22);
  transition: background .2s, transform .1s, box-shadow .2s;
}
.jelma-form input[type="submit"]:hover,
.jelma-form input.wpcf7-submit:hover {
  background: #14304c !important;
  box-shadow: 0 10px 24px rgba(27, 58, 92, .28);
}
.jelma-form input[type="submit"]:active,
.jelma-form input.wpcf7-submit:active { transform: translateY(1px); }
.jelma-form .wpcf7-spinner { display: block; margin: .8em auto 0; }

/* CF7 応答・検証メッセージ */
.jelma-form .wpcf7-response-output {
  margin: 1.4em 0 0 !important;
  padding: .85em 1.1em !important;
  border-radius: 10px !important;
  font-size: .9rem;
}
.wpcf7-not-valid-tip {
  margin-top: .3em;
  /* ブランドピンク#e94976の濃色。白地とのコントラスト5.04:1（WCAG AA準拠） */
  color: #cc3061;
  font-size: .84rem;
}

/* --- 法務ページ（プライバシーポリシー / 特定商取引法に基づく表記） --- */
.jelma-legal {
  background: #fff;
  border: 1px solid #ece4d7;
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 14px 32px rgba(27, 58, 92, .08);
}
.jelma-legal h2 {
  margin: 1.9em 0 .6em;
  padding: 0 0 .35em;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 1.2rem;
  color: #1b3a5c !important;
  background: none !important;
  background-color: transparent !important;
  border: none;
  border-bottom: 1px solid #d8cfbe;
  border-radius: 0;
  word-break: keep-all;
}
/* SWELL既定の塗りつぶし見出し装飾（擬似要素）を無効化 */
.jelma-legal h2::before,
.jelma-legal h2::after {
  content: none !important;
  display: none !important;
}
.jelma-legal h2:first-of-type { margin-top: .3em; }
.jelma-legal p,
.jelma-legal li { font-size: .95rem; }
.jelma-legal ul { padding-left: 1.4em; }
.jelma-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.2em 0 1.6em;
}
.jelma-card {
  padding: 1.1em 1.2em;
  background: #fcfaf6;
  border: 1px solid #ece4d7;
  border-radius: 12px;
}
.jelma-card h3 {
  margin: 0 0 .45em;
  color: #1b3a5c;
  font-size: 1rem;
  line-height: 1.5;
}
.jelma-card p {
  margin: 0;
  color: #4a443c;
  font-size: .92rem;
}
.jelma-voice-list {
  display: grid;
  gap: 1.2em;
  margin: 1.4em 0 2.2em;
}
.jelma-voice {
  padding: clamp(1.15em, 2.5vw, 1.6em);
  background: #fffdf8;
  border: 1px solid #ece4d7;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(27, 58, 92, .06);
}
.jelma-voice-meta {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .6em !important;
  padding: .28em .8em;
  color: #1b3a5c;
  background: #f4efe4;
  border-radius: 999px;
  font-size: .78rem !important;
  font-weight: 700;
  line-height: 1.5;
}
.jelma-voice h3 {
  margin: 0 0 .8em;
  color: #1b3a5c;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.65;
}
.jelma-voice blockquote {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.1em;
  color: #3f3932;
  border-left: 3px solid #d9c596;
}
.jelma-voice blockquote p {
  margin: 0 0 .85em;
  font-size: .94rem;
  line-height: 1.95;
}
.jelma-voice blockquote p:last-child {
  margin-bottom: 0;
}
.jelma-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8em;
  margin-top: 1.8em;
}
.jelma-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78em 1.4em;
  color: #fff !important;
  background: #1b3a5c;
  border: 1px solid #1b3a5c;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none !important;
}
.jelma-link-button:hover {
  background: #14304c;
  border-color: #14304c;
}
.jelma-link-button-secondary {
  color: #1b3a5c !important;
  background: #fff;
  border-color: #c9bba3;
}
.jelma-link-button-secondary:hover {
  color: #fff !important;
  background: #1b3a5c;
  border-color: #1b3a5c;
}
.jelma-official-banner {
  margin: 2.2em 0 2.4em;
}
.jelma-official-banner-link {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  color: #1b3a5c !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 217, 92, .32), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #f3fbff 54%, #fff7fb 100%);
  border: 1px solid #e6d8bf;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(27, 58, 92, .1);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jelma-official-banner-link:hover,
.jelma-official-banner-link:focus-visible {
  color: #1b3a5c !important;
  border-color: #c9bba3;
  box-shadow: 0 20px 44px rgba(27, 58, 92, .16);
  transform: translateY(-2px);
}
.jelma-official-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(236, 228, 215, .88);
  border-radius: 14px;
}
.jelma-official-banner-logo img {
  width: min(100%, 190px);
  height: auto;
  box-shadow: none;
}
.jelma-official-banner-copy {
  display: grid;
  gap: .35em;
}
.jelma-official-banner-copy strong {
  color: #1b3a5c;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.36rem);
  line-height: 1.55;
  word-break: keep-all;
}
.jelma-official-banner-copy span {
  font-size: .92rem;
  line-height: 1.75;
}
.jelma-official-banner-label {
  width: fit-content;
  padding: .28em .8em;
  color: #fff;
  background: #1b3a5c;
  border-radius: 999px;
  font-size: .78rem !important;
  font-weight: 700;
  line-height: 1.5 !important;
}
.jelma-official-banner-button {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .15em;
  min-width: 154px;
  min-height: 44px;
  padding: .7em 1.2em;
  color: #fff;
  background: #1b3a5c;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.jelma-official-image-banner {
  margin: 2.2em 0 2.4em;
}
.jelma-official-image-banner-link {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece4d7;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(27, 58, 92, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.jelma-official-image-banner-link:hover,
.jelma-official-image-banner-link:focus-visible {
  box-shadow: 0 18px 42px rgba(27, 58, 92, .16);
  transform: translateY(-2px);
}
.jelma-official-image-banner img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
}
.jelma-legal-note {
  margin-bottom: 1.8em;
  padding: 1em 1.2em;
  background: #fbf5e9;
  border: 1px solid #ecd9b3;
  border-radius: 10px;
  font-size: .88rem;
  color: #6b5b3e;
}
.jelma-page-photo {
  margin: 1.4em 0 2em;
}
.jelma-page-eyecatch {
  margin: .4em 0 2em;
}
.jelma-page-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(27, 58, 92, .14);
}
.jelma-page-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(27, 58, 92, .12);
}
.jelma-seminar-gift {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
  margin: 3em 0 0;
  padding: clamp(24px, 4vw, 42px);
  background: #f7fdff;
  border: 2px solid #32bdd0;
  border-radius: 18px;
}
.jelma-seminar-gift h2 {
  margin: 0;
}
.jelma-seminar-gift figure {
  margin: 0;
}
.jelma-seminar-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.jelma-seminar-image-link:focus-visible {
  outline: 3px solid rgba(50, 189, 208, .45);
  outline-offset: 5px;
  border-radius: 14px;
}
.jelma-seminar-gift img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(27, 58, 92, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.jelma-seminar-image-link:hover img,
.jelma-seminar-image-link:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(27, 58, 92, .15);
}
.jelma-seminar-gift-copy {
  max-width: 820px;
}
.jelma-line-button {
  /* LINEブランド緑の上では白文字が2.26:1でAA未達のためネイビー文字にする（5.15:1） */
  color: #1b3a5c !important;
  background: #06c755;
  border-color: #06c755;
}
.jelma-line-button:hover {
  /* ホバーは明るい緑へ（ネイビー文字とのコントラスト6.00:1を維持） */
  color: #1b3a5c !important;
  background: #2bd56b !important;
  border-color: #2bd56b !important;
}
.jelma-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 1.4em 0 2.2em;
}
.jelma-photo-grid .jelma-page-photo {
  margin: 0;
}
.jelma-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}
.jelma-legal th,
.jelma-legal td {
  border: 1px solid #ece4d7;
  padding: .8em 1em;
  text-align: left;
  font-size: .92rem;
  vertical-align: top;
}
.jelma-legal th {
  width: 34%;
  background: #f7f2e9;
  color: #1b3a5c;
  font-weight: 700;
}
@media (max-width: 600px) {
  .jelma-card-grid { grid-template-columns: 1fr; }
  .jelma-photo-grid { grid-template-columns: 1fr; }
  .jelma-button-row { display: grid; }
  .jelma-link-button { width: 100%; }
  .jelma-official-banner-link {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .jelma-official-banner-logo {
    justify-content: flex-start;
  }
  .jelma-official-banner-button {
    grid-column: auto;
    justify-self: start;
    width: min(100%, 200px);
  }
  .jelma-official-image-banner img {
    height: 178px;
    object-fit: cover;
    object-position: left center;
  }
  .jelma-legal th,
  .jelma-legal td { display: block; width: auto; }
  .jelma-legal th { border-bottom: none; }
}

/* --- 下層ページは1カラム化（SWELL既定サイドバーの雑然さを解消、本文に集中） --- */
.jelma-subpage .l-sidebar { display: none !important; }
.jelma-subpage .l-mainContent {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* =========================================================
   サイト共通フッター（TOPと同じ .site-footer マークアップを下層でも使う）
   front-page.css（TOP専用）が読まれない下層ページ向けに、色はリテラルで自己完結。
   ========================================================= */
/* SWELL既定フッターの外枠を無効化（中身は子テーマ parts/footer/footer_contents.php で .site-footer を描画） */
#footer.l-footer {
  padding: 0;
  background: transparent;
  border: 0;
}
.site-footer {
  padding: 64px 0 28px;
  color: #ffffff;
  background: #14304c;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1.1fr;
  gap: 44px;
}
.site-footer .brand {
  display: inline-flex;
  padding: 0;
  background: none;
  border-radius: 0;
}
.site-footer .brand-logo {
  display: block;
  width: min(360px, calc(100vw - 116px));
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
.site-footer .footer-brand p {
  max-width: 280px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}
.site-footer h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 15px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
}
.site-footer a:hover { color: #ffffff; }
.site-footer .footer-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.site-footer .footer-search input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}
.site-footer .footer-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.site-footer .footer-search button {
  height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
}
.site-footer .footer-search button:hover { background: rgba(255, 255, 255, 0.1); }
.site-footer .sns-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.site-footer .sns-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition: background-color .2s ease, border-color .2s ease;
}
.site-footer .sns-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}
.site-footer .sns-links svg { width: 17px; height: 17px; }
/* 規約リンク（1行・｜区切り） */
.site-footer .footer-legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.6rem 0 .9rem;
}
.site-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  font-size: .82rem;
  text-decoration: none;
}
.site-footer .footer-legal a + a::before {
  content: "｜";
  margin: 0 .55em;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer .footer-legal a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .copyright {
  margin: 44px auto 0;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 12px;
}
/* 下層フッターの横幅コンテナ（front-page.cssの .l-container 相当をTOP外でも担保） */
.site-footer .container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}
@media (max-width: 1060px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* スクリーンリーダー用に視覚的に隠すラベル（下層ページでも有効化。検索フォームのラベル等） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 代表理事ご挨拶ページの代表写真 */
.jelma-rep-photo {
  margin: 0 auto 1.8em;
  max-width: 240px;
  text-align: center;
}
.jelma-rep-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27, 58, 92, .12);
}
.jelma-rep-photo figcaption {
  margin-top: .7em;
  color: #1b3a5c;
  font-weight: 700;
  font-size: .92rem;
}
