/* =========================================================
   TOYO HOMEPAGE V12
   Base → 1100px → 900px → 600px
   ========================================================= */

:root {
    --green: #158047;
    --green2: #0f6b3b;
    --deep: #0b3b29;
    --soft: #eef8f2;
    --soft2: #f7fbf8;
    --line: #d7e8de;
    --text: #1e2a24;
    --muted: #64756b;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.85;
    background: var(--white);
}

a {
    color: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 250px;
    max-width: 45vw;
    display: block;
}

.nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--deep);
    font-weight: 800;
}

.nav a {
    text-decoration: none;
}

.nav a.current,
.nav a:hover {
    color: var(--green);
}

.menu-toggle {
    display: none;
}

/* =========================
   COMMON TYPOGRAPHY / BUTTONS
   ========================= */
.eyebrow {
    letter-spacing: .14em;
    font-weight: 900;
    color: var(--green);
    font-size: 13px;
    margin: 0 0 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(21, 128, 71, .18);
}

.button.ghost {
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--green);
    box-shadow: none;
}

.headline-line {
    white-space: nowrap;
}

/* =========================
   TOP PAGE HERO
   ========================= */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #e8f6ee 0%, #fff 58%, #f6fbf8 100%);
    padding: 88px 0 74px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -130px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(21, 128, 71, .09);
}

.hero-bg-mark {
    position: absolute;
    left: -110px;
    bottom: -170px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(21, 128, 71, .06);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.18fr .72fr;
    gap: 72px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.12;
    margin: 0 0 28px;
    color: var(--deep);
    letter-spacing: .04em;
}

.lead {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
}

.sublead {
    font-size: 17px;
    color: var(--muted);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    max-width: 410px;
    justify-self: end;
    width: 100%;
}

.photo-frame {
    position: relative;
    background: var(--white);
    padding: 16px;
    border-radius: 34px;
    box-shadow: 0 26px 70px rgba(11, 59, 41, .16);
    transform: rotate(1deg);
}

.photo-frame::before {
    content: "";
    position: absolute;
    inset: 28px -18px -18px 36px;
    border-radius: 34px;
    background: var(--green);
    opacity: .12;
    z-index: -1;
}

.portrait {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    object-position: center;
    border-radius: 26px;
    display: block;
}

.name-card {
    position: absolute;
    left: 34px;
    bottom: 34px;
    background: rgba(255, 255, 255, .94);
    border-left: 5px solid var(--green);
    padding: 13px 19px;
    border-radius: 9px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}

.name-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

.name-card strong {
    font-size: 24px;
    color: var(--deep);
    line-height: 1.35;
}

/* =========================
   PAGE HERO
   ========================= */
.page-hero {
    background: linear-gradient(120deg, #e8f6ee, #fff);
    padding: 70px 0 54px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: 46px;
    line-height: 1.25;
    color: var(--deep);
    margin: 0;
}

.page-hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 760px;
}

.page-hero.services-hero .hero-description,
.page-hero.contact-hero .hero-description {
    max-width: none;
    width: 100%;
    white-space: nowrap;
}

/* =========================
   COMMON SECTIONS / GRIDS
   ========================= */
.section {
    padding: 82px 0;
}

.pale {
    background: var(--soft2);
}

.split {
    display: grid;
    grid-template-columns: .85fr 1.35fr;
    gap: 64px;
}

.section h2,
.contact-band h2 {
    font-size: 34px;
    line-height: 1.38;
    margin: 0;
    color: var(--deep);
    letter-spacing: .03em;
}

.body-text p {
    margin: 0 0 18px;
    font-size: 17px;
}

.section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 44px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p:last-child {
    margin: 0;
    color: var(--muted);
}

.green-section {
    background: linear-gradient(135deg, var(--deep), var(--green2));
    color: var(--white);
}

.green-section .eyebrow,
.green-section h2,
.section-title.light p {
    color: var(--white);
}

.section-title.light p:last-child {
    opacity: .86;
}

.service-grid,
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card,
.link-card {
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.green-section .service-card {
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .13);
}

.service-card span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--green);
    font-weight: 900;
    margin-bottom: 12px;
}

.service-card h3,
.link-card h3 {
    font-size: 21px;
    color: var(--deep);
    margin: 0 0 12px;
}

.service-card p,
.link-card p {
    margin: 0;
    color: var(--muted);
}

/* =========================
   TOP PAGE MESSAGE
   ========================= */
.message {
    background: var(--white);
}

.message-box {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 42px;
    align-items: center;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, #fff, #f3faf6);
    border-radius: 30px;
    padding: 48px;
    box-shadow: 0 18px 48px rgba(11, 59, 41, .08);
}

.message-logo {
    background: var(--white);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(11, 59, 41, .08);
}

.message-logo img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.message-box p:last-child {
    margin: 12px 0 0;
    font-size: 17px;
}

/* =========================
   ABOUT PAGE
   ========================= */
.policy-split {
    grid-template-columns: 1.12fr 1fr;
    gap: 54px;
}

.policy-split .section-head h2 {
    font-size: 32px;
}

.representative-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 54px;
    align-items: start;
}

.representative-photo {
    background: var(--white);
    padding: 14px;
    border-radius: 26px;
    box-shadow: 0 18px 46px rgba(11, 59, 41, .13);
}

.representative-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.7;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.representative-content h2 {
    margin-bottom: 22px;
}

.representative-content p {
    font-size: 17px;
    margin: 0 0 18px;
}

.representative-sign {
    margin-top: 26px;
    color: var(--deep);
    font-weight: 800;
}

.representative-quote {
    margin-top: 30px;
    padding: 24px 28px;
    border-left: 5px solid var(--green);
    background: var(--soft2);
    border-radius: 0 18px 18px 0;
    font-size: 21px !important;
    line-height: 1.75;
    font-weight: 900;
    color: var(--deep);
}

.timeline {
    border-left: 3px solid var(--line);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 14px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px var(--white);
}

.year {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--green);
    font-weight: 900;
    font-size: 13px;
}

.timeline-item h3 {
    margin: 0 0 8px;
    color: var(--deep);
    font-size: 22px;
}

.timeline-item p:last-child {
    margin: 0;
    color: var(--muted);
}

/* =========================
   COMPANY PAGE
   ========================= */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(13, 63, 43, .06);
}

.company-table th,
.company-table td {
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 220px;
    background: #f8fbf9;
    color: var(--deep);
    font-weight: 900;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: 0;
}

.company-table a {
    color: var(--green);
    font-weight: 900;
}

.phone-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.company-guide {
    margin: 32px 0 40px;
    padding: 28px 32px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.company-guide h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #173f31;
}

.company-guide p {
    margin: 0;
    line-height: 1.9;
}

.company-guide .guide-note {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.map {
    border: 0;
    width: 100%;
    height: 420px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(13, 63, 43, .08);
    margin-top: 28px;
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 14px 36px rgba(13, 63, 43, .08);
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 24px 0 0;
}

.contact-row {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
    background: var(--soft2);
    align-items: center;
}

.contact-row strong {
    min-width: 80px;
    color: var(--deep);
}

.contact-phone-card {
    background: #f7fbf8;
    border: 1px solid #d9e7df;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0 30px;
    text-align: center;
}

.contact-phone-card h3 {
    margin: 0;
    color: #173f31;
}

.contact-phone-card .tel {
    font-size: 34px;
    font-weight: 700;
    margin: 10px 0;
}

.contact-phone-card .sub {
    color: #666;
    line-height: 1.8;
}

/* =========================
   CONTACT BAND
   ========================= */
.contact-band {
    background: var(--deep);
    color: var(--white);
    padding: 58px 0;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.contact-band .eyebrow,
.contact-band h2 {
    color: var(--white);
}

.contact-band h2 {
    font-size: 31px;
    white-space: nowrap;
}

.contact-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 0 0 auto;
}

.contact-hours {
    display: flex;
    gap: 24px;
    margin-left: 20px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.contact-buttons .button {
    min-width: 170px;
    text-align: center;
    white-space: nowrap;
}

.contact-band .ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .75);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: #f7faf8;
    border-top: 1px solid var(--line);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.footer img {
    width: 220px;
}

.copy {
    white-space: nowrap;
}

/* =========================================================
   TABLET / SMALL PC: 1100px以下
   ========================================================= */
@media (max-width: 1100px) {
    .page-hero.services-hero .hero-description,
    .page-hero.contact-hero .hero-description {
        white-space: normal;
    }
}

/* =========================================================
   TABLET / MOBILE: 900px以下
   ========================================================= */
@media (max-width: 900px) {
    .header-inner {
        height: auto;
        padding: 15px 0;
        align-items: flex-start;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .brand img {
        max-width: 230px;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-grid,
    .split,
    .service-grid,
    .message-box,
    .link-grid,
    .representative-grid,
    .policy-split {
        grid-template-columns: 1fr;
    }

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

    .lead {
        font-size: 17px;
    }

    .sublead {
        font-size: 16px;
    }

    .hero-visual {
        max-width: 330px;
        justify-self: center;
    }

    .photo-frame {
        transform: none;
    }

    .section {
        padding: 60px 0;
    }

    .section h2,
    .contact-band h2 {
        font-size: 28px;
    }

    .headline-line {
        white-space: normal;
    }

    .message-box {
        padding: 28px;
    }

    .message-logo {
        max-width: 210px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 4px;
    }

    .representative-photo {
        max-width: 340px;
        margin: 0 auto;
    }

    .representative-quote {
        font-size: 18px !important;
        padding: 20px;
    }

    .contact-band h2 {
        white-space: normal;
    }

    .contact-inner {
        display: block;
    }

    .contact-side {
        width: 100%;
    }

    .contact-hours {
        flex-direction: column;
        gap: 2px;
        margin-left: 0;
        white-space: normal;
    }

    .contact-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: 20px;
    }

    .contact-buttons .button {
        width: 100%;
        min-width: 0;
    }

    .contact-phone-card .tel {
        font-size: 29px;
    }

    .company-guide {
        padding: 22px;
    }

    .footer-inner {
        display: block;
    }

    .footer img {
        margin-bottom: 18px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .map {
        height: 320px;
    }
}

/* =========================================================
   MOBILE: 600px以下
   ========================================================= */
@media (max-width: 600px) {
    .header-inner {
        position: relative;
        display: grid;
        grid-template-columns: 0 1fr 60px;
        align-items: center;
        padding: 28px 16px 22px;
    }

    .menu-toggle {
        grid-column: 3;
        justify-self: end;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;

        width: 60px;
        height: 60px;
        padding: 7px;

        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--soft2);
        cursor: pointer;
    }

    .menu-toggle small {
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        color: var(--deep);
        letter-spacing: 0.05em;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--deep);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .brand img {
        width: 220px;
        max-width: 100%;
        margin: 0 auto 12px;
    }

    .brand {
        grid-column: 2;
        justify-self: center;
    }

    .nav {
        display: grid;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 30;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 16px 16px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);

        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
        pointer-events: none;

        transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
    }

    .nav.open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav a {
        display: block;
        padding: 7px 6px;
        text-align: center;
        background: var(--soft2);
        border-radius: 6px;
        line-height: 1.4;
    }

    .nav-sub {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-sub a {
        font-size: 12px;
    }

    .page-hero {
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .page-hero .eyebrow {
        font-size: 15px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: .02em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .photo-frame {
        padding: 20px;
    }

    .message-logo {
        justify-self: center;
    }

    .message-box h2 {
        font-size: 24px;
        white-space: nowrap;
    }

    .policy-split .section-head h2 {
        font-size: 22px;
        line-height: 1.7;
    }

    .policy-split .headline-line {
        white-space: nowrap;
    }

    .footer-inner {
        font-size: 16px;
    }

    .contact-row {
        width: min(290px, 100%);
        margin-left: auto;
        margin-right: auto;
        gap: 0;
    }

    .contact-row strong {
        min-width: 70px;
    }

    .contact-band h2 {
        font-size: 24px;
    }

}
    /* PC・スマホでお問い合わせ見出しを切り替える */
    .pc-title {
        display: inline;
    }

    .sp-title {
        display: none;
    }

@media (max-width: 768px) {
    .pc-title {
        display: none;
    }

    .sp-title {
        display: inline;
    }
}

/* お問い合わせページの見出しをスマホで1行表示 */
@media (max-width: 600px) {
    .contact-title {
        font-size: 22px;
        white-space: nowrap;
        letter-spacing: 0;
    }
}