/* =========================
   1. 基本設定
   ========================= */
:root {
    /* フォントファミリー */
    --font-primary: 'Noto Serif JP', serif;
    --font-secondary: 'Helvetica Neue', sans-serif;
    
    /* カラー */
    --color-primary: #0b6fac;
    --color-secondary: #676868;
    --color-text: #333;
    --color-text-light: #555;
    --color-border: #e8e8e8;
    --color-background: #f8f8f8;
    
    /* トランジション */
    --transition-standard: 0.3s ease;
}

html {
    font-size: 100%;
    font-family: var(--font-primary);
}

/* =========================
   2. レイアウト用コンテナ
   ========================= */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 300px;
}

.contentsbox {
    margin-top: 20vw;
}

/* =========================
   3. タイポグラフィ
   ========================= */
/* キャッチコピー */
.catch {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.5em;
    font-family: var(--font-primary);
}

/* サブコピー */
.subcatch {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 1000;
    margin-bottom: 0;
    font-family: var(--font-primary);
}

/* 本文テキスト */
.bodytext,
.table-block ul li {
    font-size: clamp(0.9rem, 1.5vw, 1.45rem);
    line-height: 1.6;
    text-align: justify;
    letter-spacing: 0.03em;
    text-justify: inter-ideograph;
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

.u-d-border {
    border-top: 0.5px solid #000;
    border-bottom: 0.5px solid #000;
}

/* =========================
   4. ロゴ・ナビゲーション
   ========================= */
.bottom-nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 300;
    width: 20vw;
}

.logo-row {
    display: flex;
    opacity: 0.6;
    width: 100%;
    margin-bottom: 0;
}

.bottom-nav img {
    margin: 0;
    width: 100%;
    height: auto;
}

.bottom-nav img[alt="Logo White"] {
    flex-grow: 0;
    max-width: 100%;
    width: 100%;
    object-fit: contain;
}

/* =========================
   5. 情報表示ボックス
   ========================= */
.date-box {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5vw;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    width: 90vw;
    max-width: 1200px;
    min-width: 300px;
    box-sizing: border-box;
}

.date-text,
.time-text,
.cursor-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 1.5vw, 24px);
    font-family: sans-serif;
    white-space: nowrap;
    padding: 0 1vw;
    flex: 1;
    text-align: center;
}

.date-text {
    text-align: left;
}

.time-text {
    text-align: center;
}

.cursor-text {
    text-align: right;
}

/* =========================
   6. メニューシステム
   ========================= */
/* PCメニュー */
.pc-menu {
    display: none;
    position: fixed;
    top: 38px;
    left: 62%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5vw;
    z-index: 100;
    width: 70vw;
    max-width: 1200px;
    min-width: 300px;
    box-sizing: border-box;
}

.pc-menu ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-menu li {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 1.5vw, 24px);
    font-family: sans-serif;
    cursor: pointer;
    transition: color 0.3s;
}

.pc-menu li:hover {
    color: rgba(255, 255, 255, 1);
}

/* スマートフォンメニュー */
.sp-menu-button {
    display: none;
    position: fixed;
    top: 20px;
    right: 28px;
    z-index: 400;
    width: 36px;
    height: 37px;
    cursor: pointer;
}

.sp-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 12px 0;
    transition: 0.3s;
}

.sp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 350;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sp-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-menu-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 400px;
    background-color: rgb(39 39 39 / 95%);
    padding: 20px;
    z-index: 360;
}

.sp-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 37px 0 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.sp-menu-item a {
    text-decoration: none;;
}

.sp-menu-item-jp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-align: right;
    flex: 1;
}

.sp-menu-item-en {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-right: 15px;
}

/* =========================
   7. テーブルセクション
   ========================= */
.table-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: #fdfdfd;
}

.table-block h2,
.leftline {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #222;
    border-left: 2px solid #7d8081;
    padding-left: 0.5rem;
}

.table-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-block ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.table-block ul li:last-child {
    border-bottom: none;
}

/* =========================
   8. 3カラムレイアウト
   ========================= */
.pc3s1 {
    width: 100%;
    margin-top: 50px;
}

.pc3s1-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    align-items: stretch;
}

.pc3s1-inner-left,
.pc3s1-inner-center,
.pc3s1-inner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 600px;
}

.pc3s1-inner-left img,
.pc3s1-inner-center img,
.pc3s1-inner-right img {
    width: 40%;
    height: 100px;
    object-fit: contain;
    margin: 0;
    display: block;
}

.pc3s1-inner-left .subcatch,
.pc3s1-inner-center .subcatch,
.pc3s1-inner-right .subcatch {
    margin: 0.1rem 0;
    width: 100%;
    text-align: center;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc3s1-inner-left .bodytext,
.pc3s1-inner-center .bodytext,
.pc3s1-inner-right .bodytext {
    width: 100%;
    margin: 0;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* =========================
   9. 動画関連
   ========================= */
/* 動画コンテナ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* 動画 */
.content-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* オーバーレイ画像 */
.video-container .over_mov {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50% !important;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.pc3s1 video {
    width: 100%;
    max-width: 1080px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin: 2rem auto;
    display: block;
}

/* =========================
   10. 2列ボックスレイアウト
   ========================= */
.box2by2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.box2by2-inner {
    width: 100%;
}

.box2by2-inner-left {
    width: 100%;
}

.box2by2-inner-left img {
    width: 50%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* =========================
   11. 1:2レイアウトボックス
   ========================= */
.box1under2 {
    width: 100%;
    max-width: 1080px;
    margin: 3rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.box1under2-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-family: 'Noto Serif JP', serif;
    color: #333;
    border-left: 2px solid #676868;
    padding-left: 1rem;
    position: relative;
}

.box1under2-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #676868 0%, #676868 20%, transparent 100%);
}

.box1under2-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.box1under2-inner-left {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.box1under2-inner-left .achievement-list {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.box1under2-inner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 2rem;
}

.box1under2-inner-right img {
    width: 100%;
    height: auto;
    max-width: 447px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =========================
   12. 実績リスト
   ========================= */
.achievement-list {
    width: 100%;
}

.achievement-category {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.achievement-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.achievement-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    position: relative;
    font-family: var(--font-primary);
}

.achievement-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: var(--color-primary);
}

.achievement-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-items > li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.8rem;
    line-height: 1.6;
    color: var(--color-text);
    transition: color var(--transition-standard);
}

.achievement-items > li:hover {
    color: var(--color-primary);
}

.achievement-items > li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
    font-weight: bold;
    transition: transform var(--transition-standard);
}

.achievement-items > li:hover::before {
    transform: scale(1.2);
}

.achievement-subitems {
    list-style: none;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 0.5rem 0;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.achievement-subitems > li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 0.95em;
    color: #555;
    transition: color var(--transition-standard);
}

.achievement-subitems > li:hover {
    color: var(--color-primary);
}

.achievement-subitems > li::before {
    content: "◦";
    position: absolute;
    left: 0.5rem;
    color: var(--color-secondary);
    transition: transform var(--transition-standard);
}

.achievement-subitems > li:hover::before {
    transform: scale(1.2);
}

.achievement-image {
    margin-top: 3rem;
    text-align: center;
}

.achievement-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-standard);
}

/* =========================
   13. スライドショー
   ========================= */
.slide-show {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 2rem auto;
    overflow: hidden;
}

.slide-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-standard);
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slide-arrow.prev {
    left: 10px;
}

.slide-arrow.next {
    right: 10px;
}

/* =========================
   14. フッター
   ========================= */
.footer {
    background-color: #3b3b3b;
    color: #eee;
    padding: 2rem 1rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-logo-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    max-width: 160px;
    height: auto;
}

.footer-contact p {
    margin: 0.3rem 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sns-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sns-links li {
    font-size: 1rem;
}

.sns-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.privacy {
    margin-top: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* =========================
   15. メディアクエリ
   ========================= */
/* PC表示（768px以上） */
@media screen and (min-width: 768px) {
    /* メニュー */
    .pc-menu {
        display: block;
    }
    .sp-menu-button {
        display: none;
    }
    .sp-menu-overlay {
        display: none !important;
    }

    /* ナビゲーション */
    .topnav {
        background: rgb(255, 255, 255);
        width: 100%;
        display: block;
        height: 10vw;
        position: fixed;
        top: 0;
        left: 0;
    }

    /* テーブル */
    .table-section {
        flex-direction: row;
        justify-content: space-between;
    }
    .table-block {
        flex: 1;
    }
    .table-block ul li {
        font-size: 1rem;
    }

    /* 2列ボックス */
    .box2by2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* 1:2レイアウト */
    .box1under2-inner {
        align-items: flex-start;
        gap: 1rem;
        padding: 3rem;
    }
    .box1under2-inner-left {
        flex: 2;
    }
    .box1under2-inner-right {
        flex: 1;
        position: sticky;
        top: 2rem;
    }

    /* 実績リスト */
    .achievement-category {
        margin-bottom: 3rem;
        padding-bottom: 2.5rem;
    }
    .achievement-title {
        font-size: 1.3rem;
    }
    .achievement-image {
        margin-top: 4rem;
    }
    .achievement-image img {
        max-width: 600px;
    }

    /* フッター */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-logo-contact {
        flex-direction: row;
        gap: 2rem;
    }
    .footer-contact {
        font-size: 0.95rem;
    }
    .footer-links {
        align-items: flex-end;
        text-align: right;
    }

    .catch {
        font-size: 1.8rem !important;
    }
    
}

/* デフォルトは両方非表示 */
.sp-only {
    display: none !important;
  }
  .pc-only {
    display: block !important;
  }
  
  /* スマートフォン表示（767px以下） */
  @media screen and (max-width: 767px) {
    .sp-only {
      display: block !important;
    }
    .pc-only {
      display: none !important;
    }
  }

/* スマートフォン表示（767px以下） */
@media screen and (max-width: 767px) {
    .cms-contentsbox {
      }
    .contentsbox{
        margin-top: 150px;
    }

    /* ナビゲーション */
    .topnav {
        background: rgb(255, 255, 255);
        width: 100%;
        display: block;
        height: 20vw;
        position: fixed;
        top: 0;
        left: 0;
    }
    .pc-menu {
        display: none;
    }
    .bottom-nav {
        position: fixed;
        top: 30px;
        left: 30px;
        z-index: 1300;
        width: 35vw;
    }
    .sp-menu-button {
        display: block;
    }
    .sp-menu-overlay {
        display: block !important;
    }

    /* サブページ用メニュー */
    .sub-page .sp-menu-button span {
        background-color: rgba(0, 0, 0, 0.7);
    }
    .sub-page .sp-menu-overlay {
        background-color: rgba(255, 255, 255, 0.95);
    }
    .sub-page .sp-menu-content {
        background-color: rgba(0, 0, 0, 0.95);
    }
    .sub-page .sp-menu-item-jp,
    .sub-page .sp-menu-item-en {
        color: rgba(255, 255, 255, 0.7);
    }
    .sub-page .sp-menu-item {
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }

    /* テーブル */
    .table-block h2 {
        font-size: 1.2rem;
    }
    .table-block ul li {
        font-size: 0.95rem;
    }

    /* 3カラムレイアウト */
    .pc3s1-inner {
        flex-direction: column;
        gap: 3rem;
    }
    .pc3s1-inner-left,
    .pc3s1-inner-center,
    .pc3s1-inner-right {
        width: 100%;
        min-height: auto;
        height: auto;
    }
    .pc3s1-inner-left img,
    .pc3s1-inner-center img,
    .pc3s1-inner-right img {
        height: 150px;
    }
    .pc3s1-inner-left .subcatch,
    .pc3s1-inner-center .subcatch,
    .pc3s1-inner-right .subcatch {
        margin: 1rem 0;
        height: auto;
    }
    .pc3s1-inner-left .bodytext,
    .pc3s1-inner-center .bodytext,
    .pc3s1-inner-right .bodytext {
        margin-bottom: 0;
    }
    .pc3s1 video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        margin: 1rem auto;
    }

    /* 動画 */
    .video-container {
        padding: 0;
    }
    .content-video {
        border-radius: 4px;
    }
    .video-container .over_mov {
        width: 50% !important;
    }

    /* 2列ボックス */
    .box2by2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    /* 1:2レイアウト */
    .box1under2 {
        padding: 0;
        margin: 2rem auto;
    }
    .box1under2-inner {
        padding: 1.5rem;
        border-radius: 4px;
    }
    .box1under2-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-left: 0.8rem;
    }
    .box1under2-inner-left .achievement-list {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .box1under2-inner-right {
        position: static;
        margin-top: 1.5rem;
    }

    /* 実績リスト */
    .achievement-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .achievement-items > li {
        padding: 0.4rem 0 0.4rem 1.5rem;
        font-size: 0.95rem;
    }
    .achievement-subitems {
        padding: 0.4rem 0 0.4rem 1.2rem;
    }
    .achievement-subitems > li {
        padding: 0.3rem 0 0.3rem 1.2rem;
        font-size: 0.9em;
    }
    .achievement-image {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    .achievement-image img {
        max-width: 100%;
        border-radius: 4px;
    }

    /* スライドショー */
    .slide-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* フッター */
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-logo-contact {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-contact {
        font-size: 0.9rem;
    }
    .footer-links {
        align-items: flex-start;
        text-align: left;
    }
    .policy-container {
      padding: 1.5rem 1rem;
    }
  
    .policy h1 {
      font-size: 1.5rem;
    }
  
    .policy h2 {
      font-size: 1.1rem;
    }
}

/* =========================
   16. ポリシーページ
   ========================= */
.policy h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #111;
    border-left: 2px solid var(--color-secondary);
    padding-left: 0.8rem;
    font-family: var(--font-primary);
}

.policy h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #292929;
    font-family: var(--font-primary);
}

.policy p,
.policy ol,
.policy ul {
    font-size: 0.8rem;
    font-family: var(--font-primary);
}

.policy ol,
.policy ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy ol li,
.policy ul li {
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

/* =========================
   17. ユーティリティ
   ========================= */
/* 歯車のスタイル */
#hakuruma {
    position: fixed;
    top: -60px;
    right: -4px;
    width: 65vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.05;
}

/* 画像のホバー効果 */
.achievement-image img,
.box2by2-inner-left img {
    transition: transform var(--transition-standard);
} 

html.is-changing .transition-slide {
  transition: transform .8s cubic-bezier(0.5, 0, 0.15, 1);
}

.transition-slide.is-next-container {
  transform: translateX(100%);
}

.transition-slide.is-previous-container {
  transform: translateX(-100%);
}
.pages {
  display: grid;
  width: 100%;
  background-color: white;
}

.page {
  min-width: 0;
  position: relative;
  grid-row: 1;
  grid-column: 1;
  background-color: var(--swup-blue);
  
}

/* メインページ用のスタイル（黒背景に白文字） */
.main-page .pc-menu {
    border-color: rgb(0, 0, 0);
}
.main-page .pc-menu li,
.main-page .sp-menu-item-en,
.main-page .sp-menu-item-jp {
    color: rgb(0, 0, 0);
}
.main-page .sp-menu-button span {
    background-color: rgba(255, 255, 255, 0.7);
}
.main-page .sp-menu-item {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* サブページ用のスタイル（白背景に黒文字） */
.sub-page .pc-menu {
    border-color: rgba(0, 0, 0);
}
.sub-page .pc-menu li,
.sub-page .sp-menu-item-en,
.sub-page .sp-menu-item-jp {
    color: rgba(0, 0, 0);
}
.sub-page .sp-menu-button span {
    background-color: rgba(0, 0, 0);
}
.sub-page .sp-menu-item {
    border-bottom-color: rgba(0, 0, 0);
}
/* オーバーレイ背景を明るくする */
.sub-page .sp-menu-overlay {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* メニューコンテンツを黒にする */
.sub-page .sp-menu-content {
  background-color: rgba(194, 194, 194, 0.95) !important;
}

/* メニュー項目の文字色を白にする */
.sub-page .sp-menu-item-en,
.sub-page .sp-menu-item-jp {
  color: rgb(0, 0, 0) !important;
}
a{color: black;text-decoration: none;}

/* WordPress CMSコンテンツボックス */
.cms-contentsbox {
    max-width: 1200px;
    /* margin: 0 auto; */
    /* padding: 40px 20px; */
    /* box-sizing: border-box; */
    /* overflow-wrap: break-word; */
    word-wrap: break-word;
    /* width: 70%; */
    position: relative;
}

.cms-contentsbox img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}

.cms-contentsbox table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
  margin: 1em 0;
  border-collapse: collapse;
}

.cms-contentsbox pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f5f5f5;
  padding: 1em;
  margin: 1em 0;
  border-radius: 4px;
}

.cms-contentsbox iframe {
  max-width: 100%;
  display: block;
  margin: 1em auto;
}

.cms-contentsbox * {
  max-width: 100%;
  box-sizing: border-box;
}

.cms-contentsbox p {
  margin: 1em 0;
  line-height: 1.6;
}

.cms-contentsbox h1,
.cms-contentsbox h2,
.cms-contentsbox h3,
.cms-contentsbox h4,
.cms-contentsbox h5,
.cms-contentsbox h6 {
  margin: 1.5em 0 0.5em;
  line-height: 1.4;
}


/* パンくずリスト */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
}
.breadcrumb a {
    color: #333;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* 記事タイトル */
.single-post h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 投稿メタ情報 */
.post-meta {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}
.post-meta span {
    margin-right: 15px;
}

/* アイキャッチ画像 */
.post-thumbnail {
    margin-bottom: 30px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* 目次 */
.table-of-contents {
    background: #f8f8f8;
    padding: 20px;
    margin: 30px 0;
    border-left: 0.5px solid #333;
}
.table-of-contents h2 {
    font-size: 18px;
    margin-bottom: 15px;
}
.table-of-contents ul {
    list-style: none;
    padding: 0;
}
.table-of-contents li {
    margin: 8px 0;
}
.table-of-contents a {
    color: #333;
    text-decoration: none;
}
.table-of-contents a:hover {
    text-decoration: underline;
}

/* 最新記事・関連記事 */
.related-posts {
    margin-top: 60px;
    border-top: 0.5px solid #333;
    padding-top: 30px;
}
.related-posts h2 {
    font-size: 20px;
    margin-bottom: 20px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.post-item {
    border: 0.5px solid #eee;
    padding: 15px;
}
.post-item img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    margin-bottom: 10px;
}
.post-item h3 {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.4;
}
.post-item h3 a {
    color: #333;
    text-decoration: none;
}
.post-item h3 a:hover {
    text-decoration: underline;
}

/* カテゴリーページのスタイル */
.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    font-family: var(--font-primary);
}

.category-description {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 0.5px solid #eee;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.post-meta a {
    color: #666;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* ページネーション */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 0.5px solid #eee;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}


/* サイドナビゲーション */
.brics-side-nav-container {
    display:block;
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    z-index: 1000;
}

.brics-side-nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.6;
}

.brics-side-nav-item.active {
    opacity: 1;
}

.brics-side-nav-item img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.brics-side-nav-item:hover {
    opacity: 1;
}
/* service-box4to2のスタイル */
.service-box4to2 {
    width: 100%;
    margin: 60px 0;
    box-sizing: border-box;
}

.service-box4to2-inner-title {
    width: 100%;
    padding: 0 20px;
    background: #fff;
    box-sizing: border-box;
}

.service-box4to2-inner-title-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 100px;
    box-sizing: border-box;
}

.service-box4to2-inner-title-inner img {
    height: auto;
    flex-shrink: 0;
    align-self: center;
}

.service-box4to2-inner-title-text {
    flex: 1;
    min-width: 0; /* テキストの折り返しを確実にする */
}

.service-box4to2-inner-title-main {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    word-wrap: break-word;
}

.service-box4to2-inner-title-sub {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    word-wrap: break-word;
    margin: 0;
}

.service-box4to2-inner-4to2 {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden; /* はみ出し防止 */
}

.service-box4to2-inner-4to2-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.service-box4to2-inner-4to2-inner-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.service-box4to2-inner-4to2-inner-icon {
    width: 100%;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-box4to2-inner-4to2-inner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0; /* テキストの折り返しを確実にする */
}

.service-box4to2-inner-4to2-inner-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    word-wrap: break-word;
}

.service-box4to2-inner-4to2-inner-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-wrap: break-word;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .service-box4to2-inner-4to2 {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px 20px;
    }
}

@media screen and (max-width: 900px) {
    .service-box4to2-inner-4to2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-box4to2-inner-title-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .service-box4to2-inner-title-inner img {
        width: 100px;
        margin: 0 auto;
    }

    .service-box4to2-inner-title-main {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .service-box4to2-inner-4to2 {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }

    .service-box4to2-inner-4to2-inner-content {
        padding: 20px;
    }

    .service-box4to2-inner-title {
        padding: 30px 15px;
    }

    .service-box4to2-inner-title-main {
        font-size: 1.3rem;
    }

    .service-box4to2-inner-title-sub {
        font-size: 0.9rem;
    }
}


/* ▼ サービスのサブメニュー全体の親 */
.pc-menu .has-submenu {
    position: relative; /* サブメニューの絶対配置の基準 */
  }
  
  /* ▼ サブメニュー本体（初期は非表示） */
  .pc-menu .submenu {
    display: none; /* 初期は隠す */
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width:220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 100;
  }
  
  /* ▼ サービスにマウスオーバーでサブメニュー表示 */
  .pc-menu .has-submenu:hover .submenu {
    display: block;
  }
  
  /* ▼ サブメニューの各項目 */
  .pc-menu .submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* ▼ サブメニューのリンク */
  .pc-menu .submenu a {
    display: block;
    font-size: 0.8em; /* サービスより小さめ */
    color: #333;
    padding: 8px 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-radius: 4px;
  }
  
  /* ▼ サブメニューのリンクにマウスオーバー時の色変化 */
  .pc-menu .submenu a:hover {
    background: #85e097a6; /* お好みで色調整 */
    color: #656161;
  }
  
  /* ▼ サブメニューの矢印（必要なら） */
  /* .pc-menu .has-submenu > a::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 6px;
    vertical-align: middle;
    color: #888;
  } */