@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************************************************
** 基本設定
************************************************************************/
:root {
  --primary-color: #333;
  /*基本文字色*/
  --accent-color: #005dca;
  /*アクセントカラー*/
  --individual-bg-color: #eaf7ff;
  /*個人向けサービス背景色*/
  --corporate-bg-color: #eaffea;
  /*団体向けサービス背景色*/

  --contact-color: #ffbd59;
  --contact-btn-bg: #ff6d4d;
  --wave-blue: #4f92ff;

  --primary-font-size: 1.6rem;
  --smallest-font-size: 1.2rem;
  --section-title-font-size: 2.8rem;
}

body {
  font-family: 'BIZ UDGothic', sans-serif;
  margin: 0;
  background-color: #fff;
}

.mycustom-main {
  color: var(--primary-color);
  font-size: var(--primary-font-size);
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 120px;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

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

nav {
  margin: 0 0 0 auto;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: var(--section-title-font-size);
  margin-bottom: 30px;
  font-weight: normal;
}

/* コクーン側のヘッダーとフッターの自動生成部分を非表示 */
#header-container, #footer {
  display: none;
}

/* ************************************ */
/* 基本設定のレスポンシブ対応 */
/* ************************************ */
/* ====== 768px以下（タブレット縦・スマホ横） ====== */
@media (max-width: 768px) {
  :root {
    --primary-font-size: 1.4rem;
    --smallest-font-size: 1rem;
    --section-title-font-size: 2.4rem;
  }

  .container {
    flex-direction: column;
    padding: 0 16px;
  }
}

/* ====== 480px以下（スマホ縦） ====== */
@media (max-width: 480px) {
  :root {
    --primary-font-size: 1.1rem;
    --smallest-font-size: 0.9rem;
    --section-title-font-size: 1.8rem;
  }

  .container {
    padding: 0 12px;
  }
}

/************************************************************************
** Cocoon自動生成のクラスに対する上書き
************************************************************************/
.post-template-default>.container,
.page-template-default>.container,
.archive>.container,
.error404>.container {
  /* 投稿ページや固定ページの自動生成.containerクラス */
  margin-bottom: 0;
  padding: 0;
  max-width: none;
}

/* アイキャッチ画像のラベルを非表示 */
.eye-catch .cat-label {
  display: none;
}

figcaption.eye-catch-caption {
  display: none;
}


/************************************************************************
** ヘッダー(header.php)
************************************************************************/
/* ====== ヘッダー全体 ====== */
.container>.header.mycustom {
  /* 投稿ページや固定ページの自動生成.containerクラスのmax-widthを無効化 */
  position: relative;
  left: 50%;
  right: 50%;
  width: 100%;
  max-width: none;
  transform: translateX(-50%);
  margin-bottom: 30px;
}

.header {
  height: 70px;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  /* 波の色と合わせて */
  position: relative;
  /* position: sticky; 上部に固定するなら */
}

/* ====== コンテナ ====== */
.header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 10px 30px 0px;
}

/* ====== ロゴ ====== */
.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 300px;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo a:hover .logo-text,
.header-logo a:hover .logo-text-main {
  color: #0077cc;
}

.header-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-right: 8px;
  position: relative;
  bottom: 5px;
}

.mycustom .logo-text {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
  padding: 0;
}

.logo-text-main {
  color: var(--accent-color)
}


/* ====== ナビゲーション(PC) ====== */
.main-nav>ul {
  display: flex;
  gap: 32px;
  /* メニュー間の間隔 */
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: var(--primary-font-size);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 10px;
  display: block;
}

.main-nav a:hover {
  color: #0077cc;
}

/* --- サブメニュー --- */
.submenu {
  display: none;
  position: absolute;
  top: 80%;
  /* 親メニューの下に配置 */
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 11;
}

.submenu li a {
  padding: 15px 16px;
  color: #333;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #f2f2f2;
}

/* --- ホバーでサブメニュー表示 --- */
.has-submenu:hover>.submenu {
  display: block;
}


/************************************
** ハンバーガー
************************************/
#hamburger-btn {
  display: none;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  margin: 0 0 0 auto;
  height: 60px;
  width: 60px;
}

#hamburger-btn span {
  position: absolute;
  left: 15px;
  width: 30px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 8px;
  transition: ease 0.3s;
  z-index: 1001;
}

.hamburger-icon span:nth-of-type(1) {
  top: 16px;
}

.hamburger-icon span:nth-of-type(2) {
  top: 28px;
}

.hamburger-icon span:nth-of-type(3) {
  bottom: 16px;
}

.close span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  top: 28px;
}

.close span:nth-of-type(2) {
  top: 0px;
  opacity: 0;
}

.close span:nth-of-type(3) {
  transform: rotate(-45deg);
  bottom: 0px;
  top: 28px;
}

/* ====== ハンバーガーメニュー ====== */
.hamburger-nav {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
  z-index: 999;
}

.hamburger-nav.open {
  right: 0;
}

/* ナビリンクのスタイル */
.hamburger-nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.hamburger-nav li {
  margin: 20px 0;
}

.hamburger-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 24px;
  background: linear-gradient(transparent 50%, #a4f4ff 50%);
}

/* スクロール禁止用クラス */
.no-scroll {
  overflow: hidden;
  height: 100%;
  position: fixed;
  /* これでバウンスもある程度防げる */
  width: 100%;
}

/************************************
** 波
************************************/
.container>.wave-line {
  /* 投稿ページや固定ページの自動生成.containerクラスのmax-widthを無効化 */
  left: 50%;
  right: 50%;
  width: 100%;
  max-width: none;
  transform: translateX(-50%);
}

.wave-line {
  width: 100%;
  height: 50px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  bottom: 10px;
}

.wave-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ************************************ */
/* ヘッダー要素のレスポンシブ対応 */
/* ************************************ */
/* ====== 768px以下（タブレット縦・スマホ横） ====== */
@media (max-width: 960px) {
  .header-custom {
    padding: 10px 25px 15px;
  }

  .header-logo {
    flex: 0 0 auto;
    flex-direction: row-reverse;
  }

  .header-logo img {
    height: 40px;
    bottom: 3px;
  }

  /* メインナビゲーションを非表示 */
  .main-nav {
    display: none;
  }

  /* ハンバーガーを表示 */
  #hamburger-btn {
    display: flex;
  }

  .wave-line {
    bottom: 25px;
  }
}

@media (max-width: 550px) {
  .mycustom .logo-text {
    font-size: 1.3rem;
  }

  .header-custom {
    padding: 10px 20px 15px;
  }
}



/************************************************************************
** フッター(footer.php)
************************************************************************/
.container>.footer-container {
  /* 投稿ページや固定ページの自動生成.containerクラスのmax-widthを無効化 */
  position: relative;
  left: 50%;
  right: 50%;
  width: 100%;
  max-width: none;
  transform: translateX(-50%);
}

.footer-container {
  padding: 30px 0;
  background-color: #4f92ff;
  color: #fff;
  text-align: center;
}

.footer-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-custom nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-custom nav a {
  border-bottom: #fff solid 1px;
  font-size: 1.5rem;
}

.footer-custom nav a:hover {
  color: #0077cc;
}

.footer-logo {
  font-size: var(--section-title-font-size);
  font-weight: bold;
  color: #fff;
  margin: 0;
}

/* ************************************ */
/* フッター要素のレスポンシブ対応 */
/* ************************************ */
/* ====== 768px以下（タブレット縦・スマホ横） ====== */
@media (max-width: 768px) {
  .footer-logo {
    font-weight: normal;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-custom nav ul {
    gap: 10px;
  }

  .footer-custom nav a {
    font-size: 1.2rem;
  }
}



/************************************************************************
** トップページ(template-yururi-lp.php)
************************************************************************/
/************************************
** トップキービジュアル (hero-main)
************************************/
.hero-main {
  margin: 0;
  margin-bottom: 120px;
  padding: 0;
  max-width: 100%;
}

.hero-main-container {
  position: relative;
  /* ← テキストを重ねるため */
  margin: 0;
  padding: 0;
}

.hero-main-image {
  width: 100%;
  overflow: hidden;
}

.hero-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-main-text {
  position: absolute;
  top: 8%;
  right: 20%;
  height: 80%;
  display: flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  white-space: nowrap;
  padding: 1rem;
  color: var(--accent-color);
}

.hero-main-catch {
  font-size: clamp(1rem, 2vw, 3rem);
  font-weight: normal;
  color: var(--accent-color);
  margin: 0;
  align-self: flex-start;
}

.hero-main-title {
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin: 0;
  align-self: center;
}





/************************************
** トップキービジュアル (hero-main)
** レスポンシブ対応
************************************/
@media (max-width: 768px) {
  .hero-main-container {
    align-items: center;
    flex-direction: column;
    display: flex;
  }

  .hero-main-image {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-bottom: 10px;
  }

  .hero-main-image img {
    max-height: 400px;
    width: auto;
  }

  .hero-main-text {
    position: inherit;
    flex: none;
    width: 80%;
    writing-mode: horizontal-tb;
    text-align: center;
    margin-left: 0;
    padding: 1rem;
    align-items: center;
    right: 0;
  }

  .hero-main-catch,
  .hero-main-title {
    align-self: center;
    position: static;
    left: auto;
    bottom: auto;
  }

  .hero-main-catch {
    font-size: 1.6rem;
  }

  .hero-main-title {
    font-size: 2rem;
  }

}

/* ====== 480px以下（スマホ縦） ====== */
@media (max-width: 480px) {
  .hero-main {
    margin-bottom: 60px;
  }

  .hero-main-catch {
    font-size: 1rem;
  }

  .hero-main-title {
    font-size: 1.5rem;
  }
}


/************************************
** お金の計画は、人生のデザインから (hero-intro)
************************************/
.hero-intro {
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  max-width: 100%;
  padding: 0 0 0 100px;
  color: var(--primary-color);
}

.hero-intro-header {
  margin-bottom: 50px;
}

.hero-intro-header>h2 {
  font-size: 2.8rem;
  font-weight: normal;
  color: var(--accent-color);
  margin: 0;
}

.tb-br {
  display: none;
}

.hero-intro-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
}

.hero-intro-text {
  margin-right: 3em;
  flex: 1;
}

.hero-intro-text p {
  color: var(--primary-color);
  margin-bottom: 30px;
}

span.highlight {
  color: var(--accent-color);
}

.hero-intro-visual {
  flex: 1;
  position: relative;
  top: -30px;
  /* .hero-intro-headerのmargin-bottomに合わせる */
}

.hero-person-container {
  display: flex;
  margin-bottom: 2rem;
}

.hero-person-text {
  flex: 3;
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-right: 110px;
  align-content: center;
}

.hero-person-visual {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.hero-person-visual img {
  max-width: 200px;
  border-radius: 10px;
}

#person-company {
  font-size: 1.2rem;
  margin: 0;
  margin-bottom: 5px;
}

#person-occupation {
  font-size: 0.9rem;
  margin: 0 0 0 10px;
  margin-bottom: -5px;
  /* position: relative;
  left: 10px; */
}

#person-name {
  font-size: 1.3rem;
  margin : 0 0 0 40px;
  /* position: relative;
  left: 40px; */
}

#person-post {
  font-size: 0.9rem;
}

/************************************
** レスポンシブ対応 ((hero-intro))
************************************/
@media (max-width: 1300px) {
  .hero-intro-container {
    flex-direction: column;
    padding: 0 20px;
  }

}

@media (max-width: 999px) {
  .hero-intro {
    padding: 0 40px;
    margin-top: 100px;
  }


  .hero-intro-header>h2 {
    text-align: center;
  }

  .hero-intro-text {
    margin: 0;
    padding: 0 40px;
  }

  .hero-person-container {
    padding: 0 40px;
  }

  .hero-person-text {
    font-size: 1.3rem;
  }

}

@media (max-width: 768px) {
  .hero-intro-header>h2 {
    font-size: 2.2rem;
  }

  .hero-intro-container {
    padding: 0;
  }

  .hero-intro-header .tb-br {
    display: block;
  }

  .hero-person-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-person-text {
    margin: 0;
  }

  .hero-person-text .tb-br {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-intro {
    padding: 0;
    margin-top: 0;
  }

  .hero-intro-header>h2 {
    font-size: 1.8rem;
  }
}

/************************************
** 事業内容 (Services)
************************************/
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 10px;
}

.service-card .sm-br {
  display: none;
}

.service-card.individual {
  background-color: var(--individual-bg-color);
}

.service-card.corporate {
  background-color: var(--corporate-bg-color);
}

.service-card h3 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--accent-color);
  text-align: center;
  font-weight: normal;
}

.service-card ul {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 縦方向中央揃え */
  align-items: center;
  /* 横方向中央に配置 */
  gap: 15px;
  min-height: 160px;
  /* 3項目の高さに合わせて調整 */
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 10px;
}

.service-card ul li {
  font-size: 1.5rem;
  width: 13em;
  /* ← 一番長い行の長さに合わせて調整 */
  text-align: left;
  /* 中央配置内で左揃え */
}

/* 詳しく見るボタン */
/* ===== 共通部分 ===== */
.detail-button {
  margin: 0 20px;
}

.detail-button a {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 0 auto;
  max-width: 225px;
  padding: 10px 25px 10px 10px;
  color: var(--primary-color);
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.detail-button a:before,
.detail-button a:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.detail-button a:before {
  width: 0.5rem;
  height: 0.5rem;
  right: 1.2rem;
  border-top: solid 4px #fff;
  border-right: solid 4px #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
}

.detail-button a:after {
  right: 0;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transition: all 0.5s;
}

.detail-button a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
  margin-right: 1.5em;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ホバーが可能なデバイスのみアニメーションを適用 */
@media (hover: hover) {
  .detail-button a:hover span {
    color: #fff;
  }

  .detail-button a:hover:before {
    right: 2rem;
  }

  .detail-button a:hover:after {
    width: 100%;
    right: 0;
  }
}

/* ===== ボタンカラーバリエーション ===== */
/* 青（デフォルト） */
.detail-button.blue a:after {
  background: #0262cf;
}

/* 緑 */
.detail-button.green a:after {
  background: #1d8431;
}

/************************************
** レスポンシブ対応 (Services)
************************************/
@media (max-width: 900px) {
  .services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .service-card h3 {
    font-size: 1.8rem;
  }

  .service-card ul li {
    position: relative;
    left: 30px;
  }
}

@media (max-width: 480px) {
  .service-card {
    width: auto;
  }

  .service-card .sm-br {
    display: block;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card ul li {
    font-size: 1.2rem;
    left: 0px;
    text-align: center;
  }
}


/************************************
** お知らせ (News)
************************************/
.news-content {
  display: flex;
  flex-direction: row-reverse;
  gap: 60px;
  padding: 0 4em;
  margin: 0 auto;
}

.news-list {
  width: 70%;
}

.news-item {
  border-bottom: 1px solid #ddd;
  margin: 20px 0;
  padding-bottom: 12px;
}

.news-list .news-item:first-child {
  margin-top: 0;
}

.news-list .news-meta:first-child {
  margin-top: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.news-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  background-color: #0262cf;
}

.new-info {
  background-color: #ffd02b;
  color: #333;
}

.news-item time {
  font-size: 0.9rem;
  color: #777;
  margin-left: 10px;
}

.news-title {
  font-size: var(--primary-font-size);
  margin: 0;
  line-height: 1.5;
  font-weight: normal;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-sidebar {
  width: 30%;
  flex-shrink: 0;
}

.news-sidebar h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-color, #0262cf);
  position: relative;
  display: inline-block;
}

.news-sidebar h4::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #dcf2f9;
}

.news-sidebar ul {
  margin-bottom: 25px;
  padding-left: 0;
  list-style: none;
}

.news-sidebar li {
  margin-bottom: 8px;
}

.news-sidebar a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: var(--smallest-font-size);
}

.news-sidebar a:hover {
  color: var(--accent-color, #0262cf);
  text-decoration: underline;
}

/************************************
** レスポンシブ対応 (news)
************************************/
/* ====== タブレット対応 (〜1024px) ====== */
@media (max-width: 1024px) {
  .news-content {
    flex-direction: column;
    padding: 0 2em;
    gap: 40px;
  }

  .news-list {
    width: 100%;
  }

  .news-sidebar {
    width: 100%;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }

  .news-sidebar a {
    font-size: var(--primary-font-size);
  }

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

  .news-sidebar ul {
    width: 45%;
  }
}

/* ====== スマホ対応 (〜600px) ====== */
@media (max-width: 600px) {
  .news-content {
    padding: 0 1.2em;
    gap: 30px;
  }

  .news-meta {
    align-items: flex-start;
    gap: 5px;
  }

  .news-sidebar {
    flex-direction: column;
    gap: 10px;
  }

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


/************************************
** メディアセクション
************************************/
.media-section .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 10px;
  margin: 0 auto;
}

.media-section .logo {
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-section .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/************************************
** レスポンシブ(media-section)
************************************/
/* --- タブレット3個と2個に分割 --- */
@media (max-width: 950px) {
  .media-section .logos {
    max-width: 560px;
    gap: 25px;
  }
}

/* --- スマホ（480px以下） --- */
@media (max-width: 480px) {
  .media-section .logos {
    max-width: 240px;
    gap: 20px;
  }

  .media-section .logo {
    width: 100px;
    height: 40px;
  }
}

/************************************
** 連携団体セクション
************************************/
.partners-section .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 40px;
  column-gap: 40px;
}

.partners-section .logo {
  flex: 1 1 calc(33.333% - 26.66px);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.partners-section .logo img {
  width: 250px;
  height: 70px;
  object-fit: contain;
}

.section-description {
  text-align: center;
  margin-bottom: 40px;
}

.section-description .sm-br {
  display: none;
}

/************************************
** レスポンシブ対応 (partners-section)
************************************/
/* --- タブレットサイズ --- */
@media (max-width: 1024px) {
  .partners-section .logo {
    flex: 1 1 calc(50% - 20px);
  }
}

/* --- スマホサイズ --- */
@media (max-width: 600px) {
  .partners-section .logos {
    justify-content: center;
    /* 中央寄せ */
    column-gap: 20px;
    row-gap: 0;
  }

  .partners-section .logo {
    flex: 1 1 100%;
    height: 80px;
  }

  .partners-section .logo img {
    height: 50px;
  }

  .partners-section .section-description .sm-br {
    display: block;
  }
}


/************************************************************************
** お問い合わせ (Contact) 全ページ共有
************************************************************************/
.contact-section {
  color: var(--primary-color);
  text-align: center;
}

.contact-section p {
  margin-bottom: 50px;
}

.btn-contact a {
  background: var(--contact-color);
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 300px;
  padding: 5px 0;
  font-size: 1.2em;
  color: #fff;
}

/* 丸の背景 */
.btn-contact a:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 35px;
  height: 35px;
  background: var(--contact-btn-bg);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* 丸の中央に矢印 */
.btn-contact a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.9rem;
  width: 8px;
  height: 8px;
  border-top: solid 4px #fff;
  border-right: solid 4px #fff;
  transform: translate(50%, -50%) rotate(45deg);
  /* 中央に揃える */
}



/************************************************************************
** 個人ページ(template-personal.php)と組織ページ(template-business.php)共通
************************************************************************/
.page-title-section {
  padding: 40px 0;
  text-align: center;
}

.page-title-section>img {
  width: 130px;
  height: auto;
}

.page-title {
  font-size: var(--section-title-font-size);
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin: 0;
  margin-right: 15px;
  font-weight: normal;
}

.service-detail-section h2 {
  font-size: 2.2rem;
  color: var(--accent-color);
  text-align: left;
  margin: 0;
  margin-bottom: 30px;
  line-height: 40px;
}

.service-detail-section h3 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 30px;
}

.service-detail-section h4 {
  font-size: 1.9rem;
  text-align: left;
  color: var(--accent-color);
}

.service-detail-section h5 {
  font-size: 1.6rem;
  text-align: center;
}

.service-content-box {
  padding: 60px;
  border-radius: 10px;
}

.service-content-box .pc-br {
  display: block;
}

.service-content-box .sm-br {
  display: none;
}


/************************************************************************
** 個人ページ(template-personal.php)
************************************************************************/
.page-personal .service-content-box {
  background-color: var(--individual-bg-color);
}

.page-personal .service-content-box>p {
  text-align: left;
  margin-bottom: 60px;
  line-height: 40px;
}

/* サービスサブセクション (各講座) */
.page-personal .service-subsection {
  margin-bottom: 40px;
}

.page-personal .service-subsection h4 {
  margin: 0;
  line-height: 40px;
}

.page-personal .service-subsection p {
  margin-top: 0;
  line-height: 40px;
}

.page-personal .service-subsection ul {
  list-style: '・ ';
  padding-left: 20px;
}

/* ライフプラン講座グリッド */
.page-personal .lifeplan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

.page-personal .grid-item {
  background-color: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px;
  align-content: center;
}

.page-personal .grid-item h5 {
  margin: 0;
  min-height: 2.2em;
  font-weight: 200;
  /* 2行分の高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 40px;
}

.page-personal .grid-item p {
  margin: 0;
}

/* 個別相談ボックス */
.page-personal .service-block {
  margin-bottom: 80px;
}

.page-personal .support-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 50px;
  margin-top: 15px;
}

.page-personal .support-box-oneline {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px 30px;
  margin-top: 30px;
}

.page-personal .support-box li {
  list-style-type: none;
  position: relative;
  line-height: 40px;
}

.page-personal .support-box li:first-child {
  margin-bottom: 20px;
}

.page-personal .support-box li::before {
  content: '・';
  position: absolute;
  color: var(--accent-color);
  left: -1em;
  top: 0;
}

.page-personal .support-box p {
  margin: 0;
}

/* --- 団体紹介用ページ --- */
/************************************************************************
** 組織ページ(template-business.php)
************************************************************************/
.page-organization .service-content-box {
  background-color: var(--corporate-bg-color);
}

.page-organization .service-block {
  margin-bottom: 90px;
}

.page-organization .service-block p {
  line-height: 40px;
}

.page-organization .administrative-services-list li {
  line-height: 40px;
}

.page-organization .administrative-services-list li:first-child {
  margin-bottom: 20px;
}


.page-organization .service-detail-section h2 {
  margin-bottom: 10px;
}

.page-organization .service-category {
  margin: 0;
  margin-bottom: 50px;
}

.page-organization .service-category h4 {
  margin: 20px 0;
}

/* 学校 */
.page-organization .school-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  width: 100%;
}

.school-card:nth-child(1) {
  grid-column: 1 / 3;
}

.school-card:nth-child(2) {
  grid-column: 3 / 5;
}

.school-card:nth-child(3) {
  grid-column: 5 / 7;
}

.school-card:nth-child(4) {
  grid-column: 1 / 4;
}

.school-card:nth-child(5) {
  grid-column: 4 / 7;
}

.school-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
}

/* 行政・企業 */
.page-organization .org-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}

.page-organization .card-item ul {
  list-style: '・';
  margin: 0 20px;
}

.org-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
}

.card-item {
  text-align: left;
  margin-bottom: 40px;
}

.page-organization .service-detail-section h5 {
  margin-top: 0;
  margin-bottom: 30px;
}

/* タグのスタイル */
.page-organization .tag {
  display: inline-block;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.page-organization .tag-green {
  background-color: #1d8431;
}

.page-organization .tag-dark-green {
  background-color: #0a5d17;
}

.page-organization .card-item p {
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

/* 原稿執筆トピック */
.page-organization .writing-topics-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 60px;
  margin-top: 30px;
}

.page-organization .writing-topics-box ul {
  list-style: '・';
}

.page-organization .writing-topics-box li {
  list-style-type: none;
  position: relative;
}

.page-organization .writing-topics-box li::before {
  content: '・';
  position: absolute;
  color: var(--accent-color);
  left: -1em;
  top: 0;
}

/************************************************************************
** レスポンシブ対応(個人、組織ページ)
************************************************************************/
/* タブレット (～1024px) */
@media screen and (max-width: 1180px) {

  /* --- 個人ページ --- */
  .page-personal .lifeplan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .service-content-box {
    padding: 40px;
  }

  .service-detail-section h2 {
    font-size: 1.7rem;
  }

  .service-detail-section h3 {
    font-size: 1.6rem;
  }

  .service-detail-section h4 {
    font-size: 1.6rem;
  }

  /* --- 組織ページ --- */
  .page-organization .school-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .school-card:nth-child(1) {
    grid-column: 1 / 2;
  }

  .school-card:nth-child(2) {
    grid-column: 2 / 3;
  }

  .school-card:nth-child(3) {
    grid-column: 1 / 2;
  }

  .school-card:nth-child(4) {
    grid-column: 2 / 3;
  }

  .school-card:nth-child(5) {
    grid-column: 1 / 3;
  }

  .page-organization .org-grid {
    grid-template-columns: 1fr;
  }
}

/* スマホ (～767px) */
@media screen and (max-width: 767px) {
  .page-title-section {
    padding: 30px 0;
  }

  .page-title-section>img {
    width: 100px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .service-content-box {
    padding: 25px 20px;
  }

  .service-detail-section h2 {
    font-size: 1.5rem;
  }

  .service-detail-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .service-detail-section h4 {
    font-size: var(--primary-font-size);
    text-align: center;
  }

  .service-detail-section h5 {
    font-size: var(--primary-font-size);
  }

  /* --- 個人ページ --- */
  .page-personal .lifeplan-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-personal .support-box {
    padding: 15px 20px;
  }

  /* --- 企業ページ --- */
  .page-organization .school-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-organization .service-category h4 {
    margin: 20px 0 10px 0;
  }

  .school-card {
    padding: 15px;
  }

  .page-organization .org-grid {
    grid-template-columns: 1fr;
  }

  .org-card {
    padding: 15px;
  }

  .card-item {
    margin-bottom: 25px;
  }

}

@media (max-width: 500px) {
  .page-organization .service-block p {
    line-height: 25px;
  }
  .page-organization .administrative-services-list li {
    line-height: 25px;
  }
}

/************************************************************************
** レスポンシブ対応(個人、組織ページ)改行について
************************************************************************/
@media (max-width: 1112px) {
  .page-personal .pc-br.education-funding-br {
    /* 教育資金を準備するパパママはもちろん、大学・専門学校進学をひかえた高校生も歓迎です。 */
    /* 子どもの進学資金準備のために教育費の現状と資金準備の考え方を知りたい保護者 */
    display: none;
  }
}

@media (max-width: 1090px) {
  .page-personal .pc-br.cashflow-br {
    /* Excelで加減乗除できる方（FP資格取得者など仕事での利用者を除く）が対象です。 */
    display: none;
  }
}

@media (max-width: 637px) {
  .page-personal .pc-br.lifedesign-br {
    /* ライフデザインからファイナンシャルプランニングまでのトータルサポート */
    display: none;
  }
}

@media (max-width: 500px) {
  .page-personal .sm-br {
    /* ライフデザイン・ライフプランニング・ファイナンシャルプランニング作成サポート */
    display: block;
  }
}

/************************************************************************
** お問い合わせ・コンタクトフォーム7カスタマイズCSS
************************************************************************/
body.page-id-215 .mobile-footer-menu-buttons {
  /* お問い合わせページのidを指定。 */
  display: none;
}

.life-design-form{
  max-width: 800px;
  margin: 0 auto;
  font-family: "BIZ UDGothic", sans-serif;
}

.life-design-form .required {
  display: none;
  /* 必要なら表示して */
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-top: 80px;
}

.form-group select {
  font-size: var(--primary-font-size);
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  cursor: default;
  font-size: var(--primary-font-size);
  color: var(--accent-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #7ab3ed;
  border-radius: 20px;
  font-size: var(--primary-font-size);
  transition: border-color 0.2s;
  background-color: #f8fafd;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.form-group input.form-btn-submit {
  background-color: #ffbe58;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  /* font-size: var(--primary-font-size); */
  font-size: 1.8rem;
  display: block;
  width: 100%;
  max-width: 300px;
  height: 60px;
  text-align: center;
  margin: auto;
}

.form-group input.form-btn-submit:hover {
  opacity: 0.7;
}

/************************************************************************
** 投稿ページ関連
************************************************************************/
.category,
.single-post {
  background-color: #f4f8f9 !important;
}

.sidebar .wp-block-heading,
.sidebar .widget-sidebar-title {
  background-color: #4f92ff !important;
  color: white !important;
}

.wp-block-categories-list.wp-block-categories {
  display: flex;
  flex-wrap: wrap;
}

.single-post .cat-link {
  background-color: var(--accent-color) !important;
}

.sidebar .wp-block-categories-list li {
  margin-bottom: 5px;
  margin-right: 5px;
}

.sidebar .wp-block-categories-list a {
  display: inline-block;
  border: 1px solid #4f92ff;
  padding: 4px 8px;
  border-radius: 20px;
  text-decoration: none;
}

.sidebar .wp-block-categories-list a:hover {
  background-color: #4f92ff;
  color: #fff;
}

/* フッターメニューボタン */
.menu-close-button {
  /* ヘッダーにかかっている部分だけ下に下げる */
  margin-top: 150px;
}