/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

header h1 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

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

header nav li {
    margin-left: 20px;
}

header nav a {
    color: #555;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #007bff;
}

/* ヒーローセクション */
#hero {
    background-color: #eee;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden; /* 画像がはみ出さないように */
}

.hero-content {
    position: relative;
    width: 100%;
    height: 600px; /* 適切な高さを設定 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をカバーするように表示 */
    filter: brightness(0.7); /* テキストが見やすいように暗くする */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    max-width: 800px;
    padding: 20px;
}

#hero h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}

#hero h3 {
    font-size: 32px;
    margin-top: 0;
    color: #fff;
}

#hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 特徴セクション */
#features {
    padding: 60px 0;
    text-align: center;
}

#features h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

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

.feature-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.feature-item img {
    width: 100%;
    height: 200px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像の比率を保ちつつボックスに収める */
    border-radius: 6px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 16px;
    color: #666;
}

/* CTAセクション */
#cta {
    background-color: #e0f2f7;
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
    border-radius: 8px;
}

#cta h2 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 25px;
}

#cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #555;
}

.cta-action {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 15px;
    }
    header nav li {
        margin: 0 10px;
    }

    .hero-content {
        height: 400px;
    }

    #hero h2 {
        font-size: 36px;
    }
    #hero h3 {
        font-size: 24px;
    }
    #hero p {
        font-size: 16px;
    }

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

    #features h2, #cta h2 {
        font-size: 30px;
    }
    #cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    header nav li {
        margin: 0 5px;
    }
    header nav a {
        font-size: 14px;
    }

    .hero-content {
        height: 300px;
    }
    #hero h2 {
        font-size: 28px;
    }
    #hero h3 {
        font-size: 20px;
    }
    #hero p {
        font-size: 14px;
    }

    .feature-item {
        padding: 20px;
    }
    .feature-item h3 {
        font-size: 20px;
    }
    .feature-item p {
        font-size: 14px;
    }

    .button {
        padding: 12px 25px;
        font-size: 16px;
    }
}



/* About Usページ固有のスタイル */
#about-intro {
    padding: 60px 20px;
    text-align: center;
}

#about-intro h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #333;
}

#about-intro p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: #555;
}

#about-intro p strong {
    color: #007bff;
}

.section-alt {
    background-color: #f0f8ff; /* 薄い青の背景 */
    padding: 60px 0;
    margin: 40px 0;
}

#our-mission {
    text-align: center;
}

#our-mission h3 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.mission-content .mission-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}

.mission-content .mission-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

#what-we-offer {
    padding: 60px 0;
    text-align: center;
}

#what-we-offer h3 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

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

.value-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.value-item h4 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #007bff; /* メインカラーを使用 */
}

.value-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

#cta-about {
    padding: 80px 0;
    text-align: center;
    background-color: #e0f2f7; /* メインのCTAと同じ背景色 */
    margin-top: 60px;
    border-radius: 8px;
}

#cta-about h2 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 40px;
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    #about-intro h2, #our-mission h3, #what-we-offer h3, #cta-about h2 {
        font-size: 32px;
    }
    #about-intro p {
        font-size: 16px;
    }
    .mission-content {
        flex-direction: column;
        gap: 30px;
    }
    .mission-content .mission-image {
        order: -1; /* 画像を上に表示 */
    }
    .value-grid {
        grid-template-columns: 1fr;
    }
    .value-item h4 {
        font-size: 22px;
    }
    .value-item p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #about-intro h2, #our-mission h3, #what-we-offer h3, #cta-about h2 {
        font-size: 28px;
    }
    #about-intro p {
        font-size: 15px;
    }
}



/* サポート内容ページ固有のスタイル */
#services-intro {
    padding: 60px 20px;
    text-align: center;
}

#services-intro h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #333;
}

#services-intro p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: #555;
}

.service-detail {
    padding: 60px 0;
    margin: 40px 0;
}

.service-detail h3 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #007bff;
    text-align: left;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-content.reverse-order {
    flex-direction: row-reverse; /* 画像とテキストの順序を反転 */
}

.service-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}

.service-text p {
    margin-bottom: 20px;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px; /* アイコン分のスペース */
    font-size: 16px;
}

.service-text ul li i.icon-check {
    position: absolute;
    left: 0;
    top: 3px;
    color: #28a745; /* チェックマークの色 */
    font-size: 20px;
}
/* Font Awesomeなどのアイコンフォントを使用する場合、別途読み込みが必要です。
   ここでは仮でスタイルを定義していますが、実際には <i class="fas fa-check"></i> のようにクラスを指定します。
   もしアイコンフォントを使わない場合は、画像やSVGで代替してください。 */
.icon-check::before {
    content: "?"; /* 仮のチェックマーク */
    font-family: sans-serif; /* 特定のフォントに依存しないように */
}

.service-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.service-image img {
    max-width: 100%;
    height: 350px; /* 画像の高さを統一 */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button-small {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.button-small:hover {
    background-color: #0056b3;
}

#cta-services {
    text-align: center;
    padding: 80px 0;
    background-color: #f0f8ff; /* 薄い青の背景 */
    margin-top: 60px;
    border-radius: 8px;
}

#cta-services h2 {
    font-size: 38px;
    color: #333;
    margin-bottom: 20px;
}

#cta-services p {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

/* レスポンシブデザインの調整 */
@media (max-width: 900px) {
    .service-content {
        flex-direction: column; /* 小さい画面では縦積み */
        text-align: center; /* テキストも中央寄せに */
        gap: 30px;
    }
    .service-content.reverse-order {
        flex-direction: column; /* 常に縦積み */
    }
    .service-detail h3 {
        text-align: center; /* タイトルも中央寄せ */
    }
    .service-image img {
        height: 300px;
    }
    .service-text ul {
        text-align: left; /* リストは左寄せのまま */
        display: inline-block; /* 中央寄せされたセクション内で左寄せ */
    }
}

@media (max-width: 600px) {
    #services-intro h2, .service-detail h3, #cta-services h2 {
        font-size: 32px;
    }
    #services-intro p, #cta-services p {
        font-size: 16px;
    }
    .service-image img {
        height: 250px;
    }
    .service-text {
        font-size: 16px;
    }
    .service-text ul li {
        font-size: 15px;
        padding-left: 25px;
    }
    .icon-check::before {
        font-size: 18px;
    }
    .button-small {
        padding: 8px 15px;
        font-size: 14px;
    }
}


/* お問い合わせページ固有のスタイル */
#contact-intro {
    padding: 60px 20px;
    text-align: center;
}

#contact-intro h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #333;
}

#contact-intro p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: #555;
}

#contact-info {
    text-align: center;
    padding: 60px 0;
}

#contact-info h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block; /* 下線をコンテンツ幅に合わせる */
    padding-bottom: 10px;
}

#contact-info h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* 小さい画面で折り返す */
    margin-bottom: 50px;
    margin-top: 30px;
}

.contact-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    width: 280px; /* アイテムの幅を固定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.contact-item i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.contact-item h4 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    font-weight: bold;
}

/* お問い合わせフォーム */
#contact-form {
    padding: 60px 0;
    text-align: center;
}

#contact-form h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.form-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group .required {
    color: #dc3545; /* 赤色で必須マーク */
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px); /* paddingを考慮 */
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical; /* 縦方向のみリサイズ可能 */
    min-height: 120px;
}

.contact-form .button {
    width: auto;
    display: block;
    margin: 30px auto 0 auto;
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    #contact-intro h2, #contact-info h3, #contact-form h3 {
        font-size: 32px;
    }
    #contact-intro p {
        font-size: 16px;
    }
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .contact-item {
        width: 80%; /* 幅を調整 */
        max-width: 350px; /* 最大幅を設定 */
    }
    .contact-form {
        padding: 30px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    #contact-intro h2, #contact-info h3, #contact-form h3 {
        font-size: 28px;
    }
    #contact-intro p, .contact-item p, .form-description {
        font-size: 15px;
    }
    .contact-item h4 {
        font-size: 20px;
    }
    .contact-item i {
        font-size: 40px;
    }
    .form-group input, .form-group textarea {
        font-size: 15px;
        padding: 10px;
    }
    .contact-form .button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

