@charset "utf-8";

/* ============================================
   共通設定
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* スライダーのガタつき防止 */
.ichi1-slider-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ichi1-slider-wrapper[style] {
    height: auto !important;
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.fade-in-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ★デザイン刷新：雲のようなボタン（共通）
   ============================================ */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #296A65;
    background-color: #fff;
    /* 雲のような淡いムラを作るグラデーション */
    background-image:
        radial-gradient(circle at 30% 20%, rgba(200, 235, 225, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(200, 235, 225, 0.4) 0%, transparent 50%),
        linear-gradient(to bottom, #fff, #f0fdf9);

    /* 雲のような有機的な形 */
    border-radius: 93% 54% 90% 46% / 58% 86% 67% 41%;

    /* ふんわり浮く影 */
    box-shadow: 0 5px 15px rgba(41, 106, 101, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(41, 106, 101, 0.25);
    background-color: #e6f7f2;
    border-radius: 54% 93% 46% 90% / 86% 58% 41% 67%;
    color: #000;
}

/* トップへ戻るボタン */
#back-to-top-home {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #296A65;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top-home::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 5px;
}

#back-to-top-home.show {
    opacity: 0.8;
}

#back-to-top-home:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ============================================
   SP版（スマートフォン用） max-width: 768px
   ============================================ */
@media screen and (max-width: 768px) {
    body {
        color: #333;
        font-family: "Noto Sans JP", sans-serif;
        font-size: 16px;
        line-height: 1.8;
        overflow-x: hidden;
        padding-top: 80px;
    }

    p {
        font-size: 14px;
    }

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

    .sp-only {
        display: inline;
    }

    /* ヘッダー */
    .header {
        width: 100%;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .header__logo img {
        height: 50px;
        width: auto;
        padding: 10px 0;
    }

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

    /* SPメニュー */
    .header__list {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: center;
    }

    .header__list.active {
        display: flex;
    }

    .header__item a {
        font-size: 16px;
        color: #333;
        font-weight: 600;
        display: block;
        padding: 10px;
    }

    /* SP版ボタン調整 */
    .header .btn {
        width: 80%;
        margin: 10px auto;
        padding: 12px 0;
        font-size: 14px;
        border-radius: 50px;
    }

    .hero-cta .btn,
    .btn-container .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
        padding: 16px 0;
        font-size: 16px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #333;
    }

    /* ★修正1：メインビジュアルの高さを抑制（高すぎ防止） */
    .mv {
        position: relative;
        width: 100%;
        height: 55vh;
        /* 80vhから変更：スマホで見やすい高さに */
        min-height: 350px;
        /* 小さすぎ防止 */
        overflow: hidden;
    }

    .mv__inner,
    .mv__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .mv__inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mv__overlay {
        background: linear-gradient(135deg, rgba(0, 128, 0, 0.1), rgba(128, 64, 64, 0.1));
    }

    .mv__middle__inner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
    }

    .catchphrase p {
        font-size: 13px;
        /* 少し小さくして改行崩れ防止 */
        line-height: 1.8;
        width: 100%;
        letter-spacing: 0.05em;
        color: #fff;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        margin: 0.3em 0;
    }

    /* ★修正2：セクションの余白を縮小（間延び解消） */
    .Products,
    .About,
    .Flow {
        padding: 40px 0;
        /* 60pxから変更 */
    }

    .Products,
    .Flow,
    main {
        background-color: #f3e8e7;
    }

    .About {
        background-color: #fff;
    }

    .section__title {
        text-align: center;
        font-size: 24px;
        /* 少し小さく */
        margin-bottom: 10px;
        color: #333;
    }

    .section__subtitle {
        text-align: center;
        margin-bottom: 25px;
        /* 40pxから変更：間隔を締める */
        font-size: 13px;
        color: #296A65;
        letter-spacing: 0.1em;
    }

    .note-text {
        font-size: 12px;
        margin-top: 10px;
        line-height: 1.5;
        text-align: center;
    }

    /* About */
    .About__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .About__image img {
        width: 120px;
    }

    .About__textContent p {
        text-align: left;
        padding: 0 10px;
    }

    /* Flow */
    .Flow__title {
        text-align: center;
        margin-bottom: 30px;
        font-size: 18px;
    }

    .Flow__list {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        max-width: 700px;
    }

    .Flow__list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 1.5em;
        line-height: 1.6;
        font-size: 14px;
    }

    .step-badge {
        background: #fff;
        color: #296A65;
        font-weight: bold;
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .step-text {
        flex: 1;
    }

    .Flow__note {
        margin-top: 20px;
        font-size: 12px;
    }

    /* スライダー（SP用） */
    .ichi1-slider img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.5s;
    }

    .ichi1-slider img.active {
        opacity: 1;
        z-index: 2;
    }

    .ichi1-thumbnails-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 15px 0;
    }

    .ichi1-thumbnails {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ichi1-thumbnails img.thumb {
        width: 60px;
        height: auto;
        opacity: 0.5;
        border-radius: 4px;
    }

    .ichi1-thumbnails img.thumb.active {
        opacity: 1;
        border: 2px solid #296A65;
    }

    .thumb-nav {
        background: rgba(0, 0, 0, 0.2);
        color: #fff;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .slider-caption {
        text-align: center;
        margin-top: 10px;
    }

    .slide-title {
        font-size: 16px;
        font-weight: bold;
    }

    .slide-sub {
        font-size: 13px;
        color: #666;
    }

    .thumb-nav {
        display: none;
    }

    /* フッター */
    footer .container {
        padding: 0 10px;
    }

    /* ★修正3：フッター規約リンクの整列（HTMLのstyleを強制上書きして整列） */
    footer .container ul[style] {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px 15px !important;
        /* 上下10px, 左右15px */
        margin-bottom: 20px !important;
    }

    footer .container ul li a {
        font-size: 11px;
        color: #555;
        text-decoration: underline;
    }

    /* ★修正4：コピーライトの乱れ修正（縦に積んでスッキリさせる） */
    .copy {
        background-color: #fff;
        padding: 20px 10px;
        color: #666;
    }

    .copy-inner {
        width: 100%;
        display: flex;
        flex-direction: column;
        /* 縦並びにする */
        align-items: center;
        gap: 5px;
        /* 上下の間隔 */
    }

    .copy-inner p {
        font-size: 11px;
        line-height: 1.4;
        margin: 0;
        white-space: normal;
        /* 折り返し許可 */
    }
}


/* ============================================
   PC版（デスクトップ用） min-width: 769px
   ============================================ */
@media screen and (min-width: 769px) {
    body {
        color: #333;
        font-family: "Noto Sans JP", sans-serif;
        font-size: 16px;
        line-height: 2.0;
        padding-top: 0;
    }

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

    .sp-only {
        display: none;
    }

    /* ヘッダー */
    .header {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        background-color: transparent;
        padding: 20px 0;
        transition: all 0.3s ease;
    }

    .header.scrolled {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

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

    .header__logo img {
        height: 60px;
        transition: height 0.3s;
    }

    .header.scrolled .header__logo img {
        height: 45px;
    }

    .header__list {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .header__item a {
        font-size: 16px;
        color: #333;
        transition: color 0.3s;
        text-decoration: none;
        font-weight: 500;
    }

    .header__item a:hover {
        color: #296A65;
    }

    /* PCヘッダーボタン */
    .header .btn.header-btn {
        font-size: 14px;
        padding: 12px 30px;
        border-radius: 50px;
        background-image: none;
        background-color: #296A65;
        color: #fff;
        box-shadow: none;
    }

    .header .btn.header-btn:hover {
        background-color: #fff;
        color: #296A65;
        border: 1px solid #296A65;
        transform: translateY(-2px);
    }

    .hamburger {
        display: none;
    }

    /* メインビジュアル */
    .mv {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .mv__inner,
    .mv__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .mv__inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mv__overlay {
        background: linear-gradient(135deg, rgba(41, 106, 101, 0.15), rgba(153, 102, 102, 0.15));
    }

    .mv__middle__inner {
        position: absolute;
        bottom: 120px;
        left: 10%;
        text-align: left;
    }

    .catchphrase p {
        margin: 0.6em 0;
        font-weight: 600;
        color: #fff;
        font-size: 1.6rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* セクション余白調整 */
    .Products,
    .About,
    .Flow {
        padding: 100px 0;
    }

    .Products,
    .Flow,
    main {
        background-color: #f3e8e7;
    }

    .About {
        background-color: #fff;
    }

    .section__title {
        text-align: center;
        font-size: 36px;
        margin-bottom: 10px;
        letter-spacing: 0.05em;
    }

    .section__subtitle {
        text-align: center;
        margin-bottom: 70px;
        font-size: 16px;
        color: #296A65;
        letter-spacing: 0.2em;
    }

    /* PC版ボタン調整 */
    .hero-cta .btn,
    .btn-container .btn {
        font-size: 18px;
        padding: 20px 80px;
        margin-top: 20px;
    }

    .note-text {
        text-align: center;
        font-size: 13px;
        margin-top: 15px;
        color: #666;
    }

    /* About */
    .About__item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
    }

    .About__image img {
        width: 220px;
    }

    .About__textContent {
        max-width: 500px;
    }

    .About__textContent p {
        margin-bottom: 20px;
    }

    /* Flow */
    .Flow__title {
        text-align: center;
        font-size: 24px;
        margin-bottom: 50px;
        color: #296A65;
    }

    .Flow__list {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        max-width: 700px;
    }

    .Flow__list li {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 2em;
        line-height: 1.6;
        font-size: 16px;
    }

    /* バッジ */
    .step-badge {
        background: #fff;
        color: #296A65;
        font-weight: bold;
        font-size: 14px;
        padding: 4px 10px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .step-text {
        flex: 1;
    }

    .Flow__note {
        text-align: center;
        margin-top: 40px;
        color: #666;
    }

    .btn-container {
        text-align: center;
        margin-top: 40px;
    }

    /* スライダー（PC用） */
    .ichi1-slider img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.8s;
    }

    .ichi1-slider img.active {
        opacity: 1;
        z-index: 2;
    }

    .ichi1-thumbnails-wrapper {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
    }

    .ichi1-thumbnails {
        display: flex;
        gap: 15px;
    }

    .ichi1-thumbnails img.thumb {
        width: 100px;
        opacity: 0.6;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .ichi1-thumbnails img.thumb:hover,
    .ichi1-thumbnails img.thumb.active {
        opacity: 1;
    }

    .thumb-nav {
        background: rgba(0, 0, 0, 0.1);
        color: #fff;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        transition: background 0.3s;
    }

    .thumb-nav:hover {
        background: rgba(0, 0, 0, 0.3);
    }

    .slider-caption {
        text-align: center;
        margin: 20px 0;
    }

    .slide-title {
        font-size: 22px;
        font-weight: bold;
    }

    .slide-sub {
        font-size: 16px;
        color: #666;
    }

    /* フッター */
    .copy {
        height: 80px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        background-color: #fff;
        padding-right: 50px;
        font-size: 13px;
        color: #666;
    }

    .copy-inner {
        display: flex;
        gap: 20px;
    }
}