/*
Theme Name: SOUQ Architecture
Description: 店舗内装で社会をつなぐ - ミニマル × 上質 × 親しみやすいデザインのWordPressテーマ
Author: SOUQ
Version: 1.0.0
Text Domain: souq-theme
*/

/* ヘッダー関連のスタイルは /assets/css/header.css に移動済み */

/* WordPress標準クラス */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    color: var(--gray);
    margin-top: 0.5em;
}

.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* 全体のレイアウト調整 - スクロールバーによる横幅調整 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    /* height: 100%; ← これを削除 - スクロールを妨げる原因 */
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* スクロールバーを考慮した調整 */
body {
    overflow-y: auto; /* overlay は非推奨のため auto に変更 */
    font-family: 'M PLUS 1p', sans-serif;
    color: var(--gray);
    background-color: #FFFFFF;
    font-weight: 400;
    line-height: 1.6;
}

:root {
    --primary: #62A490;
    --primary-rgb: 98, 164, 144;
    --dark: #29594F;
    --secondary: #9DC4B9;
    --light: #E5F1EE;
    --accent: #D4A574;
    --gray: #333333;
    --portfolio-transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 背景装飾要素 */
.interior-perspective-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    opacity: 0.05;
    background-image: 
      linear-gradient(rgba(98, 164, 144, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(98, 164, 144, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
}

.interior-wireframe {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,0 L100,100 L0,100 Z' fill='none' stroke='%2362A490' stroke-width='0.5'/%3E%3Cpath d='M0,0 L100,100 M100,0 L0,100' stroke='%2362A490' stroke-width='0.3'/%3E%3Crect x='20' y='20' width='60' height='60' fill='none' stroke='%2362A490' stroke-width='0.3'/%3E%3C/svg%3E");
    transform: perspective(1000px) rotateX(30deg);
}

/* SVG Background Pattern */
.bg-pattern {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05; /* More subtle */
}

/* ヘッダーを透過で白色に */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background-color: transparent; /* 透過背景 */
}

/* ヘッダー初期状態 - JavaScript制御 */
.site-header:not(.scrolled) {
    background-color: transparent;
}

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

/* ==============================================
   ヘッダー要素の統一スタイル定義
   ============================================== */

/* ロゴ基本スタイル */
.logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    color: var(--primary);
    text-decoration: none;
}

/* ハンバーガーメニュー基本スタイル */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.menu-text {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
    position: absolute;
    bottom: -16px;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ヒーロー上では白色（over-dark-bg） */
.site-header.over-dark-bg {
    background-color: transparent;
    box-shadow: none;
    transition: all 0.4s ease;
}

.site-header.over-dark-bg .logo {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.site-header.over-dark-bg .hamburger-line {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-header.over-dark-bg .menu-text {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* スクロール時のヘッダー変更 */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

/* スクロール時の色を確実に適用 - 最高優先度 */
.site-header.scrolled .logo,
.site-header.scrolled.over-dark-bg .logo {
    color: var(--primary) !important;
    text-shadow: none !important;
}

.site-header.scrolled .hamburger-line,
.site-header.scrolled.over-dark-bg .hamburger-line {
    background-color: var(--primary) !important;
    box-shadow: none !important;
}

.site-header.scrolled .menu-text,
.site-header.scrolled.over-dark-bg .menu-text {
    color: var(--primary) !important;
    text-shadow: none !important;
}

/* scrolledクラスは常にover-dark-bgクラスより優先 */
.site-header.scrolled.over-dark-bg {
    background-color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled.over-dark-bg .logo {
    color: var(--primary);
    text-shadow: none;
}

.site-header.scrolled.over-dark-bg .menu-text {
    color: var(--primary);
    text-shadow: none;
}

.site-header.scrolled.over-dark-bg .hamburger-line {
    background-color: var(--primary);
    box-shadow: none;
}

.site-header.scrolled.over-dark-bg .hamburger-menu:hover .hamburger-line {
    background-color: var(--dark);
    box-shadow: none;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* 余白多め */
}

/* ヒーローセクションの修正 - 画面いっぱいにする */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    max-height: 100vh;
}

/* ヒーローコンテンツの修正 - 幅を縮小 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 8vw; /* 左寄せ */
    transform: translateY(-50%);
    max-width: 600px;
    color: white;
    z-index: 4; /* コンテンツを最前面に */
    padding: 40px;
}

/* カルーセル部分の修正 - 幅を拡大 */
.hero-image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ヒーローテキストのフォントサイズ調整 */
.hero-text {
    max-width: 100%;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(30px);
}

/* elegant-headingクラスのスタイル - M PLUS 1p, 見出しを1行に収める */
.elegant-heading {
    font-family: 'M PLUS 1p', sans-serif; /* M PLUS 1pに変更 */
    font-size: 34px; /* 36pxから34pxに縮小 */
    font-weight: 400; /* 通常の太さ */
    line-height: 1.2; /* 1.3から1.2に調整 */
    margin-bottom: 30px;
    letter-spacing: 0.5px; /* 1pxから0.5pxに縮小 */
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap; /* 改行を防ぐ */
}

.hero-text h1 {
    font-family: 'M PLUS 1p', sans-serif; /* M PLUS 1pに変更 */
    font-size: 36px; /* 36px */
    font-weight: 400; /* 通常の太さ */
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
} 

.hero-text p {
    font-family: 'M PLUS 1p', sans-serif; /* M PLUS 1pに変更 */
    font-size: 14px; /* 16pxから14pxに縮小して2行で収まるように */
    line-height: 1.6; /* 1.8から1.6に縮小 */
    color: rgba(255, 255, 255, 0.9); /* 透明度を少し入れる */
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* PC/スマホ用テキスト切り替え - デフォルト（PC）はスマホ用を非表示 */
.hero-text-mobile {
    display: none;
}

/* さりげないリンクスタイル - view moreボタンの調整 */
.subtle-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'M PLUS 1p', sans-serif; /* M PLUS 1pに変更 */
    font-size: 15px; /* 15px */
    letter-spacing: 1.5px;
    margin-top: 30px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    padding-bottom: 3px;
}

/* ホバー時に左から右にアンダーラインが引かれるエフェクト */
.subtle-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.subtle-link i,
.subtle-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* view moreボタンのホバー効果 */
.subtle-link:hover {
    color: var(--primary); /* プライマリーカラーに変更 */
}

.subtle-link:hover::before {
    width: 100%;
}

.subtle-link:hover i,
.subtle-link:hover svg {
    transform: translateX(5px); /* 矢印が右に移動 */
}

/* ヒーローコンテンツの修正 - 幅を縮小 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 8vw; /* 左寄せ */
    transform: translateY(-50%);
    max-width: 600px;
    color: white;
    z-index: 4; /* コンテンツを最前面に */
    padding: 40px;
}


/* カルーセル部分の修正 - 幅を拡大 */
.hero-image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ヒーローロゴ */
.hero-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: translateY(0) scale(1.05);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ヘッダーとナビゲーション */
header, nav {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ヘッダーの修正 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

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

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.site-header.scrolled .logo {
    color: var(--primary);
    opacity: 1;
    visibility: visible;
    transform: translateY(-20px);
}

.site-header.scrolled .hamburger-menu {
    margin-left: auto; /* 右寄せにする */
}

.site-header.scrolled .hamburger-line {
    background-color: var(--primary); /* ハンバーガーメニューの線の色をプライマリーカラーに */
}

/* 暗い背景上でのヘッダースタイル */
.site-header.over-dark-bg {
    background-color: transparent;
    box-shadow: none;
    transition: all 0.4s ease;
}

.site-header.over-dark-bg .logo {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.site-header.over-dark-bg .hamburger-line {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.site-header.over-dark-bg .menu-text {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* scrolledクラスは常にover-dark-bgクラスより優先 */
.site-header.scrolled.over-dark-bg {
    background-color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled.over-dark-bg .logo {
    color: var(--primary);
    text-shadow: none;
}

.site-header.scrolled.over-dark-bg .menu-text {
    color: var(--primary);
    text-shadow: none;
}

.site-header.scrolled.over-dark-bg .hamburger-line {
    background-color: var(--primary);
    box-shadow: none;
}

.site-header.scrolled.over-dark-bg .hamburger-menu:hover .hamburger-line {
    background-color: var(--dark);
    box-shadow: none;
}

/* ロゴのホバー効果より後に配置するためコメントアウト（既に上で定義済み） */

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary); /* デフォルトはプライマリカラー */
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 暗い背景上ではハンバーガーラインを白に */
.site-header.over-dark-bg .hamburger-line {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger-menu:hover .hamburger-line {
    background-color: var(--primary) !important;
    box-shadow: 0 1px 3px rgba(98, 164, 144, 0.3) !important;
}

.site-header.over-dark-bg .hamburger-menu:hover .hamburger-line {
    background-color: var(--primary) !important;
    box-shadow: 0 1px 3px rgba(98, 164, 144, 0.3) !important;
}

/* 暗い背景上でのハンバーガーメニューホバー */
.site-header.over-dark-bg .hamburger-menu:hover .hamburger-line {
    background-color: var(--primary) !important;
    box-shadow: 0 1px 3px rgba(98, 164, 144, 0.3) !important;
}

.menu-text {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
    position: absolute;
    bottom: -16px;
    text-align: center;
    transition: all 0.3s ease;
}

/* 暗い背景上ではメニューテキストを白に */
.site-header.over-dark-bg .menu-text {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ハンバーガーメニューテキストのホバー効果 - 全状態対応 */
.hamburger-menu:hover .menu-text {
    color: var(--primary);
}

/* 初期状態でのメニューテキストホバー */
.site-header:not(.scrolled) .hamburger-menu:hover .menu-text {
    color: var(--primary) !important;
    text-shadow: 0 1px 4px rgba(98, 164, 144, 0.2) !important;
}

/* スクロール時のメニューテキストホバー */
.site-header.scrolled .hamburger-menu:hover .menu-text {
    color: var(--dark) !important;
    text-shadow: 0 1px 4px rgba(41, 89, 79, 0.2) !important;
}

/* 暗い背景上でのメニューテキストホバー */
.site-header.over-dark-bg .hamburger-menu:hover .menu-text {
    color: var(--primary) !important;
    text-shadow: 0 1px 4px rgba(98, 164, 144, 0.2) !important;
}

/* スクロール時 + 暗い背景上でのメニューテキストホバー */
.site-header.scrolled.over-dark-bg .hamburger-menu:hover .menu-text {
    color: var(--dark) !important;
    text-shadow: 0 1px 4px rgba(41, 89, 79, 0.2) !important;
}

/* ロゴのホバー効果 - 全状態対応 */
.logo:hover {
    color: var(--primary) !important;
    text-shadow: 0 1px 4px rgba(98, 164, 144, 0.2) !important;
    transition: all 0.3s ease;
}

/* 初期状態でのロゴホバー */
.site-header:not(.scrolled) .logo:hover {
    color: var(--primary) !important;
    text-shadow: 0 1px 4px rgba(98, 164, 144, 0.2) !important;
}

/* スクロール時のロゴホバー */
.site-header.scrolled .logo:hover {
    color: var(--dark) !important;
    text-shadow: 0 1px 4px rgba(41, 89, 79, 0.2) !important;
}

/* 暗い背景上でのロゴホバー */
.site-header.over-dark-bg .logo:hover {
    color: var(--primary) !important;
    text-shadow: 0 1px 4px rgba(98, 164, 144, 0.2) !important;
}

/* スクロール時 + 暗い背景上でのロゴホバー */
.site-header.scrolled.over-dark-bg .logo:hover {
    color: var(--dark) !important;
    text-shadow: 0 1px 4px rgba(41, 89, 79, 0.2) !important;
}

/* ハンバーガーメニューのアクティブ状態 */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



/* ナビゲーションの修正 */
/* サイドナビゲーション */
.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    pointer-events: none;
    z-index: 9999;
    visibility: hidden;
}

.side-nav.active {
    visibility: visible;
    pointer-events: auto;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* 開くときは瞬時、閉じるときはフェードアウト */
    transition: opacity 0s ease; /* 開く動作は瞬時 */
    z-index: 0;
}

.side-nav.active .nav-overlay {
    opacity: 1;
    /* activeクラスが追加されたときの遷移時間は0秒（瞬時） */
    transition: opacity 0s ease;
}

/* 閉じるときのフェードアウト効果 */
.side-nav:not(.active) .nav-overlay {
    opacity: 0;
    transition: opacity 0.4s ease; /* 閉じるときはフェードアウト */
}

.side-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    padding: 60px 40px;
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.side-nav.active .side-nav-content {
    transform: translateX(0);
    opacity: 1;
}

/* 閉じるときの白い背景のフェードアウト効果 */
.side-nav:not(.active) .side-nav-content {
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
}

/* サイドナビのヘッダー */
.side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* サイドナビのロゴ */
.side-nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.side-nav-header .logo {
    color: var(--primary);
    font-size: 24px;
}

.nav-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--gray);
    transition: all 0.3s ease;
}

.nav-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.close-icon {
    display: block;
    line-height: 1;
}

/* ナビリンク */
.side-nav .nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-nav .nav-links li {
    margin-bottom: 20px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: calc(0.1s * var(--item-index, 0));
    position: relative;
    z-index: 10;
}

.side-nav.active .nav-links li {
    transform: translateX(0);
    opacity: 1;
}

.side-nav .nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 5px 0;
    z-index: 10;
    pointer-events: auto;
}

.side-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.4s ease;
}

.side-nav .nav-links a:hover {
    color: var(--primary);
}

.side-nav .nav-links a:hover::after {
    width: 100%;
}

/* ナビフッター */
.nav-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    transition-delay: 0.4s;
}

.side-nav.active .nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.nav-contact-info {
    margin-bottom: 20px;
}

.nav-contact-info p {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-contact-info a {
    display: block;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

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

.nav-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.nav-social a {
    color: var(--gray);
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Image Track */

/* さりげないリンクスタイル */
.subtle-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1.5px;
    margin-top: 30px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    padding-bottom: 3px;
}

/* ホバー時に左から右にアンダーラインが引かれるエフェクト */
.subtle-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.subtle-link i,
.subtle-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

.subtle-link:hover::before {
    width: 100%;
}

.subtle-link:hover i,
.subtle-link:hover svg {
    transform: translateX(5px);
}


.hero-image-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* デフォルトで非表示 */
    transition: opacity 1.5s ease;
    overflow: hidden;
    z-index: 1; /* 明示的なz-indexを設定 */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease; /* ゆっくりズームする効果 */
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03);
}

.hero-image-container.active {
    opacity: 1;
    z-index: 2; /* アクティブスライドを前面に */
}

.hero-image-container.active .hero-image {
    transform: scale(1.05);
}

/* オーバーレイ - 画像上のテキストを見やすくする */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.4) 40%, 
        rgba(0, 0, 0, 0.2) 100%);
    z-index: 3; /* オーバーレイは画像より上、コンテンツより下 */
}

/* 修正した簾スタイル */
.blinds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    pointer-events: none;
    z-index: 10;
    gap: 2px; /* 隙間を小さく */
    padding: 0; /* パディングを削除 */
}

.blind {
    background-color: rgba(98, 164, 144, 0.98); /* デフォルト色 - Primary */
    position: relative;
    transform: scale(0);
    border-radius: 0; /* 角を直角に */
    overflow: hidden;
}

/* 幾何学模様のオーバーレイ */
.blind::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 L20,10 M10,0 L10,20' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.blind.primary-tile {
    background-color: rgba(98, 164, 144, 0.98); /* 不透明度を上げる */
}

.blind.secondary-tile {
    background-color: rgba(157, 196, 185, 0.98); /* Secondary色 */
}

.blind.dark-tile {
    background-color: rgba(41, 89, 79, 0.98); /* Dark色 */
}


.blind:nth-child(7n)::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 179, 179, 0.9);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blind.active:nth-child(7n)::after {
    opacity: 1;
}

/* 画像オーバーレイ - 微妙なグラデーションを追加 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* アラビア風の装飾枠 */
.hero-image-carousel::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
}

.hero-image-carousel::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    pointer-events: none;
}

.hero-text {
    max-width: 100%;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(30px);
}

.hero-text h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
} 

.hero-text p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9); /* 透明度を少し入れる */
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
}

/* ボタンホバーエフェクトの改善 */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover {
    background-color: var(--dark);
    border-color: var(--dark);
}

.cta-button:hover::before {
    left: 100%;
}

/* スライドコントロール */
.slide-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slide-prev, .slide-next {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide-prev:hover, .slide-next:hover {
    opacity: 1;
}

/* フェードアップアニメーション */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 最初のセクション区切りの特別スタイル */
.first-divider {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

/* メインコンテンツ位置 - より確実な配置 */
main.container {
    position: relative;
    z-index: 10;
    margin-top: 0 !important; /* 100vhから0に変更 - 最優先で適用 */
    padding-top: 80px; /* ヘッダーとナビの高さを考慮して調整 */
    background: transparent;
    box-shadow: none;
}


/* 新しいVisionセクション */
.vision-section {
    height: auto;
    min-height: auto;
    padding: 80px 0;
    margin-top: -20px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.vision-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8vw;
    position: relative;
}

.vision-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    padding: 30px 0;
}

.vision-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-header {
    text-align: center;
    margin-bottom: 40px;
}

.vision-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.vision-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.vision-text {
    font-size: 16px; /* 18pxから16pxに縮小 */
    line-height: 1.6; /* 1.7から1.6に調整 */
    color: var(--gray);
    margin-bottom: 20px;
    letter-spacing: 0.01em; /* 文字間隔を狭く */
}

.vision-text-primary {
    font-size: 16px;  /* 18pxから16pxに縮小 */
    line-height: 1.6; /* 1.7から1.6に調整 */
    font-weight: 400;  /* 通常の太さに */
}

/* モバイル用のvision-textさらなる調整 */
@media screen and (max-width: 768px) {
    .vision-text {
        font-size: 13px; /* 14px → 13px にさらに縮小 */
        line-height: 1.4; /* 1.5 → 1.4 に調整 */
        letter-spacing: -0.2px; /* マイナス値で文字間隔を詰める */
        word-spacing: -1px; /* 単語間隔も詰める */
    }
    
    .vision-text-primary {
        font-size: 13px; /* 14px → 13px にさらに縮小 */
        line-height: 1.4; /* 1.5 → 1.4 に調整 */
        letter-spacing: -0.2px; /* マイナス値で文字間隔を詰める */
        word-spacing: -1px; /* 単語間隔も詰める */
    }
}

.vision-more-link {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1.5px;
    margin-top: 30px;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 3px;
}

/* ホバー時に左から右にアンダーラインが引かれるエフェクト */
.vision-more-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.vision-more-link i,
.vision-more-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

.vision-more-link:hover::before {
    width: 100%;
}

.vision-more-link:hover i,
.vision-more-link:hover svg {
    transform: translateX(5px);
}

.vision-decoration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.highlight {
    position: relative;
    color: var(--gray);  /* 差し色を使わない */
}

.vision-content.visible .highlight {
    color: var(--gray);  /* ハイライトもグレーのまま */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 装飾用の幾何学的パターン */
.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 L60,30 M30,0 L30,60' stroke='rgba(98, 164, 144, 0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
    z-index: 1;
    opacity: 0.6;
    pointer-events: none; /* ポインターイベントを無効化して下の要素に干渉しないように */
}

/* 事業内容セクション */
.services-section {
    padding: 120px 0 180px 0; /* 下部paddingを120pxから180pxに増加 */
    position: relative;
    z-index: 6;
    background-color: white;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 241, 238, 0.2);
    z-index: -1;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.services-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(98, 164, 144, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 左側アクセントカラーを削除（要件による）
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}
*/

.service-number {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(98, 164, 144, 0.07);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.4s ease;
}

.service-card:hover .service-number {
    color: rgba(98, 164, 144, 0.12);
    transform: translateX(-5px);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(98, 164, 144, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
}

.service-icon i {
    font-size: 20px;
    color: #999999;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
    color: white !important;
}

.service-card:hover .service-icon i::before {
    color: white !important;
}

.service-card:hover .service-icon .fa,
.service-card:hover .service-icon .fas,
.service-card:hover .service-icon .far,
.service-card:hover .service-icon .fab {
    color: white !important;
}

/* 全サービスアイコンを統一カラー（Dark）に設定 */
.service-icon-01 i,
.service-icon-02 i,
.service-icon-03 i,
.service-icon-04 i,
.service-icon i {
    font-size: 20px;
    color: var(--dark); /* #29594F - 全て統一 */
    transition: all 0.4s ease;
}

/* ホバー時に全て白色に変更 */
.service-card:hover .service-icon svg,
.service-card:hover .service-icon .service-svg {
    fill: white !important;
}

.service-card:hover .service-icon svg path,
.service-card:hover .service-icon .service-svg path {
    fill: white !important;
}


.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    position: relative;
    z-index: 1;
    flex: 1;
}

.service-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

.service-link i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--dark);
    border-bottom-color: var(--dark);
}

/* サービスセクションのview more */
.services-more-container {
    text-align: center;
    margin-top: 40px;
}

.services-more-link {
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
    color: var(--gray);
}

/* ホバー時に左から右にアンダーラインが引かれるエフェクト */
.services-more-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.services-more-link i,
.services-more-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

.services-more-link:hover::before {
    width: 100%;
}

/* サービスセクション view more ボタンのホバー効果 - 詳細度を上げて確実に適用 */
.services-more-container .services-more-link:hover i,
.services-more-container .services-more-link:hover svg {
    transform: translateX(5px) !important;
    transition: transform 0.3s ease;
}

/* プロジェクトセクション view more ボタンの統一スタイル */
.portfolio-more-container .portfolio-more-link {
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
    color: white;
}

/* ホバー時に左から右にアンダーラインが引かれるエフェクト */
.portfolio-more-container .portfolio-more-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.portfolio-more-container .portfolio-more-link:hover {
    color: var(--accent);
}

.portfolio-more-container .portfolio-more-link:hover::before {
    width: 100%;
}

.portfolio-more-container .portfolio-more-link i,
.portfolio-more-container .portfolio-more-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.portfolio-more-container .portfolio-more-link:hover i,
.portfolio-more-container .portfolio-more-link:hover svg {
    transform: translateX(5px);
}

.wave-separator {
    position: relative;
    width: 100vw;
    height: 120px;
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background-color: var(--primary); /* projectsセクションと同じ背景色 */
    line-height: 0;
}
  
  
.wave-separator svg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

/* 波線セパレータに背景パターンを追加 - projectsセクションと同じパターンに統一 */
.wave-separator::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 L60,30 M30,0 L30,60 M0,0 L60,60 M60,0 L0,60' stroke='rgba(255,255,255,0.18)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}
  
.wave-separator-bottom {
    position: relative;
    width: 100vw;
    height: 120px;
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background-color: var(--primary); /* projectsセクションと同じ背景色 */
    line-height: 0;
    /* 下部の波線は上下反転しない */
}
  
.wave-separator-bottom svg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

/* 下側の波線セパレータにも背景パターンを追加 - projectsセクションと同じパターンに統一 */
.wave-separator-bottom::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 L60,30 M30,0 L30,60 M0,0 L60,60 M60,0 L0,60' stroke='rgba(255,255,255,0.18)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}
  
.portfolio-section.full-width {
    position: relative;
    width: 100vw;
    background-color: var(--primary); /* 主カラーに変更 */
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0 100px;
    overflow: hidden;
    color: white; /* セクション全体の文字色を白に */
}
  
  /* セクション内のすべてのテキスト要素を白に */
.portfolio-section.full-width h2,
.portfolio-section.full-width p,
.portfolio-section.full-width a,
.portfolio-section.full-width .portfolio-title,
.portfolio-section.full-width .portfolio-subtitle,
.portfolio-section.full-width .portfolio-more-link {
    color: white;
}
  
  
.portfolio-section.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* セクション全体のテキストを白に */
.portfolio-section.full-width {
    color: white;
}
  
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}
  
.portfolio-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
  
.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent); /* アクセントカラーを維持 */
}
  
.portfolio-subtitle {
    font-size: 16px;
    opacity: 0.8; /* やや透明度を持たせる */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}


/* シンプルなグリッドレイアウト - 3列固定 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列固定 */
    gap: 20px; /* 適度な隙間 */
    margin-bottom: 60px;
}
  
.portfolio-item {
    position: relative;
    height: 300px; /* 統一された高さ */
    overflow: hidden;
    transition: all 0.4s ease;
  }
  
  .portfolio-item:hover {
    transform: translateY(-10px);
    z-index: 1; /* ホバー時に前面に出す */
  }
  
  .portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block; /* 画像の下の余白を削除 */
  }
  
  .portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
  }
  
  /* オーバーレイスタイル - ホバー時に表示 */
  .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
      rgba(41, 89, 79, 0.1) 0%, 
      rgba(41, 89, 79, 0.8) 60%, 
      rgba(41, 89, 79, 0.95) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 30px;
    transition: all 0.4s ease;
  }
  
  .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
  }
  
  .portfolio-overlay-content {
    width: 100%;
    color: white;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: 0.1s;
  }
  
  .portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  .portfolio-overlay-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
  }
  
  .portfolio-overlay-content .location {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-style: italic;
  }
  
  .portfolio-overlay-content .description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.8;
  }
  
  .view-project {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .view-project:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  
  /* view more リンク - 統一されたスタイルは上部で定義済み */
  .portfolio-more-container {
    text-align: center;
    margin-top: 40px;
    color: white; /* コンテナ内のテキストも白に */
  }
  
  /* モバイル対応のタッチ効果 */
  .portfolio-item.touch-hover .portfolio-overlay {
    opacity: 1;
  }
  
  .portfolio-item.touch-hover .portfolio-overlay-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  .portfolio-item.touch-hover .portfolio-img {
    transform: scale(1.05);
  }



/* Main content */
.main-content {
    padding: 100px 0;
    text-align: center;
    margin-top: 40px;
}

.main-content h2 {
    color: var(--primary);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 32px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    display: inline-block;
}

/* セクションタイトルの装飾を追加 */
.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent);
}

.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.grid-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.grid-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 25px;
    background-color: #e0e0e0;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

.grid-item::before,
.grid-item::after {
    content: '';
    position: absolute;
    background-color: rgba(98, 164, 144, 0.15);
    transition: all 0.8s ease;
}

/* 左上から伸びる蔦 */
.grid-item::before {
    width: 2px;
    height: 0;
    top: 0;
    left: 20px;
    transform-origin: top;
}

/* 右下から伸びる蔦 */
.grid-item::after {
    width: 0;
    height: 2px;
    bottom: 20px;
    right: 0;
    transform-origin: right;
}

.grid-item:hover::before {
    height: 100%;
    transform: scaleY(1) translateY(0) rotate(3deg);
}

.grid-item:hover::after {
    width: 60%;
    transform: scaleX(1) translateX(0) rotate(2deg);
}

/* 追加の蔦の装飾 */
.grid-item .vine-decoration {
    position: absolute;
    opacity: 0;
    transition: all 0.8s ease;
}

.grid-item .vine-top-right {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(98, 164, 144, 0.15);
    border-top: 2px solid rgba(98, 164, 144, 0.15);
}

.grid-item .vine-bottom-left {
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-left: 2px solid rgba(98, 164, 144, 0.15);
    border-bottom: 2px solid rgba(98, 164, 144, 0.15);
}

.grid-item:hover .vine-decoration {
    opacity: 1;
}

.grid-item h3 {
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    font-family: 'Noto Sans JP', sans-serif;
}

.grid-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
}

/* Two column section */
.two-column {
    display: flex;
    margin: 120px 0;
    background-color: var(--light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.column {
    flex: 1;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    transition: transform 0.5s ease;
}

.column:first-child {
    border-right: 1px solid rgba(0,0,0,0.05);
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(98, 164, 144, 0.05), transparent);
    transition: height 0.8s ease;
    z-index: 0;
}

.column:hover::before {
    height: 100%;
}

.column h2, .column p {
    position: relative;
    z-index: 1;
}

/* 蔦のようなSVG装飾を改善 */
.vine-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.column:hover .vine-svg {
    opacity: 0.6;
}

.column h2 {
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 28px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    display: inline-block;
}

/* セクションタイトルの装飾を追加 */
.column h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    opacity: 0.7;
}

.column p {
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 25px;
}

/* アプローチセクション */
.approach-section {
    padding: 100px 0;
    text-align: center;
    background-color: white;
    margin: 100px 0;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.section-header {
    margin-bottom: 70px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    display: inline-block;
}

/* セクションタイトルの装飾を追加 */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    font-style: italic;
    margin-top: 20px;
}

.approach-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.approach-item {
    flex: 1 1 calc(50% - 40px);
    min-width: 250px;
    padding: 40px 30px;
    background-color: var(--light);
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.approach-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* アプローチアイテムの装飾ボーダーを追加 */
.approach-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    opacity: 0.7;
    transition: width 0.5s ease;
}

.approach-item:hover::before {
    width: 80%;
}

.approach-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(98, 164, 144, 0.1);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.approach-item:hover .approach-icon {
    transform: scale(1.05);
    background-color: rgba(98, 164, 144, 0.15);
}

.approach-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.approach-item:hover .approach-icon i {
    color: var(--dark);
}

.approach-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Sans JP', sans-serif;
}

.approach-item p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 14px;
}

/* テスティモニアルセクション */
.testimonial-section {
    padding: 80px 0;
    background-color: rgba(98, 164, 144, 0.05);
    margin-bottom: 100px;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-quote {
    flex: 1 1 400px;
    padding: 40px;
    background-color: white;
    border-left: 3px solid var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-quote:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

/* 引用符装飾の洗練化 */
.testimonial-quote i {
    font-size: 36px;
    color: rgba(98, 164, 144, 0.2);
    position: absolute;
    top: 20px;
    left: 20px;
    transition: all 0.3s ease;
}

.testimonial-quote:hover i {
    color: rgba(98, 164, 144, 0.3);
    transform: scale(1.1);
}

.testimonial-quote p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    margin-left: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif;
}

.testimonial-author p {
    font-style: italic;
    font-size: 14px;
    margin: 0;
    color: var(--gray);
    opacity: 0.8;
}

/* 装飾画像セクション */
.decorative-image-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 60px 0;
    position: relative;
}

.decorative-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.decorative-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%) brightness(0.85);
    opacity: 0.9;
}

/* コンタクトプレビューセクション - ミニマルデザイン */
.contact-preview {
    margin: 120px auto 100px;
    max-width: 950px;
    text-align: center;
    padding: 0 8vw;
    position: relative;
}

/* メインメッセージ */
.contact-main-message {
    color: var(--gray);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.5px;
}

/* 詳細説明 */
.contact-details {
    margin-bottom: 50px;
}

.contact-note {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    opacity: 0.8;
}

/* CTAセクション */
.contact-cta {
    margin-top: 20px;
}

/* リンクスタイル（テキスト＋下線タイプ） */
.contact-link {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    font-size: 15px; /* 16pxから15pxに変更 */
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gray);
    transform: scaleX(1);
    transform-origin: left;
    transition: all 0.3s ease;
}

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

.contact-link:hover::after {
    background-color: var(--primary);
    transform: scaleX(1);
    transform-origin: right;
}

/* contact-arrowのスタイル（news-arrowと同様） */
.contact-arrow {
    font-size: 16px;
    color: var(--primary);
    margin-left: 8px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.contact-link:hover .contact-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Footer */
/* シンプルフッター */
.simple-footer {
    background-color: var(--gray);
    color: white;
    position: relative;
    padding: 40px 0 20px;
}

.simple-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8vw;
}

/* フッター上部 - ロゴとナビゲーション */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* フッターロゴ */
.footer-logo {
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo-text:hover {
    color: var(--primary);
}

.footer-logo img,
.footer-logo-img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

/* フッターナビゲーション */
.footer-nav {
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
}

/* フッター下部 - 著作権 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin: 0;
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .simple-footer .container {
        padding: 0 5vw;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-top {
        gap: 25px;
        margin-bottom: 25px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* スクロールアニメーションクラス */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ホバーエフェクトの追加 */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.03);
}

/* 施工実績セクション */
.portfolio-section {
    padding: 100px 0;
    position: relative;
}

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

.portfolio-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.portfolio-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(var(--primary-rgb), 0.8));
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    color: white;
    text-align: center;
}

.portfolio-overlay-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-overlay-content p {
    font-size: 14px;
    opacity: 0.9;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-item-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

/* 施工実績セクション */
.portfolio-section {
    padding: 100px 0;
    position: relative;
}

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

.portfolio-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.portfolio-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(var(--primary-rgb), 0.8));
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    color: white;
    text-align: center;
}

.portfolio-overlay-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-overlay-content p {
    font-size: 14px;
    opacity: 0.9;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-item-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.portfolio-item-location {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    opacity: 0.8;
}

.portfolio-item-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

.portfolio-more-container {
    text-align: center;
    margin-top: 40px;
}
/* 古いportfolio-more-linkスタイルを削除 - 統一されたスタイルは上部で定義済み */

/* お知らせセクション */
.news-section {
    margin-bottom: 80px; 
    padding-bottom: 80px;
  }

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

.news-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.news-section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.news-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ニュースセクション - ミニマルリスト形式 */
.news-list {
    max-width: 1000px;
    margin: 0 auto;
}

.news-list-item {
    display: flex;
    align-items: baseline; /* center から baseline に変更して、文字のベースラインで揃える */
    padding: 20px 0;
    border-bottom: 1px solid rgba(98, 164, 144, 0.15);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 20px;
    min-height: 60px; /* 最小高さを設定して見た目を統一 */
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background-color: rgba(98, 164, 144, 0.02);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 4px;
}

.news-date {
    font-size: 14px; /* 14px から 15px に統一 */
    color: var(--gray);
    font-weight: 500;
    flex-shrink: 0;
    width: 85px;
    opacity: 0.8;
    line-height: 1.4; /* ラインハイトを統一 */
}

.news-category {
    font-size: 12px; /* 12px から 13px に少し拡大 */
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
    width: 100px;
    opacity: 0.9;
    line-height: 1.4; /* ラインハイトを統一 */
}

.news-title {
    flex: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px !important; /* pタグ相当のサイズに調整 - 優先適用 */
    font-weight: 400 !important; /* 軽く調整 - 優先適用 */
    color: var(--gray);
    line-height: 1.4; /* ラインハイトを統一 */
    position: relative;
    transition: color 0.3s ease;
}

.news-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-title {
    color: var(--primary);
}

.news-list-item:hover .news-title::after {
    transform: scaleX(1);
}

.news-arrow {
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.news-list-item:hover .news-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.news-more-container {
    text-align: center;
    margin-top: 40px;
}

.news-more-link {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(98, 164, 144, 0.2), transparent);
    transition: all 0.5s ease;
}

.news-more-link:hover {
    background-color: var(--primary);
    color: white;
}

.news-more-link:hover::before {
    left: 100%;
}

.news-more-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-more-link:hover i {
    transform: translateX(5px);
}

#geometricPattern {
    width: 100px; /* Larger pattern size */
    height: 100px;
}

.interior-perspective-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    opacity: 0.05;
    background-image: 
      linear-gradient(rgba(98, 164, 144, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(98, 164, 144, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
}

.interior-wireframe {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,0 L100,100 L0,100 Z' fill='none' stroke='%2362A490' stroke-width='0.5'/%3E%3Cpath d='M0,0 L100,100 M100,0 L0,100' stroke='%2362A490' stroke-width='0.3'/%3E%3Crect x='20' y='20' width='60' height='60' fill='none' stroke='%2362A490' stroke-width='0.3'/%3E%3C/svg%3E");
    transform: perspective(1000px) rotateX(30deg);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(to right, rgba(98, 164, 144, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(98, 164, 144, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

.portfolio-section.full-width.pattern-color::before {
    content: '';
    position: absolute;
    inset: 0;                       /* top/right/bottom/left をまとめて指定 */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 L60,30 M30,0 L30,60 M0,0 L60,60 M60,0 L0,60' stroke='rgba(255,255,255,0.18)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;           /* クリック操作を邪魔しない */
  }

/* レスポンシブデザイン */
/* レスポンシブデザインの強化 */

/* ブレイクポイントの定義 */
/* 
  - モバイル: 576px未満
  - タブレット: 576px - 992px
  - デスクトップ: 992px以上
*/

/* タブレット対応 (768px - 992px) */
@media screen and (max-width: 992px) {
    /* ヘッダーのレスポンシブ対応 */
    .site-header .header-inner {
      padding: 0 20px;
    }
    
    /* ヒーローセクションの調整 */
    .hero-content {
      padding: 40px 5vw;
      left: 0;
      width: 100%;
      transform: translateY(-50%);
      text-align: left;
      max-width: 100%;
    }
    
    .hero-text h1 {
      font-size: 32px;
    }
    
    /* サービスセクションのグリッド調整 */
    .services-grid {
      grid-template-columns: 1fr;
      gap: 30px;
      padding: 0 20px;
    }
    
    /* ポートフォリオグリッドの調整 */
    .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    
    /* コンタクトプレビューセクションの調整 */
    .contact-preview {
      flex-direction: column;
      padding: 50px 30px;
    }
    
    .contact-content {
      padding-right: 0;
      margin-bottom: 30px;
    }
    
    /* フッターの調整 */
    .footer-content {
      gap: 50px;
    }
    
    /* 装飾画像セクションの調整 */
    .decorative-image-section {
      height: 400px;
    }
  }
  
  /* モバイル対応 (768px以下) */
  @media screen and (max-width: 768px) {
    /* コンテナパディングの縮小 */
    .container {
      padding: 0 20px;
    }
    
    /* ヘッダーの調整 */
    .logo {
      font-size: 22px;
      letter-spacing: 4px;
    }
    
    /* ヒーローセクションの改善 - 画面いっぱいに表示 */
    .hero {
      height: 100vh !important; /* 画面の高さいっぱい */
      min-height: 100vh !important; /* 最小高さも画面サイズに */
      max-height: 100vh !important; /* 最大高さも画面サイズに */
      overflow: hidden !important;
      position: relative !important;
    }
    
    /* ヒーロー画像コンテナを画面サイズに合わせる */
    .hero-image-carousel {
      height: 100% !important; /* 親要素の高さ（100vh）に合わせる */
      width: 100% !important;
      position: absolute !important; /* absoluteに戻す */
      top: 0 !important;
      left: 0 !important;
      overflow: hidden !important;
    }
    
    .hero-image-container {
      height: 100% !important; /* 親要素の高さに合わせる */
      width: 100% !important;
      position: absolute !important; /* absoluteに戻す */
      top: 0 !important;
      left: 0 !important;
    }
    
    .hero-overlay {
      height: 100% !important; /* コンテナの高さに合わせる */
      width: 100% !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      z-index: 3 !important; /* オーバーレイのz-indexを明示 */
    }
    
    /* ヒーロー画像自体の設定 - 画面いっぱいに表示 */
    .hero-image {
      width: 100% !important;
      height: 100% !important; /* 画面の高さいっぱいに */
      object-fit: cover !important; /* 縦横比を保ったまま画面いっぱいに */
      object-position: center !important;
      display: block !important;
    }
    
    /* ヒーローコンテンツの位置調整 - 画像の上に表示 */
    .hero-content {
      position: absolute !important;
      top: 50% !important; /* 画面中央に配置 */
      left: 50% !important;
      transform: translate(-50%, -50%) !important; /* 完全中央配置 */
      text-align: center !important;
      padding: 20px !important;
      max-width: 90% !important; /* 横幅を調整 */
      width: 100% !important;
      box-sizing: border-box !important;
      z-index: 4 !important; /* コンテンツを最前面に */
    }
    
    /* 見出しのモバイル調整 - 適切なサイズで2行表示対応 */
    .hero-text h1,
    .elegant-heading {
      font-size: 26px !important; /* 存在感のあるサイズに */
      margin-bottom: 35px !important; /* hero-textとの間隔を広げる */
      letter-spacing: 0px !important; /* 読みやすい文字間隔 */
      line-height: 1.3 !important; /* 2行表示に適した行間 */
      white-space: normal !important; /* 2行表示を許可 */
      overflow: visible !important;
      text-overflow: clip !important;
      word-spacing: 0px !important; /* 自然な単語間隔 */
    }
    
    /* PC/スマホ用テキスト切り替え */
    .hero-text-pc {
      display: none !important; /* PC用テキストを非表示 */
    }
    
    .hero-text-mobile {
      display: block !important; /* スマホ用テキストを表示 */
    }
    
    .hero-text-mobile p {
      font-size: 14px !important; /* 11px → 14px に改善 */
      line-height: 1.4 !important;
      margin-bottom: 10px !important;
      white-space: normal !important;
      overflow: visible !important;
      max-height: none !important; /* 高さ制限を削除 */
    }
    
    .subtle-link {
      font-size: 14px;
      margin-top: 20px;
    }
    
    /* スライドコントロールの位置調整 */
    .slide-controls {
      bottom: 20px;
    }
    
    /* セクション間の余白調整 */
    .vision-section,
    .services-section,
    .portfolio-section,
    .news-section {
      padding: 60px 0;
    }
    
    /* 見出しサイズの縮小 */
    .vision-title,
    .services-title,
    .portfolio-title,
    .news-title {
      font-size: 28px;
    }
    
    /* サービスカードのパディング縮小 */
    .service-card {
      padding: 25px;
    }
    
    .service-number {
      font-size: 36px;
      top: 15px;
      right: 15px;
    }
    
    /* ポートフォリオグリッドを1列に */
    .portfolio-grid {
      grid-template-columns: 1fr;
    }
    
    /* ニュースリストのレスポンシブ調整 */
    .news-list-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 15px 0;
    }
    
    .news-date {
      width: auto;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 5px;
    }
    
    .news-category {
      width: auto;
      margin-bottom: 10px;
    }
    
    .news-title {
      font-size: 16px;
      margin-bottom: 0;
    }
    
    .news-arrow {
      align-self: flex-end;
      margin-top: 10px;
    }
    
    /* フッターの調整 */
    footer {
      padding: 40px 0 30px;
    }
    
    .footer-content {
      flex-direction: column;
      gap: 30px;
      margin-bottom: 30px;
    }
    
    /* 装飾画像セクションの調整 */
    .decorative-image-section {
      height: 350px;
    }
  }
  
  /* 小型モバイル対応 (576px以下) */
  @media screen and (max-width: 576px) {
    /* サイドナビの幅調整 */
    .side-nav-content {
      width: 100%;
      padding: 50px 30px;
    }
    
    /* ヒーローセクションのさらなる調整 */
    .hero-text h1,
    .elegant-heading {
      font-size: 18px !important; /* contact-main-messageの576px版と同じサイズに統一 */
      letter-spacing: -0.5px !important; /* contact-main-messageと同じ文字間隔 */
      word-spacing: -2px !important; /* contact-main-messageと同じ単語間隔 */
      margin-bottom: 35px !important; /* hero-textとの間隔を維持 */
      line-height: 1.3 !important; /* contact-main-messageと同じ行間 */
    }
    
    /* サービスアイコンと見出しの配置調整 */
    .service-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .service-icon {
      margin-bottom: 15px;
      margin-right: 0;
    }
    
    /* コンタクトボタンの幅調整 */
    .contact-button {
      width: 100%;
      text-align: center;
      padding: 12px 20px;
    }
    
    /* 波形セパレータの高さ調整 */
    .wave-separator,
    .wave-separator-bottom {
      height: 80px;
    }
    
    /* ポートフォリオオーバーレイの内容調整 */
    .portfolio-overlay-content .description {
      display: none; /* 説明文を非表示に */
    }
    
    .portfolio-overlay-content h3 {
      font-size: 16px;
    }
    
    /* ニュースセクションの調整 */
    .news-date, .news-category {
      display: block;
      margin-bottom: 10px;
    }
  }
  
  /* 画像サイズの最適化 */
  @media screen and (max-width: 992px) {
    .hero-image-container {
      height: 60vh;
    }
  }
  
  /* タッチデバイス向け調整 */
  @media (hover: none) {
    /* タッチデバイスでホバー効果を調整 */
    .portfolio-item:active .portfolio-overlay {
      opacity: 1;
    }
    
    .service-card:active {
      transform: translateY(-5px);
    }
    
    /* タップ時のフィードバック */
    .subtle-link:active,
    .service-link:active,
    .news-read-more:active,
    .portfolio-more-link:active {
      opacity: 0.7;
    }
  }
  
  /* ハイトDPI画面の対応（Retinaなど） */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 線の太さなどを調整 */
    .hero-image-carousel::before,
    .hero-image-carousel::after {
      border-width: 0.5px;
    }
    
    .service-card::before {
      width: 3px;
    }
  }
  
  /* プリント対応 */
  @media print {
    .site-header,
    .side-nav,
    .hero-image-carousel,
    .slide-controls,
    .contact-preview,
    footer {
      display: none;
    }
    
    .hero-content,
    .vision-section,
    .services-section,
    .portfolio-section,
    .news-section {
      padding: 20px 0;
      margin: 0;
    }
    
    .vision-content,
    .service-card,
    .portfolio-item,
    .news-list-item {
      box-shadow: none;
      border: 1px solid #eee;
    }
    
    body {
      color: black;
      background: white;
    }
    
    * {
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
  }
  
  /* ダークモード対応 */
  @media (prefers-color-scheme: dark) {
    /* ダークモード時の対応を入れる場合はここに追加 */
    /* 現状は実装しない */
  }
  
  /* 画面回転対応 */
  @media screen and (orientation: portrait) {
    /* 縦向き時の調整 */
    .portfolio-item {
      height: 250px;
    }
  }
  
  @media screen and (orientation: landscape) and (max-height: 500px) {
    /* 横向きモバイル端末（特に小型）向け */
    .hero {
      min-height: 450px;
    }
    
    .hero-content {
      padding-bottom: 50px;
    }
    
    .vision-section,
    .services-section,
    .portfolio-section,
    .news-section {
      padding: 40px 0;
    }
    
    .slide-controls {
      bottom: 10px;
    }
  }
  
  /* iOSデバイス向け修正（特に100vhの扱い） */
  @supports (-webkit-touch-callout: none) {
    .hero {
      height: -webkit-fill-available;
    }
  }
  
  /* パフォーマンス向け最適化 */
  @media screen and (max-width: 768px) {
    /* アニメーションを軽量化 */
    .service-card:hover,
    .portfolio-item:hover {
      transform: translateY(-5px);
    }
    
    /* ニュースカードのホバー効果も削除 - モバイルでもボタンと勘違いされないように */
    .news-item:hover {
      /* transform: translateY(-5px); */
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }
    
    /* 背景パターンを簡略化 */
    .bg-pattern,
    .interior-perspective-grid,
    .interior-wireframe {
      opacity: 0.03;
    }
  }
  
  /* フォームファクター固有の修正 */
  /* iPadなどの独特なサイズ対応 */
  @media screen and (min-width: 768px) and (max-width: 992px) and (min-height: 900px) {
    .hero-content {
      max-width: 600px;
      left: 5vw;
      transform: translateY(-40%);
    }
  }
  
  /* 特定のブラウザ向け修正 */
  @supports (-moz-appearance:none) {
    /* Firefox向け調整 */
    .subtle-link,
    .service-link,
    .news-read-more {
      display: inline-block;
    }
  }

/* 中身のある要素のセクション区切りを確実に削除 - WordPress版では中身があるので区切りを削除 */
.section-divider {
    display: none;
}

/* services-projects間の追加スペーサー - 削除 */
.services-projects-spacer {
    display: none;
}


/* projectsセクションを3列にする（PCサイズ） */
@media screen and (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
}

/* タブレットサイズ：2列に変更 */
@media screen and (max-width: 991px) and (min-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* スマホサイズ：1列に変更 */
@media screen and (max-width: 575px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* ポートフォリオアイテムの画像を余白なしにする */
.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 0; /* 角を削除 */
}

.portfolio-item .portfolio-image {
    height: 100%; /* カード全体の高さに合わせる */
    overflow: hidden;
}

.portfolio-item .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    border-radius: 0; /* 角を削除 */
}

/* ホバー時のオーバーレイ効果を改善 */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
      rgba(41, 89, 79, 0.1) 0%, 
      rgba(41, 89, 79, 0.8) 60%, 
      rgba(41, 89, 79, 0.95) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 30px;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    width: 100%;
    color: white;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: white;
}

.portfolio-overlay-content .location {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-style: italic;
    color: white;
}

.portfolio-overlay-content .description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.8;
    color: white;
}

/* 詳細を見るボタンのホバー効果 */
.view-project {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.view-project:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}

.view-project::after {
    content: ' →';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.view-project:hover::after {
    transform: translateX(5px);
}


/* ==============================================
   個別記事ページスタイル（single-news.php / single.php）
   ============================================== */

/* コンテナスタイル */
.single-news-container,
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* パンくずナビゲーション */
.breadcrumb-nav {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--dark);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--gray);
    font-weight: 500;
}

/* 記事ヘッダー */
.news-article-header,
.article-header {
    margin-bottom: 3rem;
}

.news-meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-date,
.article-date {
    color: var(--gray);
    font-weight: 500;
}

.news-category,
.article-category {
    background-color: var(--light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-title,
.article-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin: 0;
}

.article-excerpt {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
    opacity: 0.8;
}

/* 記事内容 */
.news-content,
.article-content {
    margin-bottom: 3rem;
}

.news-featured-image,
.article-featured-image {
    margin-bottom: 2rem;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.news-body,
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.news-body h2,
.article-body h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.news-body h3,
.article-body h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem 0;
}

.news-body p,
.article-body p {
    margin-bottom: 1.5rem;
}

.news-body ul,
.news-body ol,
.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.news-body li,
.article-body li {
    margin-bottom: 0.5rem;
}

.news-body blockquote,
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--light);
    font-style: italic;
}

/* 記事フッター */
.news-article-footer,
.article-footer {
    border-top: 1px solid var(--light);
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.news-tags,
.article-tags,
.article-terms {
    margin-bottom: 2rem;
}

.tags-container,
.terms-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-label,
.terms-label {
    color: var(--gray);
    font-weight: 500;
    margin-right: 0.5rem;
}

.tag-item,
.term-item {
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tag-item:hover {
    background-color: var(--primary);
}

/* ソーシャルシェア */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-label {
    color: var(--gray);
    font-weight: 500;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-link.twitter {
    background-color: #1DA1F2;
}

.share-link.facebook {
    background-color: #4267B2;
}

.share-link.line {
    background-color: #00C300;
}

/* 著者情報 */
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 8px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.5rem 0;
}

.author-bio {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 投稿ナビゲーション */
.post-navigation {
    margin-bottom: 3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray);
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: var(--primary);
    background-color: var(--light);
}

.nav-direction {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 500;
    color: var(--dark);
}

/* 関連記事 */
.related-news,
.related-posts {
    margin-bottom: 3rem;
}

.related-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.related-news-grid,
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-news-item,
.related-post-item {
    border: 1px solid var(--light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-news-item:hover,
.related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.related-content .related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    text-align: left;
}

/* 一覧に戻るリンク */
.back-to-list {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 164, 144, 0.3);
}

/* ページリンク */
.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: var(--light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background-color: var(--primary);
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .single-news-container,
    .single-post-container {
        padding: 1rem;
    }
    
    .news-title,
    .article-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-news-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        justify-content: center;
        text-align: center;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
}

/* スマホ表示全体のフォントサイズ統一調整 */
@media screen and (max-width: 768px) {
    /* Services セクションの文字サイズ調整 */
    .services-subtitle {
        font-size: 14px; /* 16px → 14px に縮小 */
        line-height: 1.6; /* 1.8 → 1.6 に調整 */
        letter-spacing: -0.1px; /* 文字間隔を詰める */
    }
    
    .service-text {
        font-size: 14px; /* 15px → 14px に縮小 */
        line-height: 1.6; /* 1.7 → 1.6 に調整 */
        letter-spacing: -0.1px; /* 文字間隔を詰める */
    }
    
    /* Portfolio セクションの文字サイズ調整 */
    .portfolio-subtitle {
        font-size: 14px; /* 16px → 14px に縮小 */
        line-height: 1.6; /* 1.8 → 1.6 に調整 */
        letter-spacing: -0.1px; /* 文字間隔を詰める */
    }
    
    .portfolio-overlay-content .description {
        font-size: 12px; /* 14px → 12px に縮小 */
        line-height: 1.5; /* 1.6 → 1.5 に調整 */
        letter-spacing: -0.1px; /* 文字間隔を詰める */
    }
    
    /* News セクションの文字サイズ調整 */
    .news-subtitle {
        font-size: 14px; /* 16px → 14px に縮小 */
        line-height: 1.6; /* 1.8 → 1.6 に調整 */
        letter-spacing: -0.1px; /* 文字間隔を詰める */
    }
    
    .news-title {
        font-size: 14px !important; /* 16px → 14px に縮小 */
        line-height: 1.3 !important; /* 1.4 → 1.3 に調整 */
        letter-spacing: -0.1px !important; /* 文字間隔を詰める */
    }
}

/* contact-previewのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .contact-preview {
        padding: 0 5vw;
        margin: 80px auto;
    }
    
    .contact-decorative-line {
        margin-bottom: 40px;
    }
    
    .contact-line-left,
    .contact-line-right {
        max-width: 80px;
    }
    
    .contact-main-message {
        font-size: 20px; /* 22px → 20px に縮小 */
        margin-bottom: 30px;
        line-height: 1.4; /* 行間を調整 */
        letter-spacing: -0.3px; /* 文字間隔を詰める */
        word-spacing: -1px; /* 単語間隔も詰める */
    }
    
    .contact-details {
        margin-bottom: 35px;
    }
    
    .contact-note {
        font-size: 12px; /* 13px → 12px に縮小 */
        margin-bottom: 6px;
        line-height: 1.3; /* 行間を調整 */
        letter-spacing: -0.2px; /* 文字間隔を詰める */
    }
    
    .contact-link {
        font-size: 14px; /* 15px → 14px に縮小 */
        letter-spacing: 0px; /* 文字間隔をゼロに */
    }
}

@media screen and (max-width: 576px) {
    .contact-preview {
        margin: 60px auto;
    }
    
    .contact-main-message {
        font-size: 18px; /* 20px → 18px にさらに縮小 */
        line-height: 1.3; /* さらに詰める */
        letter-spacing: -0.5px; /* さらに詰める */
        word-spacing: -2px; /* さらに詰める */
    }
    
    .contact-decorative-line {
        margin-bottom: 30px;
    }
    
    .contact-line-left,
    .contact-line-right {
        max-width: 60px;
    }
    
    .contact-line-center {
        width: 6px;
        height: 6px;
        margin: 0 15px;
    }
    
    .contact-line-center::before {
        width: 12px;
        height: 12px;
    }
    
    .contact-note {
        font-size: 11px; /* さらに縮小 */
        line-height: 1.2; /* さらに詰める */
    }
    
    .contact-link {
        font-size: 13px; /* さらに縮小 */
    }
}

/* page-contact.phpのホームに戻るボタン - page-about.phpと同じスタイル */
.back-to-home-container {
    text-align: center;
    margin: 80px 0 100px;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.back-to-home-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    color: var(--primary);
}

.back-to-home-button:hover::after {
    width: 100%;
    left: 0;
}

/* 矢印の左移動アニメーション */
.back-to-home-button i,
.back-to-home-button svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-home-button:hover i,
.back-to-home-button:hover svg {
    transform: translateX(-5px);
}

/* ================================
   PC・モバイル用テキスト表示制御
   ================================ */

/* デフォルトはPC用テキストを表示、モバイル用を非表示 */
.services-subtitle-pc,
.hero-text-pc,
.overview-text-pc,
.message-text-pc,
.contact-description-pc {
    display: block;
}

.services-subtitle-mobile,
.hero-text-mobile,
.overview-text-mobile,
.message-text-mobile,
.contact-description-mobile {
    display: none;
}

/* スマホ表示時はモバイル用テキストを表示、PC用を非表示 */
@media screen and (max-width: 768px) {
    .services-subtitle-pc,
    .hero-text-pc,
    .overview-text-pc,
    .message-text-pc,
    .contact-description-pc {
        display: none;
    }

    .services-subtitle-mobile,
    .hero-text-mobile,
    .overview-text-mobile,
    .message-text-mobile,
    .contact-description-mobile {
        display: block;
    }
    
    /* モバイル用テキストのスタイル調整 */
    .services-subtitle-mobile p,
    .hero-text-mobile p,
    .overview-text-mobile p,
    .message-text-mobile p,
    .contact-description-mobile p {
        margin-bottom: 0.5em;
        line-height: 1.5;
    }
    
    .services-subtitle-mobile p:last-child,
    .hero-text-mobile p:last-child,
    .overview-text-mobile p:last-child,
    .message-text-mobile p:last-child,
    .contact-description-mobile p:last-child {
        margin-bottom: 0;
    }
}

/* ================================
   スマホ表示の文字サイズ統一調整
   ================================ */

@media screen and (max-width: 768px) {
    /* Servicesセクションの調整 */
    .services-subtitle {
        font-size: 13px \!important; /* 16px → 13px でVisionと統一 */
        line-height: 1.4 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    .service-text {
        font-size: 13px \!important; /* 15px → 13px でVisionと統一 */
        line-height: 1.4 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    /* Portfolioセクションの調整 */
    .portfolio-subtitle {
        font-size: 13px \!important; /* 16px → 13px でVisionと統一 */
        line-height: 1.4 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    .portfolio-overlay-content .description {
        font-size: 12px \!important; /* 14px → 12px に縮小 */
        line-height: 1.3 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    /* Newsセクションの調整 */
    .news-subtitle {
        font-size: 13px \!important; /* 16px → 13px でVisionと統一 */
        line-height: 1.4 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    .news-title {
        font-size: 14px \!important; /* 16px → 14px に少し縮小 */
        line-height: 1.3 \!important;
        letter-spacing: -0.2px \!important;
    }
    
    /* 各セクションタイトルの調整 */
    .services-title,
    .portfolio-title,
    .news-section-title {
        font-size: 28px \!important; /* 36px → 28px でVisionと統一 */
        line-height: 1.2 \!important;
    }
}
EOF < /dev/null
/* さらに小さなスマホ画面（576px以下）での追加調整 */
@media screen and (max-width: 576px) {
    /* さらに細かい調整 */
    .services-subtitle,
    .portfolio-subtitle,
    .news-subtitle {
        font-size: 12px \!important; /* 13px → 12px にさらに縮小 */
        line-height: 1.3 \!important;
        letter-spacing: -0.3px \!important;
    }
    
    .service-text {
        font-size: 12px \!important; /* 13px → 12px にさらに縮小 */
        line-height: 1.3 \!important;
        letter-spacing: -0.3px \!important;
    }
    
    .news-title {
        font-size: 13px \!important; /* 14px → 13px にさらに縮小 */
        line-height: 1.2 \!important;
        letter-spacing: -0.3px \!important;
    }
    
    .portfolio-overlay-content .description {
        font-size: 11px \!important; /* 12px → 11px にさらに縮小 */
        line-height: 1.2 \!important;
        letter-spacing: -0.3px \!important;
    }
    
    /* セクションタイトルのさらなる調整 */
    .services-title,
    .portfolio-title,
    .news-section-title {
        font-size: 24px \!important; /* 28px → 24px にさらに縮小 */
        line-height: 1.1 \!important;
        letter-spacing: -0.2px \!important;
    }
}
EOF < /dev/null

/* ================================
   フッター
   ================================ */

.simple-footer {
    background-color: var(--gray);
    color: #f5f5f5;
    padding: 60px 0 30px;
    margin-top: 120px;
}

.simple-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8vw;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

.footer-info {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-info div {
    margin-bottom: 8px;
}

.footer-info div:last-child {
    margin-bottom: 0;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .simple-footer {
        padding: 40px 0 20px;
        margin-top: 80px;
    }
    
    .simple-footer .container {
        padding: 0 5vw;
    }
    
    .footer-content {
        margin-bottom: 30px;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-logo-img {
        height: 32px;
    }
    
    .footer-info {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .copyright {
        font-size: 11px;
    }
}
