@charset "UTF-8";

/* トップページ専用CSS */

/* ========================================
   OUR SERVICE
======================================== */

.service-label {
    margin-bottom: 12px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

.service-heading {
    margin: 0 0 20px;
    color: #222;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.service-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 2;
    text-align: center;
}

/* サービスカード：PCでは4列 */
.service-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* カードをゆっくり表示 */
.service-card {
    display: block;
    min-width: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* カードを順番に表示 */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.25s; }
.service-card:nth-child(3) { transition-delay: 0.4s; }
.service-card:nth-child(4) { transition-delay: 0.55s; }

/* アイコン */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eef5ff;
    color: #3978c8;
    font-size: 27px;
}

/* カードの見出しと文章 */
.service-card h3 {
    margin: 0 0 14px;
    color: #102c40;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.service-card p {
    margin: 0;
    color: #294459;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    overflow-wrap: anywhere;
}

/* 独自セクション内の幅計算を安定させる */
.modesta-about *,
.modesta-process *,
.modesta-contact * {
    box-sizing: border-box;
}

/* ========================================
   ABOUT US - 選ばれる理由
======================================== */

.modesta-about {
    box-sizing: border-box;
    overflow: hidden;
    padding: 64px 24px;
    background: #f1f8fc;
}

.modesta-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    max-width: 1200px;
    margin: 0 auto;
}

.modesta-about__label {
    margin: 0 0 12px;
    color: #008fe0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.modesta-about__heading {
    margin: 0 0 16px;
    color: #102c40;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
}

.modesta-about__description {
    margin: 0 0 18px;
    color: #294459;
    font-size: 13px;
    line-height: 1.9;
}

/* チェックリスト */
.modesta-about__list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.modesta-about__list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 24px;
    color: #294459;
    font-size: 12px;
    line-height: 1.7;
}

.modesta-about__list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #078fdf;
    color: #fff;
    content: "✓";
    font-size: 10px;
    font-weight: 700;
}

/* 詳細ボタン */
.modesta-about__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 20px;
    border: 1px solid #078fdf;
    border-radius: 4px;
    background: transparent;
    color: #078fdf;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.modesta-about__button:hover {
    transform: translateY(-2px);
    background: #078fdf;
    color: #fff;
}

.modesta-about__button span {
    font-size: 22px;
    line-height: 1;
}

/* 中央の写真 */
.modesta-about__photo {
    width: 100%;
    min-width: 0;
}

.modesta-about__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    object-fit: cover;
}

/* 右側のメッセージ */
.modesta-about__message h3 {
    margin: 0 0 20px;
    color: #102c40;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}

.modesta-about__message p {
    margin: 0 0 12px;
    color: #294459;
    font-size: 12px;
    line-height: 2;
}

/* ABOUT US：スクロール時の表示 */
.modesta-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.modesta-reveal--left {
    transform: translateX(-30px);
}

.modesta-reveal--center {
    transform: translateY(24px);
}

.modesta-reveal--right {
    transform: translateX(30px);
}

.modesta-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット */
@media (max-width: 1000px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modesta-about {
        padding: 52px 24px;
    }

    .modesta-about__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .modesta-about__message {
        grid-column: 1 / -1;
        max-width: 650px;
        margin: 0 auto;
    }

    .modesta-about__message h3 {
        font-size: 21px;
    }
}

/* スマートフォン */
@media (max-width: 600px) {
    .service-heading {
        font-size: 26px;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 30px;
        padding: 0 16px;
    }

    .modesta-about {
        padding: 42px 20px;
    }

    .modesta-about__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .modesta-about__heading {
        font-size: 25px;
    }

    .modesta-about__photo {
        grid-row: 2;
    }

    .modesta-about__message {
        grid-column: auto;
    }

    .modesta-about__message h3 {
        font-size: 20px;
    }

    .modesta-about__description,
    .modesta-about__message p {
        font-size: 13px;
    }
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card.is-visible,
    .modesta-reveal,
    .modesta-reveal.is-visible,
    .process-reveal,
    .process-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .modesta-about__button {
        transition: none;
    }
}


/* =========================
   制作の流れ
========================= */

.modesta-process {
    box-sizing: border-box;
    width: 100%;
    padding: 45px 24px 80px;
    background: #f3f8fc;
    color: #263849;
    overflow: hidden;
}

.modesta-process__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.modesta-process__heading {
    text-align: center;
    margin-bottom: 50px;
}

.modesta-process__label {
    margin: 0 0 12px;
    color: #5a9acb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.modesta-process__heading h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: 2px;
}

.modesta-process__lead {
    margin: 0;
    color: #687887;
    font-size: 15px;
    line-height: 1.9;
}

.modesta-process__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 28px;
    position: relative;
}

.modesta-process__item {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    padding: 38px 26px 32px;
    background: #fff;
    border: 1px solid #e2edf5;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(48, 89, 120, 0.05);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

/* スクロール時の表示 */
.process-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 工程カードを順番に表示 */
.modesta-process__item:nth-child(1) { transition-delay: 0.05s; }
.modesta-process__item:nth-child(2) { transition-delay: 0.15s; }
.modesta-process__item:nth-child(3) { transition-delay: 0.25s; }
.modesta-process__item:nth-child(4) { transition-delay: 0.35s; }
.modesta-process__item:nth-child(5) { transition-delay: 0.45s; }
.modesta-process__item:nth-child(6) { transition-delay: 0.55s; }

.modesta-process__item:hover {
    box-shadow: 0 14px 34px rgba(48, 89, 120, 0.12);
}

.modesta-process__number {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    border-radius: 18px;
    background: #dceefa;
    color: #397eae;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.modesta-process__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #edf6fc;
    color: #5797c5;
    font-size: 30px;
}

.modesta-process__item h3 {
    margin: 0 0 14px;
    color: #2d4355;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.modesta-process__item p {
    margin: 0;
    color: #6c7b88;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* タブレット */
@media (max-width: 1000px) {
    .modesta-process {
        padding: 40px 22px 65px;
    }

    .modesta-process__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 22px;
    }
}

/* スマートフォン */
@media (max-width: 600px) {
    .modesta-process {
        padding: 35px 18px 55px;
    }

    .modesta-process__heading {
        margin-bottom: 40px;
    }

    .modesta-process__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .modesta-process__item {
        padding: 36px 24px 28px;
    }

    .modesta-process__item h3 {
        font-size: 17px;
    }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
    .process-reveal,
    .process-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================
   CONTACT / お問い合わせ
========================= */

.modesta-contact {
    box-sizing: border-box;
    width: 100%;
    position: relative;
    padding: 38px 20px 40px;
    text-align: center;
    color: #ffffff;
    background-color: #168bd2;
    background-image: url("/application/files/1417/9296/9479/grantop3.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.modesta-contact__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.modesta-contact__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.6;
}

.modesta-contact h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.6;
}

.modesta-contact__text {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.9;
}

.modesta-contact__button i {
    color: inherit;
}

/* スマートフォン */
@media (max-width: 600px) {
    .modesta-contact {
        padding: 32px 18px;
    }

    .modesta-contact h2 {
        font-size: 21px;
    }

    .modesta-contact__text {
        font-size: 12px;
    }

}

/* 追加の安全対策：画像・長い文字列のはみ出しを防止 */
.modesta-about img,
.modesta-process img,
.modesta-contact img {
    max-width: 100%;
    height: auto;
}

.modesta-contact__text,
.modesta-contact h2,
.modesta-contact__label {
    overflow-wrap: anywhere;
}

/* お問い合わせボタン */
.modesta-contact__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 230px;
    max-width: 100%;
    height: auto;
    padding: 15px 30px;
    border: 1px solid #ffffff;
    border-radius: 50px;
    background: #ffffff;
    color: #078bd7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 14px rgba(0, 40, 80, 0.12);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* スマートフォン用ボタン設定：共通設定より後に置いて上書きを有効にする */
@media (max-width: 600px) {
    .modesta-contact__button {
        min-width: 0;
        width: auto;
        max-width: 100%;
        padding: 12px 20px;
    }
}

/* マウスを乗せたとき */
.modesta-contact__button:hover {
    background: #078bd7;
    color: #ffffff;
    border-color: #078bd7;
    box-shadow: 0 9px 24px rgba(0, 50, 100, 0.28);
    transform: translateY(-4px);
}

/* クリックした瞬間 */
.modesta-contact__button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 50, 100, 0.2);
}

/* キーボード操作時 */
.modesta-contact__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* 矢印だけ右へ動かす */
.modesta-contact__button .fa-chevron-right {
    transition: transform 0.3s ease;
}

.modesta-contact__button:hover .fa-chevron-right {
    transform: translateX(5px);
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
    .modesta-contact__button,
    .modesta-contact__button .fa-chevron-right {
        transition: none;
    }

    .modesta-contact__button:hover,
    .modesta-contact__button:active {
        transform: none;
    }
}

/* ========================================
   共通フッター・ロゴ
======================================== */

/* フッター背景色 */
footer,
footer > section,
footer .container {
    background-color: #1D4F7A !important;
}

/* フッターの文字色 */
footer,
footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer a {
    color: #ffffff !important;
}

/* リンクのマウスオーバー */
footer a:hover {
    color: #8db8ff !important;
}

/* GRANロゴ */
.gran-logo {
    display: block;
    width: 120px;
    max-width: 100%;
    aspect-ratio: 220 / 70;
    height: auto;
    background-image: url('/application/files/4717/9306/3107/granlogo2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 1;
}

@media screen and (max-width: 768px) {
    .gran-logo {
        width: 105px;
    }
}

@media screen and (max-width: 480px) {
    .gran-logo {
        width: 90px;
    }
}

/* コピーライトを3列目の右下に配置 */
footer .footer-column-3 .gran-copyright {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0 0;
    padding: 12px 0;
    text-align: right;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0.85;
}
