/* v9: refinements on top of the 2023 Cultivate theme. Layout, colours and the hero image are unchanged;
   type, shadows, sizes and spacing are tightened. */
@font-face { font-family: "Num"; src: local("Segoe UI"), local("SegoeUI"); unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E; }
@font-face { font-family: "Num"; font-weight: 700; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), local("Segoe UI Bold"); unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E; }

/* 1. One Japanese typeface, numerals in Segoe UI, two weights */
* { font-family: "Num", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: #2B2B2B; letter-spacing: .03em; }
h2, h3, h4, .item-title, .media-title, .label, [type="submit"] { font-weight: 700 !important; }
header .header-txt-wrap h1 { font-family: "Aileron-Light", sans-serif; font-weight: 400; }
.main #why .item-wrap .item .abstruct, .main #why .item-wrap .item .detail { font-family: "Num", "BIZ UDPGothic", "Hiragino Sans", "Meiryo", sans-serif; }
@media (max-width: 765px) { .main #company dd { white-space: normal; } }
.main p, .main dd, .main dt { line-height: 1.9; }

/* 2. Hero: same swirl and title, a little more height and a quiet nav */
header { position: relative; max-height: 520px; padding: 64px 56px; }
header .logo-txt { top: 26px; left: 32px; font-size: 22px; letter-spacing: .04em; }
header .hero-nav { position: absolute; top: 30px; right: 40px; display: flex; gap: 28px; }
header .hero-nav a { color: #fff; font-size: 13px; text-decoration: none; letter-spacing: .08em; }
header .header-txt-wrap h1 { font-size: 56px; letter-spacing: .04em; line-height: 1.2; }
header .header-txt-wrap p { margin-top: 12px; font-size: 17px; letter-spacing: .08em; }
header .bar { top: auto; bottom: 48px; font-weight: 400; font-size: 11px; letter-spacing: .3em; }
@media (max-width: 898px) { header .hero-nav { display: none; } }
@media (max-width: 765px) { header { padding: 48px 20px; } header .logo-txt { left: 20px; font-size: 18px; } header .header-txt-wrap h1 { font-size: 36px; } header .header-txt-wrap p { font-size: 14px; } }

/* 3. Section titles: smaller heading, English set as a quiet label */
.main section { padding: 104px 0; }
.sec-title h2 { font-size: 30px; letter-spacing: .06em; }
.sec-title .sub-title { margin: 10px 0 0 2px; font-size: 13px; letter-spacing: .16em; color: #8A8A8A; }
.main .sec-title { margin-bottom: 24px; }
.main .sec-lead { margin-bottom: 48px; font-size: 15px; color: #4A4A4A; }
@media (max-width: 765px) { .main section { padding: 72px 0; } .sec-title h2 { font-size: 26px; } }

/* 4. Cards: lighter shadow, smaller radius, even gaps */
.main .item-wrap { gap: 24px; justify-content: space-between; }
.main .item-wrap .item, .main .item-wrap .item:nth-child(3n) { width: calc((100% - 48px) / 3); margin: 0; border-radius: 6px; box-shadow: 0 1px 2px rgba(20, 48, 94, .06), 0 6px 20px rgba(20, 48, 94, .08); }
.main .item-wrap .item:hover,
.main #service .item-wrap .item:hover,
.main #business .item-wrap .item:hover { box-shadow: 0 1px 2px rgba(20, 48, 94, .06), 0 6px 20px rgba(20, 48, 94, .08); }
@media (max-width: 765px) { .main .item-wrap .item, .main .item-wrap .item:nth-child(3n) { width: 100%; } }
.main #service .item-wrap .item h3,
.main #business .item-wrap .item h3 { margin: 22px 0 10px; font-size: 18px; letter-spacing: .06em; }
.main #service .item-wrap .item p,
.main #business .item-wrap .item p { font-size: 14px; color: #4A4A4A; }
.main #business .item-wrap .item .note { font-size: 12px; color: #6B6B6B; }
.main .item .thumb.slide { background: #fff; border: 1px solid #E6E6E6; border-radius: 3px; }
.main .item .thumb.slide img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 5. 選ばれる理由: slim label, big numeral with small units */
.main #why { background-color: #F4F5F7; }
.main #why .item-wrap .item { padding: 36px 24px 32px; }
.main #why .item-wrap .item .item-title { display: inline-block; width: auto; padding: 0 22px; font-size: 14px; line-height: 2.1; letter-spacing: .12em; }
.main #why .item-wrap .item .abstruct { margin: 22px 0 18px; font-size: 56px; line-height: 1.1; letter-spacing: 0; }
.main #why .item-wrap .item .abstruct small { margin: 0 3px; font-size: 18px; color: #35487A; font-weight: 700; }
.main #why .item-wrap .item .detail { font-size: 14px; color: #4A4A4A; }
.main #why .item .more { font-size: 13px; letter-spacing: .06em; }
@media (max-width: 1060px) { .main #why .item-wrap .item .abstruct { font-size: 48px; } }

/* 6. 自社事業: the numina icon at a readable size */
.main .item .thumb.logo img { inset: 12% 25%; width: 50%; height: 76%; }

/* 7. 代表 */
.main #management .president-wrap .img-wrap img { border-radius: 6px; }
.main #management .president-wrap .txt-wrap .name-wrap h4 { font-size: 24px; letter-spacing: .06em; }
.main #management .president-wrap .txt-wrap .name-wrap p { font-size: 14px; letter-spacing: .12em; color: #8A8A8A; }
.main #management .president-wrap .txt-wrap .detail { margin-top: 12px; font-size: 15px; }
.main #management .president-wrap .txt-wrap .media-wrap { margin-top: 28px; }
.main #management .president-wrap .txt-wrap .media-wrap .media-title { width: auto; display: inline-block; padding: 2px 14px; border-radius: 3px; font-size: 12px; letter-spacing: .1em; }
.main #management .president-wrap .txt-wrap .media-wrap .media-item a { font-size: 15px; text-underline-offset: 4px; }

/* 8. 会社概要 */
.main #company .company-main { margin: 48px auto 0; border-top: 1px solid #E6E6E6; }
.main #company .company-main dl { padding: 18px 0; font-size: 15px; }
.main #company .company-main dl:last-child { border-bottom: 1px solid #E6E6E6; }
.main #company .company-main dl dt { color: #6B6B6B; }

/* 9. お見積もり */
.main #contact { background-color: #F4F5F7; }
.main #contact .txt { font-size: 15px; color: #4A4A4A; }
.main #contact .form-wrap { margin-top: 48px; font-size: 15px; }
.main #contact .form-wrap input, .main #contact .form-wrap textarea { padding: 12px 14px; border-radius: 4px; border-color: #CFCFCF; font-size: 15px; }
.main #contact .form-wrap .submit { width: 280px; }
.main #contact .form-wrap .submit [type="submit"],
.main #contact .form-wrap .submit input[type="submit"] { padding: 14px 0; font-size: 16px; color: #fff; border-radius: 4px; letter-spacing: .1em; }
.main #contact .form-wrap .submit input[type="submit"]:hover { color: #35487A; }

/* 10. Footer: same grey bar, with the company name */
footer { display: flex; justify-content: center; gap: 24px; padding: 22px 0; line-height: 1.6; background-color: #3F3F3F; }
footer .foot-name, footer small { color: #DADADA; font-size: 12px; letter-spacing: .08em; }

/* Dialog */
.modal { border-radius: 6px; }
.modal h3 { font-size: 20px; }
.modal .themes dd { font-size: 14px; }
.modal .close { font-size: 14px; border-radius: 4px; }

/* No sideways scroll on phones */
html, body { overflow-x: clip; }

/* 教育事業: Coming Soon in the empty picture box */
.main .item .thumb.blank { display: flex; align-items: center; justify-content: center; }
.main .item .thumb.blank .soon { font-family: "Montserrat", sans-serif; font-size: 15px; letter-spacing: .2em; color: #8A8A8A; }
