/* Factory SP refresh: scoped to main content, leave SP shared header/nav/footer untouched. */
#contents.sf-factory-contents {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
}

#contents.sf-factory-contents * {
    box-sizing: border-box;
}

#contents .sf-factory {
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #153f5d;
    background: #fff;
    line-height: 1.65;
    overflow: hidden;
    padding-bottom: 46px;
}

#contents .sf-factory h1,
#contents .sf-factory h2,
#contents .sf-factory p {
    border: 0;
    margin: 0;
    padding: 0;
    background: none;
    float: none;
}

#contents .sf-factory a {
    text-decoration: none;
}

#contents .sf-heading {
    padding: 26px 5% 21px;
    border-bottom: 1px solid #d8eaf3;
    margin: 0 3% 17px;
}

#contents .sf-heading .sf-overline {
    color: #079bca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

#contents .sf-heading .sf-overline span {
    color: #789aac;
    font-weight: 500;
}

#contents .sf-heading h1 {
    font-size: 27px;
    font-weight: 800;
    color: #123f5b;
    margin-top: 3px;
}

#contents .sf-hero {
    margin: 0 3%;
    border-radius: 15px;
    position: relative;
    min-height: 405px;
    overflow: hidden;
    background: #b9dcea;
    isolation: isolate;
    display: flex;
    align-items: end;
}

#contents .sf-hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    z-index: -2;
}

#contents .sf-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(4, 40, 63, .77), rgba(4, 43, 67, .10) 73%);
}

#contents .sf-hero-copy {
    padding: 30px 24px 28px;
    width: 100%;
    color: white;
}

#contents .sf-hero-copy>span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    color: #e0f6ff;
}

#contents .sf-hero-copy h2 {
    color: #fff;
    font-size: clamp(22px, 6.4vw, 31px);
    font-weight: 800;
    line-height: 1.45;
    margin: 12px 0 !important;
    text-shadow: 0 2px 9px rgba(5, 25, 40, .35);
}

#contents .sf-hero-copy p {
    color: #f0f9fe;
    font-size: 12px;
    margin-bottom: 20px !important;
}

#contents .sf-hero-copy a {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    background: #d5f2ff;
    color: #064969;
    padding: 13px 17px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    min-height: 43px;
}

#contents .sf-hero-copy a b {
    margin-left: 5px;
    font-size: 19px;
}

#contents .sf-intro {
    text-align: center;
    padding: 54px 7% 30px;
}

#contents .sf-intro span {
    font-size: 10px;
    letter-spacing: .17em;
    color: #0c94bb;
    font-weight: 800;
}

#contents .sf-intro h2 {
    font-size: clamp(19px, 5.2vw, 23px);
    color: #123b57;
    font-weight: 800;
    margin: 12px 0 !important;
}

#contents .sf-intro p {
    font-size: 13px;
    color: #597b8e;
    line-height: 1.9;
}

#contents .sf-nav {
    margin: 0 4% 35px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#contents .sf-nav a {
    display: block;
    min-height: 78px;
    position: relative;
    border: 1px solid #d7e9f4;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fcff, #edf8fc);
    padding: 13px 9px 12px;
    color: #154460;
}

#contents .sf-nav a small {
    display: block;
    color: #2b94ba;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.3;
}

#contents .sf-nav a strong {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.4;
}

#contents .sf-nav a b {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #1392c2;
    font-size: 18px;
}

#contents .sf-section {
    margin: 0 4% 38px;
    scroll-margin-top: 18px;
}

#contents .sf-section-title {
    margin-bottom: 17px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d9eaf3;
}

#contents .sf-section-title span {
    display: block;
    color: #0c95c4;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 800;
}

#contents .sf-section-title h2 {
    margin: 7px 0 !important;
    font-size: clamp(19px, 5.1vw, 23px);
    font-weight: 800;
    color: #123d5c;
    line-height: 1.4;
}

#contents .sf-section-title p {
    font-size: 12px;
    color: #617e8e;
}

#contents .sf-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#contents .sf-photo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e1edf3;
    box-shadow: 0 5px 15px rgba(25, 78, 106, .07);
    color: #184765;
}

#contents .sf-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.22/1;
    object-fit: cover;
}

#contents .sf-photo span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    gap: 4px;
    padding: 10px 8px;
    flex: 1;
}

#contents .sf-photo b {
    color: #148ab7;
    font-size: 14px;
}

#contents .sf-contact {
    margin: 0 4% 34px;
    padding: 28px 22px;
    border-radius: 15px;
    background: linear-gradient(125deg, #e9f8ff, #f7fcff);
    border: 1px solid #cfe8f5;
}

#contents .sf-contact span {
    display: block;
    font-size: 10px;
    color: #078dbb;
    letter-spacing: .15em;
    font-weight: 800;
}

#contents .sf-contact h2 {
    font-size: 18px;
    font-weight: 800;
    color: #11415e;
    margin: 9px 0 !important;
}

#contents .sf-contact p {
    font-size: 12px;
    color: #5d7e8f;
    margin-bottom: 20px !important;
}

#contents .sf-contact a {
    display: inline-block;
    border-radius: 8px;
    background: #0784b3;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 13px 17px;
}

#contents .sf-toplink {
    display: block;
    margin: 0 4%;
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e0edf3;
    color: #1584ad;
    font-size: 12px;
    font-weight: 700;
}

@media(max-width:350px) {
    #contents .sf-nav a {
        min-height: 85px;
    }

    #contents .sf-nav a strong {
        font-size: 12px;
    }

    #contents .sf-photo span {
        font-size: 10px;
    }
}