@charset "UTF-8";

/* 新トップページ専用CSS：既存の検索・商品ページのCSSには追記しない */
:root {
    --ikumou-green: #106842;
    --ikumou-text: #111;
    --ikumou-muted: #666;
    --ikumou-footer: #f2f5f6;
}

.ikumou-top {
    min-width: 0;
    margin: 0;
    color: var(--ikumou-text);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/*
 * EC-CUBE既存テーマは #container を860px幅に固定している。
 * 新TOPページ（.ikumou-top を含むページ）に限り、この外枠とメインカラムを全幅にする。
 */
body:has(.ikumou-top) #container {
    width: 100%;
    min-width: 0;
}

body:has(.ikumou-top) #main_column.colnum1 {
    width: 100%;
    margin: 0;
}

body:has(.ikumou-top) #main_column .block_outer {
    padding: 0;
}

.ikumou-top *,
.ikumou-top *::before,
.ikumou-top *::after {
    box-sizing: border-box;
}

.ikumou-top h1,
.ikumou-top h2,
.ikumou-top p {
    margin: 0;
}

.ikumou-top img {
    max-width: 100%;
    height: auto;
}

.ikumou-top__hero {
    height: 523px;
    padding-top: 50px;
    background: #edf8f7 url("../img/ikumou/kv.webp") right center / cover no-repeat;
}

.ikumou-top__inner,
.ikumou-top__cards,
.ikumou-footer__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.ikumou-top__hero .ikumou-top__inner {
    text-align: center;
}

.ikumou-top__brand {
    display: flex;
    align-items: center;
    color: #00550d;
    text-align: left;
}

/* sphone共通CSSの汎用指定を新TOPのロゴ領域へ適用させない。 */
.ikumou-top .ikumou-top__brand {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    clear: none;
    position: static;
    background: transparent;
    text-decoration: none;
}

.ikumou-top .ikumou-top__brand:link,
.ikumou-top .ikumou-top__brand:visited,
.ikumou-top .ikumou-top__brand:hover,
.ikumou-top .ikumou-top__brand:active {
    text-decoration: none !important;
}

.ikumou-top__brand>img {
    width: 74px;
    height: 66px;
    object-fit: contain;
}

.ikumou-top__brand span {
    margin-left: 12px;
    line-height: 1;
}

.ikumou-top__brand small,
.ikumou-top__brand strong {
    display: block;
}

.ikumou-top__brand small {
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

.ikumou-top__brand strong {
    margin-top: 7px;
    color: #00550d;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .04em;
}

.ikumou-top .ikumou-top__lead {
    display: inline-block;
    margin-top: 54px;
    text-align: left;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, .95),
         1px -1px 0 rgba(255, 255, 255, .95),
        -1px  1px 0 rgba(255, 255, 255, .95),
         1px  1px 0 rgba(255, 255, 255, .95),
         0 0 4px rgba(255, 255, 255, .9);
}

.ikumou-top__lead-notice {
    margin-top: 1.7em !important;
}

.ikumou-top__actions {
    margin-top: -99px;
    padding-bottom: 80px;
}

.ikumou-top__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.ikumou-card {
    min-width: 0;
    min-height: 410px;
    padding: 32px 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.ikumou-card__heading {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 16px;
    min-height: 101px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d2d2d2;
}

.ikumou-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #e3f3e9;
}

.ikumou-card__icon img {
    width: 29px;
    height: auto;
}

.ikumou-card__heading h2 {
    color: #005b38;
    font-size: 24px;
    line-height: 1.35;
}

.ikumou-card__heading p {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.ikumou-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding-top: 20px;
}

.ikumou-form__row {
    display: grid;
    grid-template-columns: 138px 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.ikumou-form label {
    font-weight: 700;
    font-size: 16px;
}

.ikumou-top .ikumou-form input[type="text"],
.ikumou-top .ikumou-form input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    font: inherit;
}

.ikumou-form input::placeholder {
    color: #aebbc6;
}

.ikumou-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 5px;
    background: var(--ikumou-green);
    color: #fff;
    font: 700 20px/1.2 "Noto Sans JP", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* sphoneのjQuery Mobileによるボタンのグレー背景・影を解除する。 */
.ikumou-top button.ikumou-button {
    border: 0 !important;
    background: var(--ikumou-green) !important;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* EC-CUBE既存テーマのリンク色・hover下線を、新TOPページのボタンへ適用させない。 */
.ikumou-top a.ikumou-button:link,
.ikumou-top a.ikumou-button:visited,
.ikumou-top a.ikumou-button:hover,
.ikumou-top a.ikumou-button:active {
    color: #fff !important;
    text-decoration: none !important;
}

.ikumou-button:hover {
    background-color: #0b5837;
    box-shadow: 0 7px 14px rgba(16, 104, 66, .25);
    transform: translateY(-3px);
}

.ikumou-button__arrow {
    width: 9px;
    height: 14px;
    margin-left: 12px;
    flex: 0 0 auto;
}

.ikumou-form__note {
    margin-top: 0;
    color: #999;
    font-size: 14px;
}

/* TOPお問い合わせフォームのエラー・完了表示 */
.ikumou-form__error {
    margin: 0;
    color: #d0021b;
    font-size: 14px;
}

.ikumou-form__row .ikumou-form__error {
    grid-column: 2;
    margin-top: 6px;
}

.ikumou-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ikumou-form__complete {
    margin-top: 20px;
    padding: 24px 20px;
    border-radius: 5px;
    background: #eef6f1;
    text-align: center;
    line-height: 1.8;
}

.ikumou-form__complete-title {
    margin: 0 0 8px;
    color: var(--ikumou-green);
    font-weight: 700;
    font-size: 18px;
}

.ikumou-card--existing {
    display: flex;
    flex-direction: column;
    background: #fff url("../img/ikumou/top_bg.jpg") center / cover no-repeat;
}

.ikumou-card--existing .ikumou-button {
    width: 370px;
    max-width: 100%;
    margin: 85px 0 105px;
}

@media (prefers-reduced-motion: reduce) {
    .ikumou-button {
        transition: none;
    }
}

.ikumou-footer {
    padding: 24px 0 160px;
    background: var(--ikumou-footer);
    color: var(--ikumou-muted);
    font-size: 14px;
}

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

.ikumou-footer nav {
    display: flex;
    gap: 33px;
}

.ikumou-footer a,
.ikumou-footer a:link,
.ikumou-footer a:visited,
.ikumou-footer a:hover,
.ikumou-footer a:active {
    color: var(--ikumou-muted) !important;
    font-weight: 400;
    text-decoration: none;
}

.ikumou-footer a:hover {
    text-decoration: underline;
}

.ikumou-footer small {
    font-size: 12px;
}

/* PCではコンテンツ量が少ない場合も、フッターを画面下端へ配置する。 */
@media (min-width: 768px) {
    .ikumou-top {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .ikumou-top>main {
        flex: 1 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ikumou-top .ikumou-top__lead {
        max-width: 620px;
    }

    .ikumou-top__cards {
        grid-template-columns: 1fr;
        width: min(580px, calc(100% - 40px));
        margin-right: auto;
        margin-left: auto;
    }
}

.for-pc {
    display: block;
}

.for-sp {
    display: none;
}

@media (max-width: 767px) {
    .for-pc {
        display: none;
    }

    .for-sp {
        display: block;
    }

    .ikumou-top__hero {
        height: auto;
        min-height: 400px;
        padding-top: 24px;
        background-image: url("../img/ikumou/kv-sp-v2.png");
        background-position: center;
    }

    .ikumou-top__inner,
    .ikumou-top__cards,
    .ikumou-footer__inner {
        width: min(100% - 32px, 540px);
    }

    .ikumou-top__brand>img {
        width: 57px;
        height: 51px;
    }

    .ikumou-top__brand span {
        margin-left: 9px;
    }

    .ikumou-top__brand small {
        font-size: 10px;
    }

    .ikumou-top__brand strong {
        margin-top: 5px;
        font-size: 27px;
    }

    .ikumou-top .ikumou-top__lead {
        display: block;
        width: auto;
        margin: 50px 0 36px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.65;
    }

    .ikumou-top__lead br {
        display: none;
    }

    .ikumou-top__actions {
        margin-top: -20px;
        padding-bottom: 40px;
    }

    .ikumou-top__cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ikumou-card {
        min-height: 0;
        padding: 22px 16px;
    }

    .ikumou-card__heading {
        grid-template-columns: 54px 1fr;
        gap: 12px;
        min-height: 0;
    }

    .ikumou-card__icon {
        width: 54px;
        height: 54px;
    }

    .ikumou-card__heading h2 {
        font-size: 20px;
    }

    .ikumou-card__heading p {
        font-size: 14px;
    }

    .ikumou-form__row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ikumou-form__row .ikumou-form__error {
        grid-column: 1;
        margin-top: 0;
    }

    .ikumou-button {
        font-size: 18px;
    }

    .ikumou-card--existing .ikumou-button {
        width: 100%;
        margin: 35px 0 0;
    }

    .ikumou-footer {
        padding: 24px 0 48px;
    }

    .ikumou-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .ikumou-footer nav {
        flex-wrap: wrap;
        gap: 10px 24px;
    }

    .ikumou-footer small {
        font-size: 10px;
    }
}
