/* ========================================================
   base.css (1) ベース・共通スタイル
======================================================== */
:root {
    /* miruto風 クリーン＆ニュートラル配色 */
    --color-bg-base: #F8F7F2; /* 淡いウォームグレー */
    --color-bg-white: #FFFFFF; /* 白 */
    --color-text-main: #333333; /* 墨色・ダークグレー */
    --color-text-muted: #888888;
    
    /* アクセントカラー */
    --color-accent: #ef857d; /* コーラルピンク系 */
    
    /* 形状ルール */
    --radius-btn: 9999px;
    --radius-img: 12px;

    /* タイポグラフィ */
    --font-main: 'Zen Kaku Gothic New', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.8;
    font-size: clamp(15px, 1.2vw, 16px); 
    overflow-x: hidden;
    letter-spacing: 0.05em;
    font-weight: 400;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--color-text-main);
    line-height: 1.4;
    letter-spacing: 0.1em;
}

/* 控えめなマーカー */
.marker {
    background: linear-gradient(transparent 70%, #F0EAD6 70%);
    display: inline;
    padding: 0 0.2em;
}

/* 共通ボタン (フラット＆上品なシャドウ) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* シャドウを弱めに */
    gap: 8px;
    white-space: nowrap;
}

.btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.3s;
}

.btn:hover {
    opacity: 0.8;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.btn:hover::after {
    transform: translateX(4px);
}

.btn-entry {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    border: none;
}

.btn-outline {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    border: 1px solid #DDDDDD;
}

/* カスタムスクロールバー (横スライダー用) */
.scroll-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: #D0CCC0 transparent;
}

.scroll-slider::-webkit-scrollbar {
    height: 6px;
}

.scroll-slider::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    margin: 0 5%;
}

.scroll-slider::-webkit-scrollbar-thumb {
    background: #D0CCC0;
    border-radius: 4px;
}

.scroll-slider::-webkit-scrollbar-thumb:hover {
    background: #B0AC9E;
}


/* ========================================================
   base.css (2) header.php 用スタイル
======================================================== */
header {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 5%;
    background-color: transparent;
    transition: all 0.4s ease;
}

header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-logo {
    display: block;
    width: 140px; 
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.7;
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* WordPressのメニュー（ul, li）に対応するスタイル */
.header-nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    text-decoration: none;
}

/* スクロール前の文字色（画像と重なる時は白） */
header:not(.is-scrolled) .header-nav-links a {
    color: var(--color-bg-white);
}

/* スクロール後の文字色（背景が白くなったらダークグレー） */
header.is-scrolled .header-nav-links a {
    color: var(--color-text-main);
}

.header-nav-links a:hover {
    color: var(--color-accent) !important;
}

.header-nav-btns {
    display: flex;
    gap: 1rem;
}

.header-nav-btns .btn {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    display: none; /* 初期値は非表示 (PC) */
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-bg-white);
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

header.is-scrolled .hamburger span {
    background-color: var(--color-text-main);
}

.hamburger-text {
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2px;
    color: var(--color-bg-white);
    transition: color 0.4s ease;
}

header.is-scrolled .hamburger-text {
    color: var(--color-text-main);
}

@media (max-width: 1024px) {
    .hamburger { display: flex; z-index: 1001; }
    
    /* ハンバーガーが開いた時の×ボタン */
    header.is-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    header.is-open .hamburger span:nth-child(2) { opacity: 0; }
    header.is-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    header.is-open .hamburger-text { display: none; }
    
    /* オーバーレイ背景 */
    .sp-menu-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.98); /* 白背景 */
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    header.is-open .sp-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* メニュー本体を全画面表示にする */
    .header-nav-links { 
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        width: 90%;
        text-align: center;
    }
    header.is-open .header-nav-links {
        transform: translate(-50%, -50%);
        opacity: 1;
        visibility: visible;
    }

    /* メニューリストの縦並び */
    .header-nav-links ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* スマホメニューの文字色とサイズ */
    .header-nav-links a,
    header:not(.is-scrolled) .header-nav-links a {
        color: var(--color-text-main);
        font-size: 1.2rem;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    header { padding: 0.5rem 4%; height: 70px; }
    .header-logo { width: 100px; }
    .header-right { gap: 0.5rem; }
    .header-nav-btns { gap: 0.3rem; }
    .header-nav-btns .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    .header-nav-btns .btn::after { display: none; }
}

/* ========================================================
   base.css (3) front-page.php 用スタイル
======================================================== */

/* --- MV --- */
.mv {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlider 20s infinite;
}

.mv-slide:nth-child(1) { animation-delay: 0s; }
.mv-slide:nth-child(2) { animation-delay: 5s; }
.mv-slide:nth-child(3) { animation-delay: 10s; }
.mv-slide:nth-child(4) { animation-delay: 15s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.mv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.mv-copies {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-copy {
    position: absolute;
    color: var(--color-bg-white);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 1rem;
    opacity: 0;
    animation: fadeCopy 12s infinite;
}

.mv-copy.copy-2 {
    animation-delay: 6s;
}

.mv-copy.copy-3 {
    animation-delay: 12s;
}

@keyframes fadeCopy {
    0%, 5% { opacity: 0; transform: translateY(15px); }
    15%, 40% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-15px); }
}

/* --- メッセージ --- */
.message {
    background-color: var(--color-bg-white);
    text-align: center;
    padding: 6rem 5%;
}

.message h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
}

.message p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 2.2;
    max-width: 800px;
    margin: 0 auto;
}

/* --- 事業紹介 (Sticky Layout) --- */
.jobs {
    /* ★ 背景色を #F8F7F2 に変更 */
    background-color: var(--color-bg-base);
}

.jobs-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 6rem 5%;
}

.jobs-info h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.jobs-info p {
    margin-bottom: 2rem;
}

.jobs-slider {
    display: flex;
    gap: 2rem;
}

.job-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .jobs-layout {
        flex-direction: row;
        align-items: flex-start;
        padding: 6rem 0 6rem max(5%, calc(50vw - 550px));
        gap: 4rem;
    }
    .jobs-info {
        flex: 0 0 30%;
        position: sticky;
        top: 120px;
    }
    .jobs-slider {
        flex: 1;
        padding-right: max(5%, calc(50vw - 550px));
    }
    .job-card {
        flex: 0 0 320px;
    }
}

.job-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-img);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.job-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.job-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.job-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-card .btn-outline {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.85rem;
}

/* --- 会社概要（元：想いを知る） --- */
.thoughts {
    background-color: var(--color-bg-base);
}

.thoughts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .thoughts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.thought-box {
    border-radius: var(--radius-img);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-white);
}

.thought-greeting {
    /* 正しい画像URLに更新 */
    background: url('https://sho-fuku.co.jp/wp-content/themes/shofuku/assets/img/profile@2x.png') top center/cover no-repeat;
    color: var(--color-bg-white);
}

.thought-greeting::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(51, 51, 51, 0.6);
    z-index: 1;
}

.thought-greeting > * {
    position: relative;
    z-index: 2;
}

.thought-greeting h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thought-greeting p {
    margin-bottom: 2rem;
}

.thought-greeting .btn-outline {
    background: transparent;
    color: var(--color-bg-white);
    border-color: var(--color-bg-white);
    align-self: flex-start;
}

/* 会社概要リスト */
.company-outline {
    background-color: var(--color-bg-white);
}

.company-outline h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.company-list {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem 1rem;
}

.company-list dt {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.company-list dd {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- 事例紹介 --- */
.cases {
    background-color: var(--color-bg-white);
    padding: 6rem 0;
}

.cases-slider {
    display: flex;
    gap: 2rem;
    padding-left: max(5%, calc(50vw - 550px));
    padding-right: 5%;
}

.case-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: block;
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .case-card {
        flex: 0 0 320px;
    }
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-img);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.case-info {
    padding: 0 0.5rem;
}

.case-cat {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #F0EAD6;
    color: var(--color-text-main);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-btn);
    margin-bottom: 0.8rem;
}

.case-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.case-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

.cases-btn-wrap {
    text-align: center;
    margin-top: 3rem;
}

/* --- お知らせ --- */
.news {
    background-color: var(--color-bg-white);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
}

.news-item {
    border-bottom: 1px solid #EEEEEE;
}

.news-item:first-child {
    border-top: 1px solid #EEEEEE;
}

.news-link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    transition: background-color 0.3s;
}

@media (min-width: 768px) {
    .news-link {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.news-link:hover {
    background-color: var(--color-bg-base);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .news-meta {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
}

.news-date {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.news-cat {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.news-title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-btn-wrap {
    text-align: center;
    margin-top: 3rem;
}

/* --- 環境を知る --- */
.environment {
    background-color: var(--color-bg-base);
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .env-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.env-item {
    text-align: center;
}

.env-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-img);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.env-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- FAQ --- */
.faq {
    background-color: var(--color-bg-white);
}

.faq-item {
    margin-bottom: 1rem;
    background-color: var(--color-bg-base);
    border-radius: var(--radius-img);
    overflow: hidden;
}

.faq-q {
    padding: 1.5rem 2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
}

.faq-q::after {
    content: '＋';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-q::after {
    content: '－';
}

.faq-a {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-muted);
}

.faq-item.active .faq-a {
    padding: 0 2rem 1.5rem;
    max-height: 300px;
}

/* ========================================================
   base.css (4) footer.php 用スタイル (全ページ共通を想定)
======================================================== */
.bottom-cta {
    background-color: var(--color-text-main);
    color: var(--color-bg-white);
    text-align: center;
    padding: 5rem 0;
    margin-top: 4rem;
}

.bottom-cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

footer {
    background-color: var(--color-text-main);
    color: var(--color-bg-white);
    padding: 2rem 5% 4rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #888888;
}

/* ========================================================
   base.css (5) single.php 用スタイル
======================================================== */
.single-main {
    padding-top: 120px;
    padding-bottom: 6rem;
    background-color: var(--color-bg-base);
    min-height: 100vh;
}

.single-main .container {
    max-width: 800px;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-img);
    padding: 4rem 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.single-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-date {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.single-cat {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    color: var(--color-text-muted);
    background-color: var(--color-bg-white);
}

.single-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text-main);
}

.single-thumbnail {
    margin-bottom: 4rem;
    border-radius: var(--radius-img);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
}

.single-content p {
    margin-bottom: 2rem;
}

.single-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-accent);
}

.single-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-text-main);
}

.single-content ul,
.single-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content img {
    border-radius: var(--radius-img);
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.single-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #EEEEEE;
}

.single-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.single-nav a {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.single-nav a:hover {
    color: var(--color-accent);
}

.back-to-list {
    text-align: center;
}
/* ========================================================
   base.css (6) page-services.php (事業紹介) 用スタイル
======================================================== */

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 992px) {
    .services-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 5%;
    }
}

/* 左側のサイドバー (縦書きテキスト) */
.services-sidebar {
    display: none; /* スマホでは非表示 */
}

@media (min-width: 992px) {
    .services-sidebar {
        display: block;
        flex: 0 0 100px;
        position: sticky;
        top: 150px;
    }
    .sidebar-text-wrap {
        border-left: 2px solid var(--color-text-main);
        padding-left: 1rem;
        height: 300px; /* 縦線の長さ調整 */
    }
    .sidebar-text {
        writing-mode: vertical-rl;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 0.15em;
        line-height: 2;
        color: var(--color-text-main);
    }
}

/* 右側のコンテンツエリア */
.services-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6rem; /* サービス間の余白 */
}

.service-block {
    background-color: var(--color-bg-base); /* 背景色に溶け込ませる */
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.service-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text-main);
}
.service-title span {
    font-size: 0.6em;
    font-weight: normal;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

/* 右側のコンテンツエリア内：画像のスタイル修正 */
.service-img {
    /* 背景色やpadding、box-shadowを削除し、余白のみ残す */
    margin-bottom: 2.5rem;
}

.service-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* 角丸を非常に大きく設定してカプセル型（楕円）にする */
    border-radius: var(--radius-img);
}

.service-body {
    padding: 0 1rem;
}

.service-catch {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .service-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-box {
    background-color: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-img);
    border: 1px dashed #ddd; /* 破線ボーダー */
}

.feature-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: center;
}

.feature-box p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.service-action {
    text-align: right;
}
.service-action .btn {
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 10px rgba(239, 133, 125, 0.3); /* アクセントカラーのシャドウ */
}

/* ========================================================
base.css (7) page-company.php (会社概要) 用スタイル
======================================================== */

.company-block {
background-color: var(--color-bg-white);
padding: 2.5rem 1.5rem;
border-radius: var(--radius-img);
margin-bottom: 4rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
.company-block {
padding: 4rem;
}
}

.company-section-title {
font-size: clamp(1.4rem, 3vw, 1.8rem);
font-weight: 700;
color: var(--color-text-main);
border-bottom: 1px solid #ddd;
padding-bottom: 1rem;
margin-bottom: 2.5rem;
display: flex;
align-items: baseline;
gap: 1rem;
}

.company-section-title span {
font-size: 0.5em;
font-weight: normal;
color: var(--color-text-muted);
letter-spacing: 0.1em;
}

/* --- 代表挨拶エリア --- */
.message-content {
display: flex;
flex-direction: column;
gap: 2.5rem;
}

@media (min-width: 768px) {
.message-content {
flex-direction: row;
align-items: flex-start;
gap: 4rem;
}
}

.message-img {
flex: 0 0 100%;
max-width: 300px;
margin: 0 auto;
}

@media (min-width: 768px) {
.message-img {
flex: 0 0 35%;
max-width: none;
margin: 0;
}
}

.message-img img {
width: 100%;
aspect-ratio: 3 / 4;
object-fit: cover;
border-radius: 9999px; /* カプセル型に統一 */
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.message-text {
flex: 1;
}

.message-catch {
font-size: clamp(1.2rem, 2.5vw, 1.4rem);
font-weight: 700;
line-height: 1.8;
margin-bottom: 2rem;
color: var(--color-text-main);
}

.message-text p {
font-size: 0.95rem;
line-height: 2.2;
color: var(--color-text-muted);
margin-bottom: 1.5rem;
}

.message-text .message-sign {
text-align: right;
font-size: 1.1rem;
font-weight: 700;
color: var(--color-text-main);
margin-top: 3rem;
margin-bottom: 0;
}

/* --- 会社概要（2カラム）エリア --- */
.overview-content {
display: flex;
flex-direction: column;
gap: 2.5rem;
}

@media (min-width: 768px) {
.overview-content {
flex-direction: row;
align-items: stretch;
gap: 4rem;
}
}

.overview-map {
flex: 1;
min-height: 300px;
}

.overview-map iframe {
width: 100%;
height: 100%;
min-height: 300px;
border-radius: var(--radius-img);
background-color: #eee;
}

.overview-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

/* 会社概要リスト（既存クラスを流用しつつ調整） */
.overview-info .company-list {
display: grid;
grid-template-columns: 100px 1fr;
gap: 1.5rem 1rem;
border-top: 1px solid #eee;
padding-top: 1rem;
}

.overview-info .company-list dt {
font-weight: 700;
color: var(--color-text-main);
font-size: 0.95rem;
padding-bottom: 1.5rem;
border-bottom: 1px dashed #eee;
}

.overview-info .company-list dd {
font-size: 0.95rem;
color: var(--color-text-muted);
margin: 0;
padding-bottom: 1.5rem;
border-bottom: 1px dashed #eee;
line-height: 1.6;
}

/* ========================================================
   スマホメニューの修正
======================================================== */

/* メニューを開いている時は背景をスクロールさせない */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 1024px) {
    /* 修正: ハンバーガーアイコンを常に右上に固定 */
    .hamburger {
        position: fixed; /* ★追加: 常に固定 */
        top: 20px;       /* ★追加: 上からの位置 */
        right: 4%;       /* ★追加: 右からの位置 */
        z-index: 1001;
        display: flex;
    }
    
    /* 修正: ハンバーガーが開いた時の×ボタン */
    header.is-open .hamburger span {
        background-color: var(--color-text-main); /* ★追加: ×ボタンの時は黒色にする */
    }
    header.is-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    header.is-open .hamburger span:nth-child(2) { opacity: 0; }
    header.is-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    header.is-open .hamburger-text { display: none; }
    
    /* オーバーレイ背景 */
    .sp-menu-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    header.is-open .sp-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* メニュー本体を全画面表示にする */
    .header-nav-links { 
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        width: 90%;
        text-align: center;
    }
    header.is-open .header-nav-links {
        transform: translate(-50%, -50%);
        opacity: 1;
        visibility: visible;
    }

    /* メニューリストの縦並び */
    .header-nav-links ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* スマホメニューの文字色とサイズ */
    .header-nav-links a,
    header:not(.is-scrolled) .header-nav-links a {
        color: var(--color-text-main);
        font-size: 1.2rem;
        font-weight: 700;
    }
}