/* =========================================================
   株式会社寧兎 Corporate Site
   Design Concept: Minimal / Trustworthy / Ample White Space
   Reference Tone: dive.design
   ========================================================= */

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

:root {
    /* Colors */
    --color-text: #1a1a1a;
    --color-text-sub: #666666;
    --color-text-light: #999999;
    --color-bg: #ffffff;
    --color-bg-gray: #f9f9f9;
    --color-bg-dark: #222222;
    --color-border: #e5e5e5;
    --color-border-strong: #1a1a1a;
    --color-white: #ffffff;

    /* Typography */
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

    /* Layout */
    --max-width: 1200px;
    --padding-x-pc: 4%;
    --padding-x-sp: 5%;
    --section-py-pc: 10rem;   /* 160px */
    --section-py-sp: 5rem;    /* 80px */
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;              /* 16px */
    line-height: 1.9;              /* 1.8〜2.0 */
    letter-spacing: 0.05em;
    color: var(--color-text);
    background: var(--color-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
    opacity: 0.65;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

/* ---------- 2. Common Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--padding-x-pc);
}

.section-head {
    text-align: center;
    margin-bottom: 5rem; /* 80px */
}

.section-label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;              /* 32px */
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    color: var(--color-text);
}

.section-lead {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-sub);
    line-height: 2;
}

/* ---------- 3. Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--padding-x-pc); /* 24px */
    max-width: 100%;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

.site-logo img{
width:200px;
}

.global-nav .nav-list {
    display: flex;
    gap: 2.5rem; /* 40px */
}

.global-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
}

.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.35s ease;
}

.global-nav a:hover {
    opacity: 1;
}

.global-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 28px;
    height: 22px;
    position: relative;
}

.nav-toggle span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: calc(100% - 4px); }

.nav-toggle.is-open span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* ---------- 4. Hero Section ---------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/FV-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1.00); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 960px;
}

.hero-copy {
    font-family: var(--font-serif);
    font-size: 2.5rem;             /* 40px */
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: var(--color-white);
}

.hero-copy img{
width:9vh;
margin:0 auto;
}

.hero-copy-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
}
.hero-copy-line:nth-child(1) { animation-delay: 0.4s; }
.hero-copy-line:nth-child(2) { animation-delay: 0.9s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards;
    animation-delay: 1.4s;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}

.hero-scroll-text {
    font-family: var(--font-serif);
    font-size: 0.6875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -60px;
    width: 100%;
    height: 60px;
    background: var(--color-white);
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { top: -60px; }
    100% { top: 60px; }
}

/* ---------- 5. Slogan Section ---------- */

.slogan-section {
    padding-top: 10rem;    /* 160px */
    padding-bottom: 7.5rem; /* 120px */
    background: var(--color-bg);
    text-align: center;
}

.slogan-small {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.slogan-text {
    font-family: var(--font-serif);
    font-size: 2.25rem;  /* 36px */
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.12em;
    color: var(--color-text);
}

/* ---------- 6. Services Section ---------- */
.services-section {
    background: var(--color-bg-gray);
    padding: var(--section-py-pc) 0;
    inset: 0;
    background-image: url("../images/con-bg01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem; /* 40px */
    row-gap: 4rem;      /* 64px */
}

.service-card {
    background: transparent;
}

.service-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 1.5rem; /* 24px */
    background: #eee;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-body {
    padding-top: 0.5rem;
}

.service-number {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--color-text);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-strong);
    margin-bottom: 1.25rem;
}

.service-desc {
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--color-text-sub);
}

/* ---------- 7. Message Section ---------- */
.message-section {
    background: var(--color-bg);
    padding: var(--section-py-pc) 0;
    inset: 0;
    background-image: url("../images/con-bg02.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.message-wrap {
    display: flex;
    align-items: stretch;
    gap: 5rem; /* 80px */
    justify-content: center;
}

.message-image {
    flex: 0 0 45%;
    min-height: 400px;
    overflow: hidden;
    background: #eee;
}

.message-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center top;
}

.message-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width:55%;
}

.message-heading {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.message-paragraph {
    font-size: 0.9375rem;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 2rem; /* 32px */
}

.message-paragraph:last-of-type {
    margin-bottom: 0;
}

.message-sign {
    margin-top: 4rem; /* 64px */
    text-align: right;
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

/* ---------- 8. Company Section ---------- */
.company-section {
    background: var(--color-bg-gray);
    padding: var(--section-py-pc) 0;
}

.company-table-wrap {
    max-width: 800px;
    margin-inline: auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.company-table th,
.company-table td {
    padding: 1.5rem 0; /* 24px */
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.9;
    letter-spacing: 0.05em;
}

.company-table tr:first-child th,
.company-table tr:first-child td {
    border-top: 1px solid var(--color-border);
}

.company-table th {
    width: 30%;
    font-weight: 600;
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.company-table td {
    width: 70%;
    color: var(--color-text);
    padding-left: 1.5rem;
}

/* ---------- 9. News Section ---------- */
.news-section {
    background: var(--color-bg);
    padding: var(--section-py-pc) 0;
}

.news-list {
    max-width: 800px;
    margin-inline: auto;
    border-top: 1px solid var(--color-border);
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 1.5rem 0; /* 24px */
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.news-date {
    flex: 0 0 140px;
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
}

.news-title {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ---------- 10. Contact Section ---------- */
.contact-section {
    background: var(--color-bg-gray);
    padding: var(--section-py-pc) 0;
    inset: 0;
    background-image: url("../images/con-bg03.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-inner {
    text-align: center;
}

.contact-lead {
    margin-top: -2rem; /* section-head下の余白を一部相殺 */
    margin-bottom: 2.5rem; /* 40px */
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text);
    letter-spacing: 0.08em;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 320px;
    max-width: 90%;
    height: 64px;
    background: #111;
    color: var(--color-white);
    border-radius: 50px;
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.contact-button-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-button:hover .contact-button-arrow {
    transform: translateX(4px);
}

.contact-mail-plain {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: var(--color-text-sub);
}

/* ---------- 11. Footer ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 4rem 0; /* 64px top/bottom */
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 500;
}

.footer-copy {
    font-size: 0.75rem; /* 12px */
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   12. Responsive (Tablet & SP)
   ========================================================= */

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 3rem;
    }

    .message-wrap {
        flex-direction: column;
        gap: 3rem;
    }

    .message-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 320px;
    }
    .message-image img {
        min-height: 320px;
    }
    .message-body{
        width:100%;
    }

}

@media (max-width: 768px) {
    :root {
        --section-py-pc: 5rem;
    }

    .container {
        padding-inline: var(--padding-x-sp);
    }

    /* Header */
    .header-inner {
        padding: 1rem var(--padding-x-sp);
    }

    .site-logo {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 6rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);
    }

    .global-nav.is-open {
        transform: translateX(0);
    }

    .global-nav .nav-list {
        flex-direction: column;
        gap: 1.75rem;
    }

    .global-nav a {
        font-size: 1rem;
    }

    .nav-toggle {
        display: block;
        z-index: 101;
    }

    /* Hero */
    .hero-copy {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
        line-height: 1.7;
    }

    .hero-sub {
        margin-top: 1.5rem;
        font-size: 0.625rem;
        letter-spacing: 0.4em;
    }

    /* Section Head */
    .section-head {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    /* Slogan */
    .slogan-section {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
    .slogan-text {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    /* Services */
    .services-section { padding: 5rem 0; }

    .services-grid {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .service-title {
        font-size: 1.0625rem;
    }

    /* Message */
    .message-section { padding: 5rem 0; }
    .message-heading {
        font-size: 1.25rem;
        margin-bottom: 1.75rem;
    }
    .message-paragraph {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    .message-sign {
        margin-top: 2.5rem;
    }

    /* Company */
    .company-section { padding: 5rem 0; }

    .company-table,
    .company-table tbody,
    .company-table tr,
    .company-table th,
    .company-table td {
        display: block;
        width: 100% !important;
    }
    .company-table th {
        padding: 1.25rem 0 0.5rem;
        border-bottom: none;
        font-size: 0.8125rem;
        color: var(--color-text-sub);
    }
    .company-table td {
        padding: 0 0 1.25rem;
        border-bottom: 1px solid var(--color-border);
    }
    .company-table tr:first-child th {
        border-top: 1px solid var(--color-border);
    }

    /* News */
    .news-section { padding: 5rem 0; }

    .news-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem 0;
    }
    .news-date {
        flex: none;
        font-size: 0.75rem;
    }
    .news-title {
        font-size: 0.9375rem;
    }

    /* Contact */
    .contact-section { padding: 5rem 0; }

    .contact-lead {
        margin-top: 0;
        font-size: 0.9375rem;
    }

    .contact-button {
        width: 280px;
        height: 60px;
        font-size: 0.875rem;
        letter-spacing: 0.15em;
    }

    /* Footer */
    .site-footer {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-copy {
        font-size: 1.25rem;
    }
    .slogan-text {
        font-size: 1.25rem;
    }
}
