@charset "UTF-8";

/* ========================================
   Variables (カラーパレット・基本設定)
   士業向けの落ち着いた信頼感のある緑を基調
======================================== */
:root {
    --primary-color: #2e8b57;
    /* 落ち着いた緑（シーグリーン系） */
    --primary-dark: #1e5c39;
    --bg-light: #f4f8f5;
    /* セクション背景用の極薄い緑/グレー */
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-base:
        'Helvetica Neue', arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', meiryo, sans-serif;
    --container-width: 1100px;
}

/* ========================================
   Reset & Base
======================================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--text-main);
    letter-spacing: 0.05em;
    background-color: var(--white);
}

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

a:hover {
    opacity: 0.7;
}

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

.container {
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

/* ========================================
   Common Utilities (共通装飾パーツ)
======================================== */
.text-center {
    text-align: center;
}

.text-red {
    color: #d32f2f !important;
}

.text-blue {
    color: #1976d2 !important;
}

.font-bold {
    font-weight: bold;
}

/* ページ内リンクジャンプ時の表示位置調整 */
#service-consulting,
#service-row,
#service-money,
#service-seminar,
#service-clinic,
#service-seminarPlay {
    scroll-margin-top: 24px;
}

/* ========================================
   Scroll Animations (スクロールアニメーション)
======================================== */

/* 初期状態：透明にして、下方向に30pxずらしておく */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* JSでこのクラスが付与されたら、元の位置に戻しながら表示 */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 複数要素が並ぶ場合、少しずつ表示を遅らせるためのオプション */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ========================================
   Buttons (ボタン共通)
======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 50px;
}

.btn-primary {
    color: var(--white);
    background-color: #0056b3;
    /* ヘッダーの青いボタン */
}

.btn-red {
    color: var(--white);
    background-color: red;
}

.btn-outline {
    padding: 10px 40px;
    font-size: 14px;
    color: var(--white);
    background-color: var(--primary-color);
}

.btn-blue {
    display: inline-block;
    padding: 15px 50px;
    font-size: 16px;
    color: var(--white);
    background: linear-gradient(135deg, #4a90e2 0%, #0056b3 100%);
    border-radius: 50px;
    box-shadow: 0 4px 10px rgb(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.btn-blue:hover {
    box-shadow: 0 6px 15px rgb(74, 144, 226, 0.4);
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-green-submit {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgb(46, 139, 87, 0.2);
    transition: all 0.3s ease;
}

.btn-green-submit:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 15px rgb(46, 139, 87, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   Header & Footer (共通レイアウト)
======================================== */
.global-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgb(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    padding: 15px 20px;
    margin: 0 auto;
}

.global-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

/* 1. ナビゲーションの基本設定 */
.global-nav a {
    position: relative;
    /* 線の基準点になります */
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 2. 下線の共通設定（中央に隠しておく） */
/* 線の「初期状態」：中央に幅0で隠しておく */
.global-nav a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    /* ここでは背景色は指定せず、下で個別に指定します */
}

/* 3. 【現在地】の設定：常時オレンジで表示 */
/* 「現在地（active）」と「マウスを乗せた時（hover）」に線を広げる */

.global-nav a.active::after {
    width: 100%;
    background-color: #ff9800;
    /* 鮮やかなオレンジ */
}

/* 4. 【マウスを乗せた時】の設定：ふわっと緑が出る */
/* マウスを乗せた時に文字が薄くなる設定を、ナビ内だけはオフにすると線が綺麗に見えます */
/* 注：現在地(active)以外のリンクにマウスを乗せた時だけ緑にします */
.global-nav a:not(.active):hover::after {
    width: 100%;
    background-color: var(--primary-color);
    /* 信頼の緑 */
}

/* マウスホバー時に文字が薄くなるのを防ぐ */
.global-nav a:hover {
    opacity: 1;
}

.global-footer {
    padding: 60px 0 20px;
    color: var(--white);
    background-color: var(--primary-dark);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    width: 250px;
}

.footer-details p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 400px;
    list-style: none;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgb(255, 255, 255, 0.2);
    opacity: 0.7;
}

/* ========================================
   Hamburger Menu (ハンバーガーボタン)
======================================== */
.hamburger {
    position: relative;
    z-index: 200;
    /* メニューが開いた時、上に乗るようにする */
    display: none;
    /* PC画面では非表示 */
    width: 40px;
    height: 40px;
    /* margin-left を削除。gap で管理する margin-left: 15px;*/
    cursor: pointer;
    background: transparent;
    border: none;
}

/* ── 追加 ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 40px; /* ボタンとハンバーガーの間隔 */
}

.hamburger span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    /* ボタンの線の色（緑） */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 3本線の初期位置 */
.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 20px;
}

.hamburger span:nth-child(3) {
    top: 30px;
}

/* "is-active" クラスが付与された時の「×」印アニメーション */
.hamburger.is-active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    /* 真ん中の線を消す */
}

.hamburger.is-active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* ========================================
   Top Page (index.html)
======================================== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    height: 70vh;
    min-height: 500px;
    background-color: rgb(255, 255, 255, 0.4);
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
}

.hero-content {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

.hero-subtitle {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--text-main);
}

.hero-title {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-main);
}

.mission-section {
    padding: 80px 0;
    color: var(--white);
    background-color: var(--primary-color);
}

.mission-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.mission-text {
    flex: 1;
}

.mission-text h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    line-height: 1.5;
}

.mission-image {
    flex: 1;
}

.mission-image img {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgb(0, 0, 0, 0.1);
}

.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.en-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-main);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgb(0, 0, 0, 0.03);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
    padding: 50px;
}

.service-info h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--primary-dark);
}

.service-info p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.service-image {
    flex: 1;
    height: 100%;
    min-height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speech-bubble {
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    background: #ff9800;
    border-radius: 20px;
}

.speech-bubble::after {
    position: absolute;
    bottom: -8px;
    left: 20px;
    content: '';
    border-top: 10px solid #ff9800;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
}

.strengths-section {
    padding: 100px 0;
    color: var(--white);
    background-color: #8fbc8f;
}

.strengths-header {
    margin-bottom: 60px;
    text-align: center;
}

.strengths-header .en-title {
    color: var(--white);
    opacity: 0.8;
}

.strengths-header h2 {
    font-size: 2rem;
    line-height: 1.5;
}

.strengths-content {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.strengths-image {
    flex: 1;
}

.strengths-image img {
    border-radius: 8px;
}

.strengths-text {
    flex: 1;
}

.strengths-text p {
    margin-bottom: 20px;
    font-weight: bold;
}

/* ========================================
   Service Page FV
======================================== */
.service-top-section {
    padding-bottom: 80px;
    background-color: var(--white);
}

.service-hero {
    display: flex;
    align-items: center;
    height: 60vh;
    min-height: 405px;
    /* 高さは会社概要と同じサイズを維持 */
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, 0.4);
    background-position: center;
    /* 中身（写真）の位置指定をデフォルトに戻す */
    background-size: cover;
    /* 中身（写真）のサイズ指定をデフォルトに戻す */
    background-blend-mode: overlay;
}

.service-catch {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    color: var(--text-main);
    /* 勝手な変更を取り消し、元の指定に戻す */
    text-shadow: 1px 1px 5px rgb(255, 255, 255, 0.8);
    /* 勝手な変更を取り消し、元の指定に戻す */
}

.page-header {
    padding: 30px 0;
    /* 高さを50%にするため、上下の余白を60pxから30pxに変更 */
    color: #ffffff;
    /* 文字色をすべて白（#ffffff）に指定 */
    background-color: var(--primary-color);
}

/* --- .page-header 固有の fade-in-up 調整（めり込み・位置ズレ防止） --- */
/* 背景ごと動くと上下の隙間や要素との重なりが生じるため、背景の移動自体を無効化し静止させる */
.page-header.fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* 代わりに中身のテキストコンテナに対してアニメーションを適用する */
.page-header.fade-in-up .container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 画面に表示されたらテキストを元の位置へ */
.page-header.fade-in-up.is-visible .container {
    opacity: 1;
    transform: translateY(0);
}
/* ------------------------------------------------------------------ */

.page-header .en-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
    /* ベース設定のグレーを打ち消して白（#ffffff）に指定 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: normal;
}

.service-row {
    padding: 80px 0;
}

.service-row.bg-white {
    background-color: var(--white);
}

.service-row.bg-light-gray {
    background-color: #f8f9fa;
}

.service-row-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.service-row-inner.reverse {
    flex-direction: row-reverse;
}

.service-row-image {
    flex: 1;
    max-width: 50%;
}

.service-row-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgb(0, 0, 0, 0.05);
}

.service-row-text {
    flex: 1;
}

.service-title {
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.service-point {
    margin-bottom: 30px;
}

.service-point:last-child {
    margin-bottom: 0;
}

.service-point h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
}

.service-point p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========================================
   Company Page (company.html)
======================================== */
.company-page {
    background-color: var(--bg-light, #f4f8f5);
}

.philosophy-section {
    padding-bottom: 80px;
    background-color: var(--white);
}

.philosophy-hero {
    display: flex;
    align-items: center;
    height: 54vh;
    /* 40vhから135%に拡大 */
    min-height: 405px;
    /* 300pxから135%に拡大 */
    margin-bottom: 60px;
    background-color: rgb(255, 255, 255, 0.4);
    background-position: center 52%;
    /* ← 横は中央(center)、縦は上から30%の位置に変更 */
    background-size: cover;
    background-blend-mode: overlay;
}

.philosophy-catch {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    color: var(--text-main);
    text-shadow: 1px 1px 5px rgb(255, 255, 255, 0.8);
}

.philosophy-inner {
    max-width: 800px;
}

.philosophy-block {
    padding-bottom: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eeeeee;
}

.ja-label {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.2em;
}

.philosophy-block h2 {
    margin-bottom: 15px;
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.2;
    color: var(--primary-color);
}

.philosophy-lead {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
}

.value-area {
    padding: 60px 0;
    margin-top: 40px;
    background-color: #b2cc89;
}

.value-inner {
    display: flex;
    gap: 50px;
}

.value-title-box {
    width: 20%;
}

.value-title-box h2 {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-dark);
}

.value-list-box {
    width: 80%;
}

.value-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.value-item dt {
    padding-bottom: 5px;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-dark);
    border-bottom: 1px solid rgb(0, 0, 0, 0.1);
}

.value-item dd {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
}

.greeting-section {
    padding: 40px 0;
    background-color: var(--white);
}

.greeting-header {
    margin-bottom: 40px;
}

.greeting-header h2 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--primary-color);
}

.greeting-highlight-area {
    padding: 40px 0;
    margin-bottom: 60px;
    background-color: #d1e8e2;
}

.greeting-highlight-inner {
    display: flex;
    gap: 50px;
    align-items: center;
}

.greeting-image {
    width: 35%;
}

.greeting-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgb(0, 0, 0, 0.1);
}

.greeting-highlight-text {
    width: 65%;
}

.greeting-highlight-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--text-main);
}

.greeting-highlight-text h3 span {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
}

.greeting-highlight-text p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.greeting-message {
    max-width: 800px;
    margin: 0 auto;
}

.greeting-message p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.profile-section {
    padding: 80px 0 100px;
    background-color: var(--bg-light, #f4f8f5);
}

.profile-header {
    margin-bottom: 50px;
    text-align: center;
}

.profile-header h2 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--primary-color);
}

.profile-table-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 20px 15px;
    text-align: left;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

.profile-table th {
    width: 30%;
    font-weight: bold;
    color: var(--text-main);
}

.link-underline {
    color: var(--text-main);
    text-decoration: underline;
}

.link-underline:hover {
    color: var(--primary-color);
}

.profile-location {
    max-width: 800px;
    margin: 0 auto;
}

.profile-location h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--primary-color);
}

.profile-location p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: bold;
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgb(0, 0, 0, 0.05);
}

/* ========================================
   Contact Page (contact.html)
======================================== */
.contact-page {
    background-color: #f0f4f2;
}

.contact-section {
    padding: 100px 0 120px;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-title {
    margin-bottom: 30px;
    font-size: 3.5rem;
    font-weight: normal;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.contact-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-color);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.basic-contact-form .form-group {
    margin-bottom: 30px;
}

.basic-contact-form .name-row {
    display: flex;
    gap: 20px;
}

.basic-contact-form .name-row .form-group {
    flex: 1;
}

.basic-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #8fbc8f;
}

.basic-contact-form label span {
    margin-left: 2px;
    color: #8fbc8f;
}

.basic-contact-form input[type='text'],
.basic-contact-form input[type='email'],
.basic-contact-form textarea {
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: transparent;
    border: 1px solid #8fbc8f;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.basic-contact-form textarea {
    resize: vertical;
}

.basic-contact-form input[type='text']:focus,
.basic-contact-form input[type='email']:focus,
.basic-contact-form textarea:focus {
    outline: none;
    background-color: rgb(255, 255, 255, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgb(46, 139, 87, 0.2);
}

.basic-contact-form ::placeholder {
    color: #a9c9a9;
}

.basic-contact-form .form-submit {
    margin-top: 40px;
}

/* ========================================
   Responsive (スマホ対応)
======================================== */
@media screen and (width <=1024px) {

    /* ▼ 追加・変更箇所 ▼ */
    .hamburger {
        display: block;
        /* 1024px以下でボタンを表示 */
    }

    /* メニューを全画面のオーバーレイに変更 */
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 150;
        display: flex;
        visibility: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
        background-color: rgb(255, 255, 255, 0.95);
        /* 少し透ける白背景 */

        /* 初期状態は透明にしてクリック不可にする */
        opacity: 0;
        transition: all 0.3s ease;
    }

    /* JSで "is-active" が付与されたらフワッと表示 */
    .global-nav.is-active {
        visibility: visible;
        opacity: 1;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .global-nav a {
        font-size: 1.5rem;
        /* スマホ画面でタップしやすいように文字を大きく */
    }

    .header-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .mission-inner,
    .service-item,
    .service-item:nth-child(even),
    .strengths-content,
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .service-info {
        padding: 30px 20px;
    }

    .mission-section,
    .services-section,
    .strengths-section {
        padding: 60px 0;
    }

    /* Service Page */

    /* Service Page FV スマホ用 */
    .service-catch {
        font-size: 1.6rem;
        /* 文字サイズのみ元のスマホ指定を適用 */
    }

    .page-header {
        padding: 20px 0;
        /* スマホサイズでも同様に高さを50%（40pxから20px）に縮小 */
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .service-row {
        padding: 50px 0;
    }

    .service-row-inner,
    .service-row-inner.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .service-row-image {
        max-width: 100%;
    }

    .service-title {
        margin-bottom: 25px;
        font-size: 1.5rem;
    }

    /* Company Page */
    .greeting-section {
        padding: 10px 0 60px;
        /* スマホ時は上の余白を10pxまで詰め、下は60pxにする */
    }

    .philosophy-hero {
        /* ズームした結果、見せたい部分がズレる場合はここでスマホ専用の位置調整をします */
        background-position: center 45%;

        /* 写真を枠の中でズーム（拡大）させる（150%〜200%くらいで調整してください） */
        background-size: 200%;
    }

    .philosophy-catch {
        font-size: 1.6rem;
    }

    .philosophy-block h2 {
        font-size: 2.2rem;
    }

    .value-inner {
        flex-direction: column;
        gap: 20px;
    }

    .value-title-box {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .value-list-box {
        width: 100%;
    }

    .value-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .greeting-highlight-inner {
        flex-direction: column;
    }

    .greeting-image,
    .greeting-highlight-text {
        width: 100%;
    }

    .greeting-highlight-text h3 {
        font-size: 1.4rem;
    }

    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }

    .profile-table th {
        padding-bottom: 5px;
        color: var(--primary-color);
        border-bottom: none;
    }

    .profile-table td {
        padding-top: 5px;
        margin-bottom: 10px;
    }

    /* Contact Page */
    .contact-title {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 60px 0 80px;
    }

    .basic-contact-form .name-row {
        flex-direction: column;
        gap: 0;
    }

    .basic-contact-form .name-row .form-group {
        margin-bottom: 30px;
    }

    .btn-green-submit {
        width: 100%;
    }
}

/* ========================================
   PCとスマホでの表示切り替え用ユーティリティ
======================================== */

/* 基本はスマホ用テキストを隠す */
.sp-only {
    display: none;
}

@media screen and (width <=1024px) {

    /* 1024px以下になったらPC用テキストを隠し、スマホ用テキストを出す */
    .pc-only {
        display: none;
    }

    .sp-only {
        display: inline;
        /* 文字の一部として表示させるため inline にします */
    }
}
/* --- Company / Service ページ専用 ヘッダー統合・文字色白抜き --- */
.page-company .global-header,
.page-service .global-header {
    background-color: var(--primary-color);
    box-shadow: none; /* 下層との境目をなくす */
}

/* PC表示でのみナビゲーションの文字色を白にする（スマホでのハンバーガーメニュー展開時は白背景になるため除外） */
@media screen and (min-width: 1025px) {
    .page-company .global-nav a,
    .page-service .global-nav a {
        color: #ffffff;
    }

    .page-company .global-nav a:not(.active):hover::after,
    .page-service .global-nav a:not(.active):hover::after {
        background-color: #ffffff;
    }
}

.page-company .global-header .logo img,
.page-service .global-header .logo img {
    filter: brightness(0) invert(1);
}

.page-company .hamburger span,
.page-service .hamburger span {
    background-color: #ffffff;
}

/* --- スマホ専用 フッター固定 お申し込みボタン --- */
.sp-fixed-btn {
    display: none !important;
}

@media screen and (max-width: 1024px) {
    .sp-fixed-btn {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 15px;
        /* iPhoneなどのセーフエリアを考慮した下余白を追加 */
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
    }
    
    .sp-fixed-btn .btn {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-radius: 50px;
        text-align: center;
    }

    /* セミナー詳細ページのスマホ時、固有の余白 */
    .seminar-lp {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)); 
    }
}
