@charset "UTF-8";

/* ============================================================
   リセット・基本設定（変更なし）
   ============================================================ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    color: inherit;
    text-decoration: none;
}
ul{
    list-style: none;
}
html{
    font-size: 100%;
}
img{
    max-width: 100%;
    vertical-align: bottom;
}
body{
    background-color: #fff;
    color: #333;
    font-size: 1.0rem;
    font-family: sans-serif;
    line-height: 1.0;
}
.container{
    width: min(92%, 1240px);
    margin: 0 auto;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.header{
    width: 100%;
    margin-bottom: 80px;
    border-bottom: 1px solid #ddd;
}
.header > .container{
    display: flex;
    align-items: center;
    padding: 20px 0;
}
h1{
    margin-right: auto;
}
.gnav ul{
    display: flex;
    justify-content: center;
}
.gnav li > a{
    display: block;
    padding: 10px 20px;
    font-size: 1.25rem;
}
.gnav li a:hover{
    background-color: #baa1a1;
}

/* ============================================================
   セクション共通
   ============================================================ */
section{
    margin-bottom: 80px;
}
h2{
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}
h3{
    text-align: left;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* ============================================================
   このサイトで分かること（.intro）
   ============================================================ */
.intro ul{
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.intro li{
    padding: 24px;
    border: 1px solid #ddd;
    line-height: 1.7;
}
.intro li h3{
    margin-bottom: 12px;
}
.intro li p{
    font-size: 0.95rem;
    color: #555;
}

/* ============================================================
   プロフィール（.profile）
   ============================================================ */
.profile-inner{
    line-height: 1.8;
    max-width: 800px;
}
.profile-inner p{
    margin-bottom: 12px;
}
.profile-inner a{
    text-decoration: underline;
    color: #333;
}
.profile-inner a:hover{
    color: #666;
}

/* ============================================================
   スクール比較（.school）
   テーブルのスマホ対応：横スクロール
   ============================================================ */
.school{
    /* overflow-x はtable-wrapに移動 */
}
.table-wrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}
.section-lead{
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    font-size: 0.95rem;
    color: #555;
}
.school-comment{
    list-style: none;
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.school-comment li{
    padding: 16px;
    border-left: 3px solid #333;
    background-color: #fafafa;
    font-size: 0.95rem;
    line-height: 1.8;
}
.school-name{
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1.0rem;
}
.school-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}
.school-table th,
.school-table td{
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.school-table thead th{
    background-color: #f5f5f5;
    font-weight: bold;
}
.school-table tbody tr:nth-child(even){
    background-color: #fafafa;
}

/* CTAボタン（ASP審査通過後にコメントアウト解除） */
.school-cta{
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 30px;
}
.school-cta li a{
    display: block;
    padding: 14px 20px;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}
.school-cta li a:hover{
    background-color: #555;
}

/* ============================================================
   学習ロードマップ（.roadmap）
   ============================================================ */
.roadmap-list{
    list-style: none;
    display: grid;
    gap: 24px;
}
.roadmap-list li{
    padding: 20px 24px;
    border-left: 4px solid #333;
    background-color: #fafafa;
}
.roadmap-list li h3{
    margin-bottom: 8px;
}
.roadmap-list li p{
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ============================================================
   転職ノウハウ（.career）
   ============================================================ */
.career > p{
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}
.career-links{
    display: grid;
    gap: 12px;
}
.career-links li a{
    display: block;
    padding: 14px 20px;
    border: 1px solid #333;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: background-color 0.2s;
}
.career-links li a:hover{
    background-color: #f5f5f5;
}

/* ============================================================
   フッター（変更なし・テキスト追加分のみ対応）
   ============================================================ */
.footer{
    padding: 30px 0;
    background-color: #000;
    color: #fff;
    text-align: center;
    line-height: 1.8;
}
.footer a{
    color: #fff;
    text-decoration: underline;
}
.footer a:hover{
    color: #ccc;
}

/* ============================================================
   スマホ向けレスポンシブ（600px以下）
   ============================================================ */
@media (max-width: 600px) {

    /* ヘッダー */
    .header .container {
        display: block;
        padding: 10px 20px;
        text-align: center;
    }
    .header h1 {
        font-size: 1.1rem;
        white-space: normal;
        margin: 0 0 8px 0;
        text-align: center;
    }
    .gnav {
        display: block;
        margin: 0 auto;
    }
    .gnav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .gnav ul li {
        margin: 0 5px;
    }

    /* テーブルのスマホ対応 */
    .table-wrap{
        margin-left: -4%;
        margin-right: -4%;
        padding-left: 4%;
        padding-right: 4%;
    }
    .school-table{
        font-size: 0.85rem;
        min-width: 480px;
    }

    /* ロードマップのスマホ対応 */
    .roadmap-list li{
        padding: 16px;
    }
}

/* ============================================================
   プライバシーポリシー（.policy）
   ============================================================ */
.policy-block{
    margin-bottom: 40px;
}
.policy-block h3{
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}
.policy-block p{
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}
.policy-block a{
    text-decoration: underline;
    color: #333;
}

/* ============================================================
   お問い合わせ（.contact）
   ============================================================ */
.contact-lead{
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #555;
}
.contact-form{
    width: 100%;
}
.contact-form iframe{
    width: 100%;
    border: none;
}

/* ============================================================
   運営者情報（.profile-page）
   ============================================================ */
.profile-page .profile-inner h3{
    font-size: 1.05rem;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}
.profile-page .profile-inner h3:first-child{
    margin-top: 0;
}
.profile-page .profile-inner p{
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}
.profile-page .profile-inner a{
    text-decoration: underline;
    color: #333;
}

/* ============================================================
   共通：ヘッダーh1リンク（サブページ用）
   ============================================================ */
.header h1 a{
    color: inherit;
    text-decoration: none;
}
.header h1 a:hover{
    opacity: 0.8;
}

/* ============================================================
   フッターナビゲーション
   ============================================================ */
.footer-nav{
    margin: 10px 0;
}
.footer-nav ul{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 20px;
    list-style: none;
}
.footer-nav li a{
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: underline;
}
.footer-nav li a:hover{
    color: #fff;
}
/* ============================================================
   サブページ用追加スタイル（roadmap.html / school.html）
   ============================================================ */

/* ヘッダーサイト名（サブページはh1をmain内に移動のためpタグ使用） */
.site-title {
    margin-right: auto;
    font-weight: bold;
    font-size: 1.1rem;
}
.site-title a {
    color: inherit;
    text-decoration: none;
}
.site-title a:hover {
    opacity: 0.8;
}

/* main内のページタイトル（h1） */
.main h1 {
    font-size: 1.75rem;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #333;
    line-height: 1.4;
}

/* ロードマップ：複数段落間の余白 */
.roadmap-list li p + p {
    margin-top: 10px;
}

/* スクールコメント：複数段落間の余白 */
.school-comment li p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}
.school-comment li p + p {
    margin-top: 10px;
}

/* スマホ対応：サブページヘッダー */
@media (max-width: 600px) {
    .site-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
        text-align: center;
    }
    .main h1 {
        font-size: 1.4rem;
    }
}
