/* 基本的なスタイル */
body {
    font-family: 'MS Gothic', 'ＭＳ ゴシック', sans-serif;
    background-color: #cbc5c5;
    margin: 0;
    padding: 0;
}

/* ヘッダースタイル */
header {
    background-color: #000;
    padding: 60px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Welcomeメッセージのスタイル */
.welcome-text {
    color: orange;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* メインタイトルのコンテナスタイル */
.main-title {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* メインタイトル（h1）のスタイル */
.main-title h1 {
    color: orange;
    font-size: 6rem;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'HGP創英角ゴシックUB', 'MS Gothic', sans-serif;
    line-height: 1.1;
}

/* メインタイトル下の説明文（p）のスタイル */
.main-title p {
    color: orange;
    font-size: 1.8rem;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
}

/* サイドバーのメニューリンクテキストスタイル */
.menu-link-text {
    font-family: 'Century Gothic', sans-serif;
    color: navy;
}

/* ここをクリック▼ のスタイル */
.menu-item-click {
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 日本ベネズエラ協会などのリンクスタイル (teal) */
.menu-item-link-teal {
    font-family: 'Comic Sans MS', cursive;
    color: teal;
    font-size: 12pt;
    font-style: italic;
}

/* スペイン・ラテンアメリカの音楽などのリンクスタイル (red) */
.menu-item-link-red {
    font-family: 'Comic Sans MS', cursive;
    color: red;
    font-size: 14pt;
    font-style: italic;
}

/* 神大受講生用、ホーム　ページなどのテキストスタイル */
.jindai-student-text {
    font-size: 10.5pt;
    font-family: 'ＭＳ 明朝', sans-serif;
    color: maroon;
}

/* Entradaリンクのスタイル */
.entrada-link {
    font-size: 14pt;
    color: blue;
    font-weight: bold;
    font-family: 'ＭＳ 明朝', sans-serif; /* 日本語フォントに合わせる */
}

/* コンテンツメニューのスタイル */
.content-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.menu-item {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
    padding: 0 10px;
}

.menu-item img {
    margin-right: 5px;
}

.menu-separator {
    width: 2px;
    height: 20px;
    background-color: #ccc;
    margin: 0 10px;
}

/* メインコンテンツエリアのスタイル */
.main-content-area {
    width: 90%; /* 幅を流動的に */
    max-width: 900px; /* 最大幅は維持 */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* カラムの高さ */
#c1, #c2 {
    height: auto; /* 固定高さを削除 */
}

/* テーブルの基本的なスタイル */
table {
    border-collapse: collapse;
    width: 100%; /* テーブルの幅を100%に */
    display: block; /* ブロック要素として扱われるように */
    overflow-x: auto; /* 横スクロールを可能にする */
}

/* contentsテーブルの特定のスタイル */
#contents {
    width: 650px !important; /* インラインスタイルを上書き */
    display: table !important; /* tableとして表示 */
    overflow-x: visible !important; /* はみ出しを許可 */
}

/* h1要素の基本的なスタイル */
h1 {
    width: auto;
    height: auto;
    line-height: 150%;
    margin: 0;
    padding: 0;
}

/* h2要素の基本的なスタイル */
h2 {
    font-size: 24pt;
    color: maroon;
    margin: 10px 0;
}

/* span要素のフォントスタイル */
span {
    font-family: 'HGP創英角ゴシックUB', 'MS Gothic', sans-serif;
}

/*
 * スペルミスを示す可能性のある要素のスタイル
 * .SpellE {
 *     必要に応じてスタイルを追加
 * }
 */

/* strongタグとbタグのスタイル */
strong, b {
    font-weight: bold;
}

/* emタグとiタグのスタイル */
em, i {
    font-style: italic;
}

/* ナビゲーションリストアイテムのスタイル */
.ghnav_li {
    padding: 5px;
}

/* 画像の基本的なスタイル */
img {
    border: none;
}

/* 段落の基本的なスタイル */
p {
    line-height: 150%;
    margin: 5px 0;
}

/* テーブルセルの基本的なスタイル */
td {
    vertical-align: top;
    padding: 5px;
}

/* 中央揃えのスタイル */
center {
    text-align: center;
}

/* 下線のスタイル */
u {
    text-decoration: underline;
}

/* 特定のalt属性を持つ画像のスタイル */
img[alt="スペイン語学習サイト"] {
    display: block;
    margin: 10px auto;
}

img[alt="メニュー"] {
    display: block;
    width: 169px;
    height: 31px;
}

img[alt="メニュー下部"] {
    display: block;
    width: 169px;
    height: 15px;
}

img[alt="罫線"] {
    display: block;
    width: 169px;
    height: 1px;
}

img[alt="→"] {
    vertical-align: middle;
    margin-right: 5px;
}

img[alt="E-mail"] {
    vertical-align: middle;
    margin-left: 5px;
}

img[alt="スペイン語学習"] {
    border: 2px solid #333;
    margin: 10px;
}

img[alt="スペイン語"] {
    display: block;
    margin: 10px auto;
}

/* What's new?のコンテナスタイル */
.whats-new-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* What's new?の見出しスタイル */
.whats-new-title {
    font-size: 24pt;
    color: rgb(238, 98, 5);
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

/* 更新日のスタイル */
.update-date {
    font-size: 16pt;
    color: navy;
    margin-top: 0;
}

/* レスポンシブデザイン：画面幅768px以上で横並び */
@media (min-width: 768px) {
    .whats-new-container {
        flex-direction: row;
        justify-content: center;
    }

    .whats-new-title {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .update-date {
        margin-top: 0;
    }
}

/* [Contents]の見出しスタイル */
.contents-title {
    font-size: 24pt;
    color: maroon;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

/* 管理人にメールのテキストスタイル */
.contact-email-text {
    font-size: 14pt;
    font-weight: bold;
    text-align: left; /* 左寄せに変更 */
    color: saddlebrown; /* 焦茶色に変更 */
    margin-top: 30px;
    margin-bottom: 5px; /* 下のマージンを調整 */
}

/* →〒 のスタイル */
.contact-post-symbol {
    font-size: 14pt; /* フォントサイズを揃える */
    font-weight: bold;
    text-align: left; /* 左寄せに変更 */
    color: red; /* 赤色に変更 */
    margin-top: 15px; /* 上のマージンを調整してさらに下に移動 */
    padding-left: 0; /* 不要なパディングをリセット */
}

.post-symbol {
    font-size: 48pt; /* 〒記号のサイズは大きく維持 */
    color: red;
    vertical-align: middle;
    margin-left: 5px; /* 左側に少しスペース */
}

/* コピーライトテキストのスタイル */
.copyright-text {
    font-size: 8pt;
    color: maroon;
    text-align: center;
    margin-top: 30px;
    line-height: 1.5;
}

/* スペイン語学習画像のコンテナ */
.spanish-learning-image {
    text-align: center;
    margin-top: 20px;
}

/* コースリストのコンテナスタイル */
.course-list {
    margin-top: 20px;
    margin-left: 0; /* 左寄せにする */
    max-width: 600px;
    text-align: left; /* リスト全体を左寄せに */
    padding-left: 50px; /* 丸印の開始位置を調整 */
}

.course-list p {
    display: flex; /* Flexboxを適用 */
    align-items: center; /* 垂直方向の中央揃え */
    margin-bottom: 5px; /* 各項目間の間隔 */
}

/* コンテンツアイテムの丸印のスタイル */
.content-item-bullet {
    color: saddlebrown;
    font-size: 1.2rem;
    margin-right: 5px;
    width: 20px; /* 丸印の固定幅 */
}

/* コンテンツアイテムのテキストスタイル */
.content-item-text {
    color: saddlebrown;
    font-size: 1.2rem;
    font-family: 'HGP創英角ゴシックUB', 'MS Gothic', sans-serif;
}

/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 1200px) {
    .main-title h1 {
        font-size: 5rem; /* 1200px以下でフォントサイズを調整 */
    }
}

@media (max-width: 1024px) {
    .main-title h1 {
        font-size: 4rem; /* 中間サイズでフォントサイズを調整 */
    }
    .welcome-text {
        font-size: 1.2rem;
    }
    .main-title p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* 特定のIDを持つ要素の幅を100%にする */
    #ghcont, #contents {
        width: 100% !important;
    }

    /* 画像の最大幅を100%にし、高さを自動調整 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 特定のフォントサイズを持つspan要素のフォントサイズを調整 */
    span[style*="font-size: 24pt"] {
        font-size: 18pt !important;
    }

    /* メインタイトル（h1）のフォントサイズを調整 */
    .main-title h1 {
        font-size: 2.5rem; /* 画面幅が768px以下の場合にフォントサイズを小さくする */
    }
}

/* メールリンクの下線を消す */
.mail-link {
    text-decoration: none;
    color: inherit;
}

/* 長押しヒントのスタイル */
.long-press-hint {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-left: 10px;
}

/* スクリーンリーダーのみが読み上げる要素のスタイル */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

video {
    border: none;
    margin: 0;
}
