/* 基本スタイル */
body {
    font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff; /* 背景を白に */
    margin: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #1F4E79; /* 濃い青 */
    font-weight: bold;
}

/* ヘッダー＆ヒーローセクション */
.hero {
    background-color: #2F75B5;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

/* ヒーローセクションのコンテナをFlexboxでレイアウト */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ヒーローセクションのテキスト部分 */
.hero-text-content {
    flex-grow: 1;
    text-align: center;
    max-width: 960px; /* 親コンテナの幅に合わせるか、適宜調整 */
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* 中央に揃える */
    gap: 20px; /* 画像と文章の間隔 */
}

.hero-subtitle {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0; /* デフォルトのマージンをリセット */
}

.hero-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 画像を左右に配置するためのスタイル */
.hero-image-left,
.hero-image-right {
    flex-shrink: 0;
    width: 230px; /* 画像の幅を固定 */
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ヘッダー下部の画像ラッパー (新規追加) */
.hero-bottom-image-wrapper {
    margin-top: 20px;
    text-align: center; /* 中央揃えに戻す */
 /* 必要であれば、横幅を親要素に合わせる */
    width: 100%; 
}

.hero-image-bottom {
    max-width: 23%;
    height: auto;
    border-radius: 8px;
}

/* 実績セクション */
.features {
    background-color: #DEEBF6; /* PowerPointの薄い水色 */
    padding: 60px 0;
}
.features .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.feature-item {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-color: #fff;
    border: 5px solid #2F75B5; /* PowerPointの青い枠線 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin: 15px;
    box-sizing: border-box;
}

.feature-item p {
    margin: 0;
    line-height: 1.3;
}

.feature-title {
    font-size: 1em;
    color: #1F4E79;
    font-weight: bold;
}

.feature-value {
    font-size: 2.8em;
    font-weight: bold;
    color: #2F75B5;
    line-height: 1.2;
}

.feature-unit {
    font-size: 0.5em;
    font-weight: normal;
}

/* サービス概要 */
.service-overview {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: auto;
}
.service-overview .section-title {
    margin-bottom: 30px;
}

/* サービス紹介付近の画像Wrapper */
.service-overview-image-wrapper {
    margin-bottom: 30px; /* 画像とテキストの間隔 */
    text-align: center;
}

.service-overview-image {
    max-width: 35%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;

}

/* 料金メニュー */
.pricing {
    background-color: #F2F2F2; /* 薄いグレー */
}
.price-card {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 30px 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* カードに影を追加 */
}

.price-card-title {
    font-size: 1.8em;
    color: #1F4E79;
    font-weight: bold;
    margin-bottom: 20px;
}

.price-details {
    margin-bottom: 25px;
}
.price-details small {
    color: #555;
}

.price-table {
    overflow: hidden;
    border: 1px solid #BFBFBF; /* テーブル全体の枠線を追加 */
    border-radius: 5px; /* テーブルの角丸 */
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.price-row div {
    padding: 15px;
    text-align: center;
    border: 1px solid #BFBFBF; /* グレーの罫線 */
    margin: -1px 0 0 -1px; /* 罫線の重なりを調整 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.price-row.header div {
    background-color: #2F75B5;
    color: white;
    font-weight: bold;
}

/* 対象条件ランク */
.rank-info .section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em; /* サブタイトルのフォントサイズを調整 */
}
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.rank-card {
    border: 1px solid #BFBFBF;
    padding: 25px;
    text-align: center;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 影 */
    background-color: #fff; /* 背景色 */
}
.rank-card h4 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: #1F4E79;
}
.rank-rate {
    font-size: 0.2em;
    font-weight: bold;
    background-color: #DEEBF6;
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 3px; /* 角丸 */
    display: inline-block; /* 背景がテキスト幅に合わせる */
}
.rank-card p {
    margin-bottom: 0;
    font-size: 0.9em; /* フォントサイズ調整 */
}
.rank-card small {
    color: #555;
    display: block; /* 例を独立した行に */
    margin-top: 15px; /* 例の上マージン */
}


/* オプション */
.options {
    background-color: #F2F2F2;
    text-align: center; /* ここでセクション全体のテキストを中央揃えに */
}
.options ul {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* ここでリスト項目内のテキストを左揃えに */
}
.options li {
    background-color: #DEEBF6;
    border-left: 5px solid #2F75B5;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1.05em;
}

/* Q&A */
.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1F4E79; /* 質問の色 */
}
.faq-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
    /* Q&Aアイコンのスタイル調整 */


}
.faq-a {
    padding-left: 55px; /* アイコン+マージン分 */
    color: #333;
    font-size: 1em; /* 回答のフォントサイズ調整 */
}
.faq-a strong {
    color: #2F75B5;
}

/* お問い合わせフォーム */
.contact {
    background-color: #fff;
}
.contact .container > p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em; /* 説明文のフォントサイズ */
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    background-color: #DEEBF6;
    padding: 40px;
    border-radius: 8px;
    max-width: 700px; /* フォームの最大幅を調整 */
    margin: 0 auto; /* 中央寄せ */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* 影 */
}
.form-group {
    position: relative;
    margin-bottom: 10px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1F4E79;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #BFBFBF;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #2F75B5;
    box-shadow: 0 0 0 2px rgba(47, 117, 181, 0.3);
    outline: none;
}

/* 備考欄（textarea）の基本スタイルをメディアクエリの外に追加 */
.contact-form textarea {
    /* 親要素の幅いっぱいに広げます */
    width: 100%; 
    /* フォームの他の入力欄と似たパディングとボーダーを設定 */
    padding: 12px; /* input要素に合わせる */
    border: 1px solid #BFBFBF; /* input要素に合わせる */
    border-radius: 4px;
    font-size: 1em; /* input要素に合わせる */
    box-sizing: border-box; /* paddingとborderをwidthに含める */
    
    /* 右下のハンドル（サイズ変更）を非表示にする */
    resize: none; 
    
    /* 高さを固定し、入力欄の小ささを解消する */
    height: 150px; /* 例: 高さ150pxに固定。この値は調整してください */
}

.form-group.full-width .required {
    /* ラベルの行の右端に合わせ、ずれないように位置を固定 */
    top: 5px; 
    right: 5px;
}

.required {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #C00000;
    color: white;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 3px;
}
.privacy-policy {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    font-size: 0.95em; /* フォントサイズ調整 */
}
.privacy-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}
.privacy-policy label {
    margin: 0;
    font-weight: normal;
}
.privacy-policy label a {
    color: #2F75B5;
    text-decoration: underline;
}
.submit-btn {
    background-color: #ED7D31; /* PowerPointのオレンジ */
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}
.submit-btn:hover {
    background-color: #C65911; /* オレンジ（濃） */
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* スマートフォンでは画像を上下に配置 */
        gap: 0;
    }
    .hero-image-left,
    .hero-image-right {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-text-content {
        order: 2; /* スマートフォンではテキストを下に移動 */
    }

    .hero-title { font-size: 2em; }
    .hero-subtitle { font-size: 1.1em; } /* フォントサイズ調整 */
    .hero-text { font-size: 1em; } /* フォントサイズ調整 */
    
    .features .container {
        flex-direction: column;
    }
    .feature-item {
        width: 220px;
        height: 220px;
    }
    .feature-value { font-size: 2.5em; }

    .service-overview .section-title {
        margin-bottom: 20px;
    }
    .service-overview-image-wrapper {
        margin-bottom: 20px;
    }
    .service-overview p {
        font-size: 1em; /* フォントサイズ調整 */
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .price-card {
        padding: 20px; /* パディング調整 */
    }
    .price-card-title {
        font-size: 1.5em; /* フォントサイズ調整 */
    }
    .price-details p {
        font-size: 0.95em; /* フォントサイズ調整 */
    }
    .price-table .price-row div {
        font-size: 0.8em; /* テーブルフォントサイズ調整 */
        padding: 10px;
    }
    .price-table .price-row.header div {
        font-size: 0.9em; /* ヘッダーのフォントサイズ調整 */
    }


    .rank-info .section-subtitle {
        font-size: 1em; /* フォントサイズ調整 */
        margin-bottom: 20px;
    }
    .rank-grid {
        grid-template-columns: 1fr; /* 1列表示 */
        gap: 20px;
    }

    .options ul {
        padding: 0 15px; /* パディング調整 */
    }
    .options li {
        font-size: 0.95em; /* フォントサイズ調整 */
    }

    .faq-q {
        font-size: 1.1em; /* フォントサイズ調整 */
    }
/* Q&Aセクションのアイコン */
 .faq-icon {
    width: 30px;  /* ここで丸の幅を調整 */
    height: 30px; /* ここで丸の高さを調整 */
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 0%;
    background-color: #DEEBF4;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
    .faq-a {
        padding-left: 45px; /* アイコンサイズに合わせて調整 */
        font-size: 0.95em;
    }

.contact-form {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 15px;
}
.form-group label {
    font-size: 0.9em;
}

    .privacy-policy {
        font-size: 0.9em;
    }
    .submit-btn {
        font-size: 1.1em;
        padding: 12px;
    }
}