/* styles.css */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    letter-spacing: 0.1em;
    line-height: clamp(2rem, 3vw, 2.3rem);
    font-weight: 400;
    font-size: clamp(18px, 1.6vw, 25px);
    color: #414244;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #30373d;
}

.content-wrapper {
    background-color: #F8DDD2;
}

@media (max-width: 1200px) {
    body {
        font-size: clamp(11px, 1.6vw, 18px);
        line-height: clamp(1.4rem, 2.8vw, 2rem);
    }
}

@media (max-width: 768px) {
    body {
        font-size: clamp(12px, 3.5vw, 26px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        text-align: center;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2 {
    margin: 0;
    padding: 0;
}

.sp-only {
    display: none;
}

/* Header */
header {
    display: none !important;
}

header {
    background: url('../images/header-background.png') no-repeat center;
    background-size: cover;
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 120px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 270px;
}

.logo {
    height: 50px;
    /* 固定高さ */
    width: auto;
    /* 幅は自動調整 */
    object-fit: contain;
    /* 画像の縦横比を維持 */
}

/* PC用のロゴ */
.logo-pc {
    display: block;
    /* PCでは表示 */
}

/* スマホ用のロゴ */
.logo-mobile {
    display: none;
    /* PCでは非表示 */
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.nav-links a:not(.contact-btn) {
    text-decoration: none;
    color: #30373D;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:not(.contact-btn):hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.contact-btn {
    background: #5973B4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    margin-left: 20px;
    border: none;
    font-size: 16px;
}

.contact-btn:hover {
    background: #475b93;
    transform: translateY(-3px);
    /* ホバー時の浮き上がり効果 */
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    /* デフォルトでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    header {
        background: url('../images/header-background-sp.png') no-repeat center;
        background-size: cover;
        flex-direction: row;
        /* 横並び */
        justify-content: space-between;
        align-items: center;
        /* 中央揃え */
        padding: 10px 20px;
        height: clamp(60px, 12vw, 80px);
        min-height: clamp(60px, 10vw, 80px);
        overflow: hidden;
    }

    .header-container {
        display: flex;
        flex-direction: row;
        /* 横並び */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo-container {
        display: flex;
        align-items: center;
        margin-right: auto;
        /* 左寄せ */
        gap: 10px;
    }

    .logo-pc {
        display: none;
        /* スマホでは非表示 */
    }

    .logo-mobile {
        display: block;
        /* スマホでは表示 */
        min-height: 20px;
        max-height: 40px;
        width: auto;
        object-fit: contain;
    }

    .contact-btn {
        display: none;
        /* SP版で非表示 */
        order: 1;
        /* ボタンをハンバーガーメニューの左に配置 */
        background: #5973B4;
        color: #fff;
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 14px;
        text-align: center;
        margin-left: 10px;
        /* ハンバーガーメニューと間隔を空ける */

    }

    .hamburger {
        display: flex;
        order: 2;
        /* ハンバーガーメニューを最後に配置 */
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 20px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 3px;
        transition: 0.3s;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #fff;
        position: absolute;
        top: 70px;
        /* ヘッダーの下に配置 */
        right: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: absolute;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        /* テキストを左寄せ */
    }
}

/* 1. 基本：流動的なフォントサイズと余白 */
html {
    /* フォントサイズを画面幅に応じて14px～18pxで変化 */
    font-size: clamp(14px, 1.5vw, 18px);
}

.hero-full-img {
    display: block;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.cta-button {
    display: inline-block;
    background-color: #5973B4;
    color: #fff;
    font-weight: bold;

    /* padding を画面幅の1.5～3vwに */
    padding: clamp(12px, 10vw, 18px) clamp(24px, 10vw, 60px);

    border-radius: clamp(20px, 10vw, 100px);
    text-decoration: none;
    margin-bottom: clamp(0px, 1.5vw, 20px);
    transition: background-color 0.3s ease;
    letter-spacing: 0.15em;
    white-space: nowrap;
    order: 2;
}

.cta-button:hover {
    background-color: #485d94;
}

.overlay-row {
    display: flex;
    gap: clamp(12px, 3vw, 24px);
    justify-content: center;
    align-items: center;
    order: 3;
}

.overlay-img {
    height: clamp(40px, 6vw, 56px);
    width: auto;
}

.top-title {
    position: absolute;
    top: 22.5%;
    width: 28%;
    left: 25%;
    transform: translate(-20%, -50%);
}

.catch-copy {
    left: 10%;
    white-space: nowrap;
    font-size: clamp(18px, 1.5vw, 25px);
    letter-spacing: 0em;
    order: 1;
}

.top-overlay {
    position: absolute;
    top: 57%;
    left: 25%;
    transform: translate(-20%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0px, 2vw, 6px);
    z-index: 10;
}

@media (max-width: 1200px) {
    .catch-copy {
        font-size: clamp(11px, 1.5vw, 18px);
        margin-bottom: clamp(5px, 1vw, 15px);
        margin-left: 23%;
        letter-spacing: 0.1em;
    }

    .top-overlay {
        top: 60%;
        left: 20%;
        transform: translate(-20%, -50%);
        gap: clamp(8px, 3vw, 16px);
    }

    .cta-button {
        padding: clamp(5px, 3vw, 18px) clamp(24px, 3vw, 40px);
    }
}

@media (max-width: 1000px) {
    .catch-copy {
        top: 5%;
        margin-left: 16%;
        margin-bottom: 1%;
    }
}

@media (max-width: 768px) {
    .top-title {
        top: 11.5%;
        width: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .overlay-row {
        display: flex;
        gap: 16px;
        justify-content: center;
        align-items: center;
        order: 2;
    }

    .cta-button {
        padding: clamp(5px, 3vw, 18px) clamp(24px, 10vw, 48px);
        border-radius: clamp(24px, 10vw, 48px);
        margin-bottom: clamp(5px, 3vw, 40px);
        order: 1;
    }

    .catch-copy {
        margin-top: clamp(20px, 3vw, 40px);
        margin-bottom: clamp(5px, 1vw, 15px);
        margin-left: 0%;
        font-size: clamp(12px, 3.5vw, 26px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        order: 3;
    }

    .top-overlay {
        position: absolute;
        top: clamp(78%, 80% - 25vw, 90%);
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        z-index: 10;
    }

    .icon-wrapper {
        height: clamp(10px, 10vw, 100px);
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .overlay-img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
}


.top-section,
.about-section,
.invitation-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.about-title,
.about-description {
    position: absolute;
    left: 25.5%;
    transform: translate(-20%, -50%);
}

.about-title {
    top: 15.5%;
    width: 39%;
    left: 26.5%;
}

.about-description {
    top: 41%;
}

@media (max-width: 1200px) {
    .about-description {
        left: 18.5%;
        transform: translate(-20%, -50%);
        gap: clamp(8px, 3vw, 16px);
        margin-bottom: clamp(5px, 1vw, 15px);
        margin-left: 7%;
    }
}

@media (max-width: 768px) {

    .about-title {
        /* top: clamp(7%, 30vw, 7%); */
        top: 8%;
        width: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .about-description {
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: clamp(20px, 3vw, 40px);
        margin-bottom: clamp(5px, 1vw, 15px);
        margin-left: 0%;
        white-space: nowrap;
        order: 3;
    }
}

/* エフェクトセクション */
.effects-section {
    position: relative;
}

.effects-overlay {
    position: absolute;
    right: 15%;
    bottom: 2%;
    z-index: 1;
    width: 33vw;
    max-width: 500px;
}

.effects-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.effects-title {
    position: absolute;
    top: 18%;
    width: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.effect-img {
    width: 100%;
    height: auto;
}

.effects-note {
    margin-top: 2%;
    width: 70%;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .effects-column {
        gap: 15px;
    }

    .effects-note {
        margin-top: 0%;
    }
}

@media (max-width: 768px) {
    .effects-content {
        background-color: #f8ddd2;
    }

    .effects-overlay {
        position: static;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding-top: 20px;
        padding-left: 10%;
        padding-right: 10%;
        padding-bottom: 10px;
    }

    .effects-title {
        top: clamp(10%, 30vw, 15%);
        width: 80%;
    }

    .effect-img {
        width: 100%;
        height: auto;
    }
}

.effects-container {
    position: relative;
    margin: 0 auto;
    height: 0;
}

.effects-overlay-text {
    position: absolute;
    width: 250px;
    letter-spacing: 0em;
}

.effects-first-red,
.effects-second-red,
.effects-third-red {
    color: #d8755b;
    font-size: clamp(18px, 2vw, 28px);
}

.effects-first,
.effects-second,
.effects-third {
    font-size: clamp(11px, 1.4vw, 18px);
    line-height: clamp(1.4rem, 2.2vw, 2rem);
}

.effects-column {
    left: 58%;
    transform: translate(-50%, -50%);
    text-align: left;

    height: 90%;
    white-space: nowrap;
}

.effects-first-red {
    position: absolute;
    top: 50.5%;
}

.effects-first {
    position: absolute;
    top: 58.5%;
}

.effects-second-red {
    position: absolute;
    top: 81%;
}

.effects-second {
    position: absolute;
    top: 89%;
}

.effects-third-red {
    position: absolute;
    top: 112%;
}

.effects-third {
    position: absolute;
    top: 120%;
}

@media (max-width: 1150px) {
    .effects-column {
        left: 65%;
    }

    .effects-first,
    .effects-second,
    .effects-third {
        font-size: clamp(11px, 1.4vw, 18px);
        line-height: clamp(1.4rem, 2.2vw, 2rem);
    }
}

@media (max-width: 1000px) {
    .effects-column {
        left: 68%;
    }
}

@media (max-width: 880px) {
    .effects-column {
        left: 74%;
    }

    .effects-box {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .effects-overlay-text {
        width: 200px;
    }

    .effects-container {
        padding-bottom: 150%;
    }

    .effects-overlay-text {
        position: absolute;
        text-align: center;
    }

    .effects-first-red,
    .effects-second-red,
    .effects-third-red {
        font-size: clamp(18px, 4.5vw, 33px);
    }

    .effects-first,
    .effects-second,
    .effects-third,
    .effects-note {
        font-size: clamp(14px, 3.5vw, 24px);
        line-height: clamp(1.4rem, 6vw, 3rem);
    }

    .effects-column {
        left: 45%;
        transform: translate(-50%, -50%);
        text-align: left;

        height: 90%;
        white-space: nowrap;
    }

    .effects-first-red {
        position: absolute;
        top: 50.5%;
    }

    .effects-first {
        position: absolute;
        top: 57.5%;
    }

    .effects-second-red {
        position: absolute;
        top: 80%;
    }

    .effects-second {
        position: absolute;
        top: 87%;
    }

    .effects-third-red {
        position: absolute;
        top: 110%;
    }

    .effects-third {
        position: absolute;
        top: 117%;
    }

    .effects-note {
        position: absolute;
        text-align: center;
        top: 83%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width:610px) {
    .effects-overlay-text {
        width: 150px;
    }

    .effects-column {
        left: 47%;
    }
}

@media (max-width:515px) {
    .effects-column {
        left: 50%;
    }

    .effects-first-red,
    .effects-second-red,
    .effects-third-red {
        font-size: clamp(12px, 4vw, 33px);
    }

    .effects-first,
    .effects-second,
    .effects-third,
    .effects-note {
        font-size: clamp(11px, 3vw, 24px);
        line-height: clamp(1.4rem, 5vw, 3rem);
    }

    .effects-first-red {
        position: absolute;
        top: 52%;
    }

    .effects-first {
        position: absolute;
        top: 59%;
    }

    .effects-second-red {
        position: absolute;
        top: 83%;
    }

    .effects-second {
        position: absolute;
        top: 90%;
    }

    .effects-third-red {
        position: absolute;
        top: 113%;
    }

    .effects-third {
        position: absolute;
        top: 120%;
    }

    .effects-note {
        position: absolute;
        top: 88%;
    }
}

@media (max-width:450px) {
    .effects-column {
        left: 55%;
    }

    .effects-first,
    .effects-second,
    .effects-third,
    .effects-note {
        font-size: clamp(8px, 3vw, 24px);
        line-height: clamp(1.4rem, 5vw, 3rem);
    }
}

@media (max-width:350px) {
    .effects-overlay-text {
        width: 70px;
    }

    .effects-container {
        padding-bottom: 160%;
    }

    .effects-column {
        left: 47%;
    }

    .effects-first,
    .effects-second,
    .effects-third,
    .effects-note {
        font-size: clamp(8px, 3vw, 24px);
        line-height: clamp(1.2rem, 5vw, 3rem);
    }

    .effects-first-red {
        position: absolute;
        top: 50%;
    }

    .effects-first {
        position: absolute;
        top: 57%;
    }

    .effects-second-red {
        position: absolute;
        top: 80%;
    }

    .effects-second {
        position: absolute;
        top: 87%;
    }

    .effects-third-red {
        position: absolute;
        top: 110%;
    }

    .effects-third {
        position: absolute;
        top: 117%;
    }

    .effects-note {
        position: absolute;
        top: 85%;
    }
}

/* パートナーセクション */
.partner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.background-img {
    display: block;
    line-height: 0;
}

.background-img img {
    display: block;
    width: 100%;
    height: auto;
}

.partner-overlay {
    width: 33%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    right: 12%;
    transform: translateY(-50%);
    z-index: 1;
}

.partner-img {
    width: 100%;
    height: auto;
}

.partner-title,
.partner-text {
    position: absolute;
    left: 19%;
    transform: translateY(-50%);
}

.partner-title {
    top: 27%;
    font-size: clamp(25px, 2.7vw, 40px);
    line-height: clamp(3rem, 4.5vw, 5rem);
    font-weight: 500;
}

.partner-text {
    top: 55%;
    font-size: clamp(18px, 1.8vw, 27px);
    line-height: clamp(2rem, 3.2vw, 2.5rem);
}

@media (max-width: 1200px) {
    .partner-title {
        top: 30%;
        font-size: clamp(22px, 2.5vw, 38px);
    }

    .partner-text {
        top: 57%;
        font-size: clamp(11px, 1.6vw, 18px);
        line-height: clamp(1.4rem, 2.8vw, 2rem);
    }
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }

    .partner-title {
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(12px, 7vw, 35px);
        white-space: nowrap;
        line-height: clamp(2.7rem, 10vw, 3.5rem);
    }

    .partner-text {
        top: 78%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(12px, 3.5vw, 26px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        white-space: nowrap
    }

    .partner-overlay {
        width: 80%;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -65%);
        text-align: center;
    }

    .partner-img {
        width: 100%;
        height: auto;
    }
}


/* howtoセクション */
:root {
    --base-width: 700px;
    --base-width-sp: 392px;
}

/* セクション全体の背景とレイアウト */
.howto-section {
    position: relative;
    background-color: #f0ebde;
    /* padding: 60px 20px; */
    text-align: center;
    max-width: 100%;
}

/* 共通：画像中央揃え */
.center-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.title-howto {
    display: block;
    max-width: calc(var(--base-width) * 1340 / 2227);
    padding-top: 60px;
}

.howto-description,
.howto-note {
    display: block;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    white-space: nowrap;
    font-size: 20px;
    line-height: 2rem;
}

.howto-note {
    padding-top: 540px;
}

/* 単独画像 */
.single-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
}

/* 横並びエリア */
.image-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 0;
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 37%;
}

.img-left {
    width: 59%;
    max-width: 1000px;
    height: auto;
    padding-left: 5%;
}

.img-right {
    width: 100%;
    height: auto;
    padding-right: 5%;
}

@media (max-width: 1200px) {
    .title-howto {
        max-width: 40%;
    }

    .howto-description,
    .howto-note {
        font-size: clamp(14px, 2vw, 20px);
        line-height: clamp(1.4rem, 3.5vw, 2rem);
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }

    .title-howto {
        width: 55%;
        padding-top: 30px;
    }

    .howto-description,
    .howto-note {
        font-size: clamp(12px, 3.5vw, 26px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* .img-right スマホで小さめ＆中央寄せ */
    .img-right {
        width: 85%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding-right: 8%;
        padding-left: 8%;
    }

    .image-row {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        margin-bottom: 50px;
    }

    .img-left {
        width: 85%;
        max-width: none;
        display: block;
        padding-right: 5%;
        padding-left: 5%;
    }

    .image-column {
        width: 100%;
        gap: 30px;
        margin-bottom: 30px;
    }
}

.howto-container {
    position: relative;
    margin: 0 auto;
    text-align: center;
    height: 0;
}

.overlay-text {
    position: absolute;
    width: 250px;
    text-align: center;
}

.overlay-text-left {
    position: absolute;
    width: auto;
    text-align: center;
}

.text-left {
    top: 34.5%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: clamp(11px, 1.6vw, 16px);
    line-height: clamp(1.4rem, 1vw, 2rem);
    letter-spacing: 0em;
    color: #ffffff;
    font-weight: 600;
}

.text-column {
    left: 77.5%;
    transform: translate(-50%, -50%);
    text-align: center;

    height: 90%;
    font-size: 26px;
    line-height: 1.7rem;
    letter-spacing: 0em;
    font-weight: 500;
    white-space: nowrap;
}

.text-top-white {
    position: absolute;
    top: 48%;
    color: #ffffff;
}

.text-top {
    position: absolute;
    top: 68%;
    left: 12%;
}

.text-center {
    position: absolute;
    top: 98%;
    left: 2%;
}

.text-bottom {
    position: absolute;
    top: 134.5%;
    left: 2%;
}

@media (max-width: 1200px) {
    .text-column {
        left: 79%;
        font-size: 24px;
        line-height: 1.9rem;
    }

    .text-top {
        left: 12%;
    }
}

@media (max-width: 1000px) {

    .howto-note {
        padding-top: 56%;
    }
}

@media (max-width: 900px) {
    .text-left {
        top: 33%;
    }

    .text-top {
        left: 12%;
        top: 66%;
    }

    .text-column {
        left: 81%;
        font-size: clamp(20px, 2.3vw, 26px);
        line-height: clamp(2.6rem, 4 - 1.9vw, 1.9rem);
    }

    .text-center {
        left: 4%;
    }

    .text-bottom {
        left: 4%;
    }
}

@media (max-width: 768px) {
    .howto-container {
        padding-bottom: 135%;
    }

    .overlay-text {
        position: absolute;
        text-align: center;
    }

    .text-left {
        top: 74%;
        left: 74.5%;
        transform: translate(-50%, -50%);

        font-size: clamp(12px, 2vw, 16px);
        line-height: clamp(1.4rem, 3.5vw, 2rem);
        letter-spacing: 0em;
        color: #ffffff;
        font-weight: 600;
    }

    .text-column {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;

        font-size: clamp(26px, 4vw, 30px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        letter-spacing: 0em;
        font-weight: 500;
    }

    .text-top-white {
        position: absolute;
        top: 43.5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .text-top {
        position: absolute;
        top: 54%;
        left: 50%;
        transform: translateX(-50%);
    }

    .text-center {
        position: absolute;
        top: 72%;
        left: 50%;
        transform: translateX(-50%);
    }

    .text-bottom {
        position: absolute;
        top: 92.5%;
        left: 50%;
        transform: translateX(-50%);
    }

}

@media (max-width:550px) {
    .howto-container {
        padding-bottom: 140%;
    }

    .text-left {
        top: 75.2%;

        font-size: clamp(8px, 1.9vw, 16px);
        line-height: clamp(1rem, 3.8vw, 2rem);
    }

    .text-column {
        left: 50%;
        transform: translate(-50%, -50%);

        font-size: clamp(22px, 3vw, 25px);
        line-height: clamp(1rem, 6.6vw, 3rem);
        letter-spacing: 0em;
        font-weight: 500;
        white-space: nowrap;
    }
}

@media (max-width:390px) {
    .howto-container {
        padding-bottom: 150%;
    }

    .text-left {
        top: 76.2%;

        font-size: clamp(6px, 2vw, 12px);
        line-height: clamp(0.8rem, 3.6vw, 2rem);
    }

    .text-column {
        font-size: clamp(14px, 4vw, 26px);
        line-height: clamp(1rem, 6.6vw, 3rem);
    }
}

.full-diagram-container {
    position: relative;
    /* 子要素（テキスト）の配置基準点とする */
    margin: 0 auto;
    text-align: center;
    padding-top: 364.48px;
    height: 0;
    max-width: 800px;
}

/* 複雑な図の画像自体 */
.diagram-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    max-width: 100%;
}

/* 吹き出しテキストの共通スタイル */
.speech-bubble {
    position: absolute;
    left: 50%;
    display: flex;
    flex-direction: column;
    font-size: clamp(22px, 1.8vw, 24px);
    line-height: 2.4rem;
}

.left-text {
    top: 43%;
    transform: translate(calc(-260px - 50%), -50%);
}

.right-text {
    position: absolute;
    top: 45%;
    transform: translate(calc(260px - 50%), -50%);
}

@media (max-width: 850px) {
    .full-diagram-container {
        max-width: 90%;
        padding-top: 51%;
    }

    .speech-bubble {
        width: 36%;
        font-size: clamp(12px, 3vw, 20px);
        line-height: 2.5rem;
    }

    .left-text {
        top: 44%;
        transform: translate(calc(-90% - 50%), -50%);
    }

    .right-text {
        top: 32%;
        left: 83%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .speech-bubble {
        font-size: clamp(12px, 3vw, 20px);
        line-height: clamp(1.6rem, 4vw, 2rem);
    }

    .left-text {
        top: 42%;
    }

    .right-text {
        top: 32%;
    }
}

@media (max-width: 500px) {
    .speech-bubble {
        font-size: clamp(8px, 2.8vw, 18px);
        line-height: clamp(1rem, 3.8vw, 2rem);
    }
}

.invitation-title {
    position: absolute;
    left: 52%;
    transform: translate(-50%, -50%);
    top: 36%;
    font-size: clamp(25px, 2.8vw, 40px);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}


.invitation-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

@media (max-width: 1200px) {
    .invitation-title {
        top: 33%;
        font-size: clamp(22px, 2.5vw, 38px);
    }

    .invitation-overlay {
        top: 65%;
        gap: clamp(6px, 3vw, 10px);
    }
}

@media (max-width: 768px) {
    .invitation-title {
        top: 30%;
        font-size: clamp(12px, 5vw, 35px);
    }

    .invitation-overlay {
        top: 60%;
        gap: 0px;
    }
}

/* notice-bar */
.notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 239, 197, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.notice-text {
    font-size: clamp(10px, 2.2vw, 14px);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: normal;
    text-align: left;
    margin: 0;
}

@media (min-width: 769px) {
    .notice-text {
        text-align: center;
        width: 100%;
    }
}


.notice-close {
    background-color: #fff;
    border: none;
    border-radius: 999px;
    font-size: clamp(10px, 2.2vw, 14px);
    cursor: pointer;
    color: #333;
    padding: 10px 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.notice-close:hover {
    background-color: #f5f5f5;
    color: #000;
}

.notice-close:hover {
    color: #000;
}



/* Footer */
footer {
    background: #30373d;
    color: #fff;
    text-align: center;
    margin-top: -1px;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.footer-logo {
    height: 70px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9em;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 15px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 400;
}


@media (max-width: 768px) {
    footer {
        padding: 30px 10px;
        /* SP版の余白を調整 */
        text-align: center;
        /* 全体の中央揃え */
    }

    .footer-content {
        flex-direction: column;
        /* 全体を縦方向に並べる */
        align-items: center;
        /* 中央揃え */
        gap: 15px;
        /* 各要素間の余白 */
    }

    .footer-logo {
        height: 55px;
        /* ロゴのサイズを調整 */
        margin-bottom: 15px;
        /* ロゴの下に余白 */
    }

    .footer-links {
        font-size: 0.8em;
        /* フォントサイズを小さめに調整 */
        line-height: 1.5;
        /* 読みやすさを確保 */
        margin: 15px 0px;
        /* 上下の余白を調整 */
        text-align: center;
        /* テキストを中央揃え */
        display: flex;
        flex-direction: row;
        /* リンクを横並びに */
        flex-wrap: wrap;
        /* 横幅が足りない場合は折り返す */
        gap: 10px;
        /* リンク間のスペースを設定 */
        justify-content: center;
        /* 横方向で中央揃え */
    }

    .footer-links a {
        margin: 0 5px;
        /* リンク間の余白 */
        font-size: 15px;
        /* リンクのフォントサイズを調整 */
    }

    .copyright {
        font-size: 14px;
        /* コピーライトのフォントサイズを調整 */
        margin-top: 10px;
        /* 上部の余白を追加 */
        line-height: 1.5;
        /* 行間を調整 */
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 400;
    }
}