:root {
  --color-primary: #3FA400;
  --color-primary-dark: #2C7300;
  --color-accent: #E68300;
  --color-accent-dark: #AC6200;
  --color-pink: #E83E82;
  --color-sub: #A1D481;
  --color-white: #fff;
  --color-text: #333;
  --color-text-light: #777;
  --color-text-muted: #969696;
  --color-border: #E8E8E8;
  --color-border-soft: #E3E3E3;
  --color-bg: #f4f4f4;
  --color-bg-soft: #F4FAEF;
  --color-bg-light: #F0F8EA;
  --color-bg-gray: #f0f0f0;
  --color-gray: #bbb;
  --color-highlight: #FDFF9C;
  --color-gold: #9B8741;
  --color-shadow: rgba(0, 0, 0, 0.16);
}

.body {
    overflow-x: hidden;
}

/* 共通 */
.mv {
  background: url(../images/bg-02.webp) no-repeat center;
  background-size: cover;
}

.mv-inner {
    width: 1000px;
}

.mv-title {
    margin: 0px;
    padding: 80px 36px 72px;
    color: var(--color-white);
}

.mv-title .mv-heading {
    position: relative;
    font-size: 64px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 3.2px;
    margin-bottom: 8px;
}

.mv-title .mv-heading::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -36px;
    width: 21px;
    height: 50px;
    background: url(../images/icon-leaf.svg) no-repeat center;
    background-size: contain;
}

.mv-title p,
.mv-title .mv-label {
    font-size: 22px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.1px;
}

.section {
  padding: 56px 0;
}

.contact-section {
    margin-bottom: 160px;
}

.container:not(.header-inner, .footer-container) {
    width: 1000px;
}

.specialty-inner {
    width: 1064px;
}

.reason-inner {
    width: 1024px;
}

.tell-inner,
.content-inner {
    width: 960px;
}

.back-btn,
.send-btn {
    display: flex;
    padding: 16px 64px;
    justify-content: center;
    align-items: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.8px;
    margin: 40px auto 0;
    width: 230px;
}

.send-btn {
    width: 300px;
}

.back-btn {
    padding-right: 24px;
    padding-left: 24px;
    white-space: nowrap;
}

/* 事務所紹介 */
.profile-container {
    margin-top: 32px;
}

.profile-container + .profile-container {
    margin-top: 56px;
}

.profile-flex {
    display: flex;
    gap: 64px;
    flex-direction: row-reverse;
}

.profile-image-wrap {
    float: right;
    width: 280px;
}

.profile-image-wrap img {
    width: 100%;
}

.profile-left {
    max-width: 656px;
}

.profile-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.profile-top {
    font-size: 20px;
    font-weight: 500;
    line-height: 150%;
    position: relative;
    padding-left: 18px;
}

.profile-top::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0px;
    width: 10px;
    height: 24px;
    background: url(../images/icon-leaf.svg) no-repeat center;
    background-size: contain;
}

.profile-name {
    font-size: 32px;
    font-weight: 500;
    line-height: 150%;
}

.profile-qualification {
    font-size: 20px;
}

.profile-roman {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.8px;
}

.profile-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 200%; 
}

.profile-text p {
    margin-bottom: 40px;
}

.profile-history {
    background-color: var(--color-bg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-label {
    width: 120px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 150%;
}

.history-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-row {
    background-color: var(--color-white);
    padding: 8px 16px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.history-date {
    width: 5em;
    flex-shrink: 0;
    white-space: nowrap;
}

.history-date,
.history-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 170%;
}

.information-section {
    background-color: var(--color-bg-light);
}

.information-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 32px 40px;
    margin: 32px 0 40px;
}

.information-row {
    display: flex;
    align-items: stretch;
}

.information-row dt {
    width: 160px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 170%; 
    border-bottom: 1px solid var(--color-primary);
    padding: 16px 8px;
    display: flex;
    align-items: center;
}

.information-row dd {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 170%; 
    border-bottom: 1px solid var(--color-border);
}

.map-content {
    width: 100%;
    height: 290px;
    background-color: #e5e3df;
}

.map-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* service */
.specialty-section {
    position: relative;
}

.specialty-section::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: url(../images/bg-03.webp) no-repeat center;
    /* background-size: cover; */
    background-size: 100% 1000px;
    background-attachment: fixed;
    z-index: -1;
}

.specialty-list {
    margin-bottom: 56px;
}

.specialty-list li {
    background: var(--color-white);
}

.specialty-checks .sub {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 16px;
}

.specialty-checks ul {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.specialty-checks ul li {
    width: 500px;
    padding: 24px;
    background: var(--color-bg-light);
}

.specialty-checks li h4 {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    line-height: 170%;
    padding-left: 28px;
}

.specialty-checks li h4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url(../images/icon-check.svg) no-repeat center;
}

.specialty-checks li p {
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    margin-top: 8px;
}

.reason-text-box {
    max-width: 650px;
}

/* news */
.news-section .article-list li a {
    padding: 8px 0 0;
    font-size: 18px;
}

.news-section .detail-item h1,
.news-section .detail-item h2 {
    padding: 8px 0 0;
}



/* knowledge */
.detail-item {
    margin-bottom: 32px;
}

.detail-item .article-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-text-muted);
}

.detail-item h1,
.detail-item h2 {
    padding: 8px 0 16px;
    font-size: 24px;
    font-weight: 500;
    line-height: 170%;
}

.detail-item ul {
    display: flex;
    gap: 4px;
}

.detail-item li {
    padding: 2px 8px;
    color: var(--color-text-light);
    background: var(--color-bg-gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    line-height: 170%;
    display: inline-block;
}

.detail-body {
    display: flex;
    gap: 32px;
    flex-direction: column;
}

.detail-body h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 170%;
    padding: 8px 0;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 16px;
}

.detail-body h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 170%;
    padding-left: 16px;
    border-left: 5px solid var(--color-primary);
    margin-bottom: 16px;
}

.detail-body-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 200%;
}

.detail-body-list {
    margin-top: 16px;
}

.detail-body-list li {
    list-style: disc;
    font-size: 16px;
    font-weight: 400;
    line-height: 200%;
    margin-left: 20px;
}


/* contact */
.tell-banner {
    display: flex;
    background-color: var(--color-bg-light);
}

.tell-image {
    min-height: 212px;
    width: 400px;
}

.tell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tell-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 75px;
    text-align: center;
    gap: 12px;
}

.tell-lead {
    font-size: 22px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.1px;
}

.tell-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tell-phone img {
    width: 48px;
    height: 48px;
}

.tell-phone p {
    font-size: 48px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 2.4px;
}

.tell-hours {
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
}

.section.form-section {
    padding: 24px 0 56px;
}

.form-text {
    margin-top: 32px;
    color: #FF2929;
    font-size: 14px;
}

.contact-form-container {
    background-color: var(--color-bg);
    padding: 40px;
    margin-top: 24px;
}

.form-row + .form-row {
    margin-top: 16px;
}

.form-row.is-half {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 170%;
    margin-bottom: 8px;
}

.req-mark {
    color: #FF2929;
    font-size: 16px;
    font-weight: 500;
    line-height: 170%;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

.form-submit-area {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 170%;
    margin-top: 24px;
}

/* thanks */
.section-title.thanks-title h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: 1.7px;
}

.thanks-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 240%;
    margin-top: 32px;
}

/* 404 */
.error-section {
    padding: 80px 0 120px;
}

.error-container {
    display: flex;
    gap: 80px;
}

.error-left {
    color: var(--color-primary);
}

.error-code {
    font-size: 120px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 6px;
}

.error-en {
    font-size: 30px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 3px;
}

.error-right {
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.error-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.3px;
}

.error-text, .error-list {
    font-size: 15px;
    font-weight: 400;
    line-height: 200%;
}

.error-list li {
    list-style: disc;
    margin-left: 20px;
}

/* privacy */
.privacy-contents {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-direction: column;
}

.privacy-contents h3 {
    padding: 8px;
    margin-bottom: 8px;
    font-size: 16px;    font-weight: 500;
    line-height: 170%;
    background: var(--color-bg);
    border-radius: 4px;
}

.privacy-contents p {
    font-size: 15px;
    font-weight: 400;
    line-height: 200%;
}

@media only screen and (max-width: 767px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .container {
        width: 100%;
        margin: 0 auto;
    }

    .mv {
        background: url(../images/bg-02-sp.webp) no-repeat center;
        background-size: cover;
    }

    .mv-inner {
        width: 100%;
        margin: 0;
    }

    .mv-title {
        margin: 0px;
        padding: 24px 28px;
        color: var(--color-white);
    }

    .mv-title .mv-heading {
        font-size: 36px;
        letter-spacing: 1.8px;
        margin-bottom: 4px;
    }

    .mv-title .mv-heading::before {
        top: 0px;
        left: -24px;
        width: 16px;
        height: 38px;
    }

    .mv-title p,
    .mv-title .mv-label {
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    .section {
        padding: 32px 0;
    }

    .contact-section {
        margin-bottom: 240px;
    }

    .container:not(.header-inner, .footer-container),
    .specialty-inner,
    .reason-inner,
    .tell-inner,
    .content-inner {
        width: 100%;
        padding: 0 20px;
    }

    .back-btn,
    .send-btn {
        display: flex;
        padding: 12px 40px;
        font-size: 14px;
        letter-spacing: 0.7px;
        margin: 24px auto 0;
        width: 160px;
    }

    .send-btn {
        width: 240px;
    }

    .back-btn {
        padding-right: 12px;
        padding-left: 12px;
    }


    /* 事務所紹介 */
    .profile-container {
        margin-top: 24px;
    }

    .profile-container + .profile-container {
        margin-top: 32px;
    }

    .profile-flex {
        display: flex;
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .profile-image-wrap {
        width: 170px;
    }

    .profile-image-wrap img {
        width: 100%;
    }

    .profile-left {
        max-width: 100%;
    }

    .profile-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .profile-top {
        font-size: 14px;
        padding-left: 18px;
    }

    .profile-top::before {
        top: 2px;
        left: 0px;
        width: 7px;
        height: 16px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-qualification {
        font-size: 13px;
    }

    .profile-roman {
        font-size: 14px;
        letter-spacing: 0.6px;
    }

    .profile-text {
        font-size: 14px;
    }

    .profile-text p {
        margin-bottom: 24px;
    }

    .profile-history {
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .history-label {
        font-size: 16px;
    }

    .history-list {
        gap: 8px;
    }

    .history-row {
        padding: 8px 12px;
        gap: 12px;
    }

    .history-date {
        width: 5em;
    }

    .history-date,
    .history-desc {
        font-size: 14px;
    }

    .information-card {
        border-radius: 8px;
        padding: 12px 16px;
        margin: 24px 0 32px;
    }

    .information-row dt {
        width: 96px;
        font-size: 13px;
        padding: 12px 8px;
    }

    .information-row dd {
        width: 100%;
        padding: 12px 8px;
        font-size: 13px;
    }

    .map-content {
        width: 100%;
        min-height: 240px;
        background-color: #e5e3df;
    }

    .map-content iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    /* service */
    .specialty-section::before {
        content: "";
        position: absolute;
        top: -40px;
        left: 0px;
        width: 100%;
        height: 100.3%;
        background: url(../images/bg-03-sp.webp) no-repeat center;
        /* background-size: cover; */
        /* background-size: 100% 45000px; */
        background-attachment: fixed;
        z-index: -1;
    }

    .specialty-list {
        margin-bottom: 0px;
        padding-bottom: 24px;
    }

    .specialty-checks .sub {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .specialty-checks ul {
        gap: 12px;
        flex-direction: column;
    }

    .specialty-checks ul li {
        width: 100%;
        padding: 12px;
    }

    .specialty-checks li h4 {
        font-size: 14px;
        padding-left: 24px;
    }

    .specialty-checks li h4::before {
        left: 2px;
        width: 15px;
        height: 15px;
        background-size: contain;
    }

    .specialty-checks li p {
        font-size: 13px;
        margin-top: 4px;
    }

    .reason-text-box {
        max-width: 100%;
    }

    /* news */
    .news-section .article-list li a {
        padding: 4px 0 0;
        font-size: 15px;
    }

    .news-section .detail-item h1,
    .news-section .detail-item h2 {
        padding: 4px 0 0;
    }

    /* knowledge */
    .detail-item {
        margin-bottom: 24px;
    }

    .detail-item h1,
    .detail-item h2 {
        padding: 4px 0 12px;
        font-size: 20px;
    }

    .detail-body {
        gap: 24px;
    }

    .detail-body h3 {
        font-size: 18px;
        padding: 4px 0;
        margin-bottom: 8px;
    }

    .detail-body h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .detail-body-text {
        font-size: 15px;
    }

    .detail-body-list {
        margin-top: 8px;
    }

    .detail-body-list li {
        font-size: 15px;
    }

    /* contact */
    .tell-banner {
        display: block;
    }

    .tell-image {
        min-height: auto;
        width: 100%;
    }

    .tell-content {
        padding: 20px 16px;
        gap: 4px;
    }

    .tell-lead {
        font-size: 15px;
        letter-spacing: 0.75px;
    }

    .tell-phone {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .tell-phone img {
        width: 32px;
        height: 32px;
    }

    .tell-phone p {
        font-size: 32px;
        letter-spacing: 1.6px;
    }

    .tell-hours {
        font-size: 12px;
    }

    .section.form-section {
        padding: 0 0 32px;
    }

    .form-text {
        margin-top: 16px;
        font-size: 13px;
    }

    .contact-form-container {
        padding: 24px 16px;
        margin-top: 8px;
    }

    .form-row + .form-row {
        margin-top: 8px;
    }

    .form-row.is-half {
        flex-direction: column;
        gap: 8px;
    }

    .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .req-mark {
        font-size: 14px;
    }

    .form-control {
        font-size: 14px;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .form-submit-area {
        font-size: 13px;
        margin-top: 8px;
    }

    /* thanks */
    .section-title.thanks-title h1 {
        font-size: 22px;
        letter-spacing: 1.1px;
    }

    .thanks-text {
        font-size: 14px;
        margin-top: 24px;
        text-align: left;
    }

    /* 404 */
    .error-section {
        padding: 32px 0;
    }

    .error-container {
        flex-direction: column;
        gap: 28px;
    }

    .error-left {
        text-align: center;
    }

    .error-code {
        font-size: 80px;
        letter-spacing: 4px;
    }

    .error-en {
        font-size: 22px;
        letter-spacing: 2.2px;
    }

    .error-right {
        gap: 16px;
    }

    .error-title {
        font-size: 20px;
        letter-spacing: 1.0px;
    }

    .error-text, .error-list {
        font-size: 14px;
    }

    .error-list li {
        list-style: disc;
        margin-left: 16px;
    }

    /* privacy */
    .privacy-contents {
        gap: 16px;
        margin-top: 24px;
    }

    .privacy-contents h3 {
        margin-bottom: 4px;
        font-size: 15px;
    }

    .privacy-contents p {
        font-size: 14px;
    }





}
