/* Reset & Basic Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #555;
    /* 少し柔らかいテキスト色 */
    background-color: #fdfaff;
    /* ほんのりピンクがかった白 */
    font-size: 16px;
}

a {
    color: #e91e63;
    /* アクセントのピンク */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ad1457;
    /* 少し濃いピンク */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-style: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    color: #4a4a4a;
    /* 見出しの色 */
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

.container {
    max-width: 1100px;
    /* 少し広めに */
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.site-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#headernav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
}

#headernav nav ul {
    display: flex;
}

#headernav nav li {
    margin-left: 25px;
}

#headernav nav a {
    color: #555;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    font-size: 0.95rem;
}

#headernav nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e91e63;
    transition: width 0.3s ease;
}

#headernav nav a:hover::after,
#headernav nav a.active::after {
    width: 100%;
}

/* ハンバーガーメニューアイコン */
#menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

#menu-icon.active .menu-icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-icon.active .menu-icon-bar:nth-child(2) {
    opacity: 0;
}

#menu-icon.active .menu-icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- ページヘッダー --- */
.page-header {
    background: linear-gradient(135deg, #fce4ec, #e1f5fe);
    /* ピンクから水色へ */
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #e91e63;
    /* ピンク */
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-flex;
    /* アイコンとテキストを横並び */
    align-items: center;
}

.page-header h1 .icon-pink {
    margin-right: 15px;
    font-size: 1em;
    /* h1と同じサイズ感に */
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

/* --- メインコンテンツ --- */
.main-content {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #4a4a4a;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #f8bbd0, #bbdefb);
    /* ピンクから水色へ */
    border-radius: 2px;
}

/* 説明文セクション */
.description-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.description-section p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.price-info {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e91e63;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    background-color: #fce4ec;
    /* 薄いピンク背景 */
    padding: 8px 15px;
    border-radius: 20px;
}

.price-info i {
    margin-right: 8px;
}

/* 購入方法セクション */
.how-to-buy-section {
    margin-bottom: 50px;
}

.steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    position: relative;
    max-width: 700px;
    /* 中央揃えのため幅設定 */
    margin: 40px auto 0 auto;
}

/* 縦線 */
.steps::before {
    content: '';
    position: absolute;
    left: 25px;
    /* アイコンの中心 */
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(#f8bbd0, #bbdefb);
    /* ピンクから水色へ */
    border-radius: 2px;
    z-index: 1;
}

.steps li {
    display: flex;
    align-items: flex-start;
    /* アイコンとテキストの上端揃え */
    margin-bottom: 30px;
    position: relative;
    padding-left: 70px;
    /* アイコンと線のスペース */
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 3px solid #e91e63;
    /* ピンクの枠線 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #e91e63;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    /* 線より手前 */
}

.steps li:nth-child(even) .step-icon {
    border-color: #64b5f6;
    /* 水色 */
    color: #64b5f6;
}

.step-content h3 {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-link {
    font-weight: 500;
    text-decoration: underline;
}

/* 写真ギャラリーセクション */
.gallery-section {
    margin-bottom: 50px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* レスポンシブなグリッド */
    gap: 20px;
    /* グリッド間の隙間 */
}

.photo-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* 画像の角丸を適用 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* キャプション用 */
}

.photo-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.photo-item img {
    width: 100%;
    height: 180px;
    /* 高さを固定 */
    object-fit: cover;
    /* 画像をトリミングして表示 */
    aspect-ratio: 4 / 3;
    /* アスペクト比を維持 */
}

.photo-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 10px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    /* 初期状態は非表示 */
    transition: opacity 0.3s ease;
}

.photo-item:hover figcaption {
    opacity: 1;
    /* ホバー時に表示 */
}

/* 写真提供者募集セクション */
.contributor-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #e1f5fe;
    /* 薄い水色背景 */
    border-radius: 15px;
    margin-bottom: 40px;
}

.contributor-section p {
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.cta-button-container {
    margin-top: 20px;
}

/* --- フッターナビゲーションエリア --- */
#footer_navi {
    background-color: #f8f8f8;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.daisosha_service h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #555;
}

.service-button-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.service-button-list li {
    flex-basis: calc(33.333% - 15px);
    /* 3列ベース */
    min-width: 220px;
    /* 最小幅 */
}

.cta-button-service {
    display: block;
    padding: 12px 20px;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eee;
}

.cta-button-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    color: #e91e63;
    border-color: #fce4ec;
}

.cta-button-service .button-icon {
    margin-right: 8px;
}

.cta-button-service .arrow {
    margin-left: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.cta-button-service:hover .arrow {
    transform: translateX(4px);
}

/* --- フッター --- */
#footer_wrapper {
    background-color: #4a4a4a;
    /* 濃いグレー */
    color: #ccc;
    padding: 30px 0;
}

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

#footer li {
    margin: 5px 15px;
}

#footer a {
    color: #eee;
    font-size: 0.9rem;
}

#footer a:hover {
    color: #fff;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 15px;
    color: #aaa;
}

.copyright a {
    color: #ccc;
    font-weight: bold;
}

.copyright a:hover {
    color: #fff;
}

#footer img[alt="正当なCSSです!"] {
    opacity: 0.7;
    margin-top: 10px;
}

/* --- ページトップへ戻るボタン --- */
.page-top {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    /* アイコン中央揃え */
    align-items: center;
    justify-content: center;
}

.page-top:hover {
    background-color: #ad1457;
    transform: scale(1.1);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    #headernav {
        position: relative;
        /* ハンバーガーメニュー用 */
    }

    #menu-icon {
        display: block;
        /* ハンバーガー表示 */
    }

    #headernav nav {
        display: none;
        /* メニュー非表示 */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    #headernav nav.active {
        /* JSで付与するクラス */
        display: block;
    }

    #headernav nav ul {
        flex-direction: column;
        align-items: center;
    }

    #headernav nav li {
        margin: 10px 0;
        margin-left: 0;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .photo-item img {
        height: 120px;
    }

    .steps::before {
        left: 20px;
        /* アイコンサイズ縮小に合わせる */
    }

    .steps li {
        padding-left: 60px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .service-button-list li {
        flex-basis: calc(50% - 10px);
        /* 2列ベース */
    }

    #footer ul {
        flex-direction: column;
    }

    #footer li {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        /* スマホでは2列 */
        gap: 10px;
    }

    .photo-item img {
        height: 100px;
    }

    .photo-item figcaption {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .steps li {
        align-items: center;
        /* スマホでは中央揃え */
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .service-button-list li {
        flex-basis: 100%;
        /* 1列 */
    }
}

/* 共通CTAボタン */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.cta-button.primary {
    background-color: #e91e63;
    color: #fff;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

.cta-button.primary:hover {
    background-color: #ad1457;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.4);
    color: #fff;
    text-decoration: none;
}

.cta-button.secondary {
    background-color: #fff;
    color: #e91e63;
    border: 2px solid #e91e63;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta-button.secondary:hover {
    background-color: #fce4ec;
    /* 薄いピンク */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #ad1457;
    text-decoration: none;
}

.cta-button i {
    margin-left: 8px;
}