/* 項目別の基本設定。画面サイズ・入力方法ごとの調整は末尾にまとめています。 */

/* 00 共通レイアウト・補助 */
.sub-inner {
    width: 90%;
    max-width: 1500px;
    margin: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* 10 下層ヘッダー */
.page-subpage .site-header {
    position: relative;
    padding: 15px 5%;
    min-height: 90px;
    background: #fff;
    gap: 26px;
}

.page-subpage .site-header .brand {
    width: clamp(230px, 24vw, 390px);
}

.page-subpage .header-nav {
    font-size: clamp(11px, 1vw, 16px);
    gap: 0;
}

.page-subpage .header-nav a {
    padding: 4px 20px;
    border-right: 1px solid #e3eee8;
    white-space: nowrap;
}

.page-subpage .header-nav a:last-child {
    border-right: 0;
}

.page-subpage .header-nav a[aria-current]::after {
    bottom: -5px;
    left: 20px;
    right: 20px;
}

.page-subpage .menu-toggle {
    width: clamp(48px, 4.5vw, 70px);
}

/* 20 ページ見出し・パンくず */
.sub-hero {
    position: relative;
    height: 25vw;
    min-height: 280px;
    max-height: 460px;
    overflow: hidden;
    background: #edf8f2;
}

.sub-hero-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.sub-hero-surface {
    position: absolute;
    inset: 0;
    background: url('../img/index/hero-bg.png') center/100% 100% no-repeat;
}

.sub-hero-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f8fffc85, transparent 55%);
}

.breadcrumbs {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 18px 6.5%;
    font-size: 12px;
    font-weight: 600;
}

.sub-hero-copy {
    position: relative;
    margin: 2vw 6.5%;
    color: #193f33;
}

.sub-hero h1 {
    font-size: clamp(36px, 4.3vw, 66px);
    margin-bottom: 14px;
}

.sub-hero p {
    font-size: clamp(15px, 1.65vw, 25px);
    line-height: 1.8;
    font-weight: 600;
    text-shadow: 0 0 10px #fff;
}

.company-hero {
    background: url('../img/common/contact.jpg') center/cover;
}

.company-hero .sub-hero-copy {
    margin-top: 1.8vw;
}

.company-hero h1 {
    font-size: clamp(32px, 3.5vw, 56px);
}

/* 30 事業内容 */
.business-intro {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    align-items: center;
    padding: 35px 0 40px;
}

.business-intro .eyebrow,
.service-heading .eyebrow,
.center-heading .eyebrow,
.profile-heading .eyebrow,
.contact-heading .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
}

.business-intro h2 {
    font-size: clamp(24px, 2.55vw, 40px);
    margin-top: 10px;
}

.business-intro > p {
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.8;
}

.service-section {
    display: grid;
    grid-template-columns: 32% 1fr;
    gap: 2.5%;
    padding: 0;
    margin-bottom: 48px;
    scroll-margin-top: 25px;
}

.service-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: -2.8vw;
    margin-bottom: 15px;
}

.service-number {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 95px);
    line-height: 1;
    color: #9fd4c0;
    border-left: 6px solid #81c6ab;
    padding-left: 20px;
}

.service-heading h2 {
    font-size: clamp(26px, 2.8vw, 44px);
    white-space: nowrap;
}

.service-heading .eyebrow {
    font-size: clamp(9px, .85vw, 14px);
    white-space: nowrap;
}

.service-copy > h3 {
    font-size: clamp(19px, 1.85vw, 29px);
    line-height: 1.5;
    margin: 14px 0;
}

.service-copy > p {
    font-size: clamp(13px, 1.1vw, 18px);
    line-height: 1.7;
    margin-bottom: 18px;
}

.work-list {
    padding: 13px 20px;
    background: #edf7f3;
    border-radius: 5px;
}

.work-list h4 {
    font-size: 15px;
    color: #168c60;
    border-left: 3px solid #9bdac4;
    padding-left: 8px;
    margin-bottom: 5px;
}

.work-list li {
    font-size: clamp(12px, 1.1vw, 17px);
    line-height: 1.7;
    display: flex;
    gap: 10px;
}

.work-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    background: #00af98;
    border-radius: 50%;
    color: white;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 12px;
}

.service-gallery {
    display: grid;
    grid-template-rows: 1.9fr 1fr;
    gap: 8px;
    min-height: 0;
    clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

.service-main-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    aspect-ratio: 2.8/1;
}

.service-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.service-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
    aspect-ratio: 1.65/1;
}

/* 40 関連事業 */
.related-business-link {
    color: #168357;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.related-business-link:hover {
    color: #205840;
}

.related-business {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #f0f8f4;
    border: 1px solid #d6e8de;
    border-radius: 6px;
    padding: 30px 36px;
    margin: 0 0 45px;
}

.related-business .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.related-business h2 {
    font-size: 28px;
    margin: 8px 0 12px;
}

.related-business h3 {
    font-size: 22px;
    font-weight: 600;
}

.related-business .pill {
    width: 300px;
    max-width: 100%;
    flex-shrink: 0;
}

/* 50 ダイユウの強み */
.company-strength {
    padding: 35px 0 50px;
}

.center-heading {
    text-align: center;
    margin-bottom: 35px;
}

.center-heading h2 {
    font-size: clamp(28px, 3vw, 48px);
    margin-top: 12px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.value-card {
    text-align: center;
    position: relative;
}

.value-card + .value-card::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #dcebe3;
}

.value-card .icon-circle {
    margin: 0 auto 16px;
    width: clamp(74px, 9vw, 140px);
}

.value-card h3 {
    font-size: clamp(23px, 2.6vw, 40px);
    margin-bottom: 10px;
}

.value-card p {
    font-size: clamp(14px, 1.5vw, 23px);
    line-height: 1.8;
    margin-bottom: 20px;
}

.value-photo {
    width: 100%;
    aspect-ratio: 1.3/1;
    object-fit: cover;
}

/* 60 会社概要 */
.company-profile {
    padding: 55px 0;
    background: linear-gradient(180deg, #f3faffb3 0, #fff 70%), url('../img/index/message.jpg') center top/100% auto no-repeat;
    scroll-margin-top: 20px;
}

.profile-heading {
    margin-bottom: 32px;
}

.profile-heading h2,
.contact-heading h2 {
    font-size: clamp(30px, 3.3vw, 52px);
    margin-bottom: 10px;
}

.profile-heading p,
.contact-heading p {
    font-size: clamp(14px, 1.5vw, 22px);
}

.profile-grid {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 3%;
}

.company-table > div {
    display: grid;
    grid-template-columns: 30% 1fr;
    border-top: 1px solid #d9e6df;
    font-size: clamp(13px, 1.3vw, 20px);
}

.company-table > div:last-child {
    border-bottom: 1px solid #d9e6df;
}

.company-table dt {
    padding: 11px 16px;
    background: #f5f8f6;
    font-weight: 600;
}

.company-table dd {
    padding: 11px 16px;
    background: #ffffffdc;
}

.pending-detail {
    color: #83988c;
}

.profile-photo img {
    width: 100%;
    aspect-ratio: 1.1/1;
    object-fit: cover;
}

.profile-photo .pill {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

.profile-photo .pill span {
    margin-left: auto;
}

/* 70 お問い合わせ・入力確認 */
.company-contact {
    background: url('../img/company/contact-bg.jpg') center/100% 100% no-repeat;
    padding: 45px 0 65px;
    scroll-margin-top: 20px;
}

.contact-heading {
    margin-bottom: 30px;
}

.contact-form {
    padding: 24px 30px;
    background: #f1faf6d9;
    border: 1px solid white;
    border-radius: 7px;
}

.form-row {
    display: grid;
    grid-template-columns: 26% 1fr;
    gap: 20px;
    margin-bottom: 16px;
    border: 0;
    min-width: 0;
}

.form-row > label,
.inquiry-kind legend {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.required {
    font-size: 10px;
    color: white;
    background: #fa3544;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
}

.form-row input:not([type=radio]),
.form-row textarea {
    width: 100%;
    min-width: 0;
    background: white;
    border: 1px solid #cbded6;
    border-radius: 5px;
    padding: 12px 16px;
    color: var(--forest);
    font-size: 15px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #9baeb0;
}

.form-row textarea {
    resize: vertical;
}

.inquiry-kind {
    position: relative;
    display: block;
    padding-left: calc(26% + 15px);
}

.inquiry-kind legend {
    position: absolute;
    left: 0;
    top: 2px;
    width: 26%;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.radio-options label {
    font-size: 13px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.radio-options input,
.consent input {
    accent-color: var(--green);
    width: 17px;
    height: 17px;
}

.consent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 22px;
}

.contact-form > .pill {
    margin: auto;
    justify-content: center;
    width: 320px;
    max-width: 100%;
    border: 0;
}

.contact-form > .pill span {
    margin-left: auto;
}

.other-contact {
    text-align: center;
    margin-top: 45px;
}

.other-contact h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.other-contact > p {
    font-size: 14px;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 22px;
}

.contact-channels > a,
.contact-channels > div {
    background: white;
    border: 1px solid #d4e8dc;
    border-radius: 6px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-channels span {
    font-size: 14px;
}

.contact-channels strong {
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.4;
}

.contact-channels small {
    font-size: 12px;
}

.contact-confirm {
    background: #f1faf6;
    padding: 30px;
    border-radius: 7px;
}

.contact-confirm[hidden],
.contact-form[hidden] {
    display: none;
}

.contact-confirm h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.contact-confirm dl > div {
    display: grid;
    grid-template-columns: 26% 1fr;
    border-bottom: 1px solid #d4e8dc;
    padding: 12px 0;
    gap: 20px;
}

.contact-confirm dd {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.contact-confirm .pill {
    margin: 20px auto 0;
}

.form-status {
    margin-top: 20px;
    font-size: 14px;
}

/* 80 個人情報の取り扱い */
.privacy {
    background: #e0f1e9;
    border-radius: 5px;
    padding: 12px 18px;
    margin: 22px 0 15px;
    font-size: 14px;
}

.privacy summary {
    cursor: pointer;
    font-weight: 600;
}

.privacy p {
    padding-top: 12px;
}

.privacy-content {
    padding: 20px 0 8px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.privacy-content h3 {
    font-family: inherit;
    font-size: 20px;
    margin: 0 0 16px;
    line-height: 1.6;
}

.privacy-content h4 {
    font-family: inherit;
    font-size: 16px;
    margin: 26px 0 10px;
    line-height: 1.6;
    color: var(--forest);
}

.privacy .privacy-content p {
    padding: 0;
    margin: 0 0 12px;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 12px 0 18px;
}

.privacy-content li {
    margin: 5px 0;
}

.privacy-content a {
    color: #167348;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 90 お問い合わせバナー */
.sub-contact-banner {
    background: url('../img/common/contact.jpg') center/cover;
    min-height: 18vw;
    display: flex;
    align-items: flex-end;
    gap: 35px;
    padding: 3vw 6.5%;
}

.sub-contact-banner h2 {
    font-size: clamp(27px, 2.8vw, 44px);
    margin-bottom: 12px;
}

.sub-contact-banner p {
    font-size: clamp(14px, 1.3vw, 21px);
}

.sub-contact-banner .pill {
    width: 310px;
    margin-bottom: 6px;
}

/* 95 下層フッター */
.page-subpage .site-footer {
    padding-top: 25px;
    padding-bottom: 25px;
}

.page-subpage .footer-main .brand {
    width: 27%;
}

.page-subpage .footer-main nav {
    gap: 0;
}

.page-subpage .footer-main nav a {
    font-size: 12px;
    padding: 0 17px;
}


/* お問い合わせ：ロボット対策・送信状態・完了画面 */
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.robot-check > div { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.robot-check #challenge { max-width: 150px; }
.contact-status { color: #8c352b; font-size: 14px; margin: 15px 0; overflow-wrap: anywhere; }
.contact-status:empty { display: none; }
.contact-form button:disabled, .contact-confirm button:disabled { opacity: .55; cursor: wait; }
.contact-confirm #send-inquiry { margin: 22px auto; }
.contact-thanks { padding: 65px 0; min-height: 50vh; }
.contact-thanks h1 { font-size: clamp(28px, 3.5vw, 48px); margin: 15px 0 25px; }
.contact-thanks p { margin: 18px 0; }
.contact-thanks .pill { margin-top: 30px; }

/* ==================================================
   PC・タブレット共通：768px以上
   ================================================== */
@media (min-width:768px) {
    /* 10 下層ヘッダー */
    .page-subpage .header-nav a {
        padding-inline: 12px;
    }

    .page-subpage .header-nav a[aria-current]::after {
        left: 12px;
        right: 12px;
    }

    /* 30 事業内容 */
    .business-intro h2 {
        font-size: clamp(22px, 2.1vw, 34px);
    }

    .service-copy > h3 {
        font-size: clamp(18px, 1.65vw, 27px);
    }

    /* 95 下層フッター */
    .page-subpage .footer-main nav a {
        padding-inline: 10px;
    }
}

/* ==================================================
   タブレット：768〜1100px
   ================================================== */
@media (max-width:1100px) and (min-width:768px) {
    /* 10 下層ヘッダー */
    .page-subpage .header-nav a {
        padding-inline: 6px;
        font-size: 10px;
    }

    .page-subpage .site-header {
        padding: 15px 3%;
        gap: 12px;
    }

    .page-subpage .site-header .brand {
        width: 190px;
    }

    /* 30 事業内容 */
    .service-heading {
        gap: 12px;
    }

    .service-number {
        padding-left: 10px;
    }

    .service-heading h2 {
        font-size: 24px;
    }

    .work-list {
        padding: 10px;
    }

    .service-section {
        grid-template-columns: 34% 1fr;
    }
}

/* ==================================================
   スマートフォン：767px以下
   ================================================== */
@media (max-width:767px) {
    /* 00 共通レイアウト・補助 */
    .sub-inner {
        width: 88%;
    }

    /* 10 下層ヘッダー */
    .page-subpage .site-header {
        min-height: 65px;
        padding: 5px 5%;
        background: #E0FFDF;
    }

    .page-subpage .site-header .brand {
        width: 240px;
    }

    /* 20 ページ見出し・パンくず */
    .sub-hero {
        height: 340px;
        min-height: 0;
    }

    .sub-hero-photo {
        width: 100%;
        height: 100%;
        object-position: 65% center;
    }

    .sub-hero-surface {
        background: linear-gradient(90deg, #effbf5f2, #effbf588 65%, transparent);
    }

    .breadcrumbs {
        font-size: 10px;
        padding: 12px 6%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .sub-hero-copy {
        margin: 45px 6% 0;
    }

    .sub-hero h1 {
        font-size: 38px;
    }

    .sub-hero p {
        font-size: 16px;
    }

    .company-hero {
        background-position: 60% center;
    }

    .company-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #fff9, transparent);
    }

    .company-hero .sub-hero-copy {
        margin-top: 35px;
    }

    .company-hero h1 {
        font-size: 32px;
    }

    /* 30 事業内容 */
    .business-intro {
        display: block;
        padding: 30px 0;
    }

    .business-intro h2 {
        font-size: 25px;
        margin-bottom: 15px;
    }

    .business-intro > p {
        font-size: 13px;
    }

    .business-intro br {
        display: none;
    }

    .service-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .service-heading {
        margin: 0 0 15px;
        gap: 18px;
    }

    .service-number {
        font-size: 57px;
        border-width: 4px;
        padding-left: 12px;
    }

    .service-heading h2 {
        font-size: 28px;
    }

    .service-heading .eyebrow {
        font-size: 9px;
    }

    .service-copy > h3 {
        font-size: 21px;
    }

    .service-copy > p {
        font-size: 14px;
    }

    .work-list li {
        font-size: 13px;
    }

    .service-gallery {
        height: auto;
        clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
        gap: 5px;
    }

    .service-main-photo {
        aspect-ratio: 1.8/1;
    }

    .service-thumbnails {
        gap: 5px;
    }

    .service-thumbnails img {
        aspect-ratio: 1/1;
    }

    /* 40 関連事業 */
    .related-business {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 22px;
        margin-bottom: 35px;
    }

    .related-business h2 {
        font-size: 25px;
    }

    .related-business h3 {
        font-size: 20px;
    }

    .related-business .pill {
        width: 100%;
        font-size: 12px;
        padding-inline: 20px;
        gap: 15px;
    }

    /* 50 ダイユウの強み */
    .company-strength {
        padding: 30px 0 35px;
    }

    .center-heading h2 {
        font-size: 25px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .value-card + .value-card::before {
        display: none;
    }

    .value-card .icon-circle {
        width: 80px;
    }

    .value-card h3 {
        font-size: 27px;
    }

    .value-card p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .value-photo {
        aspect-ratio: 1.65/1;
    }

    /* 60 会社概要 */
    .company-profile {
        padding: 35px 0;
        background-size: auto 420px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .company-table > div {
        font-size: 13px;
        grid-template-columns: 29% 1fr;
    }

    .company-table dt,
    .company-table dd {
        padding: 10px;
    }

    .profile-photo img {
        aspect-ratio: 1.6/1;
    }

    .profile-heading h2,
    .contact-heading h2 {
        font-size: 32px;
    }

    .profile-heading p,
    .contact-heading p {
        font-size: 14px;
    }

    /* 70 お問い合わせ・入力確認 */
    .company-contact {
        padding: 35px 0;
    }

    .contact-form {
        padding: 20px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-row > label,
    .inquiry-kind legend {
        font-size: 13px;
    }

    .inquiry-kind {
        padding-left: 0;
        padding-top: 30px;
    }

    .inquiry-kind legend {
        width: 100%;
    }

    .radio-options {
        gap: 12px;
    }

    .form-row input:not([type=radio]),
    .form-row textarea {
        font-size: 16px;
        padding: 11px;
    }

    .consent {
        font-size: 12px;
        justify-content: flex-start;
    }

    .contact-form > .pill {
        width: 100%;
        font-size: 14px;
    }

    .contact-channels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-channels strong {
        font-size: 29px;
    }

    .contact-channels small {
        font-size: 11px;
    }

    .contact-confirm {
        padding: 20px 16px;
    }

    .contact-confirm dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .contact-confirm .pill {
        max-width: 100%;
    }

    /* 80 個人情報の取り扱い */
    .privacy {
        font-size: 13px;
        padding: 12px;
    }

    .privacy-content h3 {
        font-size: 17px;
    }

    .privacy-content h4 {
        font-size: 14px;
    }

    .privacy-content {
        padding-top: 16px;
    }

    /* 90 お問い合わせバナー */
    .sub-contact-banner {
        min-height: 340px;
        display: block;
        padding: 35px 6%;
        background-position: 60% center;
    }

    .sub-contact-banner .pill {
        margin-top: 25px;
        width: 285px;
    }

    .sub-contact-banner h2 {
        font-size: 29px;
    }

    /* 95 下層フッター */
    .page-subpage .footer-main .brand {
        width: 240px;
        max-width: 78%;
    }

    .page-subpage .footer-main nav a {
        padding: 0 10px 0 0;
        font-size: 11px;
    }
}
