@charset "UTF-8";

/* =========================================
   1. 変数・基本設定
   ========================================= */
:root {
    --main-color: #F0932B;      /* オレンジ（元気・親しみ） */
    --accent-color: #FFBE76;    /* パステルオレンジ（明るさ） */
    --light-accent: #FFEAA7;    /* クリームイエロー（柔らかさ） */
    --text-color: #4a4a4a;      /* 濃いグレー（少し柔らかめ） */
    --text-light: #888888;      /* 薄いグレー */
    --bg-color: #ffffff;        /* 背景白 */
    --bg-gray: #FFFDF7;         /* 温かみのあるオフホワイト */
    --font-serif: "Noto Serif JP", serif; /* 見出し用明朝体 */
    --font-sans: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; /* 本文用ゴシック */
}

/* Hide hamburger by default (Desktop/Tablet Landscape) */
.hamburger-btn {
    display: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-size: 105%; /* Overall text size increase */
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 2.2; 
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;

}

/* --- Strength Section (Card Layout) --- */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.strength-item {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.strength-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--main-color);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.strength-item h3 {
    font-size: 1.4rem;
    color: var(--main-color);
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.4s;
}

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

/* =========================================
   2. ヘッダー
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
    color: #fff; /* 初期状態は白文字（背景画像の上） */
}

/* スクロール時 & 下層ページ用（JSでクラス付与想定） */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--text-color); /* 黒文字に変更 */
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
    transition: filter 0.4s, opacity 0.4s ease;
}

.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

header.scrolled .logo-white {
    display: none;
}

header.scrolled .logo-black {
    display: block;
}

nav ul {
    display: flex;
    align-items: center; /* 垂直方向を揃える */
    list-style: none;
    gap: 40px; /* 間隔を少し広めに */
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative; /* アニメーションの基準点 */
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* 線の太さ */
    background-color: var(--main-color); /* 文字色と同じ色にする */
    transform: scaleX(0); /* 最初は幅0 */
    transform-origin: bottom center; /* 右側を基準に縮む設定 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 動きの緩急 */
}

nav a:hover::after {
    transform: scaleX(0.5); /* ホバー時は幅100% */
    transform-origin: bottom center; /* 左側を基準に伸びる設定 */
}

/* --- お問合せボタン（ヘッダー用） --- */
nav a.btn-contact {
    background-color:var(--main-color);
    color: #fff;
    padding: 3px 20px;
    border-radius: 7px; /* 角の丸い四角 */
    box-shadow: 0 4px 7cap rgba(240, 147, 43, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* お問合せボタンには通常リンクの下線アニメーションを適用しない */
nav a.btn-contact::after {
    display: none;
}

/* ホバー時の視覚効果 */
nav a.btn-contact:hover {
    background-color: var(--accent-color);
    box-shadow: 0 6px 10px rgba(240, 147, 43, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* スクロール時のカラー考慮（白背景時の調整） */
header.scrolled nav a.btn-contact {
    color: #fff;
}

/* =========================================
   ドロップダウンナビゲーション
   ========================================= */

/* ドロップダウンを持つ親liの設定 */
nav ul > li.has-dropdown {
    position: relative;
}

/* ドロップダウン矢印インジケーター */
nav ul > li.has-dropdown > a::before {
    content: '▾';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-60%);
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

nav ul > li.has-dropdown:hover > a::before {
    transform: translateY(-60%) rotate(180deg);
}

/* ドロップダウンメニュー本体 */
.dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 180px;
    padding: 8px 0;
    list-style: none;
    margin: 0;

    /* 非表示状態 */
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

/* 吹き出しの三角形 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.04));
}

/* ホバー外れ防止用の透明エリア（隙間を埋める） */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

/* ホバーで表示 */
nav ul > li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ドロップダウン内リンクのスタイル */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color) !important;
    letter-spacing: 0.05em;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
    padding-bottom: 5px; /* 親のnav aのリセット */
}

/* ドロップダウン内のアニメーション下線を無効化 */
.dropdown-menu li a::after {
    display: none !important;
}

/* ドロップダウン内のホバー状態 */
.dropdown-menu li a:hover {
    background-color: rgba(240, 147, 43, 0.08);
    color: var(--main-color) !important;
    padding-left: 26px;
}

/* 区切り線（任意） */
.dropdown-menu li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   3. トップページ（Home）専用レイアウト
   ========================================= */

/* --- メインビジュアル（全画面・縦書き） --- */
.hero {
    height: 100vh;
    width: 100%;
    background: url('../image/hero.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 画像を少し暗く */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright;
    letter-spacing: 0.3em;
}

.vertical-text {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    margin: 0 0 0 20px;
    line-height: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-right: 20px;
    opacity: 0.9;
    border-right: 1px solid rgba(255,255,255,0.7);
    padding-right: 20px;
}

/* --- セクション共通 --- */
section {
    padding: 60px 20px; /* 100px -> 60px */
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #e5e5e5;
}

section:first-of-type {
    border-top: none;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 50px; /* 60px -> 50px */
    text-align: left;
    font-weight: normal;
    letter-spacing: 0.1em;
}

/* --- 下層ページ（About, Work, Company） --- */

/* --- ページヘッダー（控えめな高さ） --- */
.page-hero {
    height: 35vh;
    min-height: 250px;
    background-color: rgba(0, 0, 0, 0.6);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply; /* 画像を暗く馴染ませる */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    text-align: left;
    margin-bottom: 40px; 
    padding-left: 40px;
}

.serif-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--main-color);
}

/* --- ジグザグレイアウト（Home用） --- */
/* --- ジグザグレイアウト（Full Width Layout） --- */
.section-full {
    padding: 0;
    max-width: 100%;
}

/* --- 経営理念セクション (Frosted Glass Style) --- */
.mission-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* より縦長に */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス */
    padding: 120px 20px;
    margin: 0 auto;
    max-width: none; /* 全幅表示 */
    border-top: none;
    overflow: hidden;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* 少しだけ濃度を上げる */
    backdrop-filter: blur(25px); /* ぼかしを強く */
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
}

.mission-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: flex-start; /* 左寄せ気味に配置 */
}

.mission-glass-box {
    background: rgba(0, 0, 0, 0.5); /* 暗めの背景 */
    backdrop-filter: blur(15px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px; /* ほぼシャープに */
    color: #fff;
    max-width: 700px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mission-sub-title {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--main-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.mission-title {
    color: #fff !important;
    font-size: 2.4rem !important;
    line-height: 1.5 !important;
    margin-bottom: 40px !important;
    text-align: left !important;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
    opacity: 0.9;
}

.mission-action {
    margin-top: 50px;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-glass span {
    margin-left: 15px;
    transition: transform 0.4s ease;
}

.btn-glass:hover {
    background: #fff;
    color: #333;
}

.btn-glass:hover span {
    transform: translateX(5px);
}

/* モバイル対応 */
@media (max-width: 1024px) {
    .mission-glass-box {
        padding: 50px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .mission-section {
        min-height: auto;
        padding: 80px 20px;
        background-attachment: scroll; /* モバイルではパララックスをオフにすることが多い */
    }
    
    .mission-glass-box {
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .mission-title {
        font-size: 1.8rem !important;
    }
    
    .mission-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}
    
    .section-full .zigzag-img,
    .section-full .zigzag-text {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .section-full .zigzag-img {
        height: 300px;
    }
    
    .section-full .zigzag-text {
        padding: 40px 20px;
    }

/* --- 線画ボタン --- */
.btn-line {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 40px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.btn-line::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--main-color);
    transition: 0.4s;
    z-index: -1;
}

.btn-line:hover {
    color: #fff;
    border-color: var(--main-color);
}

.btn-line:hover::before {
    width: 100%;
}

/* --- 診断CTAボタン --- */
.btn-diagnosis:hover {
    background-color: #ea6c00 !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.55) !important;
}

/* --- ニュースエリア --- */
#news {
    padding-top: 20px;
    padding-bottom: 80px;
}

#news .news-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.news-list {
    margin-bottom: 30px;
    border-top: 1px solid #e5e5e5;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 24px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 250px;
    flex-shrink: 0;
}

.news-meta time {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 0.1em;
}

.news-tag {
    background-color: var(--main-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.news-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 事業紹介エリア --- */
#service {
    position: relative;
    z-index: 0;
    background-color: #f7f7f7; /* 薄いグレー */
    max-width: 100%; /* 横幅いっぱいにするため100%に上書き */
    padding: 80px 40px;
    margin: 0;
}

#service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -2;
}

#service:has(.text-right .btn-line:hover)::after {
    transform: scaleX(1);
}

#service .section-title {
    transition: color 0.5s ease;
}

#service:has(.text-right .btn-line:hover) .section-title {
    color: #fff;
}

#service .service-inner {
    max-width: 1200px;
    margin: 0 auto;
}

#service::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* ロゴの大きさ（画面幅の60%程度） */
    height: 100%;
    background-image: url('../image/ロゴ（コンセプトなし）.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05; /* うっすら背景に見える透明度 */
    z-index: -1;
    pointer-events: none; /* クリック等の邪魔にならないように */
}

/* --- 事業紹介：4つ横並びカード --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* カード画像エリア */
.service-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* 比率を大きく（縦長に）設定 */
    background: linear-gradient(135deg, var(--main-color), #e8a04a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をいっぱいに表示 */
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

/* 番号バッジ */
.service-number {
    position: absolute;
    bottom: -25px; /* 左下へ */
    left: 16px;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(229, 132, 14, 0.78);/* 少し見やすく透過度を調整 */   
    line-height: 1;
    z-index: 3;
}

/* カードテキストエリア */
.service-card-body {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 14px 28px 25px;
}

.service-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.service-card-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--main-color);
    border-radius: 2px;
}

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

/* --- ページフッター --- */
.text-right  {
    text-align: right;
}

/* =========================================
   4. 下層ページ（About, Work, Company）
   ========================================= */

/* --- ページヘッダー（控えめな高さ） --- */
.page-hero {
    height: 35vh;
    min-height: 250px;
    background-color: var(--main-color);
    background-image: url('../image/イメージ８.jpg'); /* 必要に応じて変更 */
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply; /* 画像を暗く馴染ませる */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    text-align: left;
    margin-bottom: 60px;
    padding-left: 40px;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin: 0;
}

.page-hero p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
    letter-spacing: 0.05em;
}

/* --- 下層ページの画像サイズ調整（重要） --- */
/* コンテンツ内のメイン画像：中央寄せ・幅制限 */
.featured-img,
.content-block img {
    display: block;
    max-width: 1000px;     /* 横幅制限 */
    width: 100%;
    height: auto;
    max-height: 450px;    /* 高さ制限 */
    object-fit: cover;
    margin: 0 auto 40px;  /* 中央寄せ & 下余白 */
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* テキストも中央寄せで見やすく */
.content-block.center-text {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 代表挨拶（Greeting） --- */
.greeting-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 左カラム：写真＋名前 */
.greeting-left {
    flex: 0 0 370px;
    width: 370px;
}

.greeting-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    background: var(--bg-gray);
    margin-bottom: 18px;
}

.greeting-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

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

.greeting-identity {
    text-align: left;
    padding-left: 4px;
}

.greeting-role {
    font-size: 0.78rem;
    color: var(--main-color);
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.greeting-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-color);
    margin: 0 0 4px;
    letter-spacing: 0.08em;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.greeting-name-en {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: normal;
    letter-spacing: 0.14em;
}

.greeting-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* 右カラム：メッセージのみ */
.greeting-text {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.greeting-body {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 2.5;
    color: #3a3428;
    letter-spacing: 0.08em;
    text-align: justify;
    border-left: 3px solid var(--main-color);
    padding-left: 28px;
}

/* --- メンバー紹介（About - Grid Design） --- */
#member {
    padding-bottom: 100px;
}

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

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.section-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
}

/* 3カラムグリッド */
.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.member-tile {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 15px;
}

.member-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.11);
}

.member-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-gray);
}

.member-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.member-tile:hover .member-tile-img img {
    transform: scale(1.05);
}

.member-tile-info {
    padding: 24px 26px 28px;
}

.tile-position {
    font-size: 0.78rem;
    color: var(--main-color);
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tile-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0 0 4px;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-name-en {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: normal;
    letter-spacing: 0.12em;
}

.tile-desc {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

/* Scroll Animation Classes (Ensure these are active) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* --- 業務フロー（Work） --- */
/* --- Timeline Flow (Renovation) --- */
.timeline-container {
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Phase Section Styles */
.phase-section {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

/* Background Support */
.phase-section.has-bg {
    border: none;
}

.phase-section.has-bg .phase-header {
    position: relative;
    overflow: hidden;
    background: #111;
    border: none;
    z-index: 1;
}

.phase-section.has-bg .phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--phase-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.35; /* さらに暗くして文字の視認性を高める */
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phase-section.has-bg .phase-header:hover::before {
    transform: scale(1.05);
}

.phase-section.has-bg .phase-header > * {
    position: relative;
    z-index: 1;
}

.phase-section.has-bg .phase-header {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.phase-section.has-bg .phase-title h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.phase-section.has-bg .phase-title p {
    color: rgba(255,255,255,0.8);
}

.phase-section.has-bg .toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.phase-section.has-bg.active .toggle-btn {
    background: var(--main-color);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.phase-header:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--main-color);
}

.phase-title h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 4px;
}

.phase-title p {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    font-weight: 600;
}

.toggle-btn {
    background: var(--bg-gray);
    border: none;
    color: var(--main-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn .btn-text {
    display: none; /* テキストは非表示にしてシンプルに */
}

.btn-icon {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
}

/* Phase Details (Accordion) */
.phase-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
    padding: 0 40px; 
    position: relative; 
}

.phase-section.active .phase-details {
    max-height: 2000px; /* Arbitrary large number */
    padding: 40px;
    transition: max-height 0.5s ease-in;
}

/* Update Toggle Button State */
.phase-section.active .toggle-btn {
    background: var(--main-color);
    color: #fff;
    transform: rotate(45deg);
}

.phase-section.active .phase-header {
    border-color: var(--main-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Timeline Line (Inside Phase) */
.timeline-line {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, #eee, var(--main-color), #eee);
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.6;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phase-details .timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 偶数番目は左右反転（画像左、テキスト右） */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 44%;
    padding: 35px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.timeline-content h4 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: var(--main-color);
    font-family: var(--font-serif);
    font-weight: 700;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

.timeline-image {
    width: 44%;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image::before {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    letter-spacing: 0.1em;
}

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

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

/* 中央のマーカー */
.timeline-marker {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    background-color: #fff;
    color: var(--main-color);
    border: 3px solid var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--main-color);
    color: #fff;
    transform: scale(1.1);
}

/* --- 会社概要（Company） --- */
.table-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--main-color);
    font-weight: normal;
    font-family: var(--font-serif);
}

/* =========================================
   5. フォーム・フッター・その他
   ========================================= */

/* お問い合わせ：左右レイアウト */
.contact-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
    margin-top: 60px;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-image {
    flex: 1;
    height: 700px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.contact-form {
    background: transparent; /* 背景色をなくす */
    padding: 0;              /* パディングもなくす */
    max-width: 100%;         /* 幅を100%に */
    margin: 0;
}

/* 入力項目のグループ */
.form-group {
    margin-bottom: 40px; /* 余白を広めにとる */
    position: relative;
}

/* ラベルのデザイン変更 */
label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 0.1em;
    font-weight: normal; /* 太字にしない */
    font-family: var(--font-sans);
}

/* 必須マークのスタイル */
label span {
    color: var(--main-color);
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* 入力欄のデザイン（下線のみ） */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 0; /* 横のパディングを0に */
    border: none;
    border-bottom: 1px solid #ccc; /* 下線のみ */
    background: transparent;
    border-radius: 0;
    font-family: var(--font-serif); /* 入力文字を明朝体にするとより雰囲気がでます */
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

/* フォーカス時に下線の色を変える */
input:focus,
textarea:focus {
    border-bottom: 1px solid var(--main-color);
}

/* 送信ボタン（シンプル化） */
button[type="submit"] {
    display: block;
    width: 400px;      /* 幅を指定 */
    margin: 60px auto 0; /* 中央寄せ */
    padding: 15px 0;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    font-family: var(--font-sans); /* btn-line has this explicitly */
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--main-color);
    transition: 0.4s;
    z-index: -1;
}

button[type="submit"]:hover {
    color: #fff;
    border-color: var(--main-color);
}

button[type="submit"]:hover::before {
    width: 100%;
}

/* --- フッター（New Design） --- */
footer {
    font-family: var(--font-sans);
    color: #fff;
    margin-top: 0;
}

/* 1. Upper Section (Links) */
.footer-upper {
    background-color: #f9f9f9; 
    padding: 60px 0;
}

.footer-upper-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 0 0 auto;
}

.footer-logo-img {
    height: 45px;
    width: auto;
}

.footer-links-container {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 80px; /* カラム間の余白 */
    flex-wrap: wrap; 
}

.footer-link-col {
    min-width: 180px;
}

.col-header {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    padding-left: 15px;
    border-left: 4px solid var(--main-color);
    line-height: 1.2;
    color: var(--text-color);
}

.footer-link-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-col li {
    margin-bottom: 12px;
}

.footer-link-col a {
    color: var(--text-color); /* 黒/グレー系に変更 */
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
    display: inline-block;
}

.footer-link-col a:hover {
    opacity: 1;
    color: var(--main-color);
    text-decoration: underline;
}

/* SNS Icons (Right) */
.footer-sns {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.3s, transform 0.3s;
}

.sns-icon:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

/* 著作権バー */
.footer-bottom {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 18px 40px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-upper-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .footer-links-container {
        justify-content: center;
        gap: 40px;
    }

    .footer-link-col {
        min-width: 100%;
    }

    .col-header {
        border-left: none;
        border-bottom: 2px solid var(--main-color);
        padding-left: 0;
        padding-bottom: 10px;
        display: inline-block;
    }
}
/* --- アニメーション --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}

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

/* =========================================
   6. レスポンシブ対応（スマホ・タブレット）
   ========================================= */
@media (max-width: 1024px) {
    /* ヘッダー */
    .header-inner {
        padding: 0 20px;
    }

    /* ハンバーガーボタン */
    .hamburger-btn {
        display: block;
        position: relative;
        z-index: 2000;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .bar {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--text-color); /* Default to dark */
        transition: all 0.4s;
    }
    
    header:not(.scrolled) .bar {
        background-color: #fff;
    }
    header.scrolled .bar {
        background-color: var(--text-color);
    }

    body.nav-open .bar {
        background-color: var(--text-color);
    }

    .bar1 { top: 0; }
    .bar2 { top: 50%; transform: translateY(-50%); }
    .bar3 { bottom: 0; }

    body.nav-open .bar1 {
        transform: translateY(11px) rotate(45deg);
    }
    body.nav-open .bar2 {
        opacity: 0;
    }
    body.nav-open .bar3 {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* モバイルナビゲーション (オーバーレイ) */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        display: flex !important; /* Override display: none from previous styles if any */
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    body.nav-open nav {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        display: flex; /* Restore flex */
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    nav a {
        font-size: 1.2rem;
        color: var(--text-color); /* Always dark on mobile menu */
    }

    /* Disable scroll when menu open */
    body.nav-open {
        overflow: hidden;
    }
    
    /* Home メインビジュアル */
    .hero h1.vertical-text {
        writing-mode: horizontal-tb;
        font-size: 2rem;
        margin: 0 0 20px 0;
        text-align: center;
    }
    .hero-sub {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.7);
        padding-bottom: 10px;
        margin: 0 0 20px 0;
    }
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    /* Home ジグザグレイアウト解除 */
    .zigzag-container,
    .zigzag-container.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .zigzag-img {
        width: 100%;
        height: 250px; /* スマホでは高さ控えめ */
    }

    /* 事業紹介：1カラムに */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card-img {
        height: 180px;
    }

    /* 下層ページ */
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    /* 代表挨拶：スマホ縦積み */
    .greeting-layout {
        flex-direction: column;
        gap: 30px;
    }

    .greeting-left {
        width: 100%;
        flex: none;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .greeting-img {
        width: 120px;
        aspect-ratio: 3 / 4;
        flex: none;
        margin-bottom: 0;
    }

    .greeting-text {
        align-items: flex-start;
    }

    .greeting-body {
        padding-left: 18px;
    }

    /* メンバーグリッド：スマホは1列 */
    .member-grid {
        grid-template-columns: 1fr;
    }

    /* 会社概要テーブル */
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th {
        background: var(--bg-gray);
        font-weight: bold;
    }

    /* お問い合わせ：スマホ対応 */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-image {
        height: 300px;
    }

    /* ニュース：スマホ対応 */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }
    
    .news-meta {
        width: 100%;
        gap: 12px;
    }
    
    .news-title {
        white-space: normal;
        line-height: 1.6;
    }

    /* その他 */
    section {
        padding: 60px 20px;
    }
    /* nav ul {
        display: none; 
    } */


    /* 業務フロー（Timeline）スマホ対応 */
    .phase-header {
        padding: 24px 20px;
    }

    .phase-title h3 {
        font-size: 1.35rem;
    }

    .timeline-line {
        left: 20px; /* 左側に線を移動 */
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 45px; /* 左側のスペースを調整 */
        margin-bottom: 40px;
        width: auto;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-marker {
        position: absolute;
        left: -40px;
        top: 0;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-width: 2px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
    }
    
    .timeline-content {
        padding: 24px;
        margin-bottom: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    .timeline-image {
        height: 180px;
        border-radius: 12px;
    }
}

/* 超小型スマートフォン */
@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   モバイルのドロップダウン対応
   ========================================= */
@media (max-width: 1024px) {
    /* ドロップダウン矢印を非表示 */
    nav ul > li.has-dropdown > a::before {
        display: none;
    }

    /* ドロップダウンをフルwidthで常時展開 */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 8px 0 0 0 !important;
        min-width: 0 !important;
        gap: 12px !important;
    }

    /* 吹き出し三角非表示 */
    .dropdown-menu::before {
        display: none;
    }

    /* サブメニューのリンクスタイル */
    .dropdown-menu li a {
        font-size: 0.9rem !important;
        color: var(--text-light) !important;
        padding: 4px 0 !important;
        padding-left: 0 !important;
    }

    .dropdown-menu li a:hover {
        background: none !important;
        color: var(--main-color) !important;
        padding-left: 4px !important;
    }

    /* 区切り線を非表示 */
    .dropdown-menu li + li {
        border-top: none;
    }
}