@charset "utf-8";

/* ==========================================================================
   1. 全ページ共通・ベースリセット（必要に応じて既存のものと統合してください）
   ========================================================================== */
html {
    box-sizing: border-box;
    overflow-y: scroll; /* スクロールバーによる画面のガタつきを防止 */
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-shadow: none;
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

section {
    padding: 64px 0;
}

/* 画像のレスポンシブ化 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   2. メインコンテンツのレイアウト構造（SP版: 375px〜 デフォルト）
   ========================================================================== */
#main-content {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    /* スマホ画面でコンテンツが完全に端に張り付かないよう、左右に内側余白を設ける */
    padding: 0 15px;

    flex: 1;
}

/* ==========================================================================
   3. タブレット（TB）版の調整（画面幅 768px 以上）
   ========================================================================== */
@media screen and (min-width: 768px) {
    #main-content {
        /* 画面いっぱいに表示しつつ、SP版より少し余白を広く調整 */
        padding: 0 24px;
    }
}

/* ==========================================================================
   4. パソコン（PC）版の調整（画面幅 1000px ＋ 左右余白 以上）
   ========================================================================== */
/* 左右のコンテンツ余白（24px × 2 = 48px）を考慮し、
   画面幅が 1048px 以上になったら中央配置で固定します。
*/
@media screen and (min-width: 1048px) {
    #main-content {
        max-width: 1048px; /* 最大幅を制限（コンテンツ実数1000px + 左右余白48px） */
        padding-right: 24px;
        padding-left: 24px;
        /* これ以上画面が広がると、左右の margin: auto により自動的に中央寄せ（両端は余白）になります */
    }
}

/* ==========================================================================
   5. 文字サイズの統一化
   ========================================================================== */
h1 {
    font-size: 40px;
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 18px;
}

/* ==========================================================================
   404ページ
   ========================================================================== */
/* ボタンとフッターの間に、デザインとしての最低限のクッション（余白）を作る */
.page-404 .common-button-container {
    margin-bottom: 60px;
}

/* ==========================================================================
   その他
   ========================================================================== */
/* 入力クリアボタン */
#faq-search-input::-webkit-search-cancel-button {
    filter: brightness(0);
    opacity: 0.3;
}