@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
*/

/************************************
** 1. 変数定義 & Reset
************************************/
:root {
  /* ブランドカラー */
  --color-brand-cyan: #0091D2;
  --color-brand-navy: #004083;
  --color-text-base:  #333333;
  --color-text-main:  #333333;

  /* メインカラー（デフォルトはネイビー） */
  --color-primary: var(--color-brand-navy);

  /* 背景・ボーダー */
  --color-bg-white:    #ffffff;
  --color-border-gray: #e5e7eb;

  /* ヘッダー高 */
  --header-height-pc: 80px;
  --header-height-sp: 64px;
}

/* 行政書士ページ（親・子・孫）内のみシアンへ一括変更 */
.content-gyousei {
  --color-primary: var(--color-brand-cyan);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロール防止 */
}

p {
  margin-bottom: 15px;
}


/************************************
** 2. ページ遷移・共通アニメーション
************************************/
body {
  animation: pageFadeIn 0.5s ease forwards;
  transition: opacity 0.3s ease;
}

body.is-fadeout {
  opacity: 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: var(--color-brand-navy);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--color-brand-cyan);
}


/************************************
** 3. Layout Component (枠組み・幅統一)
************************************/
/* 基本インナー（トップページ・標準セクション用） */
.l-inner {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 下層1カラムページ用（狭め） */
.l-inner--narrow,
.l-inner--single {
  max-width: 860px;
}

.home .content,
.page .content {
  margin-top: 0;
}
.home .main,
.page .main {
  padding-top: 0;
  padding-bottom: 0;
}

.l-section {
  margin: 150px auto;
}
@media screen and (max-width: 768px) {
  .l-section {
    margin: 80px auto;
  }
}


/************************************
** 4. Common Components (見出し・ボタンなど)
************************************/
/* 大見出し */
.c-title-lg {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 15px;
}

/* 中見出し */
.c-title-md {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 15px;
  border: none;
}

.c-sub-title {
  font-size: 20px;
  font-weight: 500;
  margin-left: 15px;
  color: #727171;
}

@media screen and (max-width: 768px) {
  .c-title-lg {
    text-align: center;
    font-size: 24px;
  }
  .c-title-md {
    font-size: 18px;
  }
  .c-sub-title {
    text-align: center;
    display: block;
    font-size: 16px;
    margin: 0;
  }
}

.is-style-c-heading-md {
  font-size: 20px !important;
  border: none !important;
}

/* 汎用ボタン */
.c-button {
  background-color: var(--color-brand-cyan);
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 24px;
  display: inline-block;
}

.c-button:hover {
  color: #ffffff;
  background-color: var(--color-primary);
}

/* さらに見るボタン */
.c-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 50px;
  border: 2px solid var(--color-primary);
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-border-radius: 5px;
          border-radius: 5px;
}

.c-btn-more::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f105";
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.c-btn-more:hover {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  opacity: 1;
}

.c-btn-more:hover::after {
  transform: translateX(3px);
}

@media screen and (max-width: 768px) {
  .c-btn-more {
    margin-top: 16px;
  }
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 50px;
  border: 2px solid var(--color-primary);
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-border-radius: 5px;
          border-radius: 5px;
}
.wp-block-button__link::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f105";
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.wp-block-button__link:hover {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  opacity: 1;
}

.wp-block-button__link:hover::after {
  transform: translateX(3px);
}

@media screen and (max-width: 768px) {
  .wp-block-button__link {
    margin-top: 16px;
  }
}


/* 投稿本文内のH2装飾 */
.entry-content h2 {
  color: var(--color-brand-navy);
  border-left: 4px solid var(--color-brand-cyan);
  padding-left: 12px;
}

/* 境界線のライン画像 */
.c-section-line {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 20px;
  background-image: url('img/bg-line.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .c-section-line {
    height: 12px;
  }
}

/* ====================
   Headings in Entry Content (本文内見出し)
   ==================== */

.entry-content h2,
.c-heading-h2 {
  padding: 20px 0;
  margin-bottom: 20px;
  background-image: linear-gradient(90deg, var(--color-brand-navy) 0 20%, #D9D9D9 20%);
  background-repeat: no-repeat;
  background-size: 100% 5px;
  background-position: bottom;
  color: var(--color-text-base);
  font-weight: bold;
  font-size: 26px;
  border: none;
  background-color: transparent;
}

@media screen and (max-width: 768px) {
  .entry-content h2,
  .c-heading-h2 {
    font-size: 20px;
  }
}


.entry-content h3,
.c-heading-h3 {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.7;
  padding-left: 20px;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 40px;
  margin-bottom: 20px;
  border: none;
  background: none;
}

.entry-content h3::before,
.c-heading-h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: var(--color-brand-navy); /* シアンアクセントライン */
}

@media screen and (max-width: 768px) {
  .entry-content h3,
  .c-heading-h3 {
    font-size: 18px;
    padding-left: 15px;
    margin: 30px 0;
  }
}


/* --- H4見出し (シンプルな下線) --- */
.entry-content h4,
.c-heading-h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-base);
  line-height: 1.5;
  padding-bottom: 8px;
  margin-top: 28px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--color-border-gray);
}

@media screen and (max-width: 768px) {
  .entry-content h4,
  .c-heading-h4 {
    font-size: 14px;
  }
}


/************************************
** 5. Utilities
************************************/
.u-bg-grad-cyan {
  background: linear-gradient(180deg, #00A2EA 0%, #0091D2 100%);
}

.u-bg-grad-navy {
  background: linear-gradient(180deg, #0053AA 0%, #004083 100%);
}

.u-sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .u-sp-br {
    display: inline;
  }
}

.p-section-bg-slant {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 0;
  background: linear-gradient(
    130deg,
    #f4f8fd 0%,
    #eaf2fb 58%,
    #dcecfd 58.1%,
    #edf5fe 100%
  );
}

@media screen and (max-width: 768px) {
  .p-section-bg-slant {
    padding: 48px 0;
  }
}


/************************************
** 6. Header
************************************/
.l-header {
  width: 100%;
  background-color: var(--color-bg-white);
  position: relative;
  border-bottom: 2px solid #E5E5E5;
  z-index: 1000;
}

@media screen and (min-width: 1025px) {
  .l-header {
    position: sticky;
    top: 0;
  }
}

.l-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
  height: var(--header-height-sp);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo img {
  width: 130px;
  height: auto;
  display: block;
}

@media screen and (min-width: 1025px) {
  .l-header__inner {
    height: var(--header-height-pc);
    padding: 0 20px;
  }
  .l-header__logo img {
    width: 200px;
  }
}

/* PC Navigation */
.p-pc-nav {
  display: none;
}

@media screen and (min-width: 1025px) {
  .p-pc-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .p-pc-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .p-pc-nav__item {
    position: relative;
  }

  .p-pc-nav__link {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 28px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
  }

  .p-pc-nav__item.has-child > .p-pc-nav__link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--color-text-main);
    border-bottom: 2px solid var(--color-text-main);
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s;
  }

  .p-pc-nav__item:hover > .p-pc-nav__link {
    color: var(--color-brand-navy);
  }

  .p-pc-nav__item:hover > .p-pc-nav__link::after {
    border-color: var(--color-brand-navy);
  }

  .p-pc-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: var(--color-bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
  }

  .p-pc-nav__item:hover .p-pc-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .p-pc-nav__dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
  }

  .p-pc-nav__dropdown a:hover {
    background-color: var(--color-brand-navy);
    opacity: 1;
    color: #fff;
  }

  .ureshiku-gyosei .p-pc-nav__dropdown a:hover {
    background-color: var(--color-brand-cyan);
  }

  .p-pc-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-brand-navy);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s;
  }

  .p-pc-nav__btn::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
  }

  .p-pc-nav__btn:hover {
    color: #FFF;
    background-color: color-mix(in srgb, var(--color-brand-navy), #000 15%);
  }
}

/* SP Hamburger & Actions */
.l-header__sp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media screen and (min-width: 1025px) {
  .l-header__sp-actions {
    display: none;
  }
}

.p-sp-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-brand-navy);
  color: #ffffff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.p-sp-contact-btn::before {
  content: "\f0e0";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.p-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
}

.p-hamburger__lines {
  position: relative;
  width: 24px;
  height: 18px;
}

.p-hamburger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.p-hamburger__lines span:nth-child(1) { top: 0; }
.p-hamburger__lines span:nth-child(2) { top: 8px; }
.p-hamburger__lines span:nth-child(3) { top: 16px; }

.p-hamburger__text {
  font-size: 9px;
  color: var(--color-brand-navy);
  font-weight: 700;
  margin-top: 2px;
}

.p-hamburger.is-active .p-hamburger__lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.p-hamburger.is-active .p-hamburger__lines span:nth-child(2) {
  opacity: 0;
}

.p-hamburger.is-active .p-hamburger__lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SP Drawer */
.p-sp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  visibility: hidden;
  transition: visibility 0.3s;
}

.p-sp-drawer.is-active {
  visibility: visible;
}

.p-sp-drawer__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.p-sp-drawer.is-active .p-sp-drawer__overlay {
  opacity: 1;
}

.p-sp-drawer__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background-color: #ffffff;
  padding: 60px 20px;  
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overscroll-behavior-y: contain;
}

.p-sp-drawer.is-active .p-sp-drawer__content {
  transform: translateX(0);
}

.p-sp-drawer__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px;
  transition: opacity 0.2s;
}

.p-sp-drawer__close-btn::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.p-sp-nav__list,
.p-sp-nav__sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-sp-nav__item {
  margin-bottom: 16px;
}

.p-sp-nav__item a,
.p-sp-nav__parent {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-navy);
  text-decoration: none;
}

.p-sp-nav__child-list {
  list-style: none;
  padding-left: 12px;
  margin: 8px 0 0;
}

.p-sp-nav__child-list li {
  margin-bottom: 8px;
}

.p-sp-nav__child-list a {
  font-size: 14px;
  font-weight: 500;
}

.p-sp-nav__divider {
  border: none;
  border-top: 1px solid var(--color-border-gray);
  margin: 24px 0;
}

.p-sp-nav__sub-list li {
  margin-bottom: 12px;
}

.p-sp-nav__sub-list a {
  font-size: 14px;
  color: var(--color-brand-navy);
  text-decoration: none;
  font-weight: 500;
}


/********************************BK
** 7. Main Visual (MV)
************************************/
.p-mv {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 60vh;
  min-height: 400px;
  max-height: 650px;
  overflow: hidden;
}

@media screen and (min-width: 769px) {
  .p-mv {
    height: 75vh;
  }
}

/* 共通の背景ベース設定（全ページで有効にする） */
.p-mv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* 画像の上のグラデーション層（共通） */
.p-mv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-90deg, #0053AA80 0%, #00408380 100%);
  opacity: 0.6;
  pointer-events: none;
}

/* 共通のインナー設定 */
.p-mv__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直中央 */
  align-items: flex-start;  /* 水平方向は左揃え */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ----------------------------------
 * ページ別 背景画像の切り替え
 * ---------------------------------- */
/* サイトTOP */
.home .p-mv__bg {
  background-image: url('img/mv-top.png');
}

/* 売れるしくみづくりTOP */
.p-mv--ureshiku .p-mv__bg {
  background-image: url('img/ureru-shikumi/mv.png?260827');
}

/* うれしく行政書士法人TOP */
.p-mv--ugyosei .p-mv__bg {
  background-image: url('img/ureshiku-gyosei/mv.png?260827');
}

/* ==================================================
   ACF連動 ヘッダー背景画像切替用CSS
   ================================================== */
/* 背景共通ベース */
.page .article-header.c-heading-ureshiku,
.page .article-header.c-heading-gyosei {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  margin-bottom: 60px;
}
.page .article-header.c-heading-ureshiku .l-inner,
.page .article-header.c-heading-gyosei .l-inner { 
  max-width: 860px;
}

/* 画像の上の半透明グラデーション（文字の視認性確保） */
.page .article-header.c-heading-ureshiku::before,
.page .article-header.c-heading-gyosei::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-90deg, rgba(0, 83, 170, 0.8) 0%, rgba(0, 64, 131, 0.8) 100%);
  pointer-events: none;
}

/* インナーコンテンツの前面化 */
.page .article-header.c-heading-ureshiku .l-inner,
.page .article-header.c-heading-gyosei .l-inner {
  position: relative;
  z-index: 1;
}

/* ureshiku 背景画像 */
.page .article-header.c-heading-ureshiku {
  background-image: url('img/ureru-shikumi/mv.png');
}

/* gyosei 背景画像 */
.page .article-header.c-heading-gyosei {
  background-image: url('img/ureshiku-gyosei/mv.png');
}

/* リード文の共通スタイル */
.c-heading__lead {
  font-size: 16px;
  color: #ffffff;
  margin-top: 12px;
  padding: 0 20px;
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 768px) {
  .page .article-header.c-heading-ureshiku,
  .page .article-header.c-heading-gyosei {
    padding: 50px 0;
    margin-bottom: 40px;
  }
  .c-heading__lead {
    font-size: 14px;
  }
}


/* ----------------------------------
 * サイトTOP専用のレイアウト調整
 * ---------------------------------- */
.home .p-mv__inner {
  justify-content: center !important;
}

.home .p-mv__content {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* ----------------------------------
 * タイトル・テキスト装飾
 * ---------------------------------- */
.p-mv__content {
  max-width: 800px;
  color: var(--color-brand-navy);
}

.p-mv__sub-title {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: none;
  padding: 0;
  border: none;
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.25);
}

.p-mv__main-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.35);
  margin: 0;
}

/* ----------------------------------
 * 売れるしくみ・行政書士法人TOPのスタイル
 * ---------------------------------- */
.p-mv--ureshiku .p-mv__content, 
.p-mv--ugyosei .p-mv__content {
  max-width: 500px;
} 

.p-mv--ureshiku .p-mv__sub-title, 
.p-mv--ugyosei .p-mv__sub-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.7;
} 

.p-mv--ureshiku .p-mv__main-title, 
.p-mv--ugyosei .p-mv__main-title {
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
} 

.p-mv__company-name {
  font-size: 18px;
  color: #FFF;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------
 * レスポンシブ (SP)
 * ---------------------------------- */
@media screen and (max-width: 768px) {
  .p-mv__sub-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .p-mv__main-title {
    font-size: 18px;
    line-height: 1.6;
  }

  .p-mv--ureshiku .p-mv__sub-title, 
  .p-mv--ugyosei .p-mv__sub-title {
    font-size: 20px;
  } 

  .p-mv--ureshiku .p-mv__main-title, 
  .p-mv--ugyosei .p-mv__main-title {
    font-size: 15px;
  } 

  .p-mv__company-name {
    font-size: 14px;
  }
}

/************************************
** 8. Main Contents
************************************/
/* 独立ロゴ背景 */
.p-bg-shape-s {
  position: absolute;
  left: 0;
  max-width: 500px;
  height: 700px;
  pointer-events: none;
  z-index: -99999;
  background-image: url('img/bg.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.page .p-bg-shape-s {
  margin-top: -60px;
}

/* About Us Section */
.p-about {
  position: relative;
  padding: 80px 0 100px;
  background-color: transparent;
  overflow: hidden;
}

.p-about__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 20px;
}

.p-about__lead {
  text-align: justify;
  margin-bottom: 30px;
}

.p-about__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 769px) {
  .p-about__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.p-about-card {
  background-color: #ffffff;
  border: 1px solid #E5E5E5;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.p-about-card__title {
  text-align: center;
}

.p-about-card__text {
  text-align: justify;
}

/* 2Column Banners */
.p-group-banners {
  padding: 60px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .p-group-banners {
    padding: 40px 0;
  }
}

.p-group-banners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

@media screen and (max-width: 768px) {
  .p-group-banners__grid {
    grid-template-columns: 1fr;
  }
}

.p-group-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
/*
.p-group-card__img-box {
  width: 100%;
  height: 450px;
  overflow: hidden;
  background-color: #e2e8f0;
}

@media screen and (max-width: 768px) {
  .p-group-card__img-box {
    height: 180px;
  }
}

.p-group-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p-group-card:hover .p-group-card__img {
  transform: scale(1.06);
}*/

.p-group-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: #ffffff;
  flex-grow: 1;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
  .p-group-card__content {
    padding: 25px 16px;
  }
}

.p-group-card:hover .p-group-card__content {
  opacity: 0.9;
}

.p-group-card__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #FFE253;
}

@media screen and (max-width: 768px) {
  .p-group-card__title {
    font-size: 18px;
  }
}

.p-group-card__subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
  padding-bottom: 16px;
  position: relative;
}

.p-group-card__subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
  .p-group-card__subtitle {
    font-size: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
}

.p-group-card__company {
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Business Section */
.p-business {
  padding: 80px 0 100px;
}

@media screen and (max-width: 768px) {
  .p-business {
    padding: 60px 0;
  }
}

.p-business__header {
  margin-bottom: 60px;
}

@media screen and (max-width: 768px) {
  .p-business__header {
    margin-bottom: 32px;
  }
  .p-business__lead {
    font-size: 14px;
    margin-top: 16px;
  }
}

.p-business__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .p-business__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.p-business-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 24px;
  border-radius: 0 15px 0 15px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  user-select: none;
  margin-bottom: 15px;
  box-shadow: 0 1px 5px rgba(0, 40, 90, 0.3);
}

@media screen and (max-width: 768px) {
  .p-business-btn {
    min-height: 54px;
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* Column Section */
.p-column {
  padding: 100px 0;
  background-color: #ffffff;
}

.p-column__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.p-column__left {
  width: 280px;
  flex-shrink: 0;
}

.p-column__title .c-sub-title {
  margin-left: 0;
}

.p-column__right {
  flex-grow: 1;
  width: 100%;
}

.p-column-card {
  color: var(--color-text-base) !important;
  display: block;
  padding: 32px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-column-card:hover {
  border-color: #D9D9D9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.p-column-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.p-column-card:hover .p-column-card__title,
.p-column-card:hover .p-column-card__excerpt {
  color: var(--color-brand-cyan);
}

.p-column-card__excerpt {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .p-column {
    padding: 50px 0 60px;
  }
  .p-column__container {
    flex-direction: column;
    gap: 24px;
  }
  .p-column__left {
    display: contents;
  }
  .p-column__title {
    order: 1;
    width: 100%;
    text-align: center;
  }
  .p-column__right {
    order: 2;
    width: 100%;
  }
  .c-btn-more {
    order: 3;
    margin-top: 8px;
    align-self: center;
  }
  .p-column-card {
    padding: 20px 20px;
  }
  .p-column-card__title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .p-column-card__excerpt {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* Contact Section */
.p-contact {
  position: relative;
  padding: 60px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
}

.p-contact::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 1;
  background: url('https://ure-shiku.com/cms/wp-content/uploads/2026/08/bg-contact.jpg') no-repeat center center / cover;
  filter: blur(3px);
}

.p-contact__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.p-contact__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.7;
}
.p-contact__title,
.p-contact__text {
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 768px) {
  .p-contact {
    padding: 60px 0;
  }
  .p-contact__title {
    font-size: 26px;
    margin-bottom: 20px;
  }
}


/************************************
** 9. Footer
************************************/
.footer {
  margin-top: 100px;
  padding-top: 0;
}
.l-footer {
  background-color: #f4f5f7;
  color: var(--color-text-main);
  padding-top: 50px;
}

.l-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.l-footer__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 769px) {
  .l-footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
  }
}

.l-footer__info {
  flex-shrink: 0;
}

.l-footer__logo img {
  max-width: 250px;
  height: auto;
  display: block;
}

.l-footer__subtext {
  font-size: 12px;
  line-height: 1.6;
  color: #666666;
  margin-top: 12px;
  margin-bottom: 20px;
}

.l-footer__banners {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.l-footer__banners img {
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 769px) {
  .l-footer__info {
    margin: auto;
  }
}

/* Footer Nav */
.p-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.p-footer-nav a {
  color: var(--color-brand-navy) !important;
}

@media screen and (min-width: 769px) {
  .p-footer-nav {
    flex-direction: row;
    justify-content: flex-end;
    gap: 80px;
  }
}

.p-footer-nav__list,
.p-footer-nav__sub-list,
.p-footer-nav__child-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-footer-nav__item {
  margin-bottom: 20px;
}

.p-footer-nav__link,
.p-footer-nav__parent {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-navy) !important;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.p-footer-nav__child-list {
  margin-top: 8px;
}

.p-footer-nav__child-list li {
  margin-bottom: 6px;
}

.p-footer-nav__child-list a {
  font-size: 14px;
  color: var(--color-brand-navy);
  text-decoration: none;
  padding-left: 14px;
  position: relative;
  display: block;
  transition: color 0.2s;
}

.p-footer-nav__child-list a:hover,
.p-footer-nav__sub-list a:hover {
  color: var(--color-brand-cyan);
}

.p-footer-nav__sub-list a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.l-footer__copyright {
  text-align: center;
}

.l-footer__copyright small {
  font-size: 11px;
  color: #666666;
  display: block;
}

/************************************
** 10. 固定ページ・投稿ページ
************************************/
/*ページタイトル*/
.page .article-header.c-heading-df {
  position: relative;
  padding: 60px 0;
  background-color: var(--color-brand-navy);
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  margin-bottom: 60px;
}

@media screen and (max-width: 768px) {
  .page .article-header.c-heading-df {
    padding: 40px 0;
    margin-bottom: 40px;
  }
}

.page .entry-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  padding: 0 20px;
  max-width: 1280px;
  margin: auto;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
  .page .entry-title {
    font-size: 22px;
  }
}

/* Entry Content (下層本文エリア：白半透明背景) */
.p-bg-shape-s + .entry-content {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 40px;
}

@media screen and (max-width: 768px) {
  .p-bg-shape-s + .entry-content {
    padding: 24px 16px; /* スマホ時は余白をコンパクトに */
  }
}


/* 固定ページの日付・更新日タグを非表示 */
.page .date-tags,
.page .post-date,
.page .post-update {
  display: none !important;
}
.breadcrumb {
  margin-top: 0 !important;
  font-size: 12px;
}
/* Cocoonデフォルトのパンくずアイコン（Font Awesome）を非表示 */
.breadcrumb .fa-fw,
.breadcrumbs .fa-fw {
  display: none !important;
}
/* アイコン消去後に余計な余白が残る場合の調整（必要に応じて） */
.breadcrumbs a,
.breadcrumb a {
  padding-left: 0;
  color: var(--color-brand-navy);
  text-decoration: underline;
}
.breadcrumbs a:hover,
.breadcrumb a:hover {
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .breadcrumbs,
  .breadcrumb {
    display: none;
  }
}

.breadcrumb.sbp-main-before + .content, .breadcrumb.pbp-main-before + .content {
  margin-top: 0 !important;
}

/* ====================
   Contact Form Component
   ==================== */
.p-contact-form {
  max-width: 860px;
  margin: 0 auto;
}

/* 導入リード文 */
.p-contact-form__lead {
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 48px;
}

@media screen and (max-width: 768px) {
  .p-contact-form__lead {
    font-size: 14px;
    text-align: left;
    margin-bottom: 32px;
  }
}

/* フォームリスト構造 */
.p-contact-form__list {
  margin: 0 0 48px;
  padding: 0;
  border-top: 1px solid #e2e8f0;
}

.p-contact-form__item {
  display: flex;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

@media screen and (max-width: 768px) {
  .p-contact-form__item {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
  }
}

/* 左側：ラベルエリア */
.p-contact-form__label {
  width: 180px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px; /* 入力枠の文字高さと揃える */
}

@media screen and (max-width: 768px) {
  .p-contact-form__label {
    width: 100%;
    padding-top: 0;
    font-size: 14px;
  }
}

/* 「必須」バッジ */
.p-contact-form__badge {
  display: inline-block;
  background-color: #b91c1c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
  vertical-align: middle;
}

/* 右側：入力フィールドエリア */
.p-contact-form__field {
  flex-grow: 1;
  width: 100%;
  margin: 0 !important;
}

/* テキスト・メール・電話番号・テキストエリア共通スタイル */
.c-form-input,
.c-form-textarea,
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--color-text-main);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.c-form-input {
  height: 48px;
}

.c-form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* フォーカス時の輪郭強調 */
.c-form-input:focus,
.c-form-textarea:focus,
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 145, 210, 0.15);
}

/* チェックボックス群（ご相談内容） */
.p-contact-form__checkboxes,
.wpcf7-checkbox {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-contact-form__checkboxes label,
.wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-main);
  cursor: pointer;
  user-select: none;
}

.p-contact-form__checkboxes input[type="checkbox"],
.wpcf7-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand-navy); /* チェック色 */
  cursor: pointer;
}

/* 送信ボタンエリア */
.p-contact-form__submit {
  margin-top: 40px;
  margin-bottom: 48px;
}

input[type=submit],
.c-form-btn,
.wpcf7-submit {
  display: block;
  margin: auto;
  width: 220px;
  height: 52px;
  background-color: #ffffff;
  border: 2px solid var(--color-primary); 
  border-radius: 5px;
  color: var(--color-primary); 
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

input[type=submit]:hover,
.c-form-btn:hover,
.wpcf7-submit:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  input[type=submit],
  .c-form-btn,
  .wpcf7-submit {
    width: 200px;
    height: 48px;
    font-size: 16px;
  }
}

/* メール受信お願い注意書きボックス */
.p-contact-form__notice {
  background-color: #f4f5f7;
  padding: 24px 32px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 24px;
}

.p-contact-form__notice-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 8px !important;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .p-contact-form__notice {
    padding: 20px;
  }
}

/* reCAPTCHA 注意書き */
.p-contact-form__recaptcha {
  text-align: center;
  font-size: 11px;
  color: #888888;
  line-height: 1.6;
  margin: 0;
}

.p-contact-form__recaptcha a {
  color: #666666;
  text-decoration: underline;
}

.p-contact-form__recaptcha a:hover {
  color: var(--color-brand-cyan);
}

/* reCAPTCHA v3 バッジを非表示 */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Contact Form 7 応答メッセージ（送信完了・エラー表示） */
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  text-align: center;
}

/* 送信成功時 */
.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--color-brand-cyan) !important;
  background-color: #f0fdf4;
  color: #166534;
}

/* 入力エラー・送信失敗時 */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unspam .wpcf7-response-output {
  border-color: #b91c1c !important;
  background-color: #fef2f2;
  color: #991b1b;
}

/* 各入力項目のエラー注記 */
.wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
}

/* ==================================================
   1. アーカイブ（記事一覧・カード）のデザイン調整
   ================================================== */
/* 記事カード全体のスタイリング */
.entry-card-wrap {
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e5e7eb;
}

.entry-card-wrap:hover {
  box-shadow: 0 8px 25px rgba(0, 64, 131, 0.12);
}

/* 記事タイトル */
.entry-card-title {
  color: var(--color-brand-navy);
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.entry-card-wrap:hover .entry-card-title {
  color: var(--color-brand-cyan, #0091d2);
}

/* カテゴリタグ・バッジ */
.cat-label {
  background-color: var(--color-brand-navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 8px;
}

/*サイドバータイトル*/
.sidebar h2, .sidebar h3 {
  position: relative;
  padding: 8px 16px;
  background-color: #e9eff5;
  border-left: 5px solid var(--color-brand-navy);
  color: var(--color-brand-navy);
  font-size: 18px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 24px;
  -webkit-border-radius: 0;
          border-radius: 0;
}

/* ==================================================
   2. 記事詳細（投稿ページ）のデザイン調整
   ================================================== */
/* 投稿本文エリア（カード風装飾） */
.single .entry-content {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}


/* ==================================================
   3. ページネーション（一覧のページ送り数字）
   ================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  margin-bottom: 32px;
}

/* 数字・矢印ボタン共通 */
.pagination a,
.pagination .current,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: var(--color-text-main, #333333);
  transition: all 0.25s ease;
  text-decoration: none;
}

/* 通常ホバー時 */
.pagination a:hover {
  border-color: var(--color-brand-navy);
  color: var(--color-brand-navy);
  background-color: #f8fafc;
  transform: translateY(-1px);
}

/* カレント（現在地）のページ番号 */
.pagination .current {
  background-color: var(--color-brand-navy);
  border-color: var(--color-brand-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 43, 73, 0.2);
}


/* ==================================================
   4. 記事送りナビ（前後の記事リンク）
   ================================================== */
.pagination-next {
  display: none;
}
.navigation,
.page-navigation,
.prev-next-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.prev-next-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: var(--color-brand-navy);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.prev-next-nav a:hover {
  border-color: var(--color-brand-cyan, #0091d2);
  color: var(--color-brand-cyan, #0091d2);
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 145, 210, 0.1);
}

@media screen and (max-width: 768px) {
  .single .entry-content {
    padding: 24px 16px;
  }

  .pagination a,
  .pagination .current,
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ==================================================
   事業ページ
   ================================================== */
.c-section-title__main,
.c-section-title__sub {
 text-align: center;
 display: block;
 margin-left: 0;
}

.p-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 50px;
  max-width: 1000px;
  margin: 100px auto;
}

.p-service-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid #f0f0f0;
}

.p-service-card__num {
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1;
  position: absolute;
  top: -30px;
  left: -25px;
}

.p-service-card__num-label {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #888888;
  font-weight: 600;
  text-align: center;
}

.p-service-card__title {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  margin: 12px 0 20px;
}
.p-service-card__img {
  width: 100%;
  height: 200px; /* 必要に応じて高さを調整 */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc; /* 薄い背景色（任意） */
  border-radius: 6px;
  padding: 24px; /* イラスト周囲の余白 */
  box-sizing: border-box;
}

.p-service-card__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* アスペクト比を維持して枠内に収める */
}

.p-service-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
  margin: 16px 0 24px;
}

.p-service-card__btn-wrap {
  text-align: center;
}
.p-service-row {
  position: relative;
  max-width: 900px;
  margin: 50px auto 32px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid #f0f0f0;
}
.p-service-row .p-service-card__title{
  text-align:left;
}

.p-service-row__body {
  flex: 1;
}
.p-service-row__img {
  width: 380px;
  flex-shrink: 0;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc; /* 背景色（デザインに合わせて調整してください） */
  border-radius: 6px;
  padding: 20px; /* 余白を入れることでSVGが綺麗に収まります */
  box-sizing: border-box;
}
.p-service-row__img img {
  max-width: 45%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .c-section-title {
    margin-bottom: 32px;
  }

  /* 2列 ➔ 1列 */
  .p-service-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* 横長 ➔ 縦並び */
  .p-service-row {
    flex-direction: column-reverse;
    padding: 36px 16px 24px;
    gap: 20px;
  }
  .p-service-row .p-service-card__num {
    top: -35px;
    left: -10px;
  }
  .p-service-card__title,
  .p-service-card__btn {
    text-align: center !important;
  }

  /* ご支援の流れ ➔ 縦並び */
  .p-flow__list {
    flex-direction: column;
    gap: 24px;
  }
}

.p-flow__list {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 100px auto 0;
  padding: 0;
  list-style: none !important;
}

.p-flow__item {
  position: relative;
  flex: 1;
  background-color: #f8fafc;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 36px 14px 20px;
  box-sizing: border-box;
  list-style: none !important;
}

/* 丸数字バッジ（PC: 上辺中央） */
.p-flow__num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* タイトル（PC: 中央揃え） */
.p-flow__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* 本文 */
.p-flow__text {
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* 矢印アイコン（PC: 右向き三角形） */
.p-flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 20px 0 20px 20px;
  border-color: transparent transparent transparent var(--color-primary);
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .p-flow__list {
    flex-direction: column;
    gap: 32px;
    padding: 0 12px;
    margin: 0 auto;
  }

  .p-flow__item {
    padding: 20px 20px 20px 20px;
  }

  /* 丸数字バッジ（SP: 左上に引っかける） */
  .p-flow__num {
    top: -16px;
    left: -10px;
    transform: none;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  /* タイトル（SP: 左揃え・丸数字を避けるインデント） */
  .p-flow__title {
    text-align: left;
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .p-flow__text {
    padding-left: 20px;
  }


  /* 矢印アイコン（SP: 下向き三角形） */
  .p-flow__item:not(:last-child)::after {
    top: auto;
    bottom: -22px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 20px 20px 0 20px;
    border-color: var(--color-primary) transparent transparent transparent;
  }
}

.p-faq__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

/* 左側：見出しエリア */
.p-faq__head {
  width: 280px;
  flex-shrink: 0;
}

.c-section-title--left {
  text-align: left;
  margin-bottom: 24px;
}
.c-section-title--left .c-section-title__main,
.c-section-title--left .c-section-title__sub {
  text-align: left;
}

.p-faq__btn-wrap {
  margin-top: 16px;
}

/* 右側：リストエリア */
.p-faq__body {
  flex: 1;
}

.p-faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-faq__item {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.p-faq__item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* Q（質問）行 */
.p-faq__q {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.p-faq__icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.p-faq__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.5;
}

/* A（回答）行 */
.p-faq__a {
  padding-left: 24px; /* Qアイコンの幅分インデント */
}

.p-faq__text {
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
  margin: 0;
}

/* 768px以下（スマホ表示） */
@media screen and (max-width: 768px) {
  .p-faq__inner {
    flex-direction: column;
    gap: 32px;
  }

  .p-faq__head {
    width: 100%;
  }

  .c-section-title--left,
  .c-section-title--left .c-section-title__main,
  .c-section-title--left .c-section-title__sub {
    text-align: center;
    margin-bottom: 16px;
  }

  .p-faq__btn-wrap {
    text-align: center;
  }

  .p-faq__a {
    padding-left: 0;
    margin-top: 8px;
  }
}

/************************************
** 会社概要ページ（.p-company）専用CSS
************************************/
.p-company-concept__body,
.p-company-greeting__body {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 767px) {
  .p-company-concept__body,
  .p-company-greeting__body {
    flex-direction: column-reverse;
    gap: 24px;
    margin-top: 24px;
  }
}

.p-company-concept__content,
.p-company-greeting__content {
  flex: 1;
}

.p-company-concept__lead,
.p-company-greeting__lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.p-company-concept__image,
.p-company-greeting__image {
  width: 42%;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .p-company-concept__image,
  .p-company-greeting__image {
    width: 100%;
  }
  .p-company-concept__lead,
  .p-company-greeting__lead {
    font-size: 18px;
  }
}

.p-company-concept__image {
  border: 1px solid var(--color-border-gray);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.p-company-greeting__image img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.p-company-profile {
  position: relative;
  margin-top: 48px;
  background-color: #f7f9fc;
  border-radius: 0 16px 16px 16px;
}

.p-company-profile__tab {
  position: absolute;
  top: -38px;
  left: 0;
  display: inline-block;
  padding: 8px 24px;
  background-color: #f7f9fc;
  color: var(--color-brand-navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px 10px 0 0;
}

.p-company-profile__inner {
  padding: 36px 40px;
}
@media (max-width: 767px) {
  .p-company-profile__inner {
    padding: 24px 20px;
  }
}

/* ヘッダー（名前・役職） */
.p-company-profile__header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 767px) {
  .p-company-profile__header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
}

.p-company-profile__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  white-space: nowrap;
}

.p-company-profile__ruby {
  font-size: 0.9rem;
  font-weight: normal;
  color: #555555;
}

.p-company-profile__position {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0;
}

/* 保有資格・略歴 リスト */
.p-company-profile__list {
  margin: 0;
}

.p-company-profile__row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.p-company-profile__row:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .p-company-profile__row {
    flex-direction: column;
    gap: 4px;
  }
}

.p-company-profile__row dt {
  width: 90px;
  font-weight: 700;
  color: var(--color-text-main);
  flex-shrink: 0;
}

.p-company-profile__row dd {
  flex: 1;
  margin: 0;
  line-height: 1.7;
  color: var(--color-text-main);
}

/* --- 3. グループ概要テーブル --- */
.p-company-outline__body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 60px;
}
@media (max-width: 767px) {
  .p-company-outline__body {
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }
}

.p-company-outline__logo {
  width: 200px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .p-company-outline__logo {
    width: 160px;
    margin: auto;
  }
}

.p-company-outline__table {
  flex: 1;
  width: 100%;
}

.p-company-outline__row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8fafc;
}
.p-company-outline__row:nth-child(even) {
  background-color: #ffffff; /* ゼブラ模様 */
}
@media (max-width: 767px) {
  .p-company-outline__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
  }
}

.p-company-outline__row dt {
  width: 140px;
  font-weight: 500;
  color: var(--color-brand-navy);
  flex-shrink: 0;
}

.p-company-outline__row dd {
  flex: 1;
  margin: 0;
}