:root {
    --main-green: oklch(0.52 0.09 145); /* セージグリーン */
    --accent-terracotta: #c36a4d; /* テラコッタ */
    --bg-paper: #f9f7f2; /* オフホワイト */
    --text-color: oklch(0.38 0.025 60);
    --font-min: Shippori Mincho, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 70px; /* ヘッダー固定用 */
    background-color: var(--bg-paper);
    color: var(--text-color);
    font-family: "IBM Plex Sans JP", sans-serif;
    line-height: 1.8;
    font-size: 17px;
}

em{
    font-style: normal;
    font-weight: bold;
}

/* ヘッダーメニュー */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(249, 247, 242, 0.95);
    border-bottom: 1px solid rgba(112, 130, 113, 0.2);
    z-index: 1000;
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    line-height: 1.2;
}

.logo {
    font-family: var(--font-min);
    font-weight: bold;
    color: var(--main-green);
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.global-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* 追従送信ボタン */
.floating-btn {
    font-family: var(--font-min);
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-terracotta);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s;
}
.floating-btn:hover {
    background: var(--main-green);
    transform: translateY(-5px);
}

.btn a{
    font-family: var(--font-min);
    display: table;
    margin: 25px auto;
    background: var(--accent-terracotta);
    color: #fff;
    padding: 25px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}
.btn a:hover{
    background: var(--main-green);
    transform: translateY(-5px);
}

.btn_w a{
    min-width: 200px;
    color: var(--main-green);
    background: #fff;
    border: 1px solid var(--main-green);
}
.btn_w a:hover{
    color: #fff;
    background: var(--main-green);
}

.accent-font {
    color: var(--accent-terracotta);
}

.hero {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    background-image: url(https://asanen.co.jp/wptest/wp-content/themes/asanen/images/top/bg5.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.hero::after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-paper);
    opacity: 0.85;
}
.hero-inner{
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--main-green);
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.main-copy {
    font-family: var(--font-min);
    color: var(--main-green);
    font-size: 4rem;
    margin-bottom: 20px;
}
.td-underline{
    text-decoration: underline;
}

.section-title {
    font-family: var(--font-min);
    text-align: center;
    margin: 0 auto 80px;
    font-size: 2rem;
    line-height: 1.2;
    position: relative;
}
.section-title-sm{
    text-align: center;
    color: var(--main-green);
    letter-spacing: .1em;
    margin: 60px 0 10px;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--main-green);
    margin: 20px auto 0;
}


section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.prize-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border: 1px solid #e0ddd5;
}

.notes-list{
    display: flex;
    flex-direction: column;
}
.notes-list > div{
    display: flex;
    gap: 0 15px;
    align-items: center;
}
.notes-list dt{
    padding: 20px 15px;
    text-align: center;
    width: 20%;
    border-bottom: 1px solid #708271;
}
.notes-list dd{
    padding: 20px 0;
    width: calc(80% - 15px);
    margin-inline-start: 0;
    border-bottom: 1px solid #e0ddd5;
}
.notes-list > div:first-of-type dt{
    border-top: 1px solid #708271;
}
.notes-list > div:first-of-type dd{
    border-top: 1px solid #e0ddd5;
}
.notes-title{
    font-size: 1.5rem;
}

details {
    background: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid #e0ddd5;
}
summary {
    cursor: pointer;
    font-weight: bold;
}

footer {
    text-align: center;
}
footer p{
    margin: 0;
}
.footer-section{
    background-color: var(--main-green);
    color: oklch(0.97 0.008 80 / 0.8);
    padding: 80px 5%;
    position: relative;
}
.footer-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-size: cover;
    background-position: center;
    opacity: .1;
}
.footer-inner{
    display: flex;
    flex-direction: column;
    gap: 10px 0;
    position: relative;
    z-index: 2;
}
.footer-inner h2{
    color: oklch(0.97 0.008 80);
    font-size: 3rem;
    line-height: 1.5;
    font-family: var(--font-min);
    margin: 0;
}
footer .btn a{
    background: #fff;
    color: var(--main-green);
}
footer .btn a:hover{
    background: oklch(0.97 0.008 80);
}
.footer-copy{
    padding: 40px 0;
    font-size: 0.8rem;
    border-top: 1px solid #e0ddd5;
}

/* ステップセクションの調整 */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    flex: 1;
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed var(--main-green); /* 便箋のようなステッチ感 */
    position: relative;
    box-shadow: 0 10px 20px rgba(112, 130, 113, 0.05);
}

/* 中央のカードを少し強調 */
.step-card.highlight {
    border: 2px solid var(--main-green);
    transform: scale(1.05);
    background-color: rgba(112, 130, 113, 0.03);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-green);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.step-label {
    font-family: var(--font-min);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--main-green);
    margin-bottom: 10px;
    font-weight: bold;
}

.step-desc {
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.step-arrow {
    margin-top: 1em;
    font-size: 3rem;
    color: var(--main-green);
    font-weight: bold;
}

.step-online{
    display: flex;
    justify-content: center;
    margin: 60px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
}

.person{
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 80px 0;
}
.person-wrap{
    width: 55%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
}
.person-img{
    width: 45%;
    display: flex;
}
.overlap-section {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    background: #f9f7f2;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.overlap-img {
    position: absolute;
    width: 80%;
    left: 50%; /* 左右中央寄せのため */
    transform: translateX(-50%) scale(0.8); /* X軸は中央、Scaleは0.8から開始 */
    top: 5%;
}

.overlap-img picture{
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
}
.overlap-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-1{
    z-index: 2;
}
.img-2 {
    z-index: 1;
    /* 初期状態：1番目と同じ高さ(top)に配置しつつ、下(Y軸100%)へ逃がしておく */
    transform: translateX(-50%) scale(0.7) translateY(100%); 
}

/* レスポンシブ対応：スマホでは縦並び */
@media (max-width: 768px) {
    .global-nav{
        position: absolute;
    }
    .nav-inner{
        justify-content: center;
    }
    .global-nav ul{
        display: none;
    }

    .main-copy{
        font-size: 3rem;
        line-height: 1.5;
    }
    .sub-copy{
        text-align: left;
    }

    section{
        padding: 40px 5%;
    }

    .person{
        flex-direction: column-reverse;
        gap: 40px 0;
    }
    .person-wrap,
    .person-img{
        width: 100%;
    }
    .overlap-section{
        height: 50svh;
    }

    .step-container {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .step-card.highlight {
        transform: scale(1);
    }

    .notes-list{
        gap: 20px 0;
    }
    .notes-list > div{
        flex-direction: column;
    }
    .notes-list dt,
    .notes-list dd{
        width: 100%;
        box-sizing: border-box;
    }
    .notes-list dt{
        border-top: 1px solid #708271;
        border-bottom:none;
        padding: 20px 0 0 0;
        font-weight: bold;
        text-align: left;
    }
    .notes-list > div:first-of-type dd{
        border-top: none;
    }
    .notes-list dd{
        border-bottom: none;
    }
    .notes-list > div:last-of-type{
        border-bottom: 1px solid #708271;
    }

    .footer-inner h2{
        font-size: 2rem;
    }
}
