/* ========================================
   グローバルスタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 和モダンカラースキーム */
    --primary-color: #2C5F2D;        /* 常磐色（ときわいろ）- 深い緑 */
    --secondary-color: #8B4513;      /* 栗色（くりいろ）- 温かみのある茶 */
    --accent-color: #C9171E;         /* 紅色（べにいろ）- 伝統的な赤 */
    --text-dark: #1A1A1A;            /* 墨色 */
    --text-light: #4A4A4A;           /* 鈍色（にびいろ） */
    --bg-light: #F5F3F0;             /* 生成り色（きなりいろ） */
    --bg-white: #FAFAF8;             /* 胡粉色（gofunいろ） */
    --bg-dark: #2A2A2A;              /* 黒茶 */
    --border-color: #D4CFC9;         /* 白茶（しらちゃ） */
    --gold-accent: #D4AF37;          /* 金色 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
    color: var(--text-dark);
    line-height: 1.9;
    background-color: var(--bg-white);
    letter-spacing: 0.05em;
    font-weight: 400;
}

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

/* ========================================
   ヘッダー
======================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.3s ease;
}

.nav a:hover::before,
.nav a.active::before {
    height: 60%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

/* ========================================
   セクション共通スタイル
======================================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-accent));
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 16px 48px;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #234d24;
    border-color: #234d24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    border: 1px solid white;
    color: white;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 18px 56px;
    font-size: 1.05rem;
}

/* ========================================
   サービスプレビュー
======================================== */
.services-preview {
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--gold-accent);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon .icon-text {
    font-size: 3.5rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

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

/* ========================================
   特徴セクション
======================================== */
.features {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

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

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-light);
}

/* ========================================
   CTAセクション
======================================== */
.cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%);
    background-size: 40px 40px;
    opacity: 0.3;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ページヘッダー
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold-accent);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   会社情報ページ
======================================== */
.company-info {
    background-color: var(--bg-white);
}

.info-content-center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.info-content-center h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.info-content-center p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 2;
    text-align: left;
}

.company-data {
    background-color: var(--bg-light);
}

.data-table {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

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

.data-table th,
.data-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    width: 200px;
    color: var(--text-dark);
}

.data-table td {
    color: var(--text-light);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

.business-purpose {
    background-color: var(--bg-white);
}

.purpose-content {
    max-width: 800px;
    margin: 0 auto;
}

.purpose-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.purpose-list {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 0;
    border-left: 4px solid var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.purpose-list li {
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.purpose-list li:last-child {
    border-bottom: none;
}

.access {
    background-color: var(--bg-light);
}

.access-info-center {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
}

.access-info-center h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.access-info-center .address {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.access-info-center .contact-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* ========================================
   事業内容ページ
======================================== */
.services-detail {
    background-color: var(--bg-white);
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 2px solid var(--border-color);
}

.service-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-detail-content p {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 2;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-features li {
    padding: 12px 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
    color: var(--text-dark);
    position: relative;
    padding-left: 35px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-flow {
    background-color: var(--bg-light);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 30px 20px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
}

.step-number {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.flow-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.flow-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
}

/* ========================================
   お問い合わせページ
======================================== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--text-light);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method-card {
    background-color: white;
    padding: 40px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-method-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.method-detail {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.method-note {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
}

.form-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.form-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.required-note {
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
}

.contact-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: #E74C3C;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

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

.form-privacy {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 0;
    border-left: 3px solid var(--secondary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
    cursor: pointer;
}

.privacy-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    line-height: 1.6;
}

.form-buttons {
    text-align: center;
    margin-top: 30px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

.contact-info-section {
    background-color: var(--bg-white);
}

.contact-company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.info-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .header .container {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .nav a {
        display: block;
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        height: 450px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .data-table th,
    .data-table td {
        padding: 15px;
    }

    .data-table th {
        width: 120px;
        font-size: 0.9rem;
    }

    .service-detail-item,
    .service-detail-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
        margin-bottom: 60px;
        padding-bottom: 60px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-company-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .purpose-list {
        padding: 25px;
    }

    .purpose-list li {
        font-size: 1rem;
    }

    .service-detail-content h2 {
        font-size: 1.6rem;
    }

    .service-lead {
        font-size: 1.05rem;
    }
}
