/* =========================================================
   株式会社 新栄製作所 — Corporate Site  shared styles
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green:      #1a4d33;
    --green-dark: #143d29;
    --green-700:  #246241;
    --leaf:       #3bbf7a;
    --ink:        #2c2c2c;
    --ink-soft:   #555a54;
    --text:       #333333;
    --bg:         #f4f5f5;
    --bg-2:       #ececec;
    --white:      #ffffff;
    --line:       #e2e2dd;
    --footer:     #3a3f37;
    --footer-dark:#2f342d;
    --maxw:       1100px;
}

html { scroll-behavior: smooth; }
body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.85;
    background: var(--white);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 96px 0; }

/* ---- Section heads ---- */
.eyebrow {
    font-size: 12px; letter-spacing: .28em; font-weight: 700;
    color: #9aa39c; text-transform: uppercase; text-align: center; display: block;
}
.sec-title {
    font-size: 30px; font-weight: 700; text-align: center; color: var(--ink);
    margin-top: 14px; letter-spacing: .04em;
}
.sec-lead { text-align: center; max-width: 720px; margin: 26px auto 0; color: var(--ink-soft); font-size: 15px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 38px; background: var(--ink); color: #fff;
    border-radius: 3px; font-size: 14px; font-weight: 500; letter-spacing: .04em;
    transition: opacity .25s, transform .25s; border: 1px solid var(--ink);
}
.btn:hover { opacity: .82; }
.btn .arw { font-size: 12px; }
.btn-outline { background: #fff; color: var(--green); border: 1px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; opacity: 1; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid #fff; }

/* =========================================================
   Header
========================================================= */
header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6e6e2;
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 74px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo .logo-h { height: 37px; width: auto; }
.logo .logo-txt { font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.logo .logo-txt .corp { font-size: 11px; font-weight: 500; color: var(--ink-soft); display: block; letter-spacing: .14em; margin-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:not(.nav-contact)::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--green); transition: width .25s ease;
}
.nav-links a:not(.nav-contact):hover { color: var(--green); }
.nav-links a:not(.nav-contact):hover::after { width: 100%; }
.nav-links a.active:not(.nav-contact) { color: var(--green); }
.nav-links a.active:not(.nav-contact)::after { width: 100%; }
.nav-links a.nav-contact {
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
    border: 1.5px solid #c9ccc6; padding: 11px 28px; border-radius: 3px; font-weight: 500;
    transition: background-color .25s, color .25s, border-color .25s;
}
.nav-contact:hover { background: var(--green); color: #fff; border-color: var(--green); }
.menu-toggle {
    display: none; position: relative; width: 44px; height: 44px; border: none; background: transparent;
    cursor: pointer; padding: 0; z-index: 120; flex-shrink: 0;
}
.menu-toggle span {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
    position: fixed; top: 0; right: 0; height: 100%; width: 78%; max-width: 320px;
    background: #fff; z-index: 115; transform: translateX(100%);
    transition: transform .34s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 30px rgba(0,0,0,.12);
    padding: 96px 0 40px; overflow-y: auto;
}
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list a {
    font-size: 15px; font-weight: 500; color: var(--ink); padding: 18px 32px;
    border-bottom: 1px solid #eee; transition: background .2s, color .2s;
}
.mobile-nav-list a:active, .mobile-nav-list a:hover { background: var(--bg); color: var(--green); }
.mobile-nav-list a.active { color: var(--green); }
.mobile-nav-list a.is-contact {
    margin: 24px 32px 0; padding: 15px 0; text-align: center; border: 1.5px solid var(--green);
    color: var(--green); border-radius: 3px;
}
.mobile-nav-list a.is-contact:hover { background: var(--green); color: #fff; }
.mobile-nav-backdrop {
    position: fixed; inset: 0; background: rgba(20,40,30,.4); z-index: 110;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
body.menu-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* =========================================================
   Page banner (sub pages)
========================================================= */
.page-banner {
    position: relative; height: 220px; display: flex; align-items: center;
    background: var(--green-dark);
    overflow: hidden;
}
.page-banner .pb-img {
    position: absolute; inset: 0;
    background: url('assets/banner.jpg') center 38% / cover no-repeat;
}
.page-banner .pb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,55,38,.62) 0%, rgba(18,55,38,.18) 46%, rgba(18,55,38,0) 78%);
}
.page-banner .pb-grid { display: none; }
.page-banner .container { position: relative; z-index: 2; width: 100%; }
.page-banner h1 { color: #fff; font-size: 38px; font-weight: 700; letter-spacing: .06em; text-align: left; }
.page-banner .en { display: block; font-size: 12px; letter-spacing: .3em; color: var(--leaf); font-weight: 700; margin-top: 8px; }

/* =========================================================
   Contact section (reused)
========================================================= */
.contact-wrapper { background: var(--bg); }
.contact-box {
    background: #fff; max-width: 760px; margin: 0 auto; padding: 60px 64px;
    box-shadow: 0 6px 26px rgba(0,0,0,.05);
}
.contact-tel { text-align: center; padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid #eee; }
.contact-tel p.lead { font-size: 14px; color: var(--ink-soft); }
.contact-tel .num { font-size: 40px; font-weight: 700; letter-spacing: .04em; color: var(--ink); margin: 10px 0 8px; }
.contact-tel small { font-size: 13px; color: #888; }
.contact-map { margin-top: 40px; padding-top: 4px; }
.contact-map .map-head { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--green); text-align: center; margin-bottom: 6px; }
.contact-map .map-sub { font-size: 13px; color: var(--ink-soft); text-align: center; margin-bottom: 20px; }
.contact-map .map-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.contact-map .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-map .map-link { display: inline-flex; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--green); }
.contact-map .map-link:hover { text-decoration: underline; }
.contact-map .map-foot { text-align: center; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #ddd; background: #fafafa;
    font-size: 14px; font-family: inherit; border-radius: 2px; transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green-700); background: #fff; }
.form-group textarea { height: 150px; resize: vertical; }
.submit-btn {
    width: 100%; padding: 16px; background: var(--ink); color: #fff; border: none;
    font-size: 16px; letter-spacing: .3em; cursor: pointer; transition: opacity .25s; border-radius: 2px;
}
.submit-btn:hover { opacity: .85; }
.form-group .req { font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 2px 8px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.form-group .opt { font-size: 11px; font-weight: 500; color: #888; background: #eee; padding: 2px 8px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.form-error { color: #b3261e; font-size: 13.5px; background: #fcebe9; border: 1px solid #f3c9c4; padding: 11px 14px; border-radius: 3px; margin-bottom: 22px; }
.confirm-lead { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.confirm-list { border-top: 1px solid #eee; margin-bottom: 30px; }
.confirm-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #eee; }
.confirm-row dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.confirm-row dd { font-size: 14px; color: var(--text); white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.confirm-row dd:empty::before { content: "（未入力）"; color: #aaa; }
.confirm-actions { display: flex; gap: 14px; }
.btn-back {
    flex: 0 0 auto; padding: 16px 28px; background: #fff; color: var(--ink); border: 1.5px solid #c9ccc6;
    font-size: 15px; cursor: pointer; border-radius: 2px; transition: border-color .2s, color .2s; font-family: inherit;
}
.btn-back:hover { border-color: var(--green); color: var(--green); }
.submit-btn-inline { width: auto; flex: 1 1 auto; }
.done-mark { width: 64px; height: 64px; margin: 8px auto 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.done-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.done-text { font-size: 14px; color: var(--ink-soft); text-align: center; line-height: 1.9; margin-bottom: 30px; }
.done-text a { color: var(--green); }
#donePanel { text-align: center; }
#donePanel .btn-back { display: inline-block; }

/* =========================================================
   Footer
========================================================= */
footer { background: var(--footer); color: #fff; padding: 48px 0 30px; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 26px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 46px; width: auto; }
.footer-logo .logo-white { height: 38px; width: auto; }
.footer-logo .ft-txt { font-weight: 700; font-size: 17px; line-height: 1.3; }
.footer-logo .ft-txt .corp { display: block; font-size: 10px; font-weight: 400; opacity: .7; letter-spacing: .12em; }
.footer-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.82); transition: color .2s; }
.footer-links a:hover { color: var(--leaf); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .04em; }

/* =========================================================
   Reveal
========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    .section-padding { padding: 64px 0; }
    .sec-title { font-size: 25px; }
    .sec-lead { font-size: 14px; margin-top: 20px; }
    .page-banner { height: 150px; }
    .page-banner h1 { font-size: 26px; }
    .page-banner .en { font-size: 11px; letter-spacing: .2em; }
    .contact-box { padding: 36px 22px; }
    .contact-tel .num { font-size: 30px; }
    .contact-tel { padding-bottom: 28px; margin-bottom: 28px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 22px; }
    .footer-links { justify-content: center; gap: 14px 20px; }
    .logo .logo-h { height: 32px; }
    .header-inner { height: 64px; }
    .btn { padding: 14px 28px; }
}
@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .header-inner { padding: 0 18px; }
    .page-banner h1 { font-size: 22px; }
    .sec-title { font-size: 22px; }
}
