@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- 変数定義と共通設定 --- */
:root {
    --primary-color: #1a2b4c; /* 高級感のあるロイヤルブルー */
    --accent-color: #c5a059;  /* 上品なゴールド */
    --accent-hover: #b48e47;
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #f7f9fc;      /* わずかに青みがかった清潔感のあるグレー */
    --bg-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.85;
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

h1, h2, h3, h4 {
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    letter-spacing: 0.08em;
    margin-top: 0;
}

/* --- ヘッダー (Sticky) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
}

/* ホバー時のインジケーターアニメーション */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 0px; /* シャープでモダンな角 */
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(26, 43, 76, 0.15);
}

.contact-btn:hover {
    background: transparent;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(26, 43, 76, 0.2);
}

/* --- ヒーロースライダー --- */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #0d1726;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlider 15s infinite;
}

/* 背景画像の設定（ローカルコピー画像へマッピング） */
.slide:nth-child(1) {
    background-image: linear-gradient(rgba(13, 23, 38, 0.6), rgba(13, 23, 38, 0.6)), url('hero_office.jpg');
    animation-delay: 0s;
}
.slide:nth-child(2) {
    background-image: linear-gradient(rgba(13, 23, 38, 0.6), rgba(13, 23, 38, 0.6)), url('hero_building.jpg');
    animation-delay: 5s;
}
.slide:nth-child(3) {
    background-image: linear-gradient(rgba(13, 23, 38, 0.6), rgba(13, 23, 38, 0.6)), url('hero_consult.jpg');
    animation-delay: 10s;
}

@keyframes fadeSlider {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* --- セクション共通設定 --- */
section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.section-title h2 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: var(--primary-color);
}

.concept p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2.2;
}

.bg-light {
    background-color: var(--bg-light);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 43, 76, 0.08);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- プロフィール --- */
.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-img {
    flex: 1.2;
    height: 480px;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 8px solid var(--bg-light);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.profile-text {
    flex: 2;
}

.profile-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.profile-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 2;
}

/* --- アクセス・概要 --- */
.access-details {
    background: var(--bg-white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.access-details p {
    margin: 15px 0;
}

/* --- コンタクトエリア --- */
.contact-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #111e36 100%);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(26, 43, 76, 0.25);
}

.contact-box h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.contact-box p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.phone-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 30px 0;
    display: block;
    color: var(--bg-white);
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

.contact-form-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 18px 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

.contact-form-btn:hover {
    background: transparent;
    color: var(--accent-color);
}

/* --- フッター --- */
footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* --- 問い合わせフォーム専用 (contact.html) --- */
.form-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 60px 50px;
    background: var(--bg-white);
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
}

.form-group {
    margin-bottom: 30px;
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    background: var(--bg-light);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(26, 43, 76, 0.15);
}

.submit-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-color);
}

/* --- ご相談について (CONSULTATION) --- */
.consultation-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.consultation-gallery {
    flex: 1.2;
    display: block;
}

.consult-img-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.consult-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 43, 76, 0.08);
}

.consult-img-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.img-caption {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin: 8px 0 0 0;
    font-weight: 500;
}

.consultation-text {
    flex: 1;
}

.consultation-text h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.consultation-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* --- レスポンシブメディアクエリ --- */
@media (max-width: 992px) {
    header {
        padding: 20px 40px;
    }
    .profile-wrapper {
        gap: 40px;
    }
    .profile-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    nav ul {
        gap: 20px;
    }
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    section {
        padding: 60px 20px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .profile-wrapper {
        flex-direction: column;
    }
    .profile-img {
        width: 100%;
        max-width: 400px;
        height: 350px;
        margin: 0 auto;
    }
    .phone-number {
        font-size: 2.2rem;
    }
    .form-container {
        padding: 40px 20px;
        margin: 40px 10px;
    }
    .consultation-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .consultation-gallery {
        width: 100%;
    }
    .consult-img-card img {
        height: 300px;
    }
}
