:root {
    --primary-color: #2D8C4B;
    --secondary-color: #A5D6B7;
    --accent-color: #FF6B6B;
    --text-color: #333333;
    --bg-color: #F5F8F6;
    --white: #FFFFFF;
    --header-height: 80px;
}

/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* ヘッダースタイル */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px); /* 背景のブラー効果 */
    background-color: #FFFFFF; /* 常に白 */
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.5); /* ここを変更して薄くする */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* PC版のナビゲーションメニュー */
/* .nav-menu {
    display: flex;
} */

.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* 共通コンテナスタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションスタイル */
.section {
    padding: 80px 0;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: var(--header-height); /* ヘッダーの高さ分だけマージンを追加 */
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    color: var(--white);
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    margin: 2rem 0;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
}

.hero-subtitle .animate-text {
    position: relative;
    z-index: 2;
    padding: 0.2em 0.5em;
    font-weight: bold;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 140, 75, 0.8); /* primary-colorを半透明に */
    border-radius: 40px;
    z-index: 1;
}

.hero-description {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    line-height: 1.8;
}

/* アニメーション用のスタイル */
.animate-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.animate-text.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade {
    opacity: 0;
}

.animate-fade.active {
    opacity: 1;
    transition: opacity 0.8s ease 1s;
}

/* サービスカード */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
}

.service-card p {
    padding: 0 20px 20px;
}

/* お知らせセクション */
.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.news-date {
    min-width: 100px;
    color: #666;
}

.news-category {
    display: inline-block;
    min-width: 80px;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
    white-space: nowrap;
}

.news-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.news-link {
    color: var(--text-color);
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* コンテンツ案内カード */
.services-overview {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
}

/* フッタースタイル */
.footer {
    background-color: var(--primary-color);
    padding: 40px 0 20px;
    margin-top: 60px;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 30px;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #28a745;
}

.footer-section p {
    color: #fff;
    margin: 5px 0;
    line-height: 1.6;
}

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

.copyright {
    color: #fff;
    font-size: 0.9rem;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
    /* ヒーロー */
    .hero {
        height: calc(100vh - var(--header-height));
        margin-top: var(--header-height);
    }

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

    .hero-subtitle {
        font-size: 1.6rem;
        padding: 0.4rem 1.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
        line-height: 1.6;
    }

    /* セクションタイトル */
    .service-section h2,
    .company-section h2,
    .contact-section h2,
    .faq-section .page-header h2,
    .privacy-policy-section .page-header h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* セクション共通 */
    .service-section,
    .company-section,
    .contact-section,
    .faq-section,
    .privacy-policy-section {
        padding: 40px 0;
    }

    /* テーブル */
    .company-table,
    .company-table tbody,
    .company-table tr,
    .service-table,
    .service-table tbody,
    .service-table tr {
        display: block;
    }

    .company-table tr,
    .service-table tr {
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .company-table th,
    .company-table td,
    .service-table th,
    .service-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .company-table th,
    .service-table th {
        background-color: #FFF3E0;
        color: #333333;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .company-table td,
    .service-table td {
        padding: 1rem;
        background-color: var(--white);
    }

    /* サービスカード */
    .service-content {
        flex-direction: column;
        align-items: center;
    }

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

    .service-image {
        width: 100%;
        height: 200px;
    }

    /* ニュース */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news-date {
        margin-bottom: 5px;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
        width: 100%;
    }

    /* プライバシーポリシー */
    .policy-content {
        padding: 1.5rem;
    }

    .policy-item {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .policy-item h3 {
        font-size: 1.1rem;
    }

    /* お問い合わせフォーム */
    .contact-section {
        padding: 40px 0;
    }

    /* プライバシー通知 */
    .privacy-notice {
        padding: 1.2rem 1.5rem;
        margin-top: 2rem;
    }

    .privacy-text {
        font-size: 0.9rem;
    }

    .privacy-notice h3 {
        font-size: 1rem;
    }
}

/* iPhoneSE・小さい画面向けの追加対応 */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* タブレット対応 */
@media screen and (min-width: 481px) and (max-width: 767px) {
    #loginForm {
        width: 80%;
    }
}

/* ナビゲーション */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #28a745;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.current-page::after {
    transform: scaleX(1);
}

.current-page {
    color: #28a745;
}

/* 会社概要ページ */
.company-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.company-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

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

.company-table th,
.company-table td {
    padding: 1rem;
    border-bottom: 1px solid #999999;
}

.company-table th {
    width: 25%;
    text-align: left;
    font-weight: bold;
    background-color: #FFF3E0;
    color: #333333;
}

.company-table td {
    background-color: #fff;
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* モバイルメニューのボタンをモバイル表示時にのみ表示 */
.mobile-menu-btn {
    display: none; /* デフォルトでは非表示 */
}

/* モバイルメニュー */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block; /* モバイル表示時に表示 */
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        padding: 10px; /* クリックしやすくするためのパディング */
    }

    .privacy-notice {
        padding: 1.2rem 1.5rem;
        margin-top: 2rem;
    }

    .privacy-text {
        font-size: 0.9rem;
    }

    .privacy-notice h3 {
        font-size: 1rem;
    }
    .policy-content {
        padding: 1.5rem;
    }

    .policy-item {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .policy-item h3 {
        font-size: 1.1rem;
    }
}

/* デフォルト（PC表示）のスタイルはそのまま */
@media screen and (max-width: 767px) {
    .company-section {
        padding: 40px 0;
    }

    .company-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .company-table,
    .company-table tbody,
    .company-table tr {
        display: block;
    }

    .company-table tr {
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .company-table th {
        background-color: #FFF3E0;
        color: #333333;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .company-table td {
        padding: 1rem;
        background-color: var(--white);
    }
}

/* サービス案内ページ */
.service-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.service-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

.table-list {
    margin: 0;
    padding-left: 1.5rem;
}

.table-list li {
    margin-bottom: 0.5rem;
}

.table-list li:last-child {
    margin-bottom: 0;
}

/* テーブルスタイルは company-table と同じクラスを使用可能 */
.service-table table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th,
.service-table td {
    padding: 1rem;
    border-bottom: 1px solid #999999;
}

.service-table th {
    width: 25%;
    text-align: left;
    font-weight: bold;
    background-color: #FFF3E0;
    color: #333333;
}

.service-table td {
    background-color: #fff;
}

@media screen and (max-width: 767px) {
    .service-section {
        padding: 40px 0;
    }

    .service-section h2,
    .company-section h2,
    .contact-section h2,
    .faq-section .page-header h2,
    .privacy-policy-section .page-header h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .service-table,
    .service-table tbody,
    .service-table tr {
        display: block;
    }

    .service-table tr {
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .service-table th,
    .service-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .service-table th {
        background-color: #FFF3E0;
        color: #333333;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .service-table td {
        padding: 1rem;
        background-color: var(--white);
    }
}

.page-header {
    margin-top: 2rem;
    padding-top: 2rem;
}

.flow-chart {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.flow-item {
    position: relative;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.flow-item.active {
    opacity: 1;
    transform: translateY(0);
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background-color: var(--primary-color);
}

.flow-content {
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    background-color: var(--white);
}

.flow-step {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4em;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.flow-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.flow-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ニュースページネーションのスタイル */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #f0f0f0;
}

.pagination-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #d9534f;
    text-align: center;
    padding: 10px;
}

/* ボタンのスタイル */
.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* お知らせセクションのスタイル */
.news-section {
    margin-top: 40px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.service-content {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.service-image {
    width: 50%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
}

.service-text {
    width: 100%;
    padding-left: 0;
    text-align: left;
    line-height: 1.6;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.business-hours {
    margin-top: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.required {
    color: #ff0000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: #0056b3;
}

@media screen and (max-width: 767px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
} 

/* FAQスタイル */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
}

.toggle-btn {
    font-size: 1.2em;
    color: #666;
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: #fff;
}

.contact-guide {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 30px;
    margin-top: 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #45a049;
}

.faq-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

/* モバイルメニュー関連のスタイルを追加 */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

@media screen and (max-width: 767px) {
    .hamburger {
        display: block;
    }

    .header-container {
        padding: 10px 15px;
        height: var(--header-height); /* ヘッダーの高さを固定 */
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height); /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 0; /* パディングを削除 */
        margin: 0; /* マージンを削除 */
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        margin: 0; /* マージンを削除 */
        padding: 0; /* パディングを削除 */
    }

    .nav-menu li {
        margin: 0; /* マージンを削除 */
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none; /* 最後の項目の下線を削除 */
    }

    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
}

/* ログイン画面 */
#loginContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    padding: 1rem; /* パディングを追加 */
}

#loginForm {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#loginForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1rem; /* 基本フォントサイズを設定 */
}

#loginForm input {
    width: 100%;
    padding: 0.8rem; /* パディングを大きくして操作しやすく */
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#loginForm button {
    width: 100%;
    padding: 0.8rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease; /* ホバーエフェクトをスムーズに */
}

/* モバイル対応 */
@media screen and (max-width: 480px) {
    #loginContainer {
        padding: 1rem;
    }

    #loginForm {
        padding: 1.5rem;
        width: 90%; /* 画面幅に対する比率を調整 */
    }

    #loginForm label {
        font-size: 0.9rem;
    }

    #loginForm input {
        padding: 0.6rem;
        /* font-size: 0.9rem; */
    }

    #loginForm button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* スマホ対応 */
@media screen and (min-width: 481px) and (max-width: 767px) {
    #loginForm {
        width: 80%;
    }
}

#content {
    display: none;
}

/* プライバシーポリシー説明のスタイル */
.privacy-notice {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-notice h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.privacy-notice h3::before {
    content: '\f05a'; /* Font Awesome の情報アイコン */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.8rem;
    font-size: 1.2em;
    color: var(--primary-color);
    opacity: 0.9;
}

/* ホバー時のエフェクト */
.privacy-notice h3:hover::before {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.privacy-content {
    color: #555;
    line-height: 1.7;
}

.privacy-text {
    font-size: 0.95rem;
}

.privacy-text p {
    margin-bottom: 1rem;
}

.privacy-text p:last-child {
    margin-bottom: 0;
}

.privacy-link {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.privacy-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy-link a:hover {
    border-bottom-color: var(--primary-color);
}

/* チェックボックスの追加 */
.privacy-agreement {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-agreement input[type="checkbox"] {
    margin-right: 0.5rem;
}

.privacy-agreement label {
    font-size: 0.95rem;
    color: #333;
}

/* プライバシーポリシーページのスタイル */
.privacy-policy-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.privacy-policy-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.policy-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

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

.policy-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.policy-item h3 i {
    font-size: 1.2em;
    opacity: 0.9;
}

.policy-item p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.policy-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.policy-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.policy-item ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.update-date {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

/* フォーム送信状態のスタイル */
.form-status {
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.service-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.service-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
    /* ヒーロー */
    .hero {
        height: calc(100vh - var(--header-height));
        margin-top: var(--header-height);
    }

    /* セクション共通 */
    .service-section,
    .company-section,
    .contact-section,
    .faq-section,
    .privacy-policy-section {
        padding: 40px 0;
    }
}

@media screen and (max-width: 767px) {
    .faq-section {
        padding: 40px 0 !important;
    }
    
    .privacy-policy-section {
        padding: 40px 0 !important;
    }
}

/* 代表取締役ご挨拶セクション */
.greeting-section {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.greeting-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.greeting-text {
    flex: 1;
}

.greeting-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.greeting-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.greeting-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.greeting-text .signature {
    text-align: right;
    font-weight: bold;
    margin-top: 30px;
}

.greeting-image {
    flex: 0 0 50%;
}

.greeting-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 767px) {
    .greeting-content {
        flex-direction: column;
    }

    .greeting-image {
        flex: 0 0 auto;
        max-width: 500px;
        margin: 0 auto;
    }

    .greeting-text h3 {
        font-size: 1.5rem;
    }
}

/* 関連資料セクション */
.document-links {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 10px;
}

.document-links h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.document-links p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.document-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.document-button {
    flex: 1;
    max-width: 30%;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
}

.document-button:hover {
    background-color: #247a3d;
}

@media screen and (max-width: 767px) {
    .document-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .document-button {
        width: 100%;
        max-width: 300px;
    }
}

