@charset "UTF-8";
/*
Theme Name: Sigma Logistics
Author: Administrative Scrivener Corp Sigma
Description: 倉庫業登録特化型の行政書士法人テーマ
Version: 1.0.0
*/

/* ==========================================================================
   1. Variables & Base Settings
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #154699;       /* メイン：信頼と希望を感じさせるインテリジェント・ブルー */
    --color-primary-dark: #0A246A;  /* ダーク：引き締め役のディープネイビー */
    --color-accent: #D4AF37;        /* アクセント：輝きのあるメタリック・ゴールド */
    --color-secondary: #E6F2FF;     /* サブ：開放感を出すスカイブルー */
    
    /* Text Colors */
    --color-text: #333333;          /* テキスト：ダークグレー */
    --color-text-light: #666666;    /* サブテキスト */
    
    /* Background Colors */
    --color-bg-light: #F4F8FB;      /* 背景用：清潔感のある青みホワイト */
    --color-white: #ffffff;

    /* Typography */
    --font-jp: "Noto Sans JP", sans-serif;
    --font-serif: "Noto Serif JP", serif;
    --font-en: "Cormorant Garamond", serif;
    --font-num: "Helvetica Neue", Arial, sans-serif;
    
    /* Header Height */
    --header-height: 90px;
    --header-height-sp: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    line-height: 2.0;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
}

ul, ol {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   2. Layout & Utility Classes
   ========================================================================== */
.l-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.l-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.is-bg-light { background-color: var(--color-bg-light); }
.u-sp-only { display: none; }
.u-pc-only { display: block; }
.u-text-accent { color: var(--color-accent); }

/* Animation Utility: フェードアップ */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.js-fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}
.u-delay-100 { transition-delay: 0.1s; }
.u-delay-200 { transition-delay: 0.2s; }
.u-delay-300 { transition-delay: 0.3s; }

@media (max-width: 960px) {
    .u-sp-only { display: block; }
    .u-pc-only { display: none; }
    .l-section { padding: 80px 0; }
}

/* ==========================================================================
   3. Typography & Components
   ========================================================================== */
.c-section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}
.c-section-header__en {
    display: block;
    font-family: var(--font-en);
    font-size: 6rem;
    color: rgba(21, 70, 153, 0.05);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}
.c-section-header__jp {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
}
.c-section-header__sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 15px;
    display: block;
}
.c-heading-secondary {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.5;
}
.c-text-lead {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-primary);
}
.c-text {
    margin-bottom: 1.5em;
    text-align: justify;
}

@media (max-width: 767px) {
    .c-section-header__en { font-size: 4rem; }
    .c-section-header__jp { font-size: 1.8rem; }
    .c-heading-secondary { font-size: 1.5rem; }
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.l-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 15px rgba(0,0,0,0.03);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}
.l-header__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.l-header__logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1002;
    line-height: 1;
}
.l-header__logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.l-header__text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.l-header__tagline {
    font-size: 0.65rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.l-header__name {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 700;
    font-family: var(--font-serif);
    line-height: 1.2;
}

/* PC Navigation */
.l-header__nav {
    margin-left: auto;
    margin-right: 50px;
    height: 100%;
    display: flex;
    align-items: center;
}
.l-header__nav-list {
    display: flex;
    gap: 0;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}
.l-header__nav-item {
    position: relative;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
}
.l-header__nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background-color: #ddd;
}
.l-header__nav-item:last-child::after { display: none; }

.l-header__nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: var(--color-text);
    position: relative;
}
.l-header__nav-item a .jp {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}
.l-header__nav-item a .en {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: capitalize;
    display: block;
    margin-top: 2px;
    opacity: 0.7;
    transition: transform 0.3s, opacity 0.3s;
}
.l-header__nav-item a:hover .jp { color: var(--color-accent); }
.l-header__nav-item a:hover .en { opacity: 1; transform: translateY(2px); }

/* Disabled Link */
.is-disabled { cursor: default; opacity: 1; }
.is-disabled:hover .jp { color: var(--color-text); }
.is-disabled:hover .en { transform: none; opacity: 0.7; }

/* Contact Actions */
.l-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.l-header__contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.l-header__contact-info .label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 2px;
}
.tel-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-num);
    line-height: 1;
}
.c-btn-header {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.c-btn-header:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

/* Hamburger & Drawer */
.l-header__hamburger {
    position: relative;
    z-index: 1002;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    appearance: none;
}
.l-header__hamburger span {
    position: absolute;
    left: 10px;
    width: 28px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.4s;
    border-radius: 2px;
}
.l-header__hamburger span:nth-of-type(1) { top: 14px; }
.l-header__hamburger span:nth-of-type(2) { top: 23px; }
.l-header__hamburger span:nth-of-type(3) { bottom: 14px; }
.l-header__hamburger.is-active span { background-color: #fff; }
.l-header__hamburger.is-active span:nth-of-type(1) { transform: translateY(9px) rotate(45deg); }
.l-header__hamburger.is-active span:nth-of-type(2) { opacity: 0; }
.l-header__hamburger.is-active span:nth-of-type(3) { transform: translateY(-9px) rotate(-45deg); }

.l-drawer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-primary);
    color: #fff;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.l-drawer.is-active { opacity: 1; visibility: visible; }
.l-drawer__inner { width: 100%; padding: 0 40px; text-align: center; }
.l-drawer__list { margin-bottom: 40px; list-style: none; padding: 0; }
.l-drawer__item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.l-drawer__item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.l-drawer__item a { display: block; padding: 15px 0; font-size: 1rem; font-weight: 700; }
.l-drawer__item .en {
    display: block; font-family: var(--font-en); font-size: 0.9rem;
    color: var(--color-accent); margin-bottom: 2px; font-weight: 400;
}
.l-drawer__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.l-drawer__tel { font-size: 0.9rem; opacity: 0.8; }
.l-drawer__tel a { font-family: var(--font-num); font-size: 1.2rem; font-weight: 700; color: #fff; margin-left: 5px; }

@media (max-width: 767px) {
    .l-header { height: var(--header-height-sp); }
    .l-header__logo-img { height: 32px; }
    .l-header__tagline { display: none; }
    .l-header__name { font-size: 0.9rem; }
}

/* ==========================================================================
   5. Main Visual
   ========================================================================== */
.p-mv { position: relative; height: 85vh; min-height: 550px; overflow: hidden; display: flex; align-items: center; }
.p-mv__bg, .p-mv__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.p-mv__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-mv__overlay { background: linear-gradient(90deg, rgba(10, 36, 106, 0.9) 0%, rgba(21, 70, 153, 0.8) 50%, rgba(21, 70, 153, 0.4) 100%); z-index: 1; }
.p-mv__content { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; color: #fff; }
.p-mv__lead { font-family: var(--font-en); font-size: 1.2rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.8); margin-bottom: 20px; text-transform: uppercase; }
.p-mv__title { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.3; font-weight: 700; margin-bottom: 30px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.p-mv__desc { font-size: 1.1rem; line-height: 1.8; opacity: 0.9; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 20px; }

@media (max-width: 767px) {
    .p-mv { height: 600px; }
    .p-mv__title { font-size: 2.2rem; }
}

/* Problem Grid */
.p-problem__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.p-problem__card { background: #fff; border: 1px solid #eee; padding: 40px; position: relative; transition: box-shadow 0.3s; }
.p-problem__card:hover { box-shadow: 0 10px 30px rgba(21, 70, 153, 0.1); border-color: var(--color-primary); }
.p-problem__num { display: block; font-family: var(--font-en); font-size: 3rem; color: #eee; font-weight: 700; position: absolute; top: 20px; right: 20px; line-height: 1; }
.p-problem__head { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 15px; font-weight: 700; display: flex; align-items: center; }
.p-problem__head::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--color-accent); margin-right: 10px; border-radius: 50%; }
.p-problem__text { font-size: 0.95rem; color: var(--color-text); }
@media (max-width: 767px) { .p-problem__grid { grid-template-columns: 1fr; } .p-problem__card { padding: 30px; } }

/* Solution */
.p-solution__wrapper { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.p-solution__content { flex: 1; }
.p-solution__visual { flex: 1; position: relative; }
.p-solution__visual img { border-radius: 4px; box-shadow: 20px 20px 0px var(--color-secondary); }
.p-solution__note { background: #fff; border-left: 4px solid var(--color-accent); padding: 20px; margin-top: 30px; font-size: 0.9rem; color: var(--color-text-light); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.c-bg-decoration { position: absolute; top: -50px; right: -50px; font-family: var(--font-en); font-size: 20rem; color: #fff; opacity: 0.5; z-index: 0; pointer-events: none; line-height: 1; }
@media (max-width: 960px) { .p-solution__wrapper { flex-direction: column; } .c-bg-decoration { display: none; } }

/* Service Cards */
.p-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.c-card { background: #fff; display: flex; flex-direction: column; height: 100%; border: 1px solid #eee; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.c-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(21, 70, 153, 0.15); border-color: transparent; }
.c-card__img-wrapper { overflow: hidden; height: 180px; }
.c-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.c-card:hover .c-card__img { transform: scale(1.08); }
.c-card__body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.c-card__cat { font-family: var(--font-en); font-size: 0.75rem; color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 8px; text-transform: uppercase; }
.c-card__title { font-size: 1.1rem; margin-bottom: 12px; font-weight: 700; color: var(--color-primary); }
.c-card__text { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 20px; line-height: 1.6; }
.c-card__arrow { margin-top: auto; align-self: flex-end; font-size: 1.2rem; color: var(--color-accent); transition: transform 0.3s; }
.c-card:hover .c-card__arrow { transform: translateX(5px); }

/* Contact Box */
.p-contact__box { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; padding: 80px 60px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(21, 70, 153, 0.3); }
.p-contact__box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--color-accent), #fff, var(--color-accent)); }
.p-contact__header { text-align: center; margin-bottom: 50px; }
.p-contact__title { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 15px; }
.p-contact__sub { font-size: 1rem; opacity: 0.9; }
.p-contact__note { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 20px; text-align: center; max-width: 600px; margin: 0 auto 50px; }
.p-contact__note p { margin: 0; }
.p-contact__row { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; }
.p-contact__offices { display: flex; gap: 40px; }
.p-contact__office { display: flex; flex-direction: column; }
.office-name { font-size: 0.8rem; color: var(--color-accent); margin-bottom: 5px; font-weight: 700; }
.office-tel { font-family: var(--font-num); font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.c-btn-contact { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--color-accent); color: #fff; width: 320px; padding: 20px 0; border-radius: 50px; transition: transform 0.3s, background 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.c-btn-contact:hover { background: #d4b06a; transform: translateY(-3px); color: #fff; }
.c-btn-contact .en { font-family: var(--font-en); font-size: 1.2rem; line-height: 1; margin-bottom: 4px; }
.c-btn-contact .jp { font-size: 1rem; font-weight: 700; }
@media (max-width: 767px) { .p-contact__box { padding: 50px 24px; } .p-contact__title { font-size: 1.8rem; } .p-contact__row { flex-direction: column; gap: 40px; } .p-contact__offices { flex-direction: column; gap: 20px; text-align: center; } .c-btn-contact { width: 100%; } }

/* ==========================================================================
   6. Lower Page Styles
   ========================================================================== */

/* Page Header */
.p-page-header {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.p-page-header__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.p-page-header__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.p-page-header__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(21, 70, 153, 0.9), rgba(10, 36, 106, 0.8)); 
    z-index: 2;
}
.p-page-header__inner {
    position: relative;
    z-index: 3;
    width: 100%;
}
.p-page-header__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

/* Breadcrumb */
.c-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.c-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.c-breadcrumb li { display: flex; align-items: center; }
.c-breadcrumb li:not(:last-child)::after { content: '>'; margin-left: 10px; font-size: 0.8em; opacity: 0.6; }
.c-breadcrumb a { text-decoration: underline; color: #fff; }
.c-breadcrumb a:hover { text-decoration: none; color: var(--color-accent); }

/* Layout 2 Columns */
.l-page-container { padding: 80px 0; background-color: #fff; }
.l-page-container__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.l-main { flex: 1; width: 100%; min-width: 0; }

/* Content Styles */
.post-content h2 { font-size: 1.6rem; border-bottom: 2px solid var(--color-primary); padding-bottom: 10px; margin-bottom: 30px; margin-top: 40px; }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-size: 1.3rem; border-left: 5px solid var(--color-accent); padding-left: 15px; margin-bottom: 20px; margin-top: 40px; }
.post-content p { margin-bottom: 2em; line-height: 1.8; }

.post-content ul, .post-content ol {
    margin-bottom: 2em;
    padding-left: 1.5em;
}
.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal; }
.post-content li { margin-bottom: 0.5em; }

/* Sidebar */
.l-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 120px; }

/* Widget */
.p-widget { margin-bottom: 40px; background: #fff; }
.p-widget__title { font-size: 1.1rem; background: var(--color-primary); color: #fff; padding: 12px 15px; margin-bottom: 0; font-family: var(--font-serif); }

/* Sidebar List */
.p-widget__list { border: 1px solid #eee; border-top: none; list-style: none; padding: 0; }
.p-widget__list li { border-bottom: 1px solid #eee; }
.p-widget__list li a { display: block; padding: 15px; font-size: 0.95rem; position: relative; transition: background 0.2s, color 0.2s; }
.p-widget__list li a::after { content: '›'; position: absolute; right: 15px; color: var(--color-accent); }
.p-widget__list li a:hover { background: var(--color-bg-light); color: var(--color-primary); }

.p-widget__post-list { list-style: none; padding: 0; }
.p-widget__post-list li { border-bottom: 1px solid #eee; padding: 15px 0; }
.p-widget__post-list li:last-child { border-bottom: none; }
.p-widget__post-list a { display: block; }
.p-widget__post-list a:hover .title { color: var(--color-accent); text-decoration: underline; }
.p-widget__post-list .date { display: block; font-size: 0.75rem; color: #999; margin-bottom: 4px; }
.p-widget__post-list .title { display: block; font-size: 0.9rem; line-height: 1.5; }

/* Sidebar Banner Contact */
.c-banner-contact {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
    border-radius: 4px;
}
.c-banner-contact:hover { transform: translateY(-3px); }
.c-banner-contact__img { width: 100%; height: 200px; overflow: hidden; }
.c-banner-contact__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.c-banner-contact:hover .c-banner-contact__img img { transform: scale(1.05); }
.c-banner-contact__body { padding: 20px; }
.c-banner-contact__lead { font-size: 0.9rem; font-weight: 700; color: var(--color-primary); margin-bottom: 5px; }
.c-banner-contact__tel { font-family: var(--font-num); font-size: 1.4rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; margin-bottom: 15px; }
.c-banner-contact__btn { display: block; background: var(--color-accent); color: #fff; padding: 10px; font-weight: 700; border-radius: 50px; font-size: 0.9rem; }

/* Responsive (SP) for Lower Pages */
@media (max-width: 960px) {
    .l-page-container__inner { flex-direction: column; gap: 60px; }
    .l-main { width: 100%; }
    .l-sidebar { width: 100%; position: static; }
    .p-page-header { height: 180px; }
    .p-page-header__title { font-size: 1.8rem; }
}

/* ==========================================================================
   7. Case Study Single Page Styles
   ========================================================================== */

/* Header Area */
.p-case-detail__header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.p-case-detail__meta {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.c-label {
    font-size: 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.p-case-detail__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}

/* Spec Table (Grid) */
.p-case-spec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #eee;
    border: 1px solid #eee;
    margin-bottom: 50px;
}

.p-case-spec dl {
    background-color: #fff;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.p-case-spec dl:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.p-case-spec dt {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 5px;
}

.p-case-spec dd {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Story Sections */
.p-case-section {
    margin-bottom: 50px;
}

/* Document Image (Redacted) */
.p-case-document {
    background-color: var(--color-bg-light);
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 40px 0;
}

.p-case-document img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.p-case-document figcaption {
    font-size: 0.8rem;
    color: #888;
}

/* Consultant Memo */
.p-consultant-memo {
    background-color: #fff8e1;
    border: 2px solid var(--color-accent);
    padding: 30px;
    border-radius: 8px;
    margin-top: 60px;
    position: relative;
}

.p-consultant-memo__head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.p-consultant-memo__head .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.p-consultant-memo__head .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-consultant-memo__head .title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.p-consultant-memo__body p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Entry CTA */
.p-entry-cta {
    margin-top: 80px;
    background: var(--color-bg-light);
    padding: 40px;
    text-align: center;
    border-top: 4px solid var(--color-primary);
}

.p-entry-cta__text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 767px) {
    .p-case-detail__title { font-size: 1.4rem; }
    .p-case-spec { grid-template-columns: 1fr; }
    .p-consultant-memo { padding: 20px; }
    .p-consultant-memo__head .icon { width: 50px; height: 50px; }
}

/* ==========================================================================
   8. Knowledge/Q&A Single Page Styles
   ========================================================================== */

/* Header Meta */
.p-entry__header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.p-entry__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.p-entry__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
}

/* Chat UI (吹き出し) - アイコンサイズ調整版 */
.p-chat {
    display: flex;
    gap: 15px; /* アイコンと吹き出しの間隔も少し狭める */
    margin-bottom: 30px;
    align-items: flex-start;
}

.p-chat__icon {
    /* 【変更】サイズを60pxから40pxに縮小 */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 【変更】中のアイコンフォントサイズも微調整 */
    font-size: 1.1rem;
    border: 2px solid #eee;
    background: #fff;
    overflow: hidden;
    /* 【追加】少し上に見えるよう位置調整 */
    margin-top: 5px; 
}
.p-chat__icon img { width: 100%; height: 100%; object-fit: cover; }

.p-chat__body {
    background: #f4f8fb;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.8;
    flex: 1;
}
.p-chat__body p { margin: 0; }

/* 吹き出しの三角位置の微調整（アイコンサイズ変更に伴い調整） */
.p-chat--question .p-chat__icon {
    background: #eee;
    color: #888;
}
.p-chat--question .p-chat__body {
    background: #f0f0f0;
}
.p-chat--question .p-chat__body::before {
    content: '';
    position: absolute;
    top: 15px; left: -10px; /* 位置合わせ */
    border-top: 10px solid transparent;
    border-right: 10px solid #f0f0f0;
    border-bottom: 10px solid transparent;
}

.p-chat--answer {
    flex-direction: row-reverse;
}
.p-chat--answer .p-chat__icon {
    border-color: var(--color-accent);
}
.p-chat--answer .p-chat__body {
    background: #e6f2ff;
    border: 1px solid #cce0ff;
}
.p-chat--answer .p-chat__body::before {
    content: '';
    position: absolute;
    top: 15px; right: -10px; /* 位置合わせ */
    border-top: 10px solid transparent;
    border-left: 10px solid #e6f2ff;
    border-bottom: 10px solid transparent;
}

/* Table of Contents */
.p-toc {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px 30px;
    margin: 40px 0;
    border-radius: 4px;
}
.p-toc__title {
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: var(--color-primary);
}
.p-toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.p-toc li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}
.p-toc li:last-child { border: none; }
.p-toc a {
    color: var(--color-text);
    text-decoration: none;
}
.p-toc a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Point Box & Alert Box */
.p-point-box, .p-alert-box {
    padding: 25px;
    margin: 40px 0;
    border-radius: 4px;
}

.p-point-box {
    background: #fff;
    border: 2px solid var(--color-primary);
}
.p-point-box__title {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.p-alert-box {
    background: #fff8f8;
    border: 1px solid #ffcccc;
}
.p-alert-box__title {
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Privacy Banner */
.p-privacy-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.p-privacy-banner__icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}
.p-privacy-banner__text strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.05rem;
}
.p-privacy-banner__text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Related Posts */
.p-related-posts {
    margin-top: 60px;
}
.p-related-posts__head {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.p-related-posts__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.p-related-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.p-related-item:hover .title {
    color: var(--color-accent);
    text-decoration: underline;
}
.p-related-item__img {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
}
.p-related-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.p-related-item__body .title {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 700;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .p-entry__title { font-size: 1.4rem; }
    .p-chat { flex-direction: column; }
    .p-chat--answer { flex-direction: column; }
    .p-chat__body::before { display: none; }
    .p-privacy-banner { flex-direction: column; text-align: center; }
    .p-related-posts__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. Archive Page Styles
   ========================================================================== */

/* Grid Layout */
.p-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

/* Archive Item (Card) */
.p-archive-item {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.p-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(21, 70, 153, 0.1);
    border-color: transparent;
}

.p-archive-item__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.p-archive-item__thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
}

.p-archive-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.p-archive-item:hover .p-archive-item__thumb img {
    transform: scale(1.08);
}

/* カテゴリラベル */
.p-archive-item__cat {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 12px;
    font-weight: 700;
}

.p-archive-item__body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-archive-item__meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    font-family: var(--font-num);
}

.p-archive-item__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.p-archive-item__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Pagination */
.c-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.c-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-num);
    transition: all 0.3s;
}

.c-pagination a.page-numbers:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.c-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.c-pagination .next {
    width: auto;
    padding: 0 15px;
}

.c-pagination .dots {
    border: none;
    width: auto;
}

/* Responsive (SP) */
@media (max-width: 767px) {
    .p-archive-grid {
        grid-template-columns: 1fr;
    }
    .p-archive-item__thumb {
        height: 180px;
    }
    .p-archive-item__title {
        font-size: 1rem;
    }
}

/* ==========================================================================
   10. News Archive Styles (Text List)
   ========================================================================== */

.p-news-list {
    border-top: 1px solid #eee;
    margin-bottom: 60px;
}

.p-news-list__item {
    border-bottom: 1px solid #eee;
}

.p-news-list__link {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    transition: background-color 0.3s;
    color: inherit;
}

.p-news-list__link:hover {
    background-color: var(--color-bg-light);
    padding-left: 10px;
    padding-right: 10px;
}
.p-news-list__link:hover .p-news-list__title {
    color: var(--color-primary);
    text-decoration: underline;
}

.p-news-list__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 220px;
    flex-shrink: 0;
}

.p-news-list__meta time {
    font-family: var(--font-num);
    color: #888;
    font-size: 0.9rem;
}

.p-news-list__title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsive (SP) */
@media (max-width: 767px) {
    .p-news-list__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .p-news-list__meta {
        width: 100%;
    }
}

/* ==========================================================================
   11. 404 Page Styles
   ========================================================================== */

/* 404 Container adjustment */
.l-page-container--404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
}

.p-404 {
    text-align: center;
    background: #fff;
    padding: 80px 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto;
}

.p-404__icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.p-404__title {
    font-family: var(--font-en);
    font-size: 3rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 700;
}

.p-404__lead {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.p-404__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.p-404__btn {
    margin-bottom: 60px;
}

/* Useful Links in 404 */
.p-404__links {
    border-top: 1px dashed #ddd;
    padding-top: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.p-404__links-label {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.p-404__links-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.p-404__links-list li a {
    color: var(--color-text);
    text-decoration: underline;
    transition: color 0.3s;
}

.p-404__links-list li a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
    .p-404 {
        padding: 60px 20px;
    }
    .p-404__title {
        font-size: 2.5rem;
    }
    .p-404__lead {
        font-size: 1.2rem;
    }
    .p-404__links-list {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.l-footer {
    background: #111;
    color: #aaa;
    padding: 80px 0 30px;
    font-size: 0.9rem;
    width: 100%;
}

.l-footer__content {
    margin-bottom: 60px;
}

.l-footer__brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.l-footer__logo-img {
    height: 60px;
    width: auto;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
}

.l-footer__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.l-footer__offices {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.l-footer__office-name {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    border-left: 3px solid var(--color-accent);
    padding-left: 12px;
}

.l-footer__address {
    margin-bottom: 10px;
    line-height: 1.6;
}

.l-footer__tel {
    font-family: var(--font-num);
    color: #fff;
    font-weight: 700;
}

.l-footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 0.75rem;
}

/* Footer Responsive */
@media (max-width: 767px) {
    .l-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .l-footer__offices {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   13. Contact Form 7 Styles
   ========================================================================== */

/* Form Container */
.p-form {
    background: #fff;
    padding: 60px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.p-form-list {
    width: 100%;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
}

/* Form Row */
.p-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

/* Label (dt) */
.p-form-row dt {
    width: 240px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 20px;
}

/* Required / Optional Tags */
.u-label-req,
.u-label-any {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.u-label-req {
    background-color: #d32f2f; /* 赤色 */
}

.u-label-any {
    background-color: #999; /* グレー */
}

/* Input Area (dd) */
.p-form-row dd {
    flex: 1;
    margin: 0;
    width: 100%; /* SPでの崩れ防止 */
}

/* Input Fields */
.p-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fcfcfc;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s;
    font-family: inherit;
}

.p-form-control:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 70, 153, 0.1);
    outline: none;
}

.p-form-control::placeholder {
    color: #ccc;
}

/* Textarea */
textarea.p-form-control {
    line-height: 1.6;
    resize: vertical; /* 縦方向のみリサイズ許可 */
}

/* Privacy Checkbox */
.p-form-privacy {
    text-align: center;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.p-form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.p-form-privacy a:hover {
    text-decoration: none;
}

/* CF7 Checkbox Style Adjustment */
.wpcf7-list-item {
    margin: 0;
}
.wpcf7-list-item input {
    margin-right: 8px;
    transform: scale(1.2); /* チェックボックスを少し大きく */
    accent-color: var(--color-primary);
}

/* Submit Button */
.p-form-submit {
    text-align: center;
}

.p-form-submit input[type="submit"] {
    background: var(--color-accent); /* ゴールド */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    /* デフォルトスタイル解除 */
    -webkit-appearance: none;
}

.p-form-submit input[type="submit"]:hover {
    background: #d4b06a; /* 少し濃いゴールド */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* CF7 Error Message */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-top: 5px;
    font-weight: 700;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive (SP) */
@media (max-width: 767px) {
    .p-form {
        padding: 30px 20px;
    }

    .p-form-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .p-form-row dt {
        width: 100%;
        margin-bottom: 10px;
        padding-right: 0;
    }

    .p-form-submit input[type="submit"] {
        width: 100%;
        padding: 15px;
    }
}

/* ==========================================================================
   14. Access (Map) Section
   ========================================================================== */

.p-access__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.p-access__item {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.p-access__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(21, 70, 153, 0.1);
}

.p-access__info {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.p-access__office {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.p-access__office::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-right: 10px;
}

.p-access__address {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.p-access__map-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* アスペクト比固定 (例: 100:60) */
    background: #f4f4f4; /* ロード中の背景色 */
}

.p-access__map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    /* デザイン性を高めるため、地図に少しフィルタをかけて馴染ませる（任意） */
    /* filter: grayscale(20%); */
}

/* Responsive */
@media (max-width: 767px) {
    .p-access__grid {
        grid-template-columns: 1fr; /* スマホでは縦積み */
        gap: 30px;
    }

    .p-access__map-wrapper {
        padding-top: 65%; /* スマホでは少し高さを出す */
    }
}

/* ==========================================================================
   15. Page Top Button
   ========================================================================== */
.c-pagetop {
    position: fixed;
    right: 20px;
    bottom: 90px; /* reCAPTCHAとかぶらないように少し上に配置 */
    width: 50px;
    height: 50px;
    background: var(--color-primary); /* メインカラー */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 900; /* ヘッダー(1000)より下、コンテンツより上 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.c-pagetop i {
    font-size: 1.2rem;
    margin-top: -2px; /* 視覚的な中央補正 */
}

/* 表示時のスタイル */
.c-pagetop.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ホバー時のスタイル */
.c-pagetop:hover {
    background: var(--color-accent); /* アクセントカラー（ゴールド） */
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* スマホでの調整 */
@media (max-width: 767px) {
    .c-pagetop {
        right: 15px;
        bottom: 80px; /* スマホでもreCAPTCHAを避ける */
        width: 44px;
        height: 44px;
    }
}