/* style.css */

/* カラーパレット */
:root {
    --color-optpia-magenta: #F02B81; /* オプトピアのメインアクセント */
    --color-optpia-magenta-dark: #C20063; /* マゼンタのダークシェード */
    --color-tokushin-navy: #003366; /* 徳島新聞の信頼感あるネイビー */
    --color-tokushin-blue: #2196F3; /* exaBaseのブルーに近い */
    --color-base-white: #FFFFFF;
    --color-base-lightgray: #F8F8F8;
    --color-base-mediumgray: #EEEEEE;
    --color-text-dark: #333333;
    --color-text-medium: #555555;
    --color-text-light: #666666;
    --color-border: #DDDDDD;
}

/* 基本スタイル */
html { /* ★ここを追加★ */
  scroll-behavior: smooth; /* スムーズスクロールを有効にする */
}

body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    margin: 0;
    padding: 0; 
    background-color: var(--color-base-lightgray);
    color: var(--color-text-dark);
    line-height: 1.7;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background-color: var(--color-base-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border-radius: 8px; /* 全体の角を少し丸く */
}
a {
    text-decoration: none;
    color: var(--color-optpia-magenta);
}
a:hover {
    text-decoration: underline;
}

/* === ヘッダー/ファーストビュー === */
header {
    text-align: center;
    padding: 0;
    color: var(--color-base-white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* コンテンツを垂直中央寄せ */
    align-items: center;
    min-height: 500px; /* PCでのデフォルトの高さ */
}
header .main-visual-background {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をカバーに */
    z-index: 0; /* 背景として最下層 */
    filter: brightness(1) contrast(1); /* 背景画像のフィルターはオフ。明るさを最大限に生かす */
}
header .overlay {
    position: relative; /* 背景画像の上に来るようにposition:relativeとz-index:1を再設定 */
    z-index: 1; /* 背景画像よりも上に配置 */
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 40px; 
    margin-top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.0) 50%, rgba(255,255,255,0.05) 100%); /* 非常に薄いオーバーレイ */
}

/* ロゴグループ (headerの外へ移動) */
.logo-group-section {
    background-color: var(--color-base-white); /* 白背景 */
    text-align: center;
    position: fixed; /* 固定表示 */
    top: 0; /* 上部に固定 */
    width: 100%; /* 幅を100%に */
    max-width: 1000px; /* 親コンテナのmax-widthに合わせる */
    left: 50%; /* 中央寄せ */
    transform: translateX(-50%); /* 中央寄せ */
    z-index: 1000; /* 最前面に表示 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 少し影をつけて浮いているように見せる */
    padding: 5px 0; /* ロゴの上下の余白を少し調整 */
}

/* メインキャッチコピー */
header h1 {
    font-size: 3.5em; /* PC */
    margin-top: 0px; 
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.3;
    color: #003366;
    max-width: 900px;
}
/* サブコピー */
header p {
    font-size: 1.4em; /* PC */
    color:  #003366; 
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.6;
}

/* === 汎用セクションスタイル === */
.section {
    padding: 60px 40px;
    margin-bottom: 0;
    background-color: var(--color-base-white);
    border-bottom: 1px solid var(--color-base-mediumgray);
    scroll-margin-top: 80px; /* ★ここを追加★ 固定ヘッダーの高さ + 少しの余白 */
}
.section.bg-lightgray {
    background-color: var(--color-base-lightgray);
}
.section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-size: 2.5em; /* PC */
    font-weight: 900;
    color: var(--color-tokushin-navy);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--color-optpia-magenta);
    margin: 20px auto 0;
    border-radius: 3px;
}
.section-subtitle {
    font-size: 1.8em; /* PC */
    font-weight: 700;
    color: var(--color-tokushin-navy);
    margin-top: 20px;
    margin-bottom: 25px;
}
.section p {
    font-size: 1.1em; /* PC */
    color: var(--color-text-medium);
    margin-bottom: 15px;
}
.section ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}
.section ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1em; /* PC */
    color: var(--color-text-medium);
}
.section ul li::before {
    content: '✓';
    color: var(--color-optpia-magenta);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    font-weight: bold;
    top: 0;
}

/* === CTAボタン === */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    align-items: center;
}
.cta-button {
    display: block;
    width: 90%;
    max-width: 380px;
    padding: 20px 25px; /* PC */
    text-align: center;
    text-decoration: none;
    font-size: 1.4em; /* PC */
    font-weight: 900;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
}
.cta-button.main {
    background-color: var(--color-optpia-magenta);
    color: var(--color-base-white);
}
.cta-button.main:hover {
    background-color: var(--color-optpia-magenta-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.cta-button.sub {
    background-color: var(--color-base-white);
    color: var(--color-tokushin-navy);
    font-size: 1.2em; /* PC */
    font-weight: 700;
    border: 2px solid var(--color-tokushin-navy);
}
.cta-button.sub:hover {
    background-color: var(--color-tokushin-navy);
    color: var(--color-base-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* === 画像・ロゴ === */
.content-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo-small img {
    max-height: 60px; /* PC */
    width: auto;
    display: block;
    margin: 20px auto;
}

/* === カードUI === */
.card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}
.card {
    background-color: var(--color-base-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    flex: 1 1 45%;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--color-optpia-magenta);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card h3 {
    font-size: 1.4em; /* PC */
    color: var(--color-tokushin-navy);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-base-mediumgray);
    padding-bottom: 10px;
}
.card ul li::before {
    content: '▶';
    color: var(--color-optpia-magenta);
}
.card-image-placeholder {
    background-color: transparent; /* 背景色は透明に設定 */
    height: 180px; /* PCでのデフォルトの高さ */
    border-radius: 8px;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: var(--color-text-light);
}
.card-image-placeholder img {
    max-width: 100%;
    height: 180px; /* PCでの画像の高さ */
    object-fit: contain; /* 画像がプレースホルダーに収まるように調整 */
    border-radius: 8px;
    box-shadow: none;
}

/* === 会社概要フッター === */
.company-info {
    background-color: var(--color-tokushin-navy);
    color: var(--color-base-white);
    padding: 50px 40px;
    text-align: center;
    font-size: 1em; /* PC */
}
.company-info h3 {
    color: var(--color-base-white);
    font-size: 1.8em; /* PC */
    margin-bottom: 20px;
    font-weight: 700;
}
.company-info .logo-small img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 2px rgba(0,0,0,0.3));
    margin-bottom: 20px;
}
.company-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: inline-block;
    text-align: left;
}
.company-info ul li {
    margin-bottom: 8px;
    padding-left: 0;
    color: rgba(255,255,255,0.9);
    font-size: 1em; /* PC */
}
.company-info ul li::before {
    content: none;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: var(--color-tokushin-navy);
    color: rgba(255,255,255,0.7);
    font-size: 0.85em; /* PC */
    border-top: 5px solid var(--color-optpia-magenta);
}
footer .logo-small img {
    max-height: 30px; /* PC */
    margin: 0 auto 10px;
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
    .section {
        padding: 20px 20px;
    }
    .section-title {
        font-size: 1.8em; /* スマホ */
        margin-bottom: 20px;
    }
    header {
        min-height: 450px; /* スマホでの最低高さを調整 */
    }
    header .overlay {
        padding: 40px 15px 30px; /* スマホでの上下余白調整 */
    }
    .logo-group-section {
        padding: 5px 0;
    }
    .logo-group-section img {
        max-width: 60%;
    }
    header h1 {
        font-size: 2.2em; /* スマホ */
        margin-bottom: 15px;
    }
    header p {
        font-size: 1.0em; /* スマホ */
        margin-bottom: 30px;
    }
    .cta-button {
        font-size: 1.2em; /* スマホ */
        padding: 15px 10px; /* スマホ */
        max-width: 95%;
    }
    .cta-group {
        gap: 10px;
    }
    .card-group {
        flex-direction: column;
        gap: 20px;
    }
    .card {
        flex: 1 1 100%;
    }
    /* スマホ用画像サイズ調整 */
    .card-image-placeholder {
        height: 150px; /* スマホでの高さ */
    }
    .card-image-placeholder img {
        height: 150px; /* スマホでの画像の高さ */
    }
    /* スマホ用テキストサイズ調整 */
    .section p {
        font-size: 1em; /* スマホ */
    }
    .card h3 {
        font-size: 1.3em; /* スマホでのカード見出しサイズ */
    }
    .card ul li {
        font-size: 1em; /* スマホでのリスト項目サイズ */
    }
    .section-subtitle {
        font-size: 1.5em; /* スマホ */
    }
    .company-info {
        font-size: 0.9em; /* スマホ */
    }
    .company-info h3 {
        font-size: 1.5em; /* スマホ */
    }
    .company-info ul li {
        font-size: 0.9em; /* スマホ */
    }
    footer {
        font-size: 0.75em; /* スマホ */
    }
    footer .logo-small img {
        max-height: 25px; /* スマホ */
    }
  .card {
    padding: 15px;
  }
}

/* FAQアコーディオン用のスタイル */
.faq-hidden {
    transition: height 0.3s ease-out, opacity 0.3s ease-out; /* アニメーションの速度とイージング */
    /* height と opacity の両方にトランジションを適用します */
    /* overflow: hidden; はJavaScriptで設定されていますが、CSSで入れても問題ありません。 */
}