/* 基本設定 */
body {
    margin: 0;
    font-family: sans-serif;
    color: #333;
}

/* ページ全体のコンテナ */
.container {
    max-width: 850px; /* PCでの最大幅 */
    margin: 0 auto;   /* 中央配置 */
    padding: 1rem;
}

/* 上部のナビゲーションリンク */
.page-nav {
    padding-bottom: 1.5rem;
}


a[href="/home"] {
    display: inline-block; /* aタグでもpaddingなどを正しく適用するため */
    padding: 12px 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

a[href="/home"] {
    background-color: #e2e6ea;
    color: #000;
}

/* 中央配置用の共通クラス */
.text-center {
    text-align: center;
}

/* 指示2：h1のスタイル */
h1 {
    text-align: center; /* 中央に配置 */
    font-weight: bold;  /* h1はデフォルトで太字ですが、明示的に指定 */
    font-size: 2.5rem;
}

p.sub {
    text-align: center;
    font-size:32px;
}

p.ti {
    text-align: center;
}

img {
    display: block;
    margin: 1.5rem auto; /* 中央配置 */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* article内のコンテンツは左揃えに戻す */
article {
    text-align: left;
    margin-top: 2rem;
}

/* 指示3：article内のh3のスタイル */
article h3 {
    font-size: 32px;
    text-align: center; /* 中央に配置 */
    border-bottom: 1px solid #ddd; /* 薄い下線 */
    padding-bottom: 0.5rem;      /* 線と文字の間に余白 */
    margin-top: 2.5rem;
}

/* 最初のh3には上の余白をつけない */
article h3:first-child {
    margin-top: 0;
}


/* 指示4：「VSを作成」のスタイル */
a[href*="/createVs"] {
    display: block;             /* 中央配置のためブロック要素に */
    width: 90%;
    max-width: 280px;
    margin: 2.5rem auto;        /* 上下余白と左右中央配置 */
    padding: 1rem;
    background-color: red;      /* 背景を赤に */
    color: white;               /* 文字を白く */
    border: 2px solid red;      /* 赤い枠 */
    font-size: 1.3rem;          /* 少し大きく */
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: opacity 0.2s;
}

a[href*="/createVs"]:hover {
    opacity: 0.8;
}