/* =======================================================
   ネクスポート社労士事務所 HP - 共通スタイル
   構成:
   1. リセット・基本設定
   2. 共通パーツ(container, 見出し, ボタン)
   3. ヘッダー
   4. フッター・上に戻るボタン
   5. ホームページ(ヒーロー・お知らせ・大切にしていること・サポート内容ダイジェスト・FAQ)
   6. 事務所概要ページ
   7. サポート内容ページ
   8. ニュースページ
   9. お問い合わせページ
   ======================================================= */

/* ---------- 1. リセット・基本設定 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--font-weight-bold); line-height: var(--line-height-heading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }

/* ---------- 2. 共通パーツ ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section { padding: var(--space-xl) 0; }
.section:nth-child(even) { background-color: var(--color-base); }

.section__heading {
    font-size: var(--font-size-h2);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}
.section__heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
}

.section__more { text-align: center; margin-top: var(--space-lg); }

.page-intro { padding: var(--space-xl) 0 var(--space-md); text-align: center; }
.page-intro__title { font-size: var(--font-size-h1); }
.page-intro__lead { margin-top: var(--space-sm); max-width: 640px; margin-left: auto; margin-right: auto; }
.page-intro__lead--left { text-align: left; }

.btn {
    display: inline-block;
    padding: 0.9em 2em;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    border: 2px solid transparent;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.btn--main { background-color: var(--color-main); color: var(--color-white); }
.btn--main:hover { background-color: var(--color-main-dark); }
.btn--navy { background-color: var(--color-text); }
.btn--navy:hover { filter: brightness(1.2); background-color: var(--color-text); }
.btn--accent { background-color: var(--color-white); color: var(--color-text); }
.btn--accent:hover { background-color: var(--color-base); }
.btn--outline { background-color: transparent; color: var(--color-main); border-color: var(--color-main); }
.btn--outline:hover { background-color: var(--color-main); color: var(--color-white); }

/* ---------- 3. ヘッダー ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--space-md);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}
.site-header__logo img { height: 80px; width: auto; }

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: var(--space-xs);
    color: var(--color-text);
}
.hamburger__icon-open { display: block; width: 24px; }
.hamburger__icon-close { display: none; width: 24px; }
.icon-menu { width: 24px; height: 24px; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-lg); }
.site-nav__list { display: flex; align-items: center; gap: var(--space-md); }
.site-nav__link {
    font-weight: var(--font-weight-bold);
    padding: 0.5em 0.2em;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-base), color var(--transition-base);
    white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link.is-active { border-color: var(--color-accent); }
.site-nav__link--cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 0.6em 1.4em;
    border-radius: var(--radius-full);
    border-bottom: none;
}
.site-nav__link--cta .icon-mail { width: 16px; height: 16px; flex-shrink: 0; }
.site-nav__link--cta .icon-mail rect { fill: var(--color-white); }
.site-nav__link--cta .icon-mail path { stroke: var(--color-text); }
.site-nav__link--cta:hover { filter: brightness(1.2); }
.site-nav__link--cta.is-active { border-color: transparent; }

/* ---------- 4. フッター・上に戻るボタン ---------- */
.cta-band { background-color: var(--color-text); color: var(--color-white); padding: var(--space-lg) 0; }
.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}
.cta-band__heading { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); margin: 0; }
.cta-band__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}
.cta-band__message { text-align: left; }
.cta-band__sub { font-size: var(--font-size-small); margin: 0 0 0.2em; }
.cta-band__phone { margin: 0; font-size: var(--font-size-h3); }
.cta-band__phone a { font-weight: var(--font-weight-bold); }
.cta-band__hours { margin: 0.2em 0 0; font-size: var(--font-size-small); font-weight: var(--font-weight-regular); }
.cta-band__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    flex-shrink: 0;
    font-size: 1.5rem;
    padding: 1em 2.2em;
}
.cta-band__button .icon-mail { width: 32px; height: 32px; }

.footer-body { background-color: var(--color-white); color: var(--color-text); padding: var(--space-lg) 0 var(--space-md); }
.footer-body__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.footer-body__brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-body__logo { height: 64px; width: auto; }
.footer-body__info { font-style: normal; font-size: var(--font-size-small); }
.footer-body__info p { margin: 0 0 0.3em; }
.footer-body__info a:hover { text-decoration: underline; }
.footer-body__social-group { display: flex; align-items: center; gap: var(--space-sm); }
.footer-body__social svg { width: 60px; height: 60px; }
.footer-body__copyright { text-align: center; font-size: var(--font-size-small); color: var(--color-text); opacity: 0.7; margin-top: var(--space-md); margin-bottom: 0; }

.back-to-top {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-main);
    color: var(--color-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--color-main-dark); }
.icon-arrow { width: 20px; height: 20px; }

/* ---------- 5. ホームページ ---------- */
.hero { position: relative; height: 70vh; min-height: 420px; max-height: 720px; overflow: hidden; color: var(--color-white); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 73, 89, 0.35), rgba(61, 73, 89, 0.55));
}
.hero__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--space-sm);
}
.hero__title { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: var(--space-sm); text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero__subtitle { font-size: clamp(1.05rem, 2.4vw, 1.5rem); text-shadow: 0 2px 8px rgba(0,0,0,0.25); }

.news-board__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.news-item {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.news-item__date { font-weight: var(--font-weight-bold); color: var(--color-main); white-space: nowrap; }
.news-item__link { color: var(--color-main); font-weight: var(--font-weight-bold); margin-left: 0.5em; }
.news-item__link:hover { text-decoration: underline; }

.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.value-card {
    background-color: var(--color-white);
    border-top: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-card);
}
.value-card__title { font-size: var(--font-size-h3); color: var(--color-main); margin-bottom: var(--space-sm); text-align: center; }
.value-card__body { text-align: left; }

.support-digest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.support-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-card);
}
.support-card__icon { width: 72px; margin: 0 auto var(--space-sm); }
.icon-illust { width: 100%; height: auto; }
.support-card__title { font-size: var(--font-size-h3); margin-bottom: var(--space-sm); text-align: center; }
.support-card__menu {
    text-align: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--font-size-small);
}
.support-card__summary { text-align: left; font-size: var(--font-size-small); color: var(--color-text); }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { background-color: var(--color-white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-card); }
.faq-item__q, .faq-item__a { display: flex; gap: 0.6em; margin: 0; }
.faq-item__q { font-weight: var(--font-weight-bold); margin-bottom: 0.6em; }
.faq-item__mark {
    flex-shrink: 0;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-main);
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
}
.faq-item__mark--a { background-color: var(--color-accent); }

/* ---------- 6. 事務所概要ページ ---------- */
.info-table-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.info-table th, .info-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 10em; color: var(--color-main); font-weight: var(--font-weight-bold); white-space: nowrap; }

.mvv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); text-align: center; }
.mvv__item { background-color: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-md); box-shadow: var(--shadow-card); }
.mvv__label { color: var(--color-accent); font-weight: var(--font-weight-bold); letter-spacing: 0.08em; margin-bottom: 0.5em; }
.mvv__text { font-weight: var(--font-weight-bold); font-size: var(--font-size-large); }
.mvv__text--left { text-align: left; }

.representative__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 420px);
    gap: var(--space-xl);
    align-items: start;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto var(--space-lg);
}
.representative__photo img { border-radius: var(--radius-sm); box-shadow: none; }
.representative__title { color: var(--color-main); font-weight: var(--font-weight-bold); margin-bottom: 0.3em; }
.representative__name {
    font-size: clamp(1.875rem, 3.5vw, 2.375rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    margin-bottom: 0.3em;
}
.representative__romaji { font-size: var(--font-size-small); color: var(--color-text); opacity: 0.65; letter-spacing: 0.04em; margin-bottom: var(--space-sm); }
.representative__regno { font-size: var(--font-size-small); color: var(--color-text); margin-bottom: var(--space-md); }
.representative__bio p { margin-bottom: 0.3em; }
.representative__bio p:last-child { margin-bottom: 0; }

.representative__block {
    max-width: 680px;
    margin: 0 auto var(--space-lg);
}
.representative__career h3,
.representative__speeches h3 { font-size: var(--font-size-base); margin-bottom: 0.7em; }
.representative__career ul,
.representative__speeches ul { display: flex; flex-direction: column; gap: 0.6em; }
.representative__career li,
.representative__speeches li {
    padding-left: 1.2em;
    position: relative;
    font-size: var(--font-size-small);
}
.representative__career li::before,
.representative__speeches li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}
.representative__hobby-label { font-weight: var(--font-weight-bold); margin-bottom: 0.3em; }
.representative__hobby-text p { font-size: var(--font-size-small); margin-bottom: 0.4em; }
.representative__hobby-text p:last-child { margin-bottom: 0; }

.representative__greeting {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}
.representative__greeting-heading {
    text-align: center;
    font-size: var(--font-size-h3);
    color: var(--color-main);
    margin-bottom: var(--space-md);
}
.representative__greeting-body {
    font-family: var(--font-family-handwriting);
    font-size: var(--font-size-large);
    line-height: 2;
}
.representative__greeting-body p { margin-bottom: 1.2em; }
.representative__greeting-signature {
    text-align: right;
    font-weight: 600;
    margin-top: var(--space-sm) !important;
}

.name-origin .container { max-width: 760px; text-align: center; }
.name-origin__text { text-align: left; }

/* ---------- 7. サポート内容ページ ---------- */
.service-category { margin-bottom: var(--space-xl); }
.service-category:last-child { margin-bottom: 0; }
.service-category__heading { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.service-category__icon { width: 56px; flex-shrink: 0; }
.service-category__icon .icon-illust__base { fill: var(--color-white); }
.service-category__title { font-size: var(--font-size-h3); color: var(--color-main); }
.service-category__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.service-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
}
.service-item__title { font-size: var(--font-size-base); margin-bottom: 0.5em; color: var(--color-text); text-align: center; }
.service-item__body { font-size: var(--font-size-small); margin: 0; }

.process__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-md); }
.step-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.step-item__number {
    flex-shrink: 0;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background-color: var(--color-main);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
}
.step-item__title { margin-bottom: 0.3em; }
.step-item__body { margin: 0; font-size: var(--font-size-small); }

/* ---------- 8. ニュースページ ---------- */
.news-links__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.news-links__lead { margin-bottom: var(--space-lg); }

/* ---------- 9. お問い合わせページ ---------- */
.contact__inner { max-width: 720px; margin: 0 auto; }

.form-row { margin-bottom: var(--space-md); }
.form-row__label { display: flex; align-items: center; gap: 0.6em; font-weight: var(--font-weight-bold); margin-bottom: 0.5em; }
.form-row__badge {
    font-size: 0.75rem;
    padding: 0.2em 0.7em;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
}
.form-row__badge.is-required { background-color: var(--color-accent); color: var(--color-white); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-base);
    background-color: var(--color-white);
    color: var(--color-text);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #b3b3b3; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: 2px solid var(--color-main);
    outline-offset: 1px;
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea { border-color: #c0546a; }

.form-error { color: #c0546a; font-size: var(--font-size-small); margin-top: 0.4em; }
.form-error--global {
    background-color: #fbeaea;
    border: 1px solid #c0546a;
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-block { margin: var(--space-lg) 0; }
.privacy-block__heading { font-size: var(--font-size-large); margin-bottom: var(--space-sm); }
.privacy-block__scrollbox {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-size: var(--font-size-small);
    background-color: var(--color-white);
    white-space: pre-line;
    margin-bottom: var(--space-md);
}
.privacy-block__agree { display: flex; align-items: flex-start; gap: 0.6em; font-weight: var(--font-weight-bold); }
.privacy-block__agree input { margin-top: 0.3em; }

.contact-form__actions { text-align: center; margin-top: var(--space-lg); display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

.contact-thanks__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-thanks__title { font-size: var(--font-size-h2); margin-bottom: var(--space-md); }
.contact-thanks__body { margin-bottom: var(--space-lg); }
.contact-thanks__body--left { text-align: left; }
