@charset "UTF-8";

/* --- CSS Variables & Reset --- */
:root {
    --color-white: #ffffff;
    --color-black: #111111;
    --color-gray: #f5f5f5;
    --color-text: #333333;
    --color-accent: #a5d8ff;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    font-family: var(--font-en);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
    cursor: pointer !important; /* これを追加すると指マークになります */
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

/* --- ふわっと表示アニメーション（ゆっくり版） --- */
.fade-in {
    opacity: 0;
    /* 移動距離を少し長くして、ゆったり感を出す */
    transform: translateY(70px); 
    
    /* 時間を 1.2s -> 2.5s に変更し、より滑らかなブレーキがかかる設定に変更 */
    transition: opacity 5.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header 修正版 --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    
    /* 背景は常に透明 */
    background: transparent; 
    
    z-index: 2000; 
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ロゴの設定（初期透明 -> スクロール後表示） */
.logo img {
    height: 70px;
    margin-top: 20px;
    width: auto;
    transition: opacity 0.6s ease;
    opacity: 0; /* 初期は見えない */
}

/* スクロール時にロゴを表示 */
header.scrolled .logo img {
    opacity: 1;
}

/* PC Nav */
.pc-nav ul {
    display: flex;
    gap: 30px;
}

.pc-nav ul li a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-white); /* 初期は白 */
    position: relative;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: color 0.6s ease;
}

/* スクロール時は黒に変更 */
header.scrolled .pc-nav ul li a {
    color: var(--color-text);
    text-shadow: none;
}

.pc-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: 0.3s;
}
/* スクロール時は下線も黒 */
header.scrolled .pc-nav ul li a::after {
    background: var(--color-text);
}
.pc-nav ul li a:hover::after { width: 100%; }

/* Hamburger Button */
.hamburger {
    display: none; 
    position: relative;
    z-index: 2100;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    
    /* 【初期】白 */
    background-color: var(--color-white);
    
    /* 色の変化を滑らかにする設定 */
    transition: background-color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* 【追加】スクロール時は黒に変更 */
header.scrolled .hamburger span {
    background-color: var(--color-black);
}

.hamburger span:nth-of-type(1) { top: 10px; }
.hamburger span:nth-of-type(2) { top: 20px; }
.hamburger span:nth-of-type(3) { top: 30px; }

/* Hamburger Active State (開いている時は背景が白なので黒にする) */
.hamburger.active span {
    background-color: var(--color-black) !important;
}
.hamburger.active span:nth-of-type(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
}
.hamburger.active span:nth-of-type(2) {
    opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Smartphone Nav (Drawer) */
.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1500; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}
.sp-nav.open {
    opacity: 1;
    pointer-events: auto;
}
.sp-nav-inner ul {
    flex-direction: column;
    text-align: center;
}
.sp-nav-link {
    display: block;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-black);
    padding: 20px;
}

/* Hamburger Button */
.hamburger {
    display: none; 
    position: relative;
    z-index: 2100;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    
    /* 【初期】ハンバーガー線も白 */
    background-color: var(--color-white);
    
    transition: background-color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* スクロール時は線を黒に */
header.scrolled .hamburger span {
    background-color: var(--color-black);
}

.hamburger span:nth-of-type(1) { top: 10px; }
.hamburger span:nth-of-type(2) { top: 20px; }
.hamburger span:nth-of-type(3) { top: 30px; }

/* Hamburger Active State (開いている時は常に黒で見やすく) */
.hamburger.active span {
    background-color: var(--color-black) !important;
}
.hamburger.active span:nth-of-type(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
}
.hamburger.active span:nth-of-type(2) {
    opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Smartphone Nav (Drawer) */
.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1500; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}
.sp-nav.open {
    opacity: 1;
    pointer-events: auto;
}
.sp-nav-inner ul {
    flex-direction: column;
    text-align: center;
}
.sp-nav-link {
    display: block;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-black);
    padding: 20px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('image/image_kv.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    font-family: var(--font-en);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); 
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    width: 100%;
}

.hero-logo-center img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
}

.hero-catch {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.sp-br {
    display: none;
}

.hero-name {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- Hero Section 修正版（スクロールダウン部分） --- */

/* スクロールダウンボタン全体 */
.scroll-down {
    position: absolute;
    /* 線が下に伸びるため、少し位置を上げます */
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    
    /* テキストのスタイル */
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    
    /* 縦並びにする（テキストの下に線） */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 縦線のアニメーション部分 */
.scroll-down::after {
    content: "";
    /* 線のサイズ */
    width: 1px;
    height: 60px;
    background: var(--color-white);
    
    /* テキストとの余白 */
    margin-top: 10px;
    
    /* アニメーション設定 */
    /* 線の伸縮を滑らかに行う（スマートな動き） */
    animation: scrollLine 1.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* 線が上から下に伸びて、消えるアニメーション */
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    50.1% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 1;
    }
}

/* 元の bounce アニメーションは削除してOKです */

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    /* 日本語が入るので下の余白を少し詰める */
    margin-bottom: 5px; 
    line-height: 1.2;
}

/* 【追加】日本語の副題スタイル */
.ja-title {
    display: block;
    font-size: 0.9rem;
    color: #888; /* 少し薄めのグレー */
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 20px; /* 下の線との距離 */
}

.section-title span {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-black);
    margin: 0 auto;
}

/* --- Philosophy 修正版 --- */
.philosophy { background-color: var(--color-gray); }

.philosophy-card {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.philosophy-head {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px; /* 見出しの下の余白を少し広げました */
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.philosophy-text {
    font-size: 1.05rem; /* 文字サイズ微調整 */
    color: #444;
    font-weight: 400;
    
    /* 【追加】段落ごとに余白を空ける */
    margin-bottom: 2.5rem; 
    
    /* 【推奨】長文なので左揃え（または両端揃え）の方が読みやすいですが、
       デザインの好みで center のままでも構いません。
       中央揃えのままにする場合は text-align: left; を削除してください。 */
    text-align: justify; 
    text-align-last: center; /* 最後の行だけ中央揃えにするテクニック（任意） */
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .philosophy-head {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    .philosophy-text {
        font-size: 0.95rem;
        text-align: left; /* スマホは左揃え推奨 */
        text-align-last: left;
        margin-bottom: 2rem;
    }
}

/* --- CEO Message 修正版 --- */
.ceo-section {
    /* 全体は縦並び（見出し -> 2カラムコンテンツ） */
    display: block;
}

/* 全幅に広がる見出し */
.ceo-heading-main {
    width: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px; /* 写真との間隔 */
    line-height: 1.5;
    /* 左側にアクセントライン */
    border-left: 8px solid var(--color-black);
    padding-left: 20px;
    text-align: left;
}

/* 写真と本文を並べるラッパー */
.ceo-cols {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 60px;
}

/* 左カラム（写真） */
.ceo-img {
    flex: 0.8;
    height: 500px;
    background-color: #ddd;
    background-image: url('image/ceo.jpg'); 
    background-size: cover;
    background-position: center;
}

/* 右カラム（本文） */
.ceo-text {
    flex: 1.2;
    /* 見出しが上にあるため、上部の余白は不要 */
    padding-top: 0;
}

.ceo-highlight {
    background-color: #f0f8ff;
    padding: 20px;
    margin: 25px 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.8;
}

.ceo-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.ceo-sign {
    margin-top: 40px;
    font-weight: 700;
    text-align: right;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ceo-heading-main {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .ceo-cols { 
        flex-direction: column; 
        gap: 30px;
    }
    
    .ceo-img { 
        width: 100%;
        height: 350px; 
    }
}


/* --- Business (旧Services) アコーディオン修正版 --- */
.services { background-color: var(--color-gray); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.service-card {
    background: #fff;
    padding: 25px 20px; 
    transition: box-shadow 0.3s, transform 0.3s, border-top 0.3s; /* hover用 */
    border-top: 3px solid transparent;
    position: relative;
    cursor: pointer;
}

/* ▼▼▼ 追加：ビジネスカード専用のゆっくりアニメーション設定 ▼▼▼ */
.service-card.fade-in {
    /* 全体の設定(2.5s)よりもさらに遅く、3.5秒かけてゆっくり移動させる */
    transition: opacity 3.5s cubic-bezier(0.1, 1, 0.3, 1), transform 3.5s cubic-bezier(0.1, 1, 0.3, 1);
}

/* 順番に表示させるための時間差（ディレイ）設定 */
.service-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.service-grid .service-card:nth-child(2) { transition-delay: 0.3s; }
.service-grid .service-card:nth-child(3) { transition-delay: 0.5s; }
.service-grid .service-card:nth-child(4) { transition-delay: 0.7s; }
.service-grid .service-card:nth-child(5) { transition-delay: 0.9s; }
.service-grid .service-card:nth-child(6) { transition-delay: 1.1s; }
.service-grid .service-card:nth-child(7) { transition-delay: 1.3s; }
.service-grid .service-card:nth-child(8) { transition-delay: 1.5s; }
.service-grid .service-card:nth-child(9) { transition-delay: 1.7s; }
/* ▲▲▲ 追加ここまで ▲▲▲ */


.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 3px solid var(--color-accent);
}

/* アイコン：大きくセンター配置 */
.service-icon {
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: #888;
    text-align: center;
    display: block;
    pointer-events: none;
    line-height: 1;
}

/* Google Fontsアイコン用の調整 */
.service-icon .material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
}

/* タイトル：センター配置 ＋ 開閉矢印 */
.service-title {
    font-size: 1.0rem;
    margin-bottom: 0;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px; 
    position: relative;
    pointer-events: none;
    line-height: 1.4;
}

/* 開閉を示す矢印アイコン (▼) */
.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: translateX(-50%) rotate(45deg);
    transition: 0.3s;
}

/* 開いた時（active）の矢印 (▲) */
.service-card.active .service-title::after {
    transform: translateX(-50%) rotate(225deg);
    border-color: var(--color-accent);
    bottom: -5px;
}

/* 詳細リスト：初期状態は非表示 */
.service-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
}

/* 開いた時（active）の状態 */
.service-card.active .service-desc {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.service-desc ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

.service-desc ul li {
    margin-bottom: 5px;
}

/* --- Company --- */
.company-container {
    display: flex;
    gap: 50px;
}
.company-info { flex: 1; }
.company-map { 
    flex: 1; 
    height: 450px; 
    background: #eee;
    position: relative;
}
.company-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

dl.company-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-top: 1px solid #ddd;
}
dl.company-dl dt, dl.company-dl dd {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
dl.company-dl dt { font-weight: 700; }

/* --- Footer --- */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.footer-logo img {
    width: 80px; 
    height: auto;
    filter: invert(1);
}

.footer-content {
    margin-bottom: 40px;
    font-family: var(--font-en);
}
.footer-content p {
    margin-bottom: 10px;
    font-family: var(--font-en);
}
.copyright {
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-family: var(--font-en);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    header { padding: 0 20px; }
    
    .pc-nav { display: none; }
    .hamburger { display: block; }
    
    /* キービジュアル：背景固定解除＆ロゴサイズ調整 */
    .hero {
        background-attachment: scroll;
    }
    .hero-logo-center img {
        max-width: 120px;
        margin-bottom: 20px;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.9rem; }

    /* PHILOSOPHY */
    .philosophy-head {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    .philosophy-text {
        font-size: 0.95rem;
        text-align: left;
        text-align-last: left;
        margin-bottom: 2rem;
    }
    
    /* ▼▼▼ CEO MESSAGE 修正箇所 ▼▼▼ */
    /* 見出しの文字サイズ調整 */
    .ceo-heading-main {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    /* 写真と本文の並びを「縦」にする */
    .ceo-cols { 
        flex-direction: column; 
        gap: 30px;
    }
    
    /* 写真を表示させるための高さ指定 */
    .ceo-img { 
        width: 100%;
        height: 350px; /* スマホでの画像の高さ */
        flex: none; /* 画像が潰れないように固定 */
    }
    /* ▲▲▲ 修正ここまで ▲▲▲ */
    
    /* COMPANY */
    .company-container { flex-direction: column; }
    dl.company-dl { display: block; }
    dl.company-dl dt { border-bottom: none; padding-bottom: 5px; }
    dl.company-dl dd { padding-top: 0; }
    
    /* 改行タグの制御 */
    .sp-br { display: block; }
    .pc-br { display: none; }
}