/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/* 基本的なリセットと設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

/* ヘッダー共通スタイル */
.header {
    background-color: #1c1c1c;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    height: 70px;
}

.header .name {
    flex-shrink: 0;
}

.header .name a {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    font-family: "Mochiy Pop P One", sans-serif;
    flex-shrink: 0;    /* これで縮まらず */
    text-decoration: none;
    align-items: center;
    min-width: 120px;  /* 文字が収まる幅を確保 */
    display: flex;     /* 中身のaを縦中央に */
    position: absolute;  /* 親の.headerを基準に絶対配置 */   /* 固定表示 */
    top: 50%;            /* ヘッダーの高さ中央に */
    left: 20;             /* 左端に */
    transform: translateY(-50%);
    padding-left: 20px;  /* 画面端にくっつきすぎないように少し内側に */
    z-index: 100;
    background: transparent;
}

.header .logo-link h1 {
    color: #fff;
    font-size: 24px;
}

/* モバイル用スタイル */
.header .pagelinks {
    display: none;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 15px;
    right: 20px;
    z-index: 20;
    opacity: 0;
    cursor: pointer;
}

.nav-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    right: 20px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #fff;
}

.nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

.header .menu-items {
    padding-top: 100px;
    background-color: #1c1c1c;
    height: 100vh;
    width: 100%;
    transform: translateX(100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    position: fixed;
    top: 0;
    text-align: center;
    right: 0;
    z-index: 10;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.header .menu-items li {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.header .menu-items a {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.header .menu-items a:hover {
    color: #00ccff;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
    opacity: 1;
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
}

.main {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

.main img {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
    display: block;
}

.main h1 {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: bold;
    font-size: 48px;
    color: #fff;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-sizing: border-box;
    z-index: 1;
}

.main p {
    text-align: center;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 15px;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
}

.main p strong {
    color: #00a86b; /* アクセントカラー */
}

.main p a {
    color: #00a86b;
    text-decoration: underline;
}

.container {
    max-width: 100vw;
    padding: 0;
    flex: 1;
    margin: 0 auto;
    overflow-x: hidden;
}

html, body {
    height: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

footer {
    padding: 10px 0;
    width: 100%;
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
}

@media screen and (min-width: 700px) {
    .header .nav-container {
        display: none;
    }

    .header .pagelinks {
        display: block;
    }

    .header {
        font-size: 20px;
    }

    .header a:hover {
        color: #00ccff;
    }

    header .pagelinks ul {
        display: flex;
    }

    header .pagelinks li {
        padding: 0 10px;
    }

    .main {
        position: relative;
        max-width: 100%;
    }

    .main h1 {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: bold;
    font-size: 48px;
    color: #fff;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-sizing: border-box;
    z-index: 1;
    }

    .main p {

    footer {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
}