/* ==========================================================================
   Corporate Site Theme - Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Maru Gothic Pro', 'ヒラギノ丸ゴ Pro', 'BIZ UDPGothic', Meiryo, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ---------- Site Header ---------- */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #d0ebf7;
    padding: 16px 0;
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
}

.site-header__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.site-header__logo-link:hover {
    text-decoration: none;
}

.site-header__logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-header__company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #555;
}

/* ---------- Site Main ---------- */
.site-main {
    flex: 1;
}

/* ---------- Section ---------- */
.section {
    padding: 20px 0 10px 0;
}

.section__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.section__title {
    position: relative;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.3em 0 0.3em 1.2em;
    text-align: left;
}

.section__title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
    width: 0.4rem;
    height: 100%;
    background: linear-gradient(to bottom, #87ceeb, #4a90d9, #2c5f8a);
}

.section--contact .section__title,
.section--news-list .section__title,
.section--notfound .section__title {
    font-size: 1.5rem;
    padding-left: 0;
    padding-bottom: 8px;
    border-bottom: none;
    text-indent: 16px;
}

.section--contact .section__title::after,
.section--news-list .section__title::after,
.section--notfound .section__title::after {
    content: '';
    display: block;
    margin-top: 8px;
    width: 100%;
    height: 0.3rem;
    border-radius: 3px;
    background-color: #e0e0e0;
}

.section--contact .section__title::before,
.section--news-list .section__title::before,
.section--notfound .section__title::before {
    display: none;
}

/* ---------- 404 Not Found ---------- */
.section--notfound {
    padding: 40px 0;
}

.notfound__title-code {
    margin-right: 0.25em;
}

.notfound__message {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.notfound__message + .notfound__message {
    margin-bottom: 0.75rem;
}

.notfound__back {
    margin-top: 0.5rem;
    text-align: right;
}

.notfound__back a {
    color: #2c5f8a;
    text-decoration: underline;
}

.notfound__back a:hover {
    color: #4a90d9;
}

/* ---------- Hero Image ---------- */
.hero-image {
    width: 100%;
    line-height: 0;
    border-bottom: 1px solid #d0ebf7;
}

.home .hero-image {
    margin-bottom: 8px;
}

@media (min-width: 769px) {
    .home .hero-image {
        margin-bottom: 12px;
    }
}

.hero-image picture,
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Front Page: Philosophy ---------- */
.section--philosophy {
    /* background-color: #f8f9fa; */
    text-align: left;
}

.philosophy__text {
    font-size: 1.125rem;
    line-height: 2;
    color: #333;
}

/* ---------- Front Page: News List ---------- */
.news-list {
    list-style: none;
}

.news-list__item {
    border-bottom: 1px solid #e0e0e0;
}

.news-list__item a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    color: #333;
}

.news-list__item a:hover {
    text-decoration: none;
}

.news-list__item time {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #777;
}

.news-list__more {
    text-align: right;
    margin-top: 16px;
    padding-bottom: 12px;
    font-size: 0.8125rem;
}

.section--news-list .section__title {
    margin-bottom: 0.5rem;
}

.section--news-list .news-list {
    margin-bottom: 40px;
}

.news-list__more a {
    color: #333;
    text-decoration: none;
}

.news-list__more a:hover {
    text-decoration: underline;
}

/* ---------- News Single ---------- */
.news-single__date {
    text-align: left;
    color: #777;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

/* .section--news-single .md-content padding-left: PC/SP media queries */

.news-single__back {
    margin-top: 40px;
    text-align: right;
    font-size: 0.8125rem;
}

/* ---------- Company (Image Page) ---------- */
.company__image-wrapper {
    text-align: center;
}

.company__image {
    max-width: 100%;
    height: auto;
}

/* ---------- Contact Form ---------- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form__field {
    margin-bottom: 24px;
}

.contact-form__field label {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.9375rem;
}

.contact-form__field:not(.contact-form__field--checkbox) > label {
    position: relative;
    padding-left: 1.25em;
}

.contact-form__field:not(.contact-form__field--checkbox) > label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
    width: 0.35rem;
    height: 100%;
    background: linear-gradient(to bottom, #87ceeb, #4a90d9, #2c5f8a);
}

.contact-form__field .required {
    color: #d93025;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.contact-form__char-count {
    text-align: right;
    font-size: 0.8125rem;
    color: #777;
    margin-top: 0px;
    padding-top: 0px;
}

.contact-form__field--checkbox {
    text-align: center;
    margin-top: -12px;
}

.contact-form__field--checkbox label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.contact-form__field--checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    accent-color: #4a90d9;
    cursor: pointer;
}

.contact-form__field--checkbox a {
    color: #333;
    text-decoration: underline;
    margin-right: 4px;
}

.contact-form__submit {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 40px;
}

.contact-form__button {
    display: inline-block;
    padding: 12px 48px;
    background: linear-gradient(to bottom, #87ceeb, #4a90d9, #2c5f8a);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-form__button:hover {
    opacity: 0.85;
}

/* ---------- Contact Messages ---------- */
.contact__message {
    max-width: 600px;
    margin: 0 auto 32px;
    padding: 16px 20px;
    border-radius: 4px;
}

.contact__message--success {
    margin-top: 26px;
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7e1c7;
}

.contact__message--error {
    margin-top: 12px;
    background-color: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c6c2;
}

/* ---------- Site Footer (common) ---------- */
.site-footer {
    background: linear-gradient(to bottom, #dcf0fa, #98d2ec);
    border-top: 1px solid #b8dff0;
}

.site-footer__inner {
    margin: 0 auto;
    display: grid;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.site-footer__links {
    list-style: none;
}

.site-footer__links a {
    color: #333;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__copyright {
    color: #777;
    text-align: right;
}

/* ---------- Content padding (PC) ---------- */
@media (min-width: 769px) {
    .news-list__item a {
        padding: 10px 0;
    }

    .philosophy__text {
        padding-left: 1.4em;
    }

    .news-single__date {
        padding-left: 1.25em;
    }

    .section--news-single .md-content {
        padding-left: 1.5em;
    }

    .contact-form__field:first-of-type > label {
        margin-top: 16px;
    }
}

/* ---------- Site Footer (PC) ---------- */
@media (min-width: 769px) {
    .site-footer {
        position: relative;
        padding: 14px 0;
    }

    .site-footer__inner {
        max-width: 960px;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .site-footer__links li {
        margin-bottom: 4px;
    }

    .site-footer__links a {
        font-size: 0.875rem;
    }

    .site-footer__copyright {
        position: absolute;
        bottom: 4px;
        right: 8px;
        font-size: 0.8125rem;
    }
}

/* ---------- Site Footer (SP) ---------- */
@media (max-width: 768px) {
    .site-footer {
        position: relative;
        padding: 10px 0px 12px 24px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__links a {
        font-size: 0.8125rem;
    }

    .site-footer__copyright {
        position: absolute;
        bottom: 4px;
        right: 8px;
        font-size: 0.75rem;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .site-header__inner {
        text-align: right;
    }

    .site-header__logo-link {
        justify-content: flex-end;
    }

    .site-header__company-name {
        font-size: 1.1rem;
    }

    .section {
        padding: 6px 0 10px 0;
    }

    .section__title {
        font-size: 1.1rem;
        text-align: left;
        padding: 0.3em 0 0.3em 1.2em;
        margin: 10px 0;
    }

    .section--contact .section__title,
    .section--news-list .section__title,
    .section--notfound .section__title {
        font-size: 1.25rem;
        text-indent: 10px;
    }

    .philosophy__text {
        font-size: 1rem;
        padding-left: 8px;
        padding-right: 8px;
    }

    .news-single__date {
        padding-left: 8px;
        margin-top: 8px;
    }

    .section--news-single .md-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .philosophy__text br {
        display: none;
    }

    .news-list__item a {
        flex-direction: column;
        gap: 4px;
        font-size: 0.9rem;
    }

    .news-list__more {
        margin-top: 16px;
        padding-bottom: 12px;
    }

    .contact-form {
        margin-top: 16px;
    }
}
