/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header styles */
.header {
    background-color: #7e22ce;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .material-icons {
    font-size: 2rem;
}

.logo h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle .material-icons {
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    font-weight: 500;
    position: relative; /* アンダーラインの位置を調整するために追加 */
}

nav a::after {
    content: '';
    position: absolute;
    left: 0; /* 左端から開始 */
    bottom: -2px; /* リンクの下に配置 */
    width: 0; /* 初期状態では幅を0に設定 */
    height: 1px; /* アンダーラインの高さ */
    background-color: #e9d5ff; /* アンダーラインの色 */
    transition: width 0.3s ease; /* アニメーションの設定 */
}

nav a:hover::after {
    width: 100%; /* ホバー時に幅を100%に設定 */
}

nav a:hover{
    color: #e9d5ff;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 53vh;
    background: linear-gradient(to right, #7e22ce, #581c87);
    color: white;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: clamp(1.25rem, 4vw, 1.4rem);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.8;
}

.hero-text {
    font-size: clamp(1rem, 3vw, 1.1rem); /* フォントサイズを小さく設定 */
    font-weight: 300; /* フォントの太さを細く設定 */
    margin-top: 0;
    margin-bottom: 2rem; /* 下の余白を追加 */
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #7e22ce;
    color: white;
    padding: 1.3rem 2rem;
    margin-top: 30px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s ease, letter-spacing 0.5s ease;
    transition-duration: .4s;
    font-size: clamp(1rem, 3vw, 1.125rem);
}

.button:hover {
    background-color: #6b21a8;
    letter-spacing: 0.1em;
    transform: scale(0.5.1);
}

.material-icons-outlined {
    font-size: 1.3rem;
}

.hero .button {
    background-color: white;
    color: #7e22ce;
}

.hero .button:hover {
    background-color: #f3e8ff;
}

.hero .pdf-link {
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

/* About section */
.about {
    padding: clamp(3rem, 8vw, 4rem) 0;
    background-color: white;
}

.about h2 {
    font-size: clamp(1.75rem, 5vw, 2rem);
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    padding: 0 1rem;
}

.feature-card {
    text-align: center;
    padding: clamp(1.25rem, 4vw, 1.5rem);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .material-icons {
    color: #7e22ce;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Join section */
.join {
    padding: clamp(3rem, 8vw, 4rem) 0;
    background-color: #f3e8ff;
}

.join h2 {
    font-size: clamp(1.75rem, 5vw, 2rem);
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
}

.join-card {
    max-width: 42rem;
    margin: 0 auto;
    background-color: white;
    padding: clamp(1.5rem, 5vw, 2rem);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.types {
    margin-bottom: 0.5rem;
}

.types h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.types ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.types li {
    display: flex;
    align-items: center;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.dot {
    width: clamp(0.75rem, 2.5vw, 1rem);
    height: clamp(0.75rem, 2.5vw, 1rem);
    background-color: #7e22ce;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.note {
    color: #666;
    margin-bottom: 2rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.pdf-link-container {
    display: flex; /* フレックスボックスを使用 */
    margin-left: clamp(1.75rem, 3vw, 1.75rem);
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.pdf-link {
    color: #7e22ce; /* フォントカラーを設定 */
    text-decoration: none; /* 下線を消す */
    transition: color 0.3s;
    position: relative; /* アンダーラインの位置を調整するために追加 */
    margin-bottom: 1rem; /* 下のマージンを追加 */
}

.pdf-link::after {
    content: '';
    position: absolute;
    left: 0; /* 左端から開始 */
    bottom: -2px; /* リンクの下に配置 */
    width: 0; /* 初期状態では幅を0に設定 */
    height: 1px; /* アンダーラインの高さ */
    background-color: #7e22ce; /* アンダーラインの色 */
    transition: width 0.3s ease; /* アニメーションの設定 */
}

.pdf-link:hover::after {
    width: 100%; /* ホバー時に幅を100%に設定 */
}

.button-container {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 水平方向に中央揃え */
    margin-top: 1rem; /* 上部にマージンを追加（必要に応じて調整） */
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: clamp(1.5rem, 5vw, 2rem) 0;
    text-align: center;
}

.footer h2 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.footer a {
    color: #e9d5ff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    font-weight: 500;
    position: relative; /* アンダーラインの位置を調整するために追加 */
}

.footer a::after {
    content: '';
    position: absolute;
    left: 0; /* 左端から開始 */
    bottom: -2px; /* リンクの下に配置 */
    width: 0; /* 初期状態では幅を0に設定 */
    height: 1px; /* アンダーラインの高さ */
    background-color: #e9d5ff; /* アンダーラインの色 */
    transition: width 0.3s ease; /* アニメーションの設定 */
}

.footer a:hover::after {
    width: 100%; /* ホバー時に幅を100%に設定 */
}

.footer a:hover{
    color: #e9d5ff;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: #7e22ce;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav a {
        font-size: 1.125rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}