* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #ffffff;
    --sub-color: #ff4d94;
    --sub-color-dark: #ff1a75;
    --text-color: #2c3e50;
    --light-bg: #fff5f9;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-color);
}

header {
    background-color: var(--main-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
}

header h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: capitalize;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    max-width: 40px;
    height: auto;
    display: block;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.2;
    font-family: "ふと文字", "HutoMoji", sans-serif;
}

main {
    max-width: 800px;
    margin: 120px auto 0;
    padding: 2rem;
}

/* ヒーローセクションのスタイル */
.hero {
    background-color: #fff;  /* 背景色を白に */
    padding: 2px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 100px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* 軽いシャドウを追加 */
    border-radius: 8px;  /* 角を丸く */
    margin-bottom: 4rem;  /* セクション間の余白を追加 */
}

.hero h1 {
    text-align: center;  /* 中央揃えに変更 */
    margin: 3rem 0 2rem 0;  /* 上下の余白を追加 */
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.hero p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero p:last-of-type {
    margin-top: 2rem;  /* 上部にスペースを追加 */
}

.hero-image {
    text-align: center;
    margin: 2rem 0;
}

.hero-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--main-color);
    border-radius: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

.contact-section {
    margin-top: 15rem;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input,
select,
textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px; /* 元に戻しました */
    font-size: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

textarea {
    min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sub-color);
    box-shadow: 0 0 0 2px rgba(255, 77, 148, 0.2);
}

button {
    padding: 1rem;
    background-color: #51a8ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #7ebeff;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #51a8ff;
    margin-top: 3rem;
    color: white;
}

footer p {
    color: white;
}

footer .btn-box {
    display: flex;
    justify-content: center;
}

footer .btn-box a {
    text-decoration: none;
    color: #ffffff;
    padding: 4px;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .hero {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-img {
        max-width: 100%;
    }

    /* ====== ヘッダー（モバイル版） - デスクトップ版と同一レイアウトに修正 ====== */
    .header-content {
        padding: 10px 20px;
        gap: 10px;
        flex-direction: column; /* ロゴ・電話番号のブロックとナビブロックを縦に並べる */
        align-items: center; /* ヘッダー全体を中央寄せ */
    }

    .header-top {
        flex-direction: row; /* ★モバイルでもロゴと電話番号を横並びに */
        justify-content: space-between; /* ロゴと電話番号を左右に寄せる */
        align-items: center; /* 垂直方向中央寄せ */
        width: 100%; /* 親要素の幅いっぱいに広げる */
        max-width: none; /* デスクトップのmax-widthを解除 */
        gap: 15px; /* ロゴと電話番号の間の隙間を調整 */
    }

    .logo h1 {
        font-size: 1.2rem; /* モバイルでのロゴの文字サイズ */
        text-align: left; /* 左寄せに戻す */
    }

    .header-contact {
        text-align: right; /* 右寄せに戻す */
        align-items: flex-end; /* 右寄せに戻す */
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .contact-label,
    .business-hours {
        font-size: 0.8rem;
    }

    .main-nav {
        align-self: center;
    }

    .main-nav ul {
        flex-direction: row; /* ★モバイルでもナビゲーションリンクを横並びに */
        flex-wrap: wrap; /* 画面幅が狭くなったら折り返す */
        justify-content: center; /* ナビリンクを中央寄せ */
        gap: 10px; /* 項目間の間隔 */
        padding: 0;
        margin: 0;
    }

    .main-nav a {
        padding: 8px 12px;
        white-space: nowrap;
    }
    /* ====================================================================== */

    .overview-table th,
    .overview-table td {
        display: block;
        width: 100%;
    }
    
    .overview-table th {
        border-bottom: none;
    }

    .service-container {
        padding: 20px 15px;
    }
    
    .service-section {
        padding: 20px;
    }

    .company-image {
        max-width: 100%;
    }

    .overview-welcome {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }
}

/* ====== さらに小さなスマホ向け（480px以下）の追加調整 ====== */
@media (max-width: 480px) {
    .header-content {
        padding: 8px 15px;
    }
    .logo h1 {
        font-size: 1rem;
    }
    .phone-number {
        font-size: 1rem;
    }
    .contact-label,
    .business-hours {
        font-size: 0.7rem;
    }
    /* header-top の justify-content: space-between; が狭い画面で窮屈になる場合 */
    .header-top {
        flex-direction: column; /* 480px以下では縦並びに戻すか検討 */
        justify-content: center;
        align-items: center;
    }
    /* ナビゲーションリンクが480px以下で横に収まらない場合 */
    .main-nav ul {
        flex-direction: column; /* 480px以下では縦並びに戻すか検討 */
    }
}
/* ========================================================= */

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* プライバシーポリシーページのスタイル */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

.privacy-content section {
    margin-bottom: 40px;
}

.privacy-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.privacy-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content a {
    color: #007bff;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* 利用規約ページのスタイル */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.terms-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

.terms-content section {
    margin-bottom: 40px;
}

.terms-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.terms-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.terms-content li {
    margin-bottom: 10px;
}

.terms-content a {
    color: #007bff;
    text-decoration: none;
}

.terms-content a:hover {
    text-decoration: underline;
}

/* 会社案内ページのスタイル */
.overview-container {
    max-width: 800px;
    margin: 120px auto;
    padding: 20px;
}

.overview-section {
    margin-top: 2rem;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.overview-table th,
.overview-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.overview-table th {
    width: 30%;
    text-align: left;
    color: #333;
    background-color: #f5f5f5;
}

.overview-image {
    text-align: center;
    margin: 2rem 0;
}

.overview-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.service-list li:last-child {
    border-bottom: none;
}

.map-container {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}


/* ヘッダーのスタイル */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column; /* ロゴ・電話番号のブロックとナビブロックを縦に並べる */
    justify-content: center;
    align-items: center; /* ヘッダー全体を中央寄せ */
    gap: 15px;
}

.header-top {
    display: flex;
    flex-direction: row; /* ★デスクトップでもロゴと電話番号を横並びに */
    justify-content: space-between; /* ロゴと電話番号を左右に寄せる */
    align-items: center;
    width: 100%; /* 親要素の幅いっぱいに広げる */
    max-width: 600px; /* 必要に応じて幅を制限 */
    gap: 20px;
}

.main-nav {
    margin-top: 0;
    align-self: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* ★デスクトップでもナビゲーションリンクを横並びに */
    flex-wrap: wrap; /* 画面幅が狭くなったら折り返す */
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: #0066cc;
}

.main-nav a.active {
    color: #0066cc;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: #0066cc;
}

/* サービスページのスタイル */
.service-container {
    max-width: 800px;
    margin: 15rem auto;
    padding: 40px 20px;
}

.service-section {
    background: #fff;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-section p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.service-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.service-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.company-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.overview-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.overview-welcome {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.6;
    text-align: left;
}

.overview-image {
    text-align: left;
    margin: 0.5rem 0;
}

.company-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-title {
    font-size: 2rem;
    margin: 3rem 0 2rem 0;
    text-align: center;
}