@charset "utf-8";

/* ===================================================================
   Liclass Bangkok - Modern Responisve Style
   Color Scheme: Blue / Light Blue
=================================================================== */

/* --- 1. Reset & Base Style --- */
:root {
    --primary-color: #003366; /* リクラス・ネイビー */
    --accent-color: #0099CC;  /* 知的な水色 */
    --text-color: #333;
    --bg-color: #fff;
    --light-bg-color: #f8f9fa;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; padding: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color); background-color: var(--bg-color);
    line-height: 1.8; /* 行間を広く */
    -webkit-font-smoothing: antialiased;
}

/* 共通クラス */
.clearfix::after { content: ""; display: block; clear: both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.highlight { background-color: rgba(0, 153, 204, 0.1); color: #0077aa; padding: 2px 5px; border-radius: 3px; font-weight: bold; }

/* リンク */
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-color); text-decoration: underline; }

/* タイポグラフィ */
h1 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; text-align: center; }
h2 {
    font-size: 1.5rem; color: var(--primary-color);
    padding-left: 15px; border-left: 5px solid var(--accent-color); /* 見出しデザイン */
    margin-top: 40px; margin-bottom: 20px;
}
h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 15px; }
p { margin-bottom: 1.5rem; font-size: 1rem; color: #444; }
ul, ol { margin-bottom: 1.5rem; padding-left: 20px; }
li { margin-bottom: 8px; }

/* 画像 */
img { max-width: 100%; height: auto; border-radius: 4px; }

/* --- 2. Layout (#wrapper) --- */
#wrapper {
    max-width: 1100px; margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05); /* 軽い影で立体感を */
}

/* --- 3. Header --- */
header { padding: 40px 20px; text-align: center; border-bottom: 1px solid #eee; }
#mainImage { margin-bottom: 20px; }
#mainImage img { max-width: 250px; } /* ロゴサイズ調整 */

/* Navigation */
nav { background-color: var(--light-bg-color); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
nav ul { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; }
nav li a {
    display: block; padding: 18px 30px;
    color: #555; font-weight: bold; font-size: 1rem;
    border-left: 1px solid #eee; transition: background 0.3s, color 0.3s;
}
nav li.last a { border-right: 1px solid #eee; }
nav li a:hover { background-color: white; text-decoration: none; color: var(--accent-color); }

/* --- 4. Main Content Area (#content) --- */
#content { padding: 50px 30px; display: flex; gap: 50px; } /* Flexboxでレイアウト */
article { flex: 1; min-width: 0; } /* メイン */
aside { width: 320px; flex-shrink: 0; } /* サイドバー */

/* Section styling */
article section { margin-bottom: 60px; }

/* Table styling (CSSで完全に再構成) */
.course-table {
    width: 100%; border-collapse: collapse; margin-bottom: 30px;
    border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.course-table th {
    background-color: var(--primary-color); color: #fff;
    padding: 15px 20px; text-align: left; font-size: 1.1rem;
}
.course-table td {
    padding: 20px; border-bottom: 1px solid #eee;
    vertical-align: top;
}
.course-table tr:last-child td { border-bottom: none; }
.course-table img { max-width: 150px; border-radius: 4px; }

/* 料金表用 */
.price-table {
    width: 100%; border-collapse: collapse; margin-bottom: 30px;
    border: 1px solid #eee;
}
.price-table th {
    background-color: var(--light-bg-color); color: var(--primary-color);
    padding: 12px 15px; border: 1px solid #eee; text-align: left;
}
.price-table td {
    padding: 12px 15px; border: 1px solid #eee; text-align: right;
}
.price-table td:first-child { text-align: left; font-weight: bold; }

/* --- 5. Aside (Information) --- */
#information fieldset { border: none; padding: 0; margin: 0; }
#information legend { display: none; }

#information h3 {
    font-size: 1.1rem; color: #fff; background-color: var(--primary-color);
    padding: 12px 18px; border-radius: 4px; margin-bottom: 20px;
}

#information ul { list-style: none; margin: 0; padding: 0; }
#information li {
    background-color: var(--light-bg-color); border: 1px solid #eee;
    border-radius: 6px; padding: 20px; margin-bottom: 20px;
    font-size: 0.95rem; transition: box-shadow 0.3s;
}
#information li:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

/* 入試結果 */
ul.nyushi li {
    border: none; background: none; padding: 0; margin-bottom: 8px;
    border-bottom: 1px dashed #eee; position: relative; padding-left: 20px;
}
ul.nyushi li::before { content: "▸"; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }

/* バナー・LINE画像 */
#information img { max-width: 100%; height: auto; margin-bottom: 15px; border-radius: 4px; }
#information .inquiry-btn img { transition: opacity 0.3s; }
#information .inquiry-btn img:hover { opacity: 0.8; }

/* --- 6. Footer --- */
footer {
    background-color: var(--primary-color); color: rgba(255,255,255,0.8);
    padding: 40px 20px; text-align: center; font-size: 0.9rem;
}
footer small a { color: rgba(255,255,255,0.8) !important; margin: 0 10px; text-decoration: none; }
footer small a:hover { color: #fff !important; text-decoration: underline; }

/* --- 7. Responsive (スマホ対応) --- */
@media (max-width: 960px) {
    #content { flex-direction: column; padding: 40px 20px; gap: 40px; }
    aside { width: 100%; }
    nav ul { flex-wrap: wrap; }
    nav li { width: 50%; text-align: center; }
    nav li a { border: 1px solid #eee; padding: 15px; font-size: 0.95rem; }
    .course-table td { flex-direction: column; display: flex; padding: 15px; }
    .course-table img { max-width: 100%; margin-top: 15px; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    #wrapper { box-shadow: none; }
    header { padding: 30px 15px; }
    nav li { width: 100%; }
    nav li a { border-right: 1px solid #eee; border-top: none; }
    #content { padding: 30px 15px; gap: 30px; }
}