﻿@charset "UTF-8";

/* === 基本設定 === */
:root {
    --brand-color: #043491; /* ここを変えれば全体のメインカラーが変わります */
}

body {
    font-family: "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}
a {
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.7;
}

/* === レイアウトコンテナ === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* === ヘッダー === */
header {
    background-color: var(--brand-color);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.category-tag {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
h1 {
    margin: 0;
    font-size: 1.8rem;
}
h1 span {
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}

/* === セクション共通 === */
section {
    margin-bottom: 50px;
}
h2 {
    border-bottom: 2px solid var(--brand-color);
    padding-bottom: 10px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--brand-color);
}
p {
    margin-bottom: 15px;
}

/* === ボタン・リンクカード共通 === */
.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.btn-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-link::after {
    content: "＞";
    font-family: monospace;
}

.marker-basic {
  /* 透明 60% 、黄色 0% (残りの40%が黄色になる) */
  background: linear-gradient(transparent 60%, #ffff66 60%);
  display: inline; /* 改行してもきれいに背景がつくように指定 */
}

/* === 初期設定セクション === */
.login-flow .btn-link {
    min-height: 60px;
}
/* ボタンの色変更 */
.btn-orange {
    background-color: #f6b26b;
}
.btn-cyan {
    background-color: #0095D9;
}

/* === コース選択セクション === */
.course-select .btn-link {
    background-color: var(--brand-color);
}

/* === 環境確認セクション === */
.system-check {
    background-color: #eef5ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.btn-check {
    display: inline-block;
    background-color: var(--brand-color);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    margin-top: 10px;
}

/* === お問い合わせセクション === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.contact-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}
.contact-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-top: 0;
    border-left: 5px solid var(--brand-color);
    padding-left: 10px;
}
.contact-method {
    margin-top: 15px;
}
.contact-method strong {
    display: block;
    color: var(--brand-color);
    margin-bottom: 5px;
}
.contact-method a {
    color: var(--brand-color);
    text-decoration: underline;
}
.phone-number {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}
.note {
    font-size: 0.85rem;
    color: #666;
}

.indent {
    margin-left:1em;
    text-indent:-1em;
}

/* ページトップに戻るボタンのスタイル */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bce; /* Z会らしい青色（適宜調整してください） */
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    border-style:solid;
    border-width:1px;
    border-color:#FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: opacity 0.3s, transform 0.3s;
    
    /* 最初は非表示にしておきたい場合は下記を追加 */
    opacity: 0;
    visibility: hidden;
}

/* マウスホバー時 */
.back-to-top:hover {
    background-color: #005691;
    transform: translateY(-3px);
}

/* JavaScriptで表示させるためのクラス */
.back-to-top.is-show {
    opacity: 1;
    visibility: visible;
}

/* ブランドカラー（濃い青）のボタン */
/* 先頭に .contact-method を付けて優先度を上げました */
.contact-method .btn-brand {
    background-color: var(--brand-color);
    margin-top: 10px;
    color: #fff !important;            /* 文字色を白に強制 */
    text-decoration: none !important;  /* 下線をなしに強制 */
}

/* ホバー時は少し薄く */
.contact-method .btn-brand:hover {
    opacity: 0.8;
    text-decoration: none !important; /* ホバー時も下線を出さない */
}

.btn-single {
    display: flex;
    justify-content: center; /* 横方向の中央寄せ */
    margin-top: 20px;
}

.btn-single .btn-link {
    display: flex;          /* 文字を中央に寄せるためにflex化 */
    align-items: center;    /* ★縦方向の中央寄せ */
    justify-content: center; /* ★横方向の中央寄せ */
    
    width: 100%;
    max-width: 400px;
    height: 60px;           /* もし高さが指定されていたら、これに合わせて中央になります */
    text-align: center;
    text-decoration: none;
    
    /* 元のオレンジ色や角丸の設定はそのまま残してください */
}

/* === スマホ向け調整 === */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.5rem;
    }
}