:root {
    --gold: #b8964f;
    --black: #1a1a1a;
    --light-gray: #f9f9f9;
    --border: #e0e0e0;
    --white: #ffffff;
}
@media (min-width: 801px) {
.pc {display:block;}
.sp {display:none;}
.logo { width:150px;z-index:99999; position:absolute;top: 3px;left: 6vw;}
}
@media (max-width: 800px) {
.sp {display:block;}
.pc {display:none;}
.logo { width:150px;z-index:99999; position:absolute;top: 2px;left: 6vw;}
}
/* --- Base & Utilities --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--black);
    font-family: 'Montserrat', 'Noto Serif JP', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 4%; }
.container-sm.message{max-width:1200px;}

a { text-decoration: none; color: inherit; }

/* --- Header --- */
header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 25px 0; transition: 0.4s;
    background: rgba(255,255,255,0.0);
}
header.scrolled {
    background: rgba(255,255,255,0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: right;position:relative; align-items: ; padding: 0 5%; }

.logo img{width:100%;}
.pc-nav ul { display: flex; list-style: none; }
.pc-nav a { text-decoration: none; color: var(--black); margin-left: 30px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; transition: color 0.3s; }
.pc-nav a:hover { color: var(--gold); }
.btn-contact { border: 1px solid var(--black); padding: 8px 20px; transition: 0.3s; }
.btn-contact:hover { background: var(--black); color: var(--white) !important; }

/* --- Hero Section --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding-left: 10%; background: var(--light-gray); overflow: hidden;
}
.hero-content { flex: 1; z-index: 2; }
.hero-sub { color: var(--gold); font-weight: 600; letter-spacing: 4px; display: block; margin-bottom: 10px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 5.5rem; line-height: 1; margin-bottom: 20px; padding-right: 1em;}
.hero p { font-size: 1.1rem; }
.hero-image-wrap {
    flex: 1.2;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を保って全体を覆う */
}

/* 動画の上に薄い白のフィルターをかけて文字を読みやすくする */
.hero-image-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

@media (max-width: 800px) {
    .hero-image-wrap {
        height: 40vh; /* スマホでは高さを抑える */
    }
}
/* 外部リンクマークのベース設定 */
.external-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 5px;
    position: relative;
    vertical-align: middle;
    border-top: 1px solid currentColor; /* 文字と同じ色になる */
    border-right: 1px solid currentColor;
    transition: all 0.3s;
}

/* 矢印の斜め線の部分 */
.external-icon::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 13px;
    height: 1px;
    background-color: currentColor;
    transform: rotate(-45deg);
    transform-origin: top right;
}

/* ホバー時に少し動く演出（オプション） */
a:hover .external-icon {
    transform: translate(2px, -2px);
}

/* スマホメニュー内では少し大きくして見やすく */
.sp-nav .external-icon {
    width: 14px;
    height: 14px;
}
.sp-nav .external-icon::before {
    width: 18px;
}
/* --- Section Titles --- */
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 40px; }
.section-title span { display: block; font-size: 0.8rem; color: var(--gold); letter-spacing: 3px; font-family: 'Montserrat'; margin-top: 5px; }
.section-title.center { text-align: center; }

/* --- Concept Section --- */
.concept-section { padding: 120px 0; background: var(--white); position: relative; }
.label { 
    position: absolute; top: 100px; left: calc(50% - 450px);
    font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold);
    transform: rotate(-90deg); transform-origin: top left;
    letter-spacing: 2px;
}
.vertical-title { 
    font-family: 'Noto Serif JP', serif; font-size: 2rem; color: var(--black); 
    position: relative; margin-bottom: 40px; text-align: center;
}
.concept-main h3 { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; margin-bottom: 20px; line-height: 1.4; }

/* --- Service Section --- */
.service-section { padding: 100px 0; background: var(--light-gray); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.num { font-family: 'Playfair Display', serif; font-size: 4rem; color: rgba(184, 150, 79, 0.15); display: block; margin-bottom: 10px; }

/* Evaluation Table */
.rank-table { width: 100%; border-collapse: collapse; background: var(--white); margin-top: 20px; }
.rank-table th { background: var(--black); color: var(--white); padding: 12px; text-align: left; }
.rank-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.highlight { background: rgba(184, 150, 79, 0.05); color: var(--black); font-weight: 700; }
.muted { opacity: 0.5; }

.service-image-strip { display: flex; gap: 20px; margin-top: 60px; }
.service-image-strip img { width: 50%; height: 250px; object-fit: cover; border-radius: 4px; }

/* --- Purchase Section --- */
.purchase-section { 
    position: relative; overflow: hidden; 
    padding: 150px 0; color: var(--white);
}
.purchase-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('./images/bk03.jpg') no-repeat center center/cover;
    filter: brightness(0.4); z-index: 1;
}
.purchase-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.purchase-content .section-title { color: var(--white); }
.btn-primary { 
    display: inline-block; padding: 15px 40px; background: var(--gold); color: var(--black);
    font-weight: 600; letter-spacing: 2px; margin-top: 40px; border-radius: 3px; transition: 0.3s;
}
.btn-primary:hover { background: var(--white); }

/* --- Representative Section --- */
.rep-section { padding: 120px 0; background: var(--white); }
.rep-layout { display: flex; gap: 50px; align-items: flex-start; margin-top: 60px; }
.rep-image { flex: 0 0 300px; }
.rep-image img { width: 100%; filter: grayscale(100%); transition: 0.5s; border-radius: 4px; }
.rep-image img:hover { filter: grayscale(0%); }
.career-list { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 20px 0; margin: 20px 0; font-size: 0.9rem; }
.career-list ul { list-style: none; padding-left: 0; }
.sign { text-align: right; font-family: 'Noto Serif JP'; font-size: 1.4rem; color: var(--gold); margin-top: 30px; }

/* --- Company Info Section --- */
.company-section { padding: 100px 0; background: var(--light-gray); }
.info-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2px; background: var(--border); border: 1px solid var(--border); 
}
.info-item { background: var(--white); padding: 25px; }
.info-item label { display: block; color: var(--gold); font-size: 0.75rem; font-weight: 700; margin-bottom: 5px; }

/* --- Access Section --- */
.access-section { padding: 120px 0; background: var(--white); }
.map-box { margin-top: 60px; border: 1px solid var(--border); }
.access-info { text-align: center; margin-top: 30px; }
.gold-link { color: var(--gold); font-weight: 600; margin-top: 10px; display: inline-block; }

/* --- Refined Contact Form --- */
.contact-section { padding: 120px 0; background: var(--light-gray); }

.contact-intro { text-align: center; margin-bottom: 50px; }
.contact-tel { margin-top: 20px; }
.tel-label { display: block; font-size: 0.8rem; color: #666; margin-bottom: 5px; }
.tel-link { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); font-weight: 700; }

.refined-form {
    background: var(--white);
    padding: 60px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); /* わずかな浮き上がり */
}

.form-group { margin-bottom: 30px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--black);
}

.required {
    background: var(--gold);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 8px;
}

.refined-form input, .refined-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

/* 入力中に枠線をゴールドにする */
.refined-form input:focus, .refined-form textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 8px rgba(184, 150, 79, 0.2);
}

.form-submit { text-align: center; margin-top: 40px; }

.submit-button {
    background: var(--black);
    color: var(--white);
    padding: 20px 80px;
    border: none;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 800px) {
    .refined-form { padding: 30px 20px; }
    .submit-button { width: 100%; padding: 20px 0; }
    .tel-link { font-size: 1.8rem; }
}

/* --- Footer --- */
footer { padding: 40px; text-align: center; font-size: 0.7rem; letter-spacing: 2px; color: #999; background: var(--white); border-top: 1px solid var(--border); }

/* --- Responsive Adjustments --- */
@media (max-width: 800px) {
    .hero { flex-direction: column; padding: 100px 5% 0; text-align: center; height: auto; }
    .hero-content { padding-bottom: 50px; }
    .hero h1 { font-size: 3rem; padding-right:0;}
    .hero-image-wrap { flex: none; width: 100%; height: 300px; }
    
    .label { display: none; } /* Mobile hides vertical label */
    .vertical-title { margin-bottom: 20px; }

    .service-grid, .rep-layout, .form-grid { grid-template-columns: 1fr; flex-direction: column; }
    .service-image-strip { flex-direction: column; }
    .service-image-strip img { width: 100%; }

    .rep-image { flex: none; width: 100%; text-align: center; margin-bottom: 30px; }
    .rep-image img { width: 80%; max-width: 300px; }

    .company-section .info-grid { grid-template-columns: 1fr; }
    .info-item { text-align: center; }

    .purchase-section { padding: 80px 0; }
    .purchase-content .section-title { font-size: 1.8rem; }
}
/* --- Hamburger Menu (Mobile Only) --- */
.menu-trigger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000;
    cursor: pointer;
}

.menu-trigger span {
    display: inline-block;
    width: 100%;
    height: 2px;
    background-color: var(--black);
    position: absolute;
    left: 0;
    transition: all 0.4s;
}

.menu-trigger span:nth-of-type(1) { top: 0; }
.menu-trigger span:nth-of-type(2) { top: 11px; }
.menu-trigger span:nth-of-type(3) { bottom: 0; }

/* ボタンがアクティブ（開いた状態）の時の変形 */
.menu-trigger.active span:nth-of-type(1) { transform: translateY(11px) rotate(-45deg); }
.menu-trigger.active span:nth-of-type(2) { opacity: 0; }
.menu-trigger.active span:nth-of-type(3) { transform: translateY(-11px) rotate(45deg); }

/* 全画面メニューの初期状態（隠れている） */
.sp-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.4s;
}

.sp-nav ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.sp-nav li { margin-bottom: 30px; }
.sp-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
}

/* メニュー表示時 */
.sp-nav.active {
    display: block;
    opacity: 1;
}

/* --- Responsive 調整 --- */
@media (max-width: 900px) {
    .pc-nav { display: none; } /* PCメニューを消す */
    .menu-trigger { display: block; } /* ハンバーガーを表示 */
    
    /* スクロール時のボタン色調整（背景が白くなるため） */
    header.scrolled .menu-trigger span { background-color: var(--black); }
}

.map-box {
    margin-top: 60px;
    border: 1px solid var(--border);
    line-height: 0; /* 下部の隙間を消す */
    overflow: hidden;
    position: relative;
}

.map-box iframe {
    /* grayscale(100%): 完全なモノクロ
       sepia(20%): 少し温かみを足して高級感を出す
       invert(10%) contrast(110%): 明暗を強調してクリーンに
    */
    filter: grayscale(1) contrast(1.2) opacity(0.8);
    transition: filter 0.5s ease;
}

/* ユーザーが地図を操作しようとマウスを乗せた時は色を戻す（親切設計） */
.map-box:hover iframe {
    filter: grayscale(0) contrast(1) opacity(1);
}

/* 地図の赤ピンだけをより赤く強調するためのオーバーレイ（簡易的） */
/* ※厳密にピンだけを赤くするのはAPIが必要なため、全体のトーンで調整します */

/* --- Representative Section Pattern 1 --- */
.rep-section {
    padding: 140px 0;
    background-color: var(--white);
}

.rep-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 60px;
}

/* 画像エリア */
.rep-image-area {
    flex: 0 0 300px;
    text-align: center;
}

.rep-img-frame {
    position: relative;
    padding: 10px 10px 1px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.rep-img-frame::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.rep-img-frame img {
    width: 100%;
    filter: grayscale(100%);
    transition: 0.6s ease;
}

.rep-img-frame:hover img {
    filter: grayscale(0%);
}

.rep-name-jp {
    font-size: 1.4rem;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.rep-name-en {
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* テキストエリア */
.rep-text-content {
    flex: 1;
    color: #444;
}

.rep-catch {
    font-size: 1.8rem;
    font-family: 'Noto Serif JP', serif;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 20px;
}

.rep-catch::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.rep-text-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    text-align: justify;
}

/* キャリアハイライト */
.career-highlight {
    background: var(--light-gray);
    padding: 30px;
    border-left: 2px solid var(--gold);
    margin: 40px 0;
}

.career-highlight h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.career-highlight ul {
    list-style: none;
    padding: 0;
}

.career-highlight li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #555;
    display: flex;
}

.career-highlight li span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--black);
    width: 70px;
    display: inline-block;
}

.rep-signature {
    margin-top: 50px !important;
    text-align: right;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: var(--gold);
	font-weight:bold;
}

/* モバイル対応 */
@media (max-width: 900px) {
    .rep-layout {
        flex-direction: column;
        gap: 50px;
    }
    .rep-image-area {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .rep-catch {
        font-size: 1.5rem;
    }
}