@charset "UTF-8";

/* ==============================================
   Base & Variables
   ============================================== */
:root {
    --color-main: #111111;
    --color-bg: #fdfdfd;
    --color-accent: #b89b72;
    --color-text: #444444;
    --font-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

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

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

ul {
    list-style: none;
}

/* ==============================================
   Layout & Modules
   ============================================== */
.l-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4%; /* PC・タブレット時の左右余白 */
}

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

.c-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-main);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.c-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 15px auto 0;
}

.c-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.c-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* ==============================================
   Header & Footer
   ============================================== */
.l-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.l-header__logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-main);
    letter-spacing: 0.1em;
}

.l-header__nav ul {
    display: flex;
    gap: 30px;
}

.l-header__nav a {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-main);
    text-transform: uppercase;
}

.l-footer {
    background-color: var(--color-main);
    color: #fff;
    padding: 40px 0 20px;
}

.l-footer__inner {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4% 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.l-footer__info h2 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.l-footer__info p {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
}

.l-footer__nav li {
    margin-bottom: 10px;
}

.l-footer__nav a {
    color: #ccc;
}

.l-footer__copyright {
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* ==============================================
   Hero Area (Top Page)
   ============================================== */
.p-hero {
    height: 80vh;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
    
    /* ▼ ファーストビュー 背景画像とオーバーレイを設定 */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* パララックス効果（お好みで、スマホで重くなる場合は外す） */
}

.p-hero__catch {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    /* color: var(--color-main); を白に変更 */
    color: #fff; 
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.p-hero__sub {
    margin-top: 20px;
    font-size: 16px;
    /* color: var(--color-text); を白に変更 */
    color: #fff;
}

/* ==============================================
   Pages Common
   ============================================== */
.p-page-header {
    padding: 120px 0 60px;
    margin-top: 80px;
    text-align: center;
    background-color: #f5f5f5;
}

/* ==============================================
   Service Blocks
   ============================================== */
.p-service-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
}

.p-service-row--reverse {
    flex-direction: row-reverse;
}

.p-service-row__img {
    flex: 1;
    background-color: #f4f4f4;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    width: 100%;
}

.p-service-row__text {
    flex: 1;
    width: 100%;
}

.p-service-row__text h3 {
    font-size: 22px;
    color: var(--color-main);
    margin-bottom: 15px;
}

.p-service-row__text p {
    font-size: 15px;
}

/* ==============================================
   About Page
   ============================================== */
.p-company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 800px;
}

.p-company-table th, 
.p-company-table td {
    padding: 24px;
    border-bottom: 1px solid #ddd;
}

.p-company-table th {
    width: 30%;
    text-align: left;
    font-weight: bold;
    color: var(--color-main);
}

/* ==============================================
   Contact Form
   ============================================== */
.p-form { max-width: 600px; margin: 0 auto; }
.p-form__item { margin-bottom: 30px; }
.p-form__label { display: block; font-weight: bold; margin-bottom: 10px; color: var(--color-main); }
.p-form__input, .p-form__textarea { 
    width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; font-family: inherit; 
}
.p-form__textarea { height: 200px; resize: vertical; }
.p-form__submit { 
    display: block; width: 100%; max-width: 300px; margin: 0 auto; padding: 15px; background-color: var(--color-main); color: #fff; border: none; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; letter-spacing: 0.1em; 
}
.p-form__submit:hover { background-color: var(--color-accent); }

/* ==============================================
   Animations & Responsive (スマホ対応・余白確実版)
   ============================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* ▼ スマホ時の横スクロールを防止 */
    body {
        overflow-x: hidden;
    }
    
    /* ▼ スマホ時の左右の余白を「px」で確実に確保 */
    .l-container {
        padding: 0 20px;
    }
    
    /* ▼ ヒーローエリアとページヘッダーの左右余白確保 */
    .p-hero { 
        margin-top: 100px; 
        height: 60vh; 
        padding: 0 20px; 
        background-attachment: scroll; /* スマホではパララックスを解除 */
    }
    .p-page-header { 
        margin-top: 100px; 
        padding: 80px 20px 40px; 
    }
    
    /* ヘッダーを縦並びに */
    .l-header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 10px;
    }
    .l-header__nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* 余白の調整 */
    .c-section { padding: 60px 6%; }
    
    /* サービスブロックを縦並びに */
    .p-service-row, 
    .p-service-row--reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }
    .p-service-row__img { height: 180px; }
    
    /* 会社概要テーブルを縦に */
    .p-company-table th, 
    .p-company-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    .p-company-table th {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* フッターを縦並びに */
    .l-footer__inner {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px 40px;
    }
}