/* Homepage only. Text is edited in the WordPress page editor. */
.home-container {
    padding: 0 20px;
}

.home-hero h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.45;
}

.home-post-card {
    margin: 0;
    padding: 0;
}

.home-post-thumbnail {
    display: block;
}

.home-post-card h3 {
    margin: 0;
    padding: 20px 20px 10px;
    font-size: 20px;
    line-height: 1.5;
}

.home-post-card p {
    margin: 0;
    padding: 0 20px 22px;
    color: #555;
}

@media (max-width: 767px) {
    .home-container {
        padding: 0 14px;
    }
    
    .home-hero h1 {
        font-size: 28px;
    }
}

.home-main {
    background: #f7f8fa;
}

.home-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home-hero {
    padding: 75px 0;
    background: #fff;
    text-align: center;
}

.home-hero-inner {
    max-width: 900px;
}

.home-hero-sub {
    margin: 0 0 12px;
    color: #1677ff;
    font-size: 15px;
    font-weight: 700;
}

.home-hero-title {
    margin: 0;
    color: #222;
    font-size: 42px;
    line-height: 1.45;
}

.home-hero-text {
    max-width: 760px;
    margin: 24px auto 0;
    color: #555;
    font-size: 17px;
    line-height: 2;
}

.home-section {
    padding: 70px 0;
}

.home-section-heading {
    margin-bottom: 35px;
    text-align: center;
}

.home-section-heading h2 {
    margin: 4px 0 12px;
    color: #222;
    font-size: 30px;
}

.home-section-heading > p:last-child {
    margin: 0 auto;
    max-width: 700px;
    color: #666;
}

.home-section-label {
    margin: 0;
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-purpose-card {
    display: block;
    padding: 28px 22px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: .2s;
}

.home-purpose-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.home-purpose-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 34px;
    padding: 0 10px;
    background: #eef5ff;
    border-radius: 6px;
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
}

.home-purpose-card h3 {
    margin: 18px 0 10px;
    font-size: 19px;
}

.home-purpose-card p {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.home-card-arrow {
    color: #1677ff;
    font-size: 13px;
    font-weight: 700;
}

.home-free-section {
    background: #fff;
}

.home-free-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-free-card {
    position: relative;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    border-radius: 12px;
}

.home-free-icon {
    color: #1677ff;
    font-size: 13px;
    font-weight: 700;
}

.home-free-card h3 {
    margin: 12px 0 10px;
    font-size: 20px;
}

.home-free-card p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.home-coming-soon {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 20px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
}

.home-member-section {
    padding: 70px 0;
}

.home-member-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: #eef5ff;
    border: 1px solid #d8e8ff;
    border-radius: 16px;
}

.home-member-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.home-member-label {
    margin: 0 0 8px;
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-member-content h2 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.5;
}

.home-member-lead {
    color: #555;
    line-height: 1.9;
}

.home-member-benefits {
    display: inline-block;
    margin: 20px auto;
    padding: 0;
    text-align: left;
    list-style: none;
}

.home-member-benefits li {
    margin: 8px 0;
}

.home-member-benefits li::before {
    content: "✓";
    margin-right: 9px;
    color: #1677ff;
    font-weight: 700;
}

.home-latest-section {
    background: #fff;
}

.home-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
}

.home-post-card > a {
    display: block;
    height: 100%;
    color: #333;
    text-decoration: none;
}

.home-post-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.home-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-post-content {
    padding: 20px;
}

.home-post-date {
    margin-bottom: 7px;
    color: #888;
    font-size: 12px;
}

.home-post-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.6;
}

.home-post-content p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.home-about-section {
    padding: 65px 0;
}

.home-about-box {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.home-about-box h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.home-about-box p {
    color: #666;
    line-height: 2;
}

.home-about-box a {
    display: inline-block;
    margin-top: 10px;
    color: #1677ff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 950px) {
    .home-purpose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-free-grid,
    .home-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .home-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .home-hero {
        padding: 50px 0;
    }
    
    .home-hero-title {
        font-size: 30px;
    }
    
    .home-hero-text {
        font-size: 15px;
        line-height: 1.9;
    }
    
    .home-section {
        padding: 50px 0;
    }
    
    .home-section-heading {
        margin-bottom: 25px;
    }
    
    .home-section-heading h2 {
        font-size: 25px;
    }
    
    .home-purpose-grid,
    .home-free-grid,
    .home-post-grid {
        grid-template-columns: 1fr;
    }
    
    .home-purpose-card,
    .home-free-card {
        padding: 22px;
    }
    
    .home-member-section {
        padding: 50px 0;
    }
    
    .home-member-box {
        padding: 32px 20px;
    }
    
    .home-member-content h2 {
        font-size: 25px;
    }
    
    .home-about-section {
        padding: 50px 0;
    }
}

.home-free-card-active {
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.home-free-card-active:hover {
    transform: translateY(-4px);
    border-color: #257a46;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
}

.home-free-card-active .home-free-icon {
    transition: transform .2s ease;
}

.home-free-card-active:hover .home-free-icon {
    transform: scale(1.08);
}

.home-free-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 14px;
    color: #18733a;
    font-size: 14px;
    font-weight: 700;
}

.home-free-card-active:hover .home-free-link {
    text-decoration: underline;
}

.home-free-card-active:focus-visible {
    outline: 3px solid rgba(37, 122, 70, .3);
    outline-offset: 3px;
}

.home-main .home-hero-visual {
    padding: 56px 0;
    text-align: left;
    background: linear-gradient(135deg, #f1f7ff, #fff 75%);
}

.home-main .home-hero-visual .home-hero-inner {
    max-width: 1180px;
}

.home-main .home-hero-has-image {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.home-main .home-hero-copy {
    min-width: 0;
}

.home-main .home-hero-visual .home-hero-title {
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.home-main .home-hero-visual .home-hero-text {
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.95;
}

.home-main .home-hero-media {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(40, 82, 120, .08);
}

.home-main .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-main .home-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #155fc6;
    border-radius: 10px;
    background: #155fc6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-main .home-hero-cta-secondary {
    background: #fff;
    color: #155fc6;
}

.home-main .home-hero-cta:hover {
    text-decoration: underline;
}

.home-main .home-hero-cta:focus-visible,
.home-main .home-purpose-card:focus-visible,
.home-main .home-post-card > a:focus-visible {
    outline: 3px solid #155fc6;
    outline-offset: 4px;
}

.home-main .home-purpose-card {
    display: flex;
    flex-direction: column;
    border-top: 4px solid #1677ff;
}

.home-main .home-purpose-card:nth-child(2) {
    border-top-color: #25805c;
}

.home-main .home-purpose-card:nth-child(3) {
    border-top-color: #976d14;
}

.home-main .home-purpose-card:nth-child(4) {
    border-top-color: #8050ad;
}

.home-main .home-purpose-icon {
    align-self: flex-start;
    min-width: 68px;
    height: 48px;
    border-radius: 14px;
    letter-spacing: .04em;
}

.home-main .home-purpose-card:nth-child(2) .home-purpose-icon {
    background: #eaf6ef;
    color: #25805c;
}

.home-main .home-purpose-card:nth-child(3) .home-purpose-icon {
    background: #fff6df;
    color: #976d14;
}

.home-main .home-purpose-card:nth-child(4) .home-purpose-icon {
    background: #f4edfb;
    color: #8050ad;
}

.home-main .home-card-arrow {
    margin-top: auto;
    padding-top: 16px;
}

.home-main .home-post-thumbnail img {
    display: block;
}

@media (max-width: 767px) {
    .home-main .home-hero-visual {
        padding: 32px 0;
    }
    
    .home-main .home-hero-has-image {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    
    .home-main .home-hero-visual .home-hero-title {
        font-size: clamp(24px, 6.5vw, 30px);
    }
    
    .home-main .home-hero-visual .home-hero-text {
        font-size: 15px;
    }
    
    .home-main .home-hero-media {
        border-radius: 16px;
    }
    
    .home-main .home-hero-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-main .home-purpose-card {
        transition: none;
    }
    
    .home-main .home-purpose-card:hover {
        transform: none;
    }
}

.home-main .home-hero-visual .home-hero-title br {
    display: none;
}

.home-main .home-purpose-card .home-purpose-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 146px;
    padding: 12px 10px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.4;
    gap: 4px;
}

.home-main .home-purpose-card .home-purpose-icon::before {
    content: "";
    display: block;
    width: 152px;
    max-width: 100%;
    height: 106px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.home-main .home-purpose-card:nth-child(1) .home-purpose-icon::before {
    background-image: url("assets/images/category-gps.svg");
}

.home-main .home-purpose-card:nth-child(2) .home-purpose-icon::before {
    background-image: url("assets/images/category-phone.svg");
}

.home-main .home-purpose-card:nth-child(3) .home-purpose-icon::before {
    background-image: url("assets/images/category-smartphone.svg");
}

.home-main .home-purpose-card:nth-child(4) .home-purpose-icon::before {
    background-image: url("assets/images/category-watch.svg");
}

.home-main .home-free-section {
    background: #f3f8f5;
}

.home-main .home-free-section .home-free-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce8df;
    border-top: 4px solid #257a46;
    border-radius: 16px;
}

.home-main .home-free-section .home-free-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 148px;
    margin: 0 0 18px;
    padding: 12px;
    background: #edf7f0;
    border-radius: 12px;
    color: #257a46;
    font-size: 11px;
    line-height: 1.4;
    gap: 4px;
}

.home-main .home-free-section .home-free-icon::before {
    content: "";
    display: block;
    width: 152px;
    max-width: 100%;
    height: 106px;
    background: center / contain no-repeat;
}

.home-main .home-free-section .home-free-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
}

.home-main .home-free-section .home-free-card p {
    margin: 0 0 22px;
    line-height: 1.85;
}

.home-main .home-free-section .home-free-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 14px;
    background: #257a46;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.home-main .home-free-section .home-free-card-active:hover {
    border-color: #257a46;
}

.home-main .home-free-section .home-free-card-active:hover .home-free-icon {
    transform: none;
}

.home-main .home-free-section .home-free-card:not(.home-free-card-active) {
    background: #f9fafb;
    border-color: #dce2e7;
}

.home-main .home-free-section .home-free-card:not(.home-free-card-active) .home-free-icon {
    background: #edf0f3;
    color: #657580;
}

.home-main .home-free-section .home-coming-soon {
    align-self: flex-start;
    margin-top: auto;
    color: #53616c;
    background: #e8edf1;
    padding: 7px 14px;
}

.home-main .home-free-section .home-free-card:nth-child(1) .home-free-icon::before {
    background-image: url("assets/images/free-prints.svg");
}

.home-main .home-free-section .home-free-card:nth-child(2) .home-free-icon::before {
    background-image: url("assets/images/free-rules.svg");
}

.home-main .home-free-section .home-free-card:nth-child(3) .home-free-icon::before {
    background-image: url("assets/images/free-contact.svg");
}

.home-main .home-free-section .home-free-card:nth-child(4) .home-free-icon::before {
    background-image: url("assets/images/free-map.svg");
}

.home-main .home-free-section .home-free-card:nth-child(5) .home-free-icon::before {
    background-image: url("assets/images/free-timetable.svg");
}

.home-main .home-free-section .home-free-card:nth-child(6) .home-free-icon::before {
    background-image: url("assets/images/free-tools.svg");
}

@media (max-width: 767px) {
    .home-main .home-free-section .home-free-card {
        padding: 20px;
    }
    
    .home-main .home-free-section .home-free-card h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-main .home-free-section .home-free-card-active {
        transition: none;
    }
    
    .home-main .home-free-section .home-free-card-active:hover {
        transform: none;
    }
}

.home-main.mimamori-block-home .wp-block-group > .wp-block-group__inner-container {
    display: contents;
}

.home-main.mimamori-block-home .wp-block-group {
    margin-block-start: 0;
    margin-block-end: 0;
    min-width: 0;
}

.home-main.mimamori-block-home .home-purpose-card,
.home-main.mimamori-block-home .home-free-card {
    margin: 0;
    min-width: 0;
    height: 100%;
}

.home-main.mimamori-block-home .home-purpose-card h3 a,
.home-main.mimamori-block-home .home-free-card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-main.mimamori-block-home .home-purpose-icon {
    margin: 0;
}

.home-main.mimamori-block-home .home-free-icon {
    margin-top: 0;
}

.home-main.mimamori-block-home .home-free-link {
    margin-bottom: 0;
}

.home-main.mimamori-block-home .home-free-link a {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.home-main.mimamori-block-home .home-card-arrow a {
    color: inherit;
}

.home-main.mimamori-block-home .home-hero-actions > p,
.home-main.mimamori-block-home .home-hero-actions > .wp-block-group__inner-container > p {
    margin: 0;
}

.home-main.mimamori-block-home .home-hero-media .wp-block-image {
    margin: 0;
    aspect-ratio: 3 / 2;
}

.home-main.mimamori-block-home .home-hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.home-main.mimamori-block-home .home-member-content .home-hero-actions {
    margin-top: 26px;
    margin-bottom: 20px;
}

.home-main.mimamori-block-home a:focus-visible {
    outline: 3px solid #155fc6;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .home-main.mimamori-block-home .home-hero-actions > p,
    .home-main.mimamori-block-home .home-hero-actions > .wp-block-group__inner-container > p {
        width: 100%;
    }
}
