/*==================================
  グローバルスタイル
==================================*/
:root {
    font-size: 100%;
    /* iOSでのテキスト自動拡大（ランドスケープモードなど）を無効化 */
    -webkit-text-size-adjust: 100%; 
  
    /* タップ時の青いハイライトを透明にして非表示にする */
    -webkit-tap-highlight-color: transparent;

    --color-background: #fff;
    --color-background-border: #e0e0e0;
    --color-accent: #333;
    --color-accent-2: #666;
    --color-accent-3: #00479d;
    --color-overray: rgba(0, 0, 0, 0.5);
    --color-header-text: #000;
    --color-body-text: #333;
    --color-body-text-2: #555;
    --color-body-text-dark: #fff;
    --color-link-text: #00479d;
    --color-link-text-hovar: #002d6b;
    --color-submit-button: #00479d;
    --color-submit-button-hovar: #002d6b;
    --color-disabled-button: #ccc;
    --color-white-emphasis: #f0f0f0;

    --font-size-h2: clamp(1.25rem, 1.0vw + 1rem, 2rem);
    --font-size-h3: clamp(1.1rem, 0.8vw + 1rem, 1.5rem);
    --font-size-h4: clamp(1.0rem, 0.4vw + 1rem, 1.2rem);
    --font-size-h5: clamp(0.9rem, 0.8vw + 0.5rem, 1.1rem);
    --font-size-body-text: clamp(0.8rem, 0.4vw + 0.6rem, 1rem);
    --font-size-caption: clamp(0.7rem, 0.3vw + 0.5rem, 0.9rem);
}

html, body, ul, p {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
    margin-block-start: 0;
    margin-block-end: 0;
}

img {
    height: 10px;
    width: auto;
}

body {
    padding-top: 130px; /* ヘッダー分下げる */
}

:target {
    scroll-margin-top: 80px;
}

/* Container width adjustment */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px 30px 20px;
    min-height: 100vh;
    z-index: 999;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--color-body-text);
    background-color: var(--color-background);
    margin: 0;
    height: 100%;
}

a {
    text-decoration: none;
    color: var(--color-link-text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-link-text-hovar);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-en {
    display: block;
    font-size: var(--font-size-h5);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-accent-3);
    text-transform: uppercase;
}

.section-title-jp {
    display: block;
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin-top: 5px;
    position: relative;
    padding-bottom: 10px;
    color: var(--color-body-text);
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background-color: var(--color-accent);
}

.button-container {
    text-align: center;
    margin-top: 40px;
}

.button {
    display: inline-block;
    padding: 15px 40px; 
    background-color: var(--color-accent-3);
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    font-size: var(--font-size-body-text);
    border: 1px solid var(--color-accent-3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.button:hover {
    background-color: transparent;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.new_window_icon {
    margin-left: 10px;
    height: 10px;
}

/*==================================
  Responsive Design (Mobile)
==================================*/
@media (max-width: 600px) {
    :root {
        font-size: 87.5%;
    }
    .container {
        margin-top: 80px;
        margin-bottom: 50px;
        padding: 0 15px; /* モバイル向けに左右の余白を調整 */
    }

    body {
        line-height: 1.6; /* 行の高さを調整して可読性を向上 */
        padding-top: 0;
    }

    .section-title {
        margin-bottom: 30px; /* タイトルの下部の余白を小さく */
    }

    .section-title-jp {
        margin-top: 3px;
    }

    .section-title-jp::after {
        width: 60px; /* 下線の長さを短く */
    }

    .button-container {
        margin-top: 30px; /* ボタンコンテナの余白を小さく */
    }

    .button {
        padding: 12px 30px; /* ボタンのパディングを小さく */
    }
}