/*
Theme Name: Rise Original Theme
Description: NPO法人らいず 公式オリジナルテーマ
Version: 1.0.0
*/

/* =========================================================
   1. Design Tokens (変数定義)
========================================================= */
:root {
    --color-primary: #E85B25;     /* アクションカラー（オレンジ） */
    --color-brown: #4A2B18;       /* ブランドカラー（濃茶） */
    --color-bg-light: #FDF9F3;
    --color-text-light: #666666;  /* 補助テキスト */
    --color-border: #E5E7EB;      /* ボーダーライン */
    
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    --container-width: 1100px;
}
/* アンカーリンクの到達位置をヘッダー分（約90px）ずらす */
[id] {
    scroll-margin-top: 100px;
}
/* =========================================================
   2. Reset & Base (初期化と基本設定)
========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text-main);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    background-color: #FFFCF9;
    letter-spacing: 0.03em;
	font-weight:500;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-brown);
    line-height: 1.4;
    font-weight: 700;
}

p {
    margin-bottom: 1.5em;
}
p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   3. Layout (コンテナ・セクション) ★修正箇所
========================================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

section {
    padding: 70px 0;
}

.bg-light {
background-color: #FFFCF9 !important; /* 既存の温かみのあるアイボリーベース */
    /* プライマリーカラー（オレンジ）の非常に薄いドットを敷き詰める */
    background-image: radial-gradient(rgba(224, 98, 38, 0.1) 2px, transparent 2px) !important;
    background-size: 24px 24px !important; /* ドットの間隔 */
    animation: pattern-scroll 30s linear infinite !important; /* 30秒かけてゆっくり斜めにスクロール */
}
/* 無限ループ用のアニメーション */
@keyframes pattern-scroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -48px -48px; /* background-sizeの倍数にすることでシームレスにループ */
    }
}
/* =========================================================
   4. Components (共通UIパーツ) ★修正箇所
========================================================= */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
@media screen and (max-width: 767px) {
	.section-header {
		margin-bottom: 40px;
	}
}
.section-subtitle {
    display: block;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.section-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-brown);
}

.btn, .btn-primary, .btn-outline, .btn-map, .btn-ec, .p-service-card__link {
    font-weight: 900 !important;
    border: 2px solid var(--color-brown) !important;
    /* ぼんやりした影を捨て、くっきりした太い影で「ガッツ」を出す */
    box-shadow: 4px 4px 0 var(--color-brown) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease !important;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 900 !important;
    border-radius: 50px; /* ポップな丸み */
    border: 3px solid var(--color-brown) !important; /* 太い枠線 */
    box-shadow: 4px 4px 0 var(--color-brown) !important; /* くっきりした影 */
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
    gap: 8px; /* 文字とアイコンの隙間 */
}
.btn:hover {
    transform: translate(4px, 4px) !important; /* 影の分だけ右下に沈み込む */
    box-shadow: 0 0 0 var(--color-brown) !important; /* 影を消す */
}
/* アイコンのサイズ調整 */
.btn .material-symbols-outlined {
    font-size: 20px !important;
    margin: 0 !important; /* インラインの不要なマージンをリセット */
}

/* 2. プライマリボタン（一番目立たせるオレンジ） */
.btn-primary {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    color: #fff !important;
}

/* 3. セカンダリボタン（白背景でスッキリと） */
.btn-outline {
    background-color: #fff !important;
    color: var(--color-brown) !important;
}
.btn-outline:hover {
    background-color: var(--color-bg-light) !important;
    color: var(--color-brown) !important;
}

/* ※前回の不要な上書きをリセット（テキストリンクが崩れるのを防ぐため） */
.p-service-card__link {
    border: none !important;
    box-shadow: none !important;
}
.btn:hover, .btn-primary:hover, .btn-outline:hover, .btn-map:hover, .btn-ec:hover, .p-service-card__link:hover {
    transform: translateY(2px) !important; /* 押し込むような物理的な動き */
    box-shadow: 0 0 0 var(--color-brown) !important; /* 押すと影が消える */
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-brown);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-brown);
    border-color: var(--color-brown);
}
.btn-outline:hover {
    background-color: var(--color-brown);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   スクロールアニメーション（キレのあるスナップ・バウンドなし）
========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px); /* 助走距離はキープ */
    
    /* transformの時間を0.6sにし、バウンドしない「急加速・ピタッと停止」のカーブに変更 */
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================
   ヘッダー：Gridによる3カラム ＋ ロゴはみ出しレイアウト
========================================================= */
.site-header {
    position: sticky;
    top: 0; left: 0; width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--color-brown); /* ガッツパッチ共通の太線 */
    z-index: 1000;
    height: 80px; /* ヘッダーのベース高さ */
}

/* 3つのゾーンをGridで完全制御 */
.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto; /* 左:自動, 中央:残り全て, 右:自動 */
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    height: 100%;
	width: 100%;
}

/* --- 左：ロゴ（はみ出しギミック） --- */
.site-header__brand {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    width: 190px; /* 130px → 160px に拡大 */
}
.site-header__logo-link {
    display: block;
	width: 220px; /* ここも160pxに合わせる */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-header__logo-link:hover {
    transform: scale(1.05) rotate(-4deg); /* ホバーで元気に動く */
}
.site-header__logo {
    width: 100%;
    height: auto;
}

/* --- 中央：ナビゲーション --- */
.site-header__nav {
    display: flex;
    justify-content: center;
}
.global-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* メニューの隙間 */
    margin: 0; padding: 0;
    list-style: none;
}
.global-nav a {
    font-size: 13px; /* 項目が多いので少し小さめに */
    font-weight: 900;
    color: var(--color-brown);
    text-decoration: none;
    padding: 8px 0;
    white-space: nowrap; /* 改行を防ぐ */
    position: relative;
}
@media screen and (min-width: 1400px) {
	.global-nav a {
		font-size: 15px; 
	}
}
.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
    border-radius: 2px;
}
.global-nav a:hover::after,
.global-nav li.is-current a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- 右：CTA（電話＋ボタン） --- */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-header__tel {
    text-decoration: none;
    color: var(--color-brown);
}
.site-header__tel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}
.site-header__tel-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-primary);
}
.site-header__tel-number {
    font-family: var(--font-en);
    font-size: 17px;
    font-weight: 900;
}
@media screen and (min-width: 1400px) {
	.site-header__tel-number {
		font-size: 24px;
	}
}

/* スマホ用ボタン（初期非表示） */
.sp-menu-button { display: none; }

/* --- レスポンシブ（幅が狭くなったら即スマホメニューへ） --- */
@media screen and (max-width: 1600px) {
	.site-header__logo-link{
		max-width:70%;
	}
}
@media screen and (max-width: 1200px) {
    .site-header__inner {
		padding: 0 16px; 
		max-width:100%;
	}
	.site-header__logo-link{
		max-width:340px;
	}
    .site-header__nav, .site-header__tel, .site-header__cta { display: none !important; }
    .sp-menu-button { 
        display: block; 
        background: none; border: none; cursor: pointer; padding: 12px;
    }
    .site-header__logo {
        content: url('/wp-content/themes/rise/images/header-logo-sp.png');
    }
    
    .site-header__logo-link {
        top: 50%;
/*         transform: translateY(-50%); */
        width: 100%;
		background: transparent;
		padding:0px;
    }
    .sp-menu-button__lines span {
        display: block; width: 24px; height: 3px; margin: 5px 0;
        background: var(--color-brown); border-radius: 2px;
    }
}
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #ef6c2f;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(239, 108, 47, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header__cta:hover {
  transform: translateY(-1px);
  background: #e86224;
  box-shadow: 0 12px 24px rgba(239, 108, 47, 0.2);
}

.site-header__cta.is-current {
  background: #dc5c20;
}

.site-header__cta-icon {
  font-size: 13px;
  line-height: 1;
}

/* =========================================
   Mobile Button
========================================= */
.site-header__menu-button,
.sp-menu-button {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.sp-menu-button__lines {
  position: relative;
  width: 44px;
  height: 44px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-menu-button__lines span {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #4a2a18;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sp-menu-button__lines span:nth-child(1) {
  transform: translateY(-6px);
}

.sp-menu-button__lines span:nth-child(2) {
  transform: translateY(0);
}

.sp-menu-button__lines span:nth-child(3) {
  transform: translateY(6px);
}

.sp-menu-button.is-open .sp-menu-button__lines span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.sp-menu-button.is-open .sp-menu-button__lines span:nth-child(2) {
  opacity: 0;
}

.sp-menu-button.is-open .sp-menu-button__lines span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* =========================================
   Mobile Menu
========================================= */

/* hidden属性があるときは必ず非表示 */
.mobile-menu[hidden] {
  display: none !important;
}

/* 初期状態（hiddenが外れた直後） */
.mobile-menu {
position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  
  overflow-y: auto; /* 縦スクロールを許可 */
  -webkit-overflow-scrolling: touch; /* スマホでの滑らかなスクロール */
  
  /* ★修正：ヘッダーの高さ(70px)を引いた分をメニューの高さにする */
  height: calc(100dvh - 70px); 
  
  background: #fff;
  border-top: 1px solid rgba(74, 42, 24, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.32s ease,
    visibility 0.32s ease;
}

/* 開いた状態 */
.mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.is-menu-open {
  overflow: hidden;
}

.mobile-menu__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.mobile-menu__nav {
  margin-bottom: 22px;
}

.mobile-menu__nav,
.mobile-menu__actions {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.28s ease,
    transform 0.32s ease;
}

.mobile-menu.is-active .mobile-menu__nav,
.mobile-menu.is-active .mobile-menu__actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-active .mobile-menu__actions {
  transition-delay: 0.04s;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__list li {
  border-bottom: 1px solid rgba(74, 42, 24, 0.08);
}

.mobile-menu__list li a {
  display: block;
  padding: 16px 4px;
  color: #4a2a18;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.mobile-menu__list li.is-current a {
  color: #ef6c2f;
}

.mobile-menu__actions {
  display: grid;
  gap: 12px;
}

.mobile-menu__tel {
  display: block;
  text-decoration: none;
  background: #f7f5f2;
  color: #4a2a18;
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.mobile-menu__action-label {
  display: block;
  font-size: 11px;
  color: rgba(74, 42, 24, 0.62);
  letter-spacing: 0.03em;
}

.mobile-menu__action-main {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-menu__action-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(74, 42, 24, 0.68);
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ef6c2f;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(239, 108, 47, 0.16);
}

/* =========================================================
   レスポンシブ：ヘッダーの整理（スマホ・タブレット用）
========================================================= */

/* 1. タブレットサイズ（1200px以下）：ナビを消して2カラム構成へ */
@media screen and (max-width: 1200px) {
    .site-header__inner {
        /* 【重要】3カラムから、左右両端の2カラム構成へ変更 */
        display: flex;
        justify-content: space-between;
        padding: 0 24px;
    }
    
    /* 画面に入りきらない中央ナビと電話番号を非表示 */
    .site-header__nav,
    .site-header__tel {
        display: none !important;
    }

    /* 右側のボタンとハンバーガーの並び */
    .site-header__actions {
        gap: 16px;
    }

    /* ハンバーガーメニューのボタンを表示 */
    .sp-menu-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
    .sp-menu-button__lines span {
        display: block;
        width: 28px;
        height: 3px;
        margin: 6px 0;
        background: var(--color-brown);
        border-radius: 2px;
    }
}

/* 2. スマホサイズ（768px以下）：ロゴやボタンをコンパクトに微調整 */
@media screen and (max-width: 768px) {
    .site-header {
        height: 70px; /* ヘッダー自体の高さを少しスッキリさせる */
    }
    .site-header__inner {
        padding: 0 16px;
    }
    /* CTAボタン（見学・ご相談）をスマホ用にコンパクト化 */
    .site-header__cta {
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
    .site-header__cta-icon {
        font-size: 16px !important;
        margin-right: 2px !important;
    }
}
/* =========================================================
   6. Footer & CTA (共通)
========================================================= */
/* =========================================================
   CTAセクション（お問い合わせエリア）
========================================================= */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
	color:#fff;
}
@media screen and (max-width: 768px) {
	.cta-section {
		padding: 60px 0;
	}
}
.cta-section .cta-title{
	color:#fff;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(74, 43, 24, 0.88); /* 焦げ茶色でしっかり覆う */
    z-index: 1;
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.cta-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}
.cta-desc {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
}
.cta-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.cta-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.cta-tel {
    background: #fff;
    color: var(--color-brown);
    width: 320px;
}
.cta-tel-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
}
.cta-tel-num {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cta-web {
    background: var(--color-primary);
    color: #fff;
    width: 320px;
    font-size: 16px;
    font-weight: 700;
    flex-direction: row;
    gap: 8px;
}

/* =========================================================
   フッター
========================================================= */
.footer {
    border-top: 4px solid var(--color-brown); /* 極太ボーダーで「サイトの終わり・土台」を強調 */
    background-color: #fdfaf5; /* ほんのり温かみのあるアイボリー背景 */
    padding: 80px 0 24px;
}

/* --- レイアウト --- */
.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}
.footer-left {
    max-width: 400px;
}
.footer-logo img {
    width: 180px; /* 視認性を担保するサイズ */
    height: auto;
    margin-bottom: 24px;
}
@media screen and (max-width: 767px) {
	.footer-logo img {
		margin: 0px auto 24px;
	}
}
.footer-info {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

/* --- 電話番号のタイポグラフィ強化 --- */
.footer-tel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.footer-icon {
    font-size: 32px;
    color: var(--color-primary); /* アイコンを大きく、ブランドカラーで目立たせる */
}
.footer-tel-num {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-brown);
    letter-spacing: 0.02em;
}

/* --- 右側：ナビゲーション --- */
.footer-nav-wrap {
    display: flex;
    gap: 80px;
}
.footer-nav-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-brown);
    border-bottom: 3px solid var(--color-primary); /* 下線でポップに強調 */
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 24px;
    display: inline-block;
}
.footer-menu-list {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-menu-list li {
    margin-bottom: 16px;
}
.footer-menu-list a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}
/* ポップなオレンジの丸ポッチ */
.footer-menu-list a::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 12px;
    transition: transform 0.2s;
}
.footer-menu-list a:hover {
    color: var(--color-primary);
    transform: translateX(4px); /* ホバーで少し右に動かすギミック */
}
.footer-menu-list a:hover::before {
    transform: scale(1.2);
}

/* --- コピーライト --- */
.footer-bottom {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-light);
    border-top: 2px dashed var(--color-border); /* 実線ではなく破線で遊び心を残す */
    padding-top: 24px;
}

/* --- スマホ用レスポンシブ --- */
@media screen and (max-width: 768px) {
    .footer { padding: 56px 0 24px; }
    .footer-inner { flex-direction: column; gap: 48px; }
    .footer-nav-wrap { flex-direction: column; gap: 40px; }
    .footer-tel-num { font-size: 28px; }
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .cta-title { font-size: 5.3vw; }
    .cta-action { flex-direction: column; gap: 16px; }
    .cta-btn { width: 100%;}
/*     .footer-inner { flex-direction: column; gap: 48px; }
    .footer-left { width: 100%; }
    .footer-nav-wrap { flex-direction: column; gap: 40px; } */
}

/* =========================================================
   7. Utilities (補助クラス)
========================================================= */
.u-pc-only { display: block; }
.u-sp-only { display: none; }

/* =========================================================
   8. Responsive (共通レスポンシブ)
========================================================= */
@media screen and (max-width: 1100px) {
    .header-right .global-nav, .header-right .header-cta { display: none; }
    .sp-menu-icon { display: block; margin-left: auto;}
    .header-inner { padding: 0 20px; }
}

@media screen and (max-width: 768px) {
    .u-pc-only { display: none; }
    .u-sp-only { display: block; }
    .section-title { font-size: 27px; }
    
    .header-inner { height: 70px; padding: 0 20px; }
    .logo img { height: 50px; }

    .cta-banner { padding: 60px 20px; }
    .cta-title { font-size: 24px;　color: #fff;}
    .cta-action { flex-direction: column; gap: 16px; }
    .cta-tel { font-size: 24px; padding: 16px; }
    .cta-web { padding: 16px; width: 100%; }

    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-left { width: 100%; }
    .footer-nav-wrap { flex-direction: column; gap: 30px; width: 100%; justify-content: flex-start; }
}

/* =========================================================
   9. トップページ (front-page.php) 専用スタイル ★追加済
========================================================= */
.fv { position: relative; height: calc(100vh - 90px); min-height: 600px; display: flex; align-items: center; padding: 0; overflow: hidden; }
.fv-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.fv-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: fadeSlider 18s infinite; }
/* =========================================================
   FVスライダー 画像設定（PC用）
========================================================= */
.fv-slide:nth-child(1) { 
    background-image: url('/wp-content/themes/rise/images/index_hero.png'); 
    animation-delay: 0s; 
}
.fv-slide:nth-child(2) { 
    background-image: url('/wp-content/themes/rise/images/index_hero02.png'); 
    animation-delay: 6s; 
}
.fv-slide:nth-child(3) { 
    background-image: url('/wp-content/themes/rise/images/index_hero03.png'); 
    animation-delay: 12s; 
}

/* =========================================================
   FVスライダー 画像出し分け（スマホ用：768px以下）
========================================================= */
@media screen and (max-width: 768px) {
    .fv-slide:nth-child(1) { 
        background-image: url('/wp-content/themes/rise/images/index_hero_sp.png'); 
    }
    .fv-slide:nth-child(2) { 
        background-image: url('/wp-content/themes/rise/images/index_hero_sp02.png'); 
    }
    .fv-slide:nth-child(3) { 
        background-image: url('/wp-content/themes/rise/images/index_hero_sp03.png'); 
    }
}
@keyframes fadeSlider { 0% { opacity: 0; transform: scale(1.05); } 5% { opacity: 1; transform: scale(1.05); } 33% { opacity: 1; transform: scale(1); } 38% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.fv-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: linear-gradient(90deg, rgba(77, 37, 11, 0.85) 0%, rgba(77, 37, 11, 0.5) 45%, rgba(0,0,0,0) 100%); }
.fv-content { position: relative; z-index: 10; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: flex-start; }
.fv-text-wrap { max-width: 600px; color: #fff; }
.fv-label { font-size: 13px; font-weight: 700; margin-bottom: 24px; display: inline-block; letter-spacing: 0.1em; border: 1px solid rgba(255,255,255,0.6); padding: 8px 20px; border-radius: 50px;}
.fv-title { font-size: 46px; font-weight: 900; line-height: 1.4; margin-bottom: 24px; letter-spacing: 0.05em; text-shadow: 0 4px 12px rgba(0,0,0,0.2); color: #fff; }
.fv-desc { font-size: 16px; line-height: 2; margin-bottom: 40px; font-weight: 500; text-shadow: 0 2px 8px rgba(0,0,0,0.2); opacity: 0.9; color: #fff;}
.fv-cta { display: flex; gap: 16px; align-items: flex-start; }
.fv-cta-tel { display: flex; flex-direction: column; }
.fv-cta-tel span { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 8px; text-align: center; }
.fv-btn-outline { background-color: #fff; color: var(--color-brown); display: inline-flex; align-items: center; justify-content: center; padding: 18px 48px; border-radius: 50px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.05em; border: none;}
.fv-btn-outline:hover { background-color: var(--color-bg-light); transform: translateY(-2px);}
.fv-label,
.fv-title,
.fv-desc {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6); /* 自然な影をつけてコントラストを確保 */
}
/* =========================================================
   FV アニメーション & アイコン調整
========================================================= */

/* Material Symbolsの縦位置調整 */
.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
	margin-right:5px;
}
.fv-cta-icon{
	font-size:20px;
}
.fv-cta a.btn,
.fv-cta a.fv-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
	width: auto;
}
@media screen and (max-width: 768px) {
	.fv-cta a.btn,
	.fv-cta a.fv-btn-outline {
		padding:14px 11px;
	}
}
.p-service-card__num .material-symbols-outlined {
    font-size: 80px;
    color: var(--color-bg-light);
    transform: none; /* 0.偶数番目の反転をリセット */
}
/* =========================================================
   FVアニメーション（ポップ＆バウンス）
========================================================= */

/* 1. タイトルのアニメーション */
.fv-title-line {
    display: block;
    /* 以前あった overflow: hidden; を削除し、バウンスのはみ出しを許容 */
}
.fv-title-inner {
    display: inline-block;
    opacity: 0;
    /* 初期位置：少し小さく、下へ下げ、少し左に傾ける */
    transform: scale(0.8) translateY(40px) rotate(-3deg);
    /* cubic-bezierでスタンプを押したような「弾力」を出す */
    animation: textPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 行ごとの時間差（スタッガー）設定 */
.fv-title-line:nth-child(1) .fv-title-inner { animation-delay: 0.1s; }
.fv-title-line:nth-child(2) .fv-title-inner { animation-delay: 0.3s; }
.fv-title-line:nth-child(3) .fv-title-inner { animation-delay: 0.5s; }

@keyframes textPop {
    0% { transform: scale(0.8) translateY(40px) rotate(-3deg); opacity: 0; }
    100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
}

/* 「できる」の部分に蛍光ペンのハイライトアニメーションを追加 */
.fv-title-inner .text-accent { 
    color: var(--color-primary); 
    position: relative;
    display: inline-block;
    z-index: 1;
}
.fv-title-inner .text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    width: calc(100% + 8px);
    height: 40%;
    background-color: rgba(255, 255, 255, 0.9); /* 白抜きのマーカー */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left; /* 左から右へ線を引く */
    /* 文字が出終わった後にサッと引かれる */
    animation: highlightSwipe 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}
@keyframes highlightSwipe {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* 2. その他の要素（ラベル、説明文、ボタン）のアニメーション */
.fv-anim-item {
    opacity: 0;
}
/* ラベルと説明文は控えめなフェードアップ */
.fv-label.fv-anim-item {
    transform: translateY(20px);
    animation: fvFadeUp 0.8s ease forwards 0.8s;
}
.fv-desc.fv-anim-item {
    transform: translateY(20px);
    animation: fvFadeUp 0.8s ease forwards 1.0s;
}
/* CTAボタン群は、ドンッとスタンプのように飛び出させる */
.fv-cta.fv-anim-item {
    transform: scale(0.5);
    animation: stampPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.2s;
}

@keyframes fvFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes stampPop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
/* =========================================================
   TOPのお知らせ
========================================================= */
.news{
	padding:80px 0px 60px;
}
.news-container { display: flex; gap: 80px; align-items: flex-start; border-top: 2px solid var(--color-brown); padding-top: 40px;}
.news-header { flex: 0 0 200px; }
.news-header h2 { font-size: 24px; font-weight: 900; color: var(--color-brown); letter-spacing: 0.05em;}
.news-list-wrap { flex: 1; }
.news-item { display: flex; align-items: baseline; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.news-date {font-family: var(--font-en); font-weight: 700; color: var(--color-primary); font-size: 14px; }
@media screen and (min-width: 768px) {
	.news-date { flex: 0 0 120px;
	}
	.news-item {
		padding-top:24px;
	}
}
.news-title { flex: 1; font-weight: 500; font-size: 15px;}
.news-title a:hover { color: var(--color-primary); text-decoration: underline;}
.news-more { display: block; text-align: right; margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--color-brown); }
.news-more a { border-bottom: 1px solid var(--color-brown); transition: all 0.3s;}
.news-more a:hover { color: var(--color-primary); border-color: var(--color-primary);}
/* =========================================================
   お知らせリスト：カテゴリーラベル
========================================================= */
.news-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 日付と同じテーマカラー（オレンジ色）を背景にする */
    background-color: var(--color-primary, #f07b3f); 
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px; /* 少し角を丸くする */
    margin-right: 16px; /* ★ここで右側のタイトルとの間に余白を作る★ */
    white-space: nowrap; /* ラベルのテキストが途中で改行されるのを防ぐ */
    vertical-align: middle;
}
/* =========================================================
   TOPのらいずがお役に立てること
========================================================= */
.features{
	padding:60px 0px;
}
.features-container { display: flex; align-items: center; gap: 60px; }
.features-img { flex: 0 0 45%; }
.features-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm);}
.features-content { flex: 1; }
.features-intro { font-size: 16px; font-weight: 500; color: var(--color-text-main); line-height: 2; margin-bottom: 40px;}
.feature-list { display: flex; flex-direction: column; gap: 32px; }
.feature-item { display: flex; gap: 24px; align-items: flex-start; }
.feature-num { font-family: var(--font-en); font-size: 32px; font-weight: 900; color: transparent !important; /* 中身の色を抜く */
    -webkit-text-stroke: 2px var(--color-primary) !important; /* オレンジの太い縁取り */
    opacity: 0.3; /* 少し透けさせて背景に馴染ませる */ line-height: 1;}
.feature-text-wrap { flex: 1; }
.feature-title { font-size: 18px; font-weight: 700; color: var(--color-brown); margin-bottom: 8px; line-height: 1.4;}
.feature-desc { font-size: 14px; color: var(--color-text-light); line-height: 1.8;}

.greeting { position: relative; background-size: cover; background-position: center; background-attachment: fixed; background-image: url('https://images.unsplash.com/photo-1552058544-f2b08422138a?q=80&w=2000&auto=format&fit=crop');}
.greeting-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); z-index: 1; }
.greeting-container { display: flex; align-items: center; gap: 80px; position: relative; z-index: 10;}
.greeting-img-wrap { flex: 0 0 40%; }
.greeting-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-hover); background-image: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?q=80&w=800&auto=format&fit=crop'); background-size: cover; background-position: center;}
.greeting-content { flex: 1; }
.greeting-lead { font-size: 28px; font-weight: 900; color: var(--color-brown); margin-bottom: 24px; line-height: 1.5; }
.greeting-text { font-size: 15px; line-height: 2.2; margin-bottom: 40px; font-weight: 500;}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(232, 91, 37, 0.3);}
.service-img { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; border-bottom: 1px solid var(--color-border);}
.service-body { padding: 32px 24px; flex: 1; display: flex; flex-direction: column; }
.service-label { font-size: 12px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; display: block; letter-spacing: 0.1em;}
.service-title { font-size: 20px; font-weight: 700; color: var(--color-brown); margin-bottom: 16px; }
.service-desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; flex: 1;}
.service-link { font-weight: 700; font-size: 14px; color: var(--color-brown); display: inline-flex; align-items: center; align-self: flex-end;}
.service-link::after { content: '→'; margin-left: 8px; color: var(--color-primary); font-size: 16px;}

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow-step { background: #FFFDF8; border: 1px solid rgba(232, 91, 37, 0.15); padding: 40px 24px; border-radius: 16px; text-align: center; position: relative;}
.flow-step:not(:last-child)::after { content: '▶'; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); font-size: 18px; color: var(--color-primary); opacity: 0.5; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-family: var(--font-en); font-size: 16px; font-weight: 800; color: #fff; background: var(--color-primary); border-radius: 50%; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(232, 91, 37, 0.3); }
.flow-title { font-size: 16px; font-weight: 700; color: var(--color-brown); margin-bottom: 12px; }
.flow-desc { font-size: 13px; line-height: 1.8; text-align: left; }

.insta-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.insta-account { display: flex; align-items: center; gap: 16px; }
.insta-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--color-border);}
.insta-info strong { display: block; font-size: 16px; color: var(--color-brown); font-weight: 700; }
.insta-info span { font-size: 13px; color: var(--color-text-light); font-family: var(--font-en); }
.insta-btn { font-weight: 700; font-size: 13px; color: var(--color-brown); border: 1px solid var(--color-brown); padding: 8px 24px; border-radius: 50px; transition: all 0.3s;}
.insta-btn:hover { background: var(--color-brown); color: #fff;}
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.insta-item { aspect-ratio: 1 / 1; background-color: #eee; overflow: hidden; border-radius: 8px;}
.insta-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.insta-item:hover .insta-img { transform: scale(1.05); }

.faq-wrapper { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--color-border);}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { padding: 24px 0; cursor: pointer; font-weight: 700; color: var(--color-brown); font-size: 15px; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: "Q."; font-family: var(--font-en); color: var(--color-primary); margin-right: 16px; font-size: 18px;}
.faq-q::after { content: "＋"; color: var(--color-text-light); font-size: 16px; font-weight: normal; transition: transform 0.3s; }
details[open] .faq-q::after { content: "－"; transform: rotate(180deg); }
.faq-a { padding: 0 0 32px 40px; font-size: 14px; line-height: 1.8; position: relative; }

@media screen and (max-width: 768px) {
    .fv { height: auto; min-height: 100vh; padding: 100px 0 60px; align-items: flex-end;}
    .fv-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(74, 43, 24, 0.8) 100%); width: 100%;}
    .fv-content { padding: 0 20px; }
    .fv-text-wrap { margin: 0; max-width: 100%; padding: 40px 10px;}
    .fv-title { font-size: 8vw; }
    .fv-cta {width: 100%; }
    .fv-cta .btn { width: 100%; }

    .news-container { flex-direction: column; gap: 20px; padding-top: 20px;}
    .news-header { flex: none; width: 100%; border-bottom: 2px solid var(--color-brown); padding-bottom: 16px;}
    .news-item { flex-direction: column; gap: 8px; padding: 16px 0;}

    .features-container { flex-direction: column; gap: 40px; }
    .features-img { width: 100%; }

    .greeting-container { flex-direction: column; gap: 40px; }
    .greeting-img-wrap { width: 60%; margin: 0 auto; }
    .greeting-lead { font-size: 24px; }

    .service-grid { grid-template-columns: 1fr; gap: 40px; }

    .flow-grid { flex-direction: column; gap: 16px; }
    .flow-step:not(:last-child)::after { content: '▼'; top: auto; bottom: -16px; right: 50%; transform: translateX(50%); font-size: 14px;}

    .insta-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   下層ページ共通 (サブページヘッダー・パンくずリスト)
========================================================= */
.page-header { 
    position: relative; 
    padding: 160px 0 120px; 
    text-align: center; 
    /* どのページでも馴染む、クリーンで温かい背景画像 */
    background-image: url('/wp-content/themes/rise/images/common-header.png');
    background-size: cover; 
    background-position: center;
}
.page-header-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(74, 43, 24, 0.75); /* ブランドカラーの濃茶でオーバーレイ */
    z-index: 1; 
}
.page-header-content { 
    position: relative; 
    z-index: 2; 
    color: #fff;
}
.page-title { 
    font-size: 40px; 
    font-weight: 900; 
    letter-spacing: 0.1em; 
    margin-bottom: 16px; 
    color: #fff;
}
.page-subtitle { 
    font-size: 16px; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    color: rgba(255,255,255,0.8);
}

.breadcrumbs { 
    padding: 16px 20px; 
    font-size: 12px; 
    font-weight: 500;
    color: var(--color-text-light); 
    max-width: 1100px; 
    margin: 0 auto; 
    border-bottom: 1px solid var(--color-border);
}
.breadcrumbs a { 
    color: var(--color-brown); 
    transition: color 0.3s; 
}
.breadcrumbs a:hover { 
    color: var(--color-primary); 
    text-decoration: underline;
}
.breadcrumbs span { 
    margin: 0 8px; 
    color: #ccc; 
}
.message-sign {
    text-align: right;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border); /* 上に薄い線を入れて区切る */
}
.message-sign__role {
    display: block;
    font-size: 13px;
    color: var(--color-text-main);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.message-sign__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-brown);
    letter-spacing: 0.1em;
}
/* =========================================================
   ABOUTページ：脱ノーコード・温かみのあるレイアウト
========================================================= */

/* 1. PHILOSOPHY：画像に有機的なズレ（シェイプ）を足す */
.p-philosophy-inner { display: flex; gap: 80px; align-items: center; }
.p-philosophy-content { flex: 1; }
.p-philosophy-text { font-size: 15px; line-height: 2.2; color: var(--color-text-main); }
.p-philosophy-text p { margin-bottom: 24px; }
.p-philosophy-img-wrap {
	flex: 0 0 45%; position: relative;
}
@media screen and (max-width: 768px) {
	.p-philosophy-img-wrap {
	flex: 0 0 100%;
		max-width:75%;
		position: relative;
}
}
/* 裏にズレたオレンジの角丸を敷いて立体感と温かみを出す */
.p-philosophy-img-wrap::before {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 100%; height: 100%;
    background: rgba(224, 98, 38, 0.1); /* プライマリーカラーの極薄 */
    border-radius: 40px 8px 40px 8px; z-index: 0;
}
.p-philosophy-img { position: relative; z-index: 1; border-radius: 40px 8px 40px 8px; overflow: hidden; box-shadow: var(--shadow-hover); }
.p-philosophy-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }

/* =========================================================
   2. OUR POLICY：写真付きマニフェスト（宣言）型レイアウト
========================================================= */

/* 縦積み（Flex Column）は前回提案のままキープ */
.p-policy-list {
    max-width: 900px; /* 写真が入るため、横幅を少し広く取る */
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 48px; /* カード同士の縦の余白 */
}

/* 1行分のカードデザイン（写真対応） */
.p-policy-row {
    background: #fff;
    border-radius: 24px 8px 24px 8px; /* 有機的な非対称角丸はキープ */
    padding: 40px; /* パディングを適正化 */
    box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05);
    display: flex;
    align-items: center; /* 写真が入るので垂直中央揃え */
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* 左側のアクセントライン（前回と同じ） */
.p-policy-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 8px;
    background: var(--color-primary);
}

/* アイコンと数字のエリア（左側） */
.p-policy-row__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 0 0 60px;
}
.p-policy-row__num {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background: var(--color-brown);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(74, 43, 24, 0.2);
}
.p-policy-row__icon {
    font-size: 40px;
    color: var(--color-primary);
}

/* テキストエリア（中央） */
.p-policy-row__body {
    flex: 1;
}
.p-policy-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 12px;
    line-height: 1.4;
}
.p-policy-text {
    font-size: 16px; /* あなたが設定した美しい16pxをそのまま活かす */
    line-height: 1.8;
    color: var(--color-text-main);
    text-align: left; /* 左揃えにして可読性を最大化 */
}

/* 写真エリア（右側） */
.p-policy-row__photo-wrap {
    flex: 0 0 32%; /* 写真の横幅を全体の約3分の1に */
    aspect-ratio: 16/10; /* 写真の比率を横長に */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm); /* 優しい影 */
}
.p-policy-row__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を綺麗に枠内に収める */
    display: block;
}

/* SPレスポンシブ（縦並びに切り替え） */
@media screen and (max-width: 768px) {
    .p-policy-list { gap: 32px; }
    .p-policy-row {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        align-items: flex-start; /* スマホでは左揃え */
    }
    .p-policy-row__head {
        flex-direction: row; /* スマホでは数字とアイコンを横並びに */
        flex: none;
        width: 100%;
        border-bottom: 1px dashed var(--color-border);
        padding-bottom: 16px;
        gap: 12px;
        justify-content: center; /* スマホでは中央揃え */
    }
    .p-policy-row__num { width: 40px; height: 40px; font-size: 16px; }
    .p-policy-row__icon { font-size: 32px; }
    .p-policy-title { font-size: 18px; text-align: center; } /* スマホではタイトルを中央揃え */
    .p-policy-row__photo-wrap {
        width: 100%; /* スマホでは写真を横幅いっぱいに */
        flex: none;
        order: 2; /* 写真をテキストの下へ配置 */
    }
}

/* 3. HISTORY：背景画像を敷いてドラマチックに */
.p-about-history {
    position: relative; padding: 120px 0;
    /* ここに温かい写真を入れる。手をつなぐ画像などのURL */
    background-image: url('/wp-content/themes/rise/images/enkaku.png');
    background-size: cover; background-position: center; background-attachment: fixed;
}
/* 写真の上に濃い茶色のフィルターをかけて文字を読みやすくする */
.p-history-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(74, 43, 24, 0.85); z-index: 1; }
.p-about-history .container { position: relative; z-index: 2; }
.p-history-timeline { max-width: 700px; margin: 60px auto 0; border-left: 2px solid rgba(255,255,255,0.2); padding-left: 40px; }
.p-history-item { position: relative; margin-bottom: 48px; }
.p-history-item::before {
    content: ''; position: absolute; left: -47px; top: 4px;
    width: 12px; height: 12px; background: var(--color-primary);
    border-radius: 50%; box-shadow: 0 0 0 4px rgba(74, 43, 24, 0.85);
}
.p-history-year { font-family: var(--font-en); font-size: 20px; font-weight: 900; color: var(--color-primary); margin-bottom: 8px; letter-spacing: 0.1em; }
.p-history-content { font-size: 16px; font-weight: 700; color: #fff; }

/* 4. OVERVIEW：テーブルの装飾 */
.p-overview-wrap { max-width: 900px; margin: 60px auto 0; background: #fff; padding: 48px; border-radius: 24px 8px 24px 8px; box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05); }
.p-overview-table { width: 100%; border-collapse: collapse; }
.p-overview-table th { width: 25%; padding: 24px 16px; border-bottom: 1px dashed var(--color-border); text-align: left; font-weight: 700; color: var(--color-brown); vertical-align: top; }
.p-overview-table td { padding: 24px 16px; border-bottom: 1px dashed var(--color-border); color: var(--color-text-main); font-weight: 500; line-height: 1.8; }
.p-overview-table tr:last-child th, .p-overview-table tr:last-child td { border-bottom: none; }

/* 5. ACCESS & 導線 */
.p-access-wrap { max-width: 900px; margin: 60px auto 0; background: #fff; padding: 24px; border-radius: 24px 8px 24px 8px; box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05); }
.p-access-map { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.p-access-info { text-align: center; }
.p-access-name { font-weight: 900; color: var(--color-brown); font-size: 18px; margin-bottom: 8px; }
.p-access-address { font-size: 15px; color: var(--color-text-main); margin-bottom: 4px; }
.p-access-note { font-size: 13px; color: var(--color-text-light); }
.p-access-action { text-align: center; margin-top: 60px; }
.p-access-action p { font-size: 14px; color: var(--color-text-main); margin-bottom: 16px; }
.p-access-action .btn { display: inline-flex; align-items: center; justify-content: center; }
.p-access-action .material-symbols-outlined { margin-left: 8px; font-size: 18px; }

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
	.p-about-history{
		padding:60px 0px;
	}
    .p-philosophy-inner { flex-direction: column; gap: 40px; }
    .p-policy-grid { grid-template-columns: 1fr; gap: 24px; }
    .p-history-timeline { padding-left: 30px; }
    .p-history-item::before { left: -36px; }
    .p-overview-wrap { padding: 24px 16px; }
    .p-overview-table th, .p-overview-table td { display: block; width: 100%; padding: 16px 8px; }
    .p-overview-table th { padding-bottom: 4px; border-bottom: none; }
}

/* -------------------------------------
   SP用 レスポンシブ追加 (既存の@media screen and (max-width: 768px) の中に追記してください)
------------------------------------- */
@media screen and (max-width: 768px) {
    .page-header { padding: 120px 0 80px; }
    .page-title { font-size: 28px; }
    
    /* 私たちについてページ専用SP調整 */
    .message-container { flex-direction: column-reverse !important; gap: 40px !important; }
    .message-img-wrap { width: 100% !important; }
    .message-title { font-size: 24px !important; }
    
    .overview-table-wrap { padding: 24px 16px !important; }
    .overview-table th, .overview-table td { display: block; width: 100% !important; padding: 16px 0 !important; }
    .overview-table th { border-bottom: none !important; padding-bottom: 4px !important; }
    
    .history-item { flex-direction: column; padding-left: 24px; margin-bottom: 32px !important;}
    .history-year { text-align: left !important; padding: 0 0 8px 0 !important; flex: none !important;}
    .history-content { padding-left: 0 !important; }
    .history-timeline > div:first-child { left: 6px !important; } /* 縦線を左に寄せる */
    .history-dot { left: 3px !important; top: 4px !important; }
}

/* =========================================================
   共通コンポーネント (タイムライン・スケジュール)
========================================================= */
.about-values {
    padding: 120px 0;
}

.about-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.about-values__item {
    height: 100%;
    padding: 36px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-values__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(232, 117, 35, 0.25);
}

.about-values__title {
    position: relative;
    margin: 0 0 18px;
    padding-top: 18px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: var(--color-brown);
}

.about-values__title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-primary);
}

.about-values__text {
    margin: 0;
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
    color: var(--color-text-main);
}

/* section--narrow を使う場合の幅調整 */
.section--narrow .container {
    max-width: 1100px;
}

/* タブレット */
@media screen and (max-width: 1024px) {
    .about-values {
        padding: 100px 0;
    }

    .about-values__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 48px;
    }

    .about-values__item {
        padding: 32px 24px;
    }

    .about-values__title {
        font-size: 20px;
    }
}

/* スマホ */
@media screen and (max-width: 767px) {
    .about-values {
        padding: 72px 0;
    }

    .about-values__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .about-values__item {
        padding: 26px 20px;
        border-radius: 12px;
    }

    .about-values__title {
        margin-bottom: 14px;
        padding-top: 14px;
        font-size: 18px;
        line-height: 1.6;
    }

    .about-values__title::before {
        width: 36px;
        height: 3px;
    }

    .about-values__text {
        font-size: 14px;
        line-height: 1.9;
    }
}

.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 0; left: 120px; width: 2px; background: var(--color-border); }

.tl-item { display: flex; margin-bottom: 48px; position: relative; }
.tl-item:last-child { margin-bottom: 0; }
.tl-time { flex: 0 0 120px; font-family: var(--font-en); font-weight: 900; font-size: 20px; color: var(--color-border); text-align: right; padding-right: 40px; padding-top: 2px; transition: color 0.3s;}
.tl-dot { position: absolute; left: 117px; top: 12px; width: 8px; height: 8px; background: var(--color-brown); border-radius: 50%; box-shadow: 0 0 0 6px var(--color-bg-light); z-index: 2; transition: background 0.3s;}
.tl-item.is-highlight .tl-time, .tl-item:hover .tl-time { color: var(--color-primary); }
.tl-item.is-highlight .tl-dot, .tl-item:hover .tl-dot { background: var(--color-primary); box-shadow: 0 0 0 6px #fff;}

.tl-content { flex: 1; padding-left: 60px; }
.tl-title { font-size: 18px; font-weight: 700; color: var(--color-brown); margin-bottom: 12px; line-height: 1.4;}
.tl-desc { font-size: 14px; color: var(--color-text-main); line-height: 1.8; font-weight: 500; }
@media screen and (max-width: 768px) {
/* 多機能事業所・タイムライン専用SP調整 */
    .intro-container, .lunch-container { flex-direction: column !important; gap: 40px !important; }
    .intro-img-wrap, .lunch-img-wrap { width: 100% !important; }
    .activity-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    
    .timeline::before { left: 24px; }
    .tl-item { flex-direction: column; padding-left: 56px; margin-bottom: 40px; }
    .tl-time { text-align: left; padding: 0 0 8px 0; flex: none;}
    .tl-dot { left: 21px; top: 4px; box-shadow: 0 0 0 6px #fff !important;}
    .tl-content { padding-left: 0; }
    
    .c-card { flex-direction: column !important; border-radius: 24px 8px 24px 8px; box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05);}
    .office-img-wrap { width: 100% !important; }
    .office-img { aspect-ratio: 16/9; min-height: auto !important; }
    .office-content { padding: 24px !important; }
}

/* =========================================================
   サービス詳細ページ（多機能事業所・グループホーム等 共通）
========================================================= */

/* 1. CONCEPT：有機的なレイアウト */
.p-service-intro__inner {
    display: flex;
    gap: 80px;
    align-items: center;
}
.p-service-intro__content { flex: 1; }
.p-service-intro__text p { margin-bottom: 24px; }
.p-service-intro__img-wrap {
    flex: 1;
    position: relative;
}
/* 画像の後ろに温かい色の装飾を敷く */
.p-service-intro__img-wrap::before {
    content: '';
    position: absolute;
    top: -20px; left: 20px;
    width: 100%; height: 100%;
    background: rgba(224, 98, 38, 0.1);
    border-radius: 40px 8px 40px 8px;
    z-index: 0;
}
.p-service-intro__img-wrap img {
    position: relative;
    width: 100%;
    border-radius: 40px 8px 40px 8px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

/* 2. ACTIVITIES：温かみのあるカードデザイン */
.p-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.p-activity-card {
    background: #fff;
    border-radius: 24px 8px 24px 8px; /* ABOUTページと同じ非対称の角丸 */
    overflow: hidden;
    transition: transform 0.3s;
	border: 2px solid var(--color-brown) !important; /* 全体に太い縁取りを追加してロゴに寄せる */
    box-shadow: 6px 6px 0 rgba(224, 98, 38, 0.2) !important; /* プライマリーカラー（オレンジ）のくっきりした影 */
}
.p-activity-card:hover {
    transform: translateY(-8px);
}
.p-activity-card__img img {
    width: 100%;
    height: 200px;
	border-radius: 12px 4px 12px 4px !important;
    object-fit: cover;
}
.p-activity-card__body {
    padding: 32px;
}
.p-activity-card__title {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-bg-light); /* さりげない区切り線 */
    padding-bottom: 12px;
}
.p-activity-card__text {
    font-size: 14px; /* ここはカード内なので少し小さめでOK */
}

/* 3. OFFICES：事務っぽさを消したスペック表 */
.p-office-detail {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 2px dashed var(--color-border); /* 実線から破線にして柔らかく */
}
.p-office-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.p-office-detail__img {
    flex: 0 0 45%;
}
.p-office-detail__img img {
    width: 100%;
    border-radius: 24px 8px 24px 8px;
    box-shadow: var(--shadow-sm);
}
.p-office-detail__info {
    flex: 1;
}
.p-office-detail__name {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}
.p-office-detail__name::before {
    content: '';
    display: inline-block;
    width: 8px; height: 24px;
    background: var(--color-primary);
    border-radius: 4px;
    margin-right: 12px;
}
/* テーブル内の微調整 */
.p-office-table th { padding: 16px; }
.p-office-table td { padding: 16px; }
.p-office-detail__action {
    margin-top: 32px;
}
.p-office-detail__action .btn-outline {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--color-brown);
    color: var(--color-brown);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}
.p-office-detail__action .btn-outline:hover {
    background: var(--color-brown);
    color: #fff;
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
	.p-office-table th { padding-bottom: 0px; }
    .p-service-intro__inner { flex-direction: column; gap: 40px; }
    .p-activity-grid { grid-template-columns: 1fr; gap: 24px; }
    .p-office-detail { flex-direction: column; gap: 32px; margin-bottom: 60px; padding-bottom: 60px; }
    .p-office-detail__img { flex: none; width: 100%; }
}

/* =========================================================
   グループホーム：「脱・京都」元気でガッツのあるデザイン
========================================================= */
.p-gh-schedule{
	padding:45px 0px;
}
/* --- SCHEDULE（タイムライン） --- */
.p-schedule-wrap {
    max-width: 600px; /* 横幅をギュッと縮めて密度を上げる */
    margin: 0 auto;
    background: #FFFCF9; /* ほんのり温かい背景色 */
    padding: 32px 40px; /* 余白を縮小 */
    border-radius: 16px;
    border: 3px solid var(--color-primary); /* 影を消して太い枠線でガッツを出す */
}
.p-schedule-list {
    list-style: none; padding: 0; margin: 0; position: relative;
}
.p-schedule-list::before {
    content: ''; position: absolute;
    top: 10px; bottom: 10px; left: 74px;
    width: 4px; /* 線を太く */
    background: var(--color-bg-light); /* 線を少し目立たせる */
    border-radius: 2px;
}
.p-schedule-item {
    display: flex; position: relative; margin-bottom: 32px; /* 間隔を詰める */
}
.p-schedule-item:last-child { margin-bottom: 0; }
.p-schedule-item::before {
    content: ''; position: absolute;
    left: 69px; top: 4px;
    width: 14px; height: 14px; /* ドットを大きく元気に */
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #FFFCF9;
    z-index: 2;
}
/* ※ユーザー指定済み：時間はすべてオレンジ */
.p-schedule-time {
    flex: 0 0 64px;
    font-family: var(--font-en);
    font-size: 20px; font-weight: 900;
    color: var(--color-primary);
}
.p-schedule-content { flex: 1; padding-left: 32px; }
.p-schedule-title { font-size: 18px; font-weight: 900; color: var(--color-brown); margin-bottom: 4px; }
.p-schedule-text { font-size: 14px; line-height: 1.6; color: var(--color-text-main); }

/* --- EVENTS（季節のイベント） --- */
.p-event-lead {
    text-align: center; margin-bottom: 32px; font-weight: 700; color: var(--color-text-main);
}
.p-event-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 80px;
}
/* ポラロイド風の元気なカード */
.p-event-card {
    background: #fff;
    padding: 8px 8px 16px; /* 写真の下だけ余白を広く */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(74, 43, 24, 0.1);
    border: 1px solid var(--color-border);
}
.p-event-card__img img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; display: block;
}
.p-event-card__title {
    text-align: center; font-weight: 900; color: var(--color-brown); font-size: 15px; margin-top: 12px;
}

/* --- SUPPORT（安心のサポート） --- */
.p-support-wrap {
    display: flex; gap: 24px; max-width: 800px; margin: 0 auto;
}
.p-support-card {
    flex: 1; background: #fff; padding: 32px 24px;
    border-radius: 16px;
    border-top: 8px solid var(--color-primary); /* 頭に太いオレンジの帯で安定感 */
    box-shadow: 0 4px 12px rgba(74, 43, 24, 0.05);
}
.p-support-card__icon {
    font-size: 48px; color: var(--color-primary); margin-bottom: 12px; display: block; text-align: center;
}
.p-support-card__title {
    font-size: 18px; font-weight: 900; color: var(--color-brown); margin-bottom: 12px; text-align: center;
}
.p-support-card__text { font-size: 14px; line-height: 1.8; color: var(--color-text-main); }

/* --- PRICE（ご利用料金） --- */
.p-price-table-wrap {
    max-width: 600px; margin: 0 auto;
}
.p-price-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 2px solid var(--color-brown); /* 表全体を太い枠で囲む */
    border-radius: 12px; overflow: hidden; background: #fff;
}
.p-price-table th, .p-price-table td {
    padding: 20px 24px; border-bottom: 1px dashed var(--color-border);
}
.p-price-table th {
    width: 30%; background: #FFFCF9; font-weight: 900; color: var(--color-brown); text-align: center;
    border-right: 2px solid var(--color-brown); /* 見出しと中身をガッツリ分ける */
}
.p-price-amount { display: block; font-size: 18px; font-weight: 900; color: var(--color-text-main); }
.p-price-note { display: block; font-size: 12px; color: var(--color-text-light); margin-top: 4px; }
/* 合計行の強調 */
.p-price-table tr.is-total th, .p-price-table tr.is-total td {
    border-bottom: none; background: rgba(224, 98, 38, 0.1);
}
.p-price-table tr.is-total th { color: var(--color-primary); font-size: 18px; }
.p-price-total-amount { font-size: 24px; font-weight: 900; color: var(--color-primary); }

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-schedule-wrap { padding: 24px 16px; border-width: 2px; }
    .p-schedule-list::before { left: 14px; }
    .p-schedule-item { flex-direction: column; margin-bottom: 24px; }
    .p-schedule-item::before { left: 9px; }
    .p-schedule-time { flex: none; font-size: 18px; padding-left: 36px; margin-bottom: 4px; }
    .p-schedule-content { padding-left: 36px; }
    .p-event-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .p-support-wrap { flex-direction: column; gap: 16px; }
    .p-price-table th, .p-price-table td { padding: 16px 12px; display: block; width: 100%; text-align: left; }
    .p-price-table th { border-right: none; border-bottom: 2px solid var(--color-brown); }
}
/* =========================================================
   グループホーム：ギャラリー（デザイン完全版）
========================================================= */
/* 写真2枚を囲む親要素 */
.p-gh-gallery__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは2列 */
    gap: 32px; /* ★写真同士の間隔を少し広げてゆとりを★ */
    max-width: 900px; /* ★PCで2枚並べた際、間延びしない最大幅★ */
    margin: 48px auto 0; /* ★見出しとの余白をとりつつ、中央寄せ★ */
}

/* 各写真の枠 */
.p-gh-gallery__img-wrap {
    aspect-ratio: 16/9; /* 横長に固定 */
    overflow: hidden; /* 角丸に画像を収める */
    border-radius: 12px; /* ★大きめの角丸でポップに★ */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* ガッツのある動き */
}
/* 画像本体 */
.p-gh-gallery__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が歪まないようにトリミング */
}

/* =========================================================
   スマホ・タブレット対応（レスポンシブ）
========================================================= */
@media screen and (max-width: 768px) {
    .p-gh-gallery__inner {
        grid-template-columns: 1fr; /* スマホは1列 */
        gap: 20px;
        margin-top: 32px;
    }
}
/* =========================================================
   グループホーム カード内 料金表エリア（全幅レイアウト版）
========================================================= */
/* 基本情報のリード文 */
.p-office-card__lead {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.p-office-card__table {
    margin-bottom: 0; /* 下に料金表が来るため、余計な余白を削除 */
}

/* 全幅で配置される料金セクション */
.p-office-price--full {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed #e5e5e5; /* カード内で区切り線を引く */
    background-color: transparent;
}

/* 料金タイトル */
.p-office-price__title {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-brown);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 24px;
    display: inline-block;
}

/* ★PCで全幅に広がった際、間延びしないように最大幅を設定して中央寄せ★ */
.p-price-list-wrap {
    max-width: 600px;
    margin: 0 auto;
}

/* 料金リスト（DL構造） */
.p-price-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 各行 */
.p-price-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px dashed #dddddd;
    gap: 24px;
}

.p-price-row:last-of-type {
    border-bottom: none;
}

/* 合計目安行 */
.p-price-row.is-total {
    background-color: #fff8f0;
    padding: 20px 24px;
    margin-top: 16px;
    border-radius: 8px;
    border: none;
    align-items: center;
}

/* 項目名 (dt) */
.p-price-dt {
    font-weight: 700;
    color: var(--color-brown);
    flex-shrink: 0;
    width: 6.5em;
}

/* 金額・内訳 (dd) */
.p-price-dd {
    flex-grow: 1;
    text-align: left;
}

/* 金額 */
.p-price-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
}

.p-price-row.is-total .p-price-amount {
    font-size: 20px;
    color: var(--color-primary);
}

/* 内訳・詳細テキスト */
.p-price-details {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 6px;
    text-align: left;
    line-height: 1.5;
}

/* 注意書き */
.p-office-price__attention {
    margin-top: 32px;
    padding: 20px;
    background-color: #f9f9f9; /* 注意書きを薄いグレーの箱で囲む */
    border-radius: 8px;
}

.p-office-price__attention p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 6px;
}

.p-office-price__attention p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   スマホ表示時の微調整
========================================================= */
@media screen and (max-width: 768px) {
    .p-office-price--full {
        margin-top: 24px;
        padding-top: 24px;
    }
    .p-price-row {
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }
    .p-price-dt, .p-price-dd, .p-price-details {
        width: 100%;
        text-align: left;
    }
    .p-price-row.is-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
    }
    .p-price-row.is-total .p-price-dt {
        width: auto;
    }
    .p-price-row.is-total .p-price-dd {
        text-align: right;
    }
}
/* =========================================================
   多機能事業所：追加スタイリング
========================================================= */

/* 拠点一覧のリード文 */
.p-office-lead {
    margin: 0 auto 60px;
    text-align: center;
    color: var(--color-text-main);
    line-height: 1.8;
    font-weight: 700;
}

/* 拠点ごとの独自説明文（すたんどあっぷⅢなど） */
.p-office-detail__desc {
    background: #FFFCF9;
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    color: var(--color-text-main);
    line-height: 1.8;
}

/* ECサイト（オンラインショップ）へのボタン */
.btn-ec {
    display: flex;
    align-items: center;
    background: var(--color-primary); /* 目立つオレンジに */
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--color-primary);
	margin-left:14px;
}
.btn-ec:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(224, 98, 38, 0.3);
    color: #fff;
}

/* SPレスポンシブ補正 */
@media screen and (max-width: 768px) {
    .p-office-lead {
        text-align: left;
        padding: 24px 16px;
    }
	.btn-ec {
		display:block;
		padding: 8px 20px;
		margin-left:0px;
	}
}
/* =========================================================
   居宅介護・移動支援 (page-homecare.php) 専用スタイル
========================================================= */
.outing-gallery { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
}
.outing-img { 
    aspect-ratio: 1/1; 
    background-color: var(--color-bg-light); 
    background-size: cover; 
    background-position: center; 
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}
.outing-img:hover {
    transform: scale(1.05);
}
@media screen and (max-width: 768px) {
/* 居宅介護・移動支援ページ 専用SP調整 */
    .target-container { flex-direction: column !important; gap: 40px !important; }
    .target-img-wrap { width: 100% !important; }
    .target-img { min-height: 240px !important; aspect-ratio: 4/3; }
    .target-list li { padding: 20px 0 !important; }
    .outing-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}
.p-homecare-target{
	padding:45px 0px;
}
.p-target-list {
    max-width: 640px; /* 800pxから縮小し、無駄な空白をなくす */
    margin: 0 auto;
    background: #fff;
    border-radius: 16px; /* 角丸も少し控えめに */
    padding: 32px 40px; /* 余白もキュッと締める */
    box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05);
}
.p-target-item {
    display: flex;
    align-items: center; /* テキストが短いので中央揃えが綺麗 */
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--color-border);
}
.p-target-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.p-target-item:first-child {
    padding-top: 0;
}
.p-target-icon {
    color: var(--color-primary);
    font-size: 24px; /* アイコンを少し小さく上品に */
    flex-shrink: 0;
}
.p-target-content {
    flex: 1;
}
.p-target-text {
    display: block;
    font-size: 16px; /* 18pxから16pxへ（大げさ感を消す） */
    font-weight: 700; /* 900から700へ（圧迫感を消す） */
    color: var(--color-brown);
    line-height: 1.6;
}
.p-target-note {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* OUTING SUPPORT（移動支援ギャラリー） */
.p-outing-support{
	padding:45px 0px;
}
.p-outing-container {
    max-width: 900px;
    margin: 0 auto;
}
.p-outing-text {
    text-align: center;
    font-weight: 700;
    margin-bottom: 48px;
}
.p-outing-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.p-outing-gallery__item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}
.p-outing-gallery__item:hover {
    transform: translateY(-8px);
}
.p-outing-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
.p-target-list { padding: 24px 20px; }
    .p-target-text { font-size: 15px; }
    .p-target-item { align-items: flex-start; }
    .p-outing-text { text-align: left; }
    .p-outing-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* =========================================================
   独立拠点カード（フォト主役レイアウト）
========================================================= */
.p-service-offices{
	padding:60px 0px;
}
@media screen and (max-width: 768px) {
	.p-service-offices{
		padding:60px 0px 40px;
	}
}
.p-service-offices .p-office-lead--box p {
    font-weight: 700; /* フォントを太く */
    color: #4a2b18; /* メインの茶色 */
    line-height: 1.8;
}
/* 「3つの事業所」の強調 */
.p-service-offices .p-office-lead--box p .count {
    color: var(--color-primary); /* オレンジ（メインカラー） */
    font-size: 1.2em; /* 文字を少し大きく */
}

.p-office-card {
    margin-bottom: 60px;
}
.p-office-card__inner {
    display: flex;
    background: #fff;
    border-radius: 24px 8px 24px 8px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}
/* 偶数番目は左右反転してリズムを作る */
.p-office-card:nth-child(even) .p-office-card__inner {
    flex-direction: row-reverse;
}

.p-office-card__img {
    flex: 0 0 45%;
    position: relative;
}
/* =========================================================
   事業所の詳細：ジグザグレイアウトでリズムを出す
========================================================= */

/* PCサイズでのみ、偶数番目（2つ目）のカードを反転させる */
@media screen and (min-width: 769px) {
    .p-office-card {
        margin-bottom: 48px;
    }
    .p-office-card:nth-child(even) .p-office-card__inner {
        flex-direction: row-reverse; /* 左右を入れ替え */
    }
    /* 反転させた際のテキスト側の余白を調整 */
    .p-office-card:nth-child(even) .p-office-card__content {
        padding-left: 0;
        padding-right: 48px;
    }
    /* 画像の角丸も反転に合わせる */
    .p-office-card:nth-child(even) .p-office-card__img {
        border-radius: 0 12px 12px 0;
        /* border-left: 2px solid var(--color-border); */
        border-right: none;
    }
}

/* .p-office-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
} */
/* 写真の上に載るオレンジのラベル */
.p-office-card__tag {
    position: absolute; /* 画像の上に配置 */
    top: 16px;
    left: 16px;
    z-index: 10;
    font-size: 13px; /* フォントを少し小さく */
    color: #ffffff; /* 文字を白に */
    padding: 6px 16px; /* コンパクトな余白 */
    border-radius: 50px; /* バッジらしい丸み */
    font-weight: 700;
    line-height: 1;
    /* 以前の透明デザイン（border, background, transform）を削除 */
    border: none;
    transform: none;
}

/* スマホでははみ出しすぎないように調整 */
@media screen and (max-width: 768px) {
    .p-office-card__tag {
        top: 10px;
        left: 12px;
        font-size: 12px;
        padding: 6px 16px;
    }
}
/* サービス種別ごとの色分け */
.p-office-card__tag--mix {
    background-color: #ff9800; /* オレンジ（生活介護・就労B型） */
}
.p-office-card__tag--b {
    background-color: #4caf50; /* グリーン（就労B型のみ） */
}
.p-office-card__content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.p-office-card__name {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-bg-light);
}
.p-office-card__desc {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    background: #FFFCF9;
    padding: 8px 16px;
    border-radius: 4px;
}
.p-office-card__info {
    margin-bottom: auto;
}
.p-office-card__address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
}
.p-office-card__address .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 20px;
}

.p-office-card__table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.p-office-card__table th {
    width: 60px;
    text-align: left;
    color: var(--color-text-light);
    padding: 4px 0;
    font-weight: 500;
}
.p-office-card__table td {
    padding: 4px 0;
    color: var(--color-text-main);
    font-weight: 700;
}

.p-office-card__action {
    margin-top: 24px;
    display: flex;
    align-items: center;
}
/* =========================================================
   商品アピールエリア（すたんどあっぷⅢ用）
========================================================= */
.p-office-card__products {
    background-color: var(--color-bg-light, #fcfaf8); /* サイトの背景色に合わせて微調整 */
    border: 2px dashed var(--color-primary, #ff8c00); /* ガッツのあるオレンジの破線 */
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.p-office-card__products-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: var(--color-brown);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.p-office-card__products-text .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 18px;
}

.p-office-card__products-images {
    display: flex;
    gap: 8px;
}

.p-office-card__products-images img {
    width: calc(50% - 4px); /* 2枚の画像を均等幅で並べる */
    height: 90px; /* ここで高さを固定 */
    object-fit: cover; /* 画像が歪まないようにトリミング */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 軽く浮かせて商品っぽさを出す */
}

.btn-map {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-brown);
    text-decoration: none;
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-map:hover {
    background: var(--color-bg-light);
    border-color: var(--color-brown);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
	.btn-map {
		display:block;
		margin-bottom:15px;
	}
	.p-office-card__action {
		display:block;
	}
    .p-office-card__inner, .p-office-card:nth-child(even) .p-office-card__inner {
        flex-direction: column;
    }
    .p-office-card__img { flex: none;}
    .p-office-card__content { padding: 32px 16px; }
}
/* =========================================================
   グループホーム (page-grouphome.php) 専用スタイル
========================================================= */
/* ショートステイ対応バッジ */
.badge-shortstay { 
    position: absolute; top: 20px; left: 20px; background: #fff; color: var(--color-brown); 
    font-weight: 900; font-size: 13px; padding: 8px 16px; border: 2px solid var(--color-brown); 
    letter-spacing: 0.05em; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 4px;
}

/* 施設タグ */
.house-tag-gender { font-size: 12px; font-weight: 900; color: #fff; padding: 4px 16px; border-radius: 50px; letter-spacing: 0.1em; }
.house-tag-date { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--color-text-light); display: flex; align-items: center;}

/* イベントグリッド */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.event-card { text-align: center; }
.event-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background-color: var(--color-bg-light); margin-bottom: 16px; background-size: cover; background-position: center; border-radius: 12px; box-shadow: var(--shadow-sm);}
.event-title { font-size: 15px; font-weight: 900; color: var(--color-brown); border-bottom: 1px solid var(--color-primary); display: inline-block; padding-bottom: 4px;}

/* サポート体制グリッド */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto;}
.support-card { flex-direction: row !important; gap: 24px; align-items: flex-start; padding: 40px; }
.support-icon { flex-shrink: 0; width: 48px; height: 48px; color: var(--color-primary); }
.support-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.support-title { font-size: 18px; font-weight: 900; color: var(--color-brown); margin-bottom: 12px; }
.support-desc { font-size: 14px; line-height: 1.8; color: var(--color-text-main); font-weight: 500;}

/* 料金表 */
.price-table-wrap { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-sm);}
.overview-table { width: 100%; border-collapse: collapse; }
.overview-table th, .overview-table td { padding: 24px 16px; border-bottom: 1px solid var(--color-border); text-align: left; }
.overview-table th { width: 30%; font-weight: 700; color: var(--color-brown); vertical-align: top; border-bottom: 1px solid var(--color-border);}
.overview-table td { color: var(--color-text-main); font-weight: 500; line-height: 1.8;}
.overview-table .table-note { display: block; font-size: 12px; color: var(--color-text-light); margin-top: 4px;}
.price-total { border-top: 2px solid var(--color-brown) !important; background: var(--color-bg-light); }
.price-total th { font-size: 18px; color: var(--color-primary); vertical-align: middle; border-bottom: none;}
.price-total td { font-size: 20px; font-weight: 900; color: var(--color-primary); border-bottom: none;}
@media screen and (max-width: 768px) {
/* グループホーム専用SP調整 */
    .house-item, .house-item:nth-child(even) { flex-direction: column !important; gap: 0;}
    .house-img-wrap { width: 100% !important; }
    .house-img { aspect-ratio: 16/9; min-height: auto !important;}
    .house-content, .house-item:nth-child(even) .house-content { padding: 32px !important; }
    .event-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important;}
    .support-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .support-card { padding: 32px 24px !important; flex-direction: column !important; gap: 16px !important;}
    .price-table-wrap { padding: 24px 16px !important; }
    .price-total th, .price-total td { border-bottom: none !important;}
}

/* =========================================================
   採用情報ページ（RECRUIT） - 統合版
========================================================= */

/* --- HERO & MESSAGE 統合セクション --- */
.p-recruit-hero {
    position: relative;
    padding: 120px 0 100px;
    background: var(--color-brown);
    color: #fff;
    overflow: hidden;
}
.p-recruit-hero__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.3; /* 写真を暗くして文字を読ませる */
    z-index: 0;
}
.p-recruit-hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(74,43,24,0.8), rgba(74,43,24,0.95));
    z-index: 1;
	    mix-blend-mode: hue;
}
.p-recruit-hero__content {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto;
}
.p-recruit-hero__header {
    text-align: center; margin-bottom: 60px;
    padding-bottom: 40px; border-bottom: 2px solid rgba(255,255,255,0.2);
}
.p-recruit-hero__catch {
    font-size: 32px; font-weight: 900; line-height: 1.5; text-align: center;
    margin-bottom: 40px; letter-spacing: 0.05em; color: #fff !important;
}
.p-recruit-hero__text {
    font-size: 15px; line-height: 2.2; font-weight: 500;
}
.p-recruit-hero__text p { margin-bottom: 24px; }

/* --- REQUIREMENTS（タグデザインの流用） --- */
.job-tag-orange {
    font-size: 11px;
    background: #FFF3E0;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: 900;
    border: 1px solid var(--color-primary);
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-recruit-hero { padding: 80px 0; }
    .p-recruit-hero__catch { font-size: 22px; text-align: left; }
    .p-recruit-hero__header { margin-bottom: 40px; padding-bottom: 32px; }
}

/* --- JOBS（募集職種カード） --- */
.job-grid {
    display: flex;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.job-card {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 3px solid var(--color-brown);
    box-shadow: 4px 4px 0 var(--color-brown);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.job-card:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-brown);
}
.job-category {
    font-size: 12px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: block;
}
.job-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 16px;
}
/* タグのポップな装飾 */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.job-tag {
    font-size: 11px;
    background: #FFFCF9;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 900;
}
.job-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 32px;
    flex: 1;
}
.job-link {
    font-size: 14px;
    font-weight: 900;
    color: var(--color-primary);
    text-align: center;
    display: block;
    padding-top: 16px;
    border-top: 2px dashed var(--color-bg-light);
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-recruit-message__inner { padding: 40px 24px; }
    .p-recruit-message__catch { font-size: 20px; }
    .job-grid { flex-direction: column; }
    .job-card { padding: 32px 24px; }
}
/* =========================================================
   採用情報：職場の様子（Bento風グリッドギャラリー）
========================================================= */
.p-workplace-grid {
    display: grid;
    /* PCでは 左右で 6:4 くらいの割合で分割 */
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 240px); /* 縦のブロックを2段（高さ固定） */
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 個別の写真アイテム共通設定 */
.p-workplace-item {
    border-radius: 16px;
    border: 3px solid var(--color-brown);
    box-shadow: 4px 4px 0 rgba(224, 98, 38, 0.2);
    overflow: hidden;
    position: relative;
    background: #fff;
}
.p-workplace-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.p-workplace-item:hover img {
    transform: scale(1.05); /* ホバーで少しズームして楽しげに */
}

/* メインの大きい写真（左側2段ぶち抜き） */
.item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
/* サブ写真上（右上） */
.item-small-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
/* サブ写真下（右下） */
.item-small-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-workplace-grid {
        grid-template-columns: 1fr; /* スマホでは1列に */
        grid-template-rows: auto;
        gap: 16px;
    }
    .item-large {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        height: 240px;
    }
    .item-small-top {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        height: 180px;
    }
    .item-small-bottom {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        height: 180px;
    }
}
/* 募集要項テーブル */
.p-recruit-req-header {
    display: block !important; /* 既存の横並び(flex)を強制解除して縦積みに */
    padding-bottom: 24px;
    border-bottom: 2px dashed var(--color-border);
    margin-bottom: 32px;
}
.p-recruit-req-header .job-category {
    font-size: 13px;
    font-weight: 900;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 8px;
}
.p-recruit-req-header .job-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-brown);
    margin-top: 0;
    margin-bottom: 16px;
}
.p-recruit-req-header .job-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* バッジとタグの高さを揃える */
    gap: 8px;
    margin-bottom: 16px;
}
.p-recruit-req-header .req-badge {
    margin-left: 0; /* 既存の左マージンがあればリセット */
    margin-right: 8px;
}
.p-recruit-req-header .job-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-main);
    margin: 0;
}

.req-wrapper { max-width: 900px; margin: 0 auto; scroll-margin-top: 100px; }
.req-header { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--color-brown); padding-bottom: 16px; margin-bottom: 24px; }
.req-badge { background: var(--color-bg-light); color: var(--color-text-main); font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 50px; border: 1px solid var(--color-border); }

.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td { padding: 24px 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.req-table th { width: 25%; font-weight: 700; color: var(--color-brown); vertical-align: top; padding-right: 24px; }
.req-table td { color: var(--color-text-main); font-weight: 500; line-height: 1.8; }

/* 働く環境・福利厚生 */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.benefit-card { text-align: center; }
.benefit-icon { width: 80px; height: 80px; background: #fff; border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.benefit-icon svg { width: 40px; height: 40px; stroke-width: 1.5; }
.benefit-title { font-size: 16px; font-weight: 700; color: var(--color-brown); margin-bottom: 12px; line-height: 1.4; }
.benefit-desc { font-size: 13px; line-height: 1.6; color: var(--color-text-light); text-align: justify; text-align-last: center;}

@media screen and (max-width: 768px) {
	/* 採用情報専用SP調整 */
    .job-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .req-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .req-table th, .req-table td { display: block !important; width: 100% !important; padding: 16px 0 !important; border-bottom: none !important;}
    .req-table tr { border-bottom: 1px solid var(--color-border) !important; display: block !important; }
    .req-table th { padding-bottom: 4px !important; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 16px !important; }
}

/* =========================================================
   お知らせ一覧ページ
========================================================= */
.archive-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* カテゴリーナビゲーション */
.p-news-nav {
    margin-bottom: 48px;
}
.p-news-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
}
.p-news-nav__item a {
    display: block;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.3s;
}
.p-news-nav__item.is-active a,
.p-news-nav__item a:hover {
    background: var(--color-brown);
    color: #fff;
    border-color: var(--color-brown);
}

/* リストアイテム */
.p-news-list {
    border-top: 2px solid var(--color-brown);
}
.p-news-item {
    display: flex;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
}
.p-news-item:hover {
    background: rgba(255, 252, 249, 0.8);
}
.p-news-item__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 240px;
}
.p-news-item__date {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
}

/* カテゴリーラベル：重要ポイント */
.p-news-item__label {
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.p-news-item__body {
    flex: 1;
}
.p-news-item__title a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}
.p-news-item__arrow {
    color: var(--color-primary);
    margin-left: 16px;
    font-weight: bold;
}

.p-news-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-light);
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 8px;
    }
    .p-news-item__meta {
        flex: none;
        margin-bottom: 12px;
        gap: 16px;
    }
    .p-news-item__arrow {
        display: none; /* スマホでは矢印を消してスッキリさせる */
    }
    .p-news-nav__item a {
        padding: 6px 16px;
        font-size: 13px;
    }
}
/* ページネーション (一覧ページ下部の番号) */
.pagination { margin-top: 60px; text-align: center; }
.pagination .nav-links { display: inline-flex; align-items: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-family: var(--font-en); font-weight: 700; color: var(--color-brown); border: 1px solid var(--color-border); border-radius: 4px; transition: all 0.3s; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--color-brown); color: #fff; border-color: var(--color-brown); }

/* 前後記事ナビゲーション */
.post-navigation a { font-weight: 700; color: var(--color-brown); font-size: 14px; display: inline-block; padding: 12px 24px; border: 1px solid var(--color-border); border-radius: 50px; transition: all 0.3s;}
.post-navigation a:hover { background: var(--color-bg-light); border-color: var(--color-brown); }

/* 記事本文エリア (.post-content) のスタイル 
   ※WordPressのエディタで入力されたHTMLタグに対する装飾 */
.post-content { color: var(--color-text-main); line-height: 2; font-size: 15px; }
.post-content p { margin-bottom: 2em; }
.post-content h2 { font-size: 22px; font-weight: 900; color: var(--color-brown); margin: 3em 0 1em; padding-bottom: 12px; border-bottom: 2px solid var(--color-brown); }
.post-content h3 { font-size: 18px; font-weight: 700; color: var(--color-brown); margin: 2.5em 0 1em; padding-left: 16px; border-left: 4px solid var(--color-primary); }
.post-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 2em; }
.post-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 2em; }
.post-content li { margin-bottom: 0.5em; }
.post-content img { border-radius: 8px; margin: 2em 0; max-width: 100%; height: auto; }
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content a:hover { text-decoration: none; }

@media screen and (max-width: 768px) {
	/* お知らせ専用SP調整 */
    .news-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .single-wrapper { padding: 32px 20px !important; border: none !important; border-radius: 0 !important; box-shadow: none !important;}
    .single-header { margin-bottom: 24px !important; padding-bottom: 16px !important; }
    .single-title { font-size: 20px !important; }
}

/* =========================================================
   お問い合わせフォーム (Contact Form 7) 専用スタイル
========================================================= */
.form-content .wpcf7 { margin: 0 auto; }
.form-content .wpcf7-form p { margin-bottom: 32px; }
.form-content label { display: block; font-size: 14px; font-weight: 700; color: var(--color-brown); margin-bottom: 12px; }

/* 必須マークの装飾 */
.form-content .req { display: inline-block; background: var(--color-primary); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.05em;margin-bottom:5px;}
.form-content .opt { display: inline-block; background: #ccc; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.05em;}

/* 入力欄のスタイル */
.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="tel"],
.form-content textarea,
.form-content select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-light);
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text-main);
    transition: all 0.3s;
}
.form-content input:focus,
.form-content textarea:focus,
.form-content select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(232, 91, 37, 0.1);
}

.form-content textarea { height: 200px; resize: vertical; }

/* ラジオボタン・チェックボックス */
.form-content .wpcf7-list-item { margin-left: 0; margin-right: 24px; display: inline-block; margin-bottom: 8px;}
.form-content input[type="radio"], .form-content input[type="checkbox"] { margin-right: 8px; transform: scale(1.2); cursor: pointer;}

/* 送信ボタン */
.form-content input[type="submit"] {
    display: block; width: 100%; max-width: 320px; margin: 40px auto 0;
    background-color: var(--color-primary); color: #fff;
    padding: 20px; border: none; border-radius: 50px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(232, 91, 37, 0.2);
}
.form-content input[type="submit"]:hover {
    background-color: var(--color-brown); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(74, 43, 24, 0.2);
}

/* エラーメッセージ */
.form-content .wpcf7-not-valid-tip { font-size: 12px; color: #BF0000; margin-top: 8px; }
.form-content .wpcf7-response-output { border-radius: 8px; font-size: 14px; padding: 16px; margin-top: 32px !important; }

@media screen and (max-width: 768px) {
	.contact-form-wrap { padding: 32px 20px !important; }
    .form-content input[type="submit"] { max-width: 100%; }
    .contact-tel-box { padding: 32px 20px !important; }
}

/* =========================================================
   スマホ用ドロワーメニュー制御 (max-width: 1100px以下)
========================================================= */
@media screen and (max-width: 1100px) {
    /* アイコンを最前面に配置 */
    .sp-menu-icon { 
        display: block; 
        position: relative; 
        z-index: 1000; /* メニューより上に配置 */
    }

    /* メニュー開閉時の×印アニメーション */
    .sp-menu-icon line { transition: all 0.3s ease; transform-origin: center; }
    .sp-menu-icon.is-open line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .sp-menu-icon.is-open line:nth-child(2) { opacity: 0; }
    .sp-menu-icon.is-open line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* ナビゲーションを全画面オーバーレイに変更 */
    .header-nav { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; 
        background: rgba(255, 255, 255, 0.98); 
        z-index: 900;
        display: flex; 
        flex-direction: column; 
        justify-content: center;
        opacity: 0; 
        visibility: hidden; 
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    .header-nav.is-open { 
        opacity: 1; 
        visibility: visible; 
    }
    
    .global-nav { flex-direction: column; gap: 8px; }
    .global-nav a { font-size: 18px; padding: 12px; }
    .global-nav a::after { display: none; /* スマホではホバー下線を非表示 */ }

    /* CTAボタンをメニュー下部に配置 */
    .header-cta { 
        display: inline-flex;
        position: fixed; 
        bottom: 60px; 
        left: 50%; 
        transform: translateX(-50%);
        z-index: 950; 
        opacity: 0; 
        visibility: hidden; 
        transition: opacity 0.4s ease, visibility 0.4s ease;
        margin-left: 0;
    }
    .header-cta.is-open { 
        opacity: 1; 
        visibility: visible; 
    }

    /* メニュー開閉時の背景スクロール禁止 */
    body.is-locked { 
        overflow: hidden; 
    }
}

/* =========================================================
   新デザインシステム（記名性の高いコンポーネント）
========================================================= */
/* 見出しシステム再構築 */
.label-en, .section-subtitle {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 4px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border: 2px solid var(--color-brown);
    box-shadow: 2px 2px 0 var(--color-brown); /* アメコミ風のくっきりした影 */
}

.heading-brand {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.4;
    color: var(--color-brown);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

/* トップページ：MESSAGEセクション（エディトリアルレイアウト） */
.p-top-message {
    position: relative;
    padding: 160px 0;
    overflow: hidden; /* はみ出し防止 */
}
.p-top-message .container {
    position: relative;
    z-index: 10;
}
.p-top-message__inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.p-top-message__content {
    width: 55%; /* テキストエリアの幅 */
    background: rgba(255, 255, 255, 0.9); /* 写真に被っても読めるように透過白を敷く */
    padding: 60px 60px 60px 0;
}
/* 写真をコンテナから右側へ断ち切り（画面端まで伸ばす）配置 */
.p-top-message__image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 55%; /* 画面右半分を占有 */
    height: 80%;
    z-index: 1;
}
.p-top-message__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px 0 0 40px; /* 左側だけ大きな角丸で柔らかさを出す */
    box-shadow: -10px 20px 40px rgba(0,0,0,0.08);
}
.p-top-message__text p {
    font-size: 15px;
    line-height: 2.2;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

/* =========================================================
   トップページ：SERVICEセクション（オーバーラップレイアウト）
========================================================= */
.p-top-service {
    padding: 60px 0;
    background: var(--color-bg-light); /* 薄い背景で区切る */
}
.p-service-list {
    display: flex;
    flex-direction: column;
    gap: 100px; /* カード間の余白を大胆に取る */
}
.p-service-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
/* 偶数番目は左右反転してリズムを崩す */
.p-service-card:nth-child(even) {
    flex-direction: row-reverse;
}
.p-service-card__img-wrap {
    width: 55%;
    position: relative;
/*     border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); */
}
.p-service-card__img-wrap::before {
    content: '';
    display: block;
    padding-top: 70%; /* 画像の比率 */
}
.p-service-card__img {
    position: absolute;
    top: 0; left: 0; width: 100%;
/* 	height: 100%;
    object-fit: cover; */
    transition: transform 0.6s ease;
}
/* .p-service-card:hover .p-service-card__img {
    transform: scale(1.05);
} */
.p-service-card__content {
    width: 50%;
    background: #fff;
    padding: 64px 56px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05);
    margin-left: -10%; /* 画像の上に横へ重ねる */
    margin-top: 80px;  /* ← 追加：意図的に下にずらして動きを出す */
    position: relative;
    z-index: 2;
}
/* 偶数番目の重なり方向を逆にする */
.p-service-card:nth-child(even) .p-service-card__content {
    margin-left: 0;
    margin-right: -10%;
}
.p-service-card__num {
    position: static; /* 以前の absolute（背景に透かす指定） を解除 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary); /* オレンジ色で塗りつぶす */
    color: #fff;
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 900;
    border-radius: 50%; /* 完全な丸 */
    margin-bottom: 16px;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(224, 98, 38, 0.3); /* オレンジの優しい影 */
    z-index: 1;
}
.p-service-card__title {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 8px; /* 下のラベルとの距離を詰めるため、元の16pxから変更 */
    letter-spacing: 0.05em;
}
.p-service-card__facilities {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary); /* オレンジ等のアクセントカラーで目を引く */
    background: var(--color-bg-light); /* 薄い背景を敷いてタグっぽくする */
    padding: 6px 12px 6px 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.p-service-card__facilities .material-symbols-outlined {
    font-size: 16px;
    margin-right: 4px;
}
.p-service-card__desc {
    font-size: 15px;
    line-height: 2;
    color: var(--color-text-main);
    margin-bottom: 32px;
}
.p-service-card__link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
    transition: transform 0.3s;
}
.p-service-card__link:hover {
    transform: translateX(8px); /* ホバーで矢印ごと右へ動く */
}
@media screen and (max-width: 768px) {
	/* 新SERVICEセクションSP調整 */
    .p-top-service { padding: 40px 0; }
    .p-service-list { gap: 60px; }
    .p-service-card, .p-service-card:nth-child(even) { flex-direction: column; }
    .p-service-card__img-wrap { width: 100%; border-radius: 40px 8px 40px 8px; }
    .p-service-card__content,
	.p-service-card:nth-child(even) .p-service-card__content { width: 92%; margin: 40px auto 0; padding: 20px 16px; }
	.p-service-card__content {
    border-radius: 24px 8px 24px 8px; /* テキストボックスも連動させる */
    /* 影の色を黒から「ブラウン」に寄せて温かみを出す */
    box-shadow: 0 10px 30px rgba(74, 43, 24, 0.08); 
}
/*     .p-service-card__num { font-size: 72px; top: -20px; right: 16px; } */
    .p-service-card__title { font-size: 20px; }
}

/* =========================================================
   横に流れる無限スライダー（マーキー）
========================================================= */
.p-marquee {
    overflow: hidden;
    width: 100%;
    background: #FFFCF9;
    padding: 32px 0;
    border-bottom: 3px solid var(--color-brown);
}

.p-marquee__track {
    display: flex;
    width: max-content; /* 【重要】要素が画面幅に合わせて潰れるのを防ぐ */
    animation: marquee-scroll 40s linear infinite; /* 止まらず無限に流れる */
}

.p-marquee__list {
    display: flex;
    gap: 24px;
    padding-right: 24px; /* ループの繋ぎ目の余白 */
}

/* スライダー内の画像デザイン（傾きを廃止し、綺麗に整列） */
.p-marquee__list img {
    flex-shrink: 0; /* 【重要】画像が縮んで重なるのを完全に防ぐ */
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px; /* 綺麗な角丸に戻す */
    border: 3px solid var(--color-brown);
    box-shadow: 4px 4px 0 rgba(224, 98, 38, 0.3);
    background: #fff;
    /* transform: rotate(...) は削除しました */
}

/* 無限ループ用のアニメーションキーフレーム */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SPレスポンシブ */
@media screen and (max-width: 768px) {
    .p-marquee { padding: 24px 0; }
    .p-marquee__list { gap: 16px; padding-right: 16px; }
    .p-marquee__list img { width: 240px; height: 160px; border-width: 2px; }
}
/* =========================================================
   トップページ：FLOWセクション（福祉施設に寄り添ったカード型）
========================================================= */
.p-top-flow {
    padding: 80px 0;
    background-color: #fff;
}
@media screen and (max-width: 768px) {
	.p-top-flow {
		padding: 60px 0;
	}
}
.p-flow-list {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

/* 以前の直線や丸いノードを完全に非表示 */
.p-flow-list::before,
.p-flow-item__node {
    display: none;
}

.p-flow-item {
    background: var(--color-bg-light); /* 優しい背景色でカード化 */
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    margin-bottom: 0;
}

/* 次のステップへ向かう「矢印」 */
.p-flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 14px 0 14px 16px;
    border-color: transparent transparent transparent var(--color-primary);
    z-index: 2;
}

.p-flow-item__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 画像を一番上に配置し、親しみやすさを強調 */
.p-flow-item__img {
    order: 1;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.p-flow-item__content {
    order: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* STEP表示をわかりやすいバッジ風に */
.p-flow-item__step {
    align-self: center;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: 40px;
    margin-bottom: 16px;
}

.p-flow-item__title {
    font-size: 17px;
    font-weight: 900;
    color: var(--color-brown);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.p-flow-item__desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* =========================================================
   SP・タブレット用レスポンシブ（縦並びにし、矢印を下向きに）
========================================================= */
@media screen and (max-width: 900px) {
    .p-flow-list {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 40px;
    }
    .p-flow-item {
        padding: 32px;
    }
    /* 矢印を下向きに変更 */
    .p-flow-item:not(:last-child)::after {
        top: auto;
        bottom: -28px;
        right: 50%;
        transform: translateX(50%);
        border-width: 16px 14px 0 14px;
        border-color: var(--color-primary) transparent transparent transparent;
    }
}
/* =========================================================
   トップページ：OFFICE & FAQ（情報設計の強化）
========================================================= */

/* 拠点一覧：カタログレイアウト */
.p-top-office {
    padding: 160px 0;
}
.p-office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
}
.p-office-card {
	box-shadow: 0 10px 30px rgba(74, 43, 24, 0.05);
    background: #fff;
/*     border: 1px solid var(--color-border); */
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
@media screen and (max-width: 768px) {
	.p-office-card {
		padding: 20px;
	}
	.p-office-card__name {
		font-size:4.7vw;
	}
}
.p-office-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}
.p-office-card__data {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}
.p-office-card__row {
    display: flex;
    font-size: 14px;
    margin-bottom: 12px;
}
.p-office-card__label {
    width: 80px;
    color: var(--color-text-light);
    font-weight: 700;
    flex-shrink: 0;
}
.p-office-card__value {
    color: var(--color-text-main);
    font-weight: 500;
}

/* FAQ：カテゴリー分けレイアウト */
.p-top-faq {
    padding: 40px 0px 50px;
    background: var(--color-bg-light);
}
.p-faq-container {
    display: grid;
    grid-template-columns: 240px 1fr; /* 左にカテゴリ、右に回答 */
    gap: 80px;
    margin-top: 80px;
}
.p-faq-nav h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-brown);
    margin-bottom: 24px;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}
.p-faq-group {
    margin-bottom: 60px;
}
.p-faq-group:last-child { margin-bottom: 0; }
.p-faq-item {
    background: #fff;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}
.p-faq-q {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-brown);
}
.p-faq-q::after {
    content: '+';
    color: var(--color-primary);
    font-size: 20px;
}
.p-faq-a {
    padding: 8px 24px 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-main);
    border-top: 1px solid var(--color-bg-light);
    display: none; /* JSで開閉 */
}

/* SP用レスポンシブ */
@media screen and (max-width: 768px) {
    .p-office-grid { grid-template-columns: 1fr; }
    .p-faq-container { grid-template-columns: 1fr; gap: 40px; margin-top:20px;}
}