/* =========================================================
   株式会社新優 Premium Theme
   style.css（テンプレート）の上に重ねて読み込む上書きスタイル
   ========================================================= */
:root {
    --ink: #0f1b2d;
    --navy: #16263f;
    --navy-2: #1e3352;
    --gold: #b08d57;
    --gold-light: #d4b98a;
    --paper: #f7f4ee;
    --line: #e6e0d4;
    --text: #2b3445;
    --muted: #5f6878;
    --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --latin: "Cormorant Garamond", "Times New Roman", serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* スムーズスクロールは smooth-scroll.js が担当（CSS の scroll-behavior と併用すると位置がずれるため未指定） */
body {
    font-family: var(--sans);
    color: var(--text);
    background: #fff;
    line-height: 1.9;
    letter-spacing: .04em;
    font-feature-settings: "palt" 1;
    -webkit-font-smoothing: antialiased;
}
p { font-size: 15.5px; }
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--ink); letter-spacing: .06em; }
a { color: var(--navy); transition: color .3s var(--ease); }
a:hover { color: var(--gold); }
::selection { background: var(--gold-light); color: var(--ink); }
section[id] { scroll-margin-top: 72px; }

/* ---------- Navigation ---------- */
.navbar-custom {
    padding: 22px 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 1px 0 var(--line) !important;
    transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar-custom.nav-sticky { padding: 12px 0 !important; backdrop-filter: blur(10px); }
.navbar-brand.logo { display: inline-flex; align-items: baseline; gap: 12px; text-transform: none; }
.brand-ja { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .12em; color: var(--ink); }
.brand-en { font-family: var(--latin); font-weight: 600; font-size: 14px; letter-spacing: .32em; color: var(--gold); }
.navbar-custom .navbar-nav li a,
.navbar-custom.navbar-white .navbar-nav li a {
    position: relative;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--ink) !important;
    margin: 0 4px !important;
    padding: 8px 14px !important;
}
.navbar-custom .navbar-nav li a::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.navbar-custom .navbar-nav li a:hover::after,
.navbar-custom .navbar-nav li.active a::after { transform: scaleX(1); }
.navbar-custom.navbar-white .navbar-nav li.active a,
.navbar-custom.navbar-white .navbar-nav li a:hover,
.navbar-custom .navbar-nav li.active a { color: var(--gold) !important; }
.navbar-toggler { border: 0; color: var(--ink) !important; font-size: 26px; padding: 2px 6px; }

/* 透明ナビ（PC・ヒーロー上） */
@media (min-width: 992px) {
    .navbar-custom:not(.nav-sticky) { background: transparent !important; box-shadow: none !important; }
    .navbar-custom:not(.nav-sticky) .brand-ja,
    .navbar-custom:not(.nav-sticky).navbar-white .navbar-nav li a { color: #fff !important; }
    .navbar-custom:not(.nav-sticky).navbar-white .navbar-nav li.active a,
    .navbar-custom:not(.nav-sticky).navbar-white .navbar-nav li a:hover { color: var(--gold-light) !important; }
    .navbar-custom:not(.nav-sticky) .brand-en { color: var(--gold-light); }
}
@media (max-width: 991.98px) {
    .navbar-custom { padding: 12px 0 !important; }
    .navbar-collapse { border-top: 1px solid var(--line); margin-top: 12px; padding: 8px 0 4px; }
    .navbar-custom .navbar-nav li a { padding: 12px 4px !important; margin: 0 !important; }
    .navbar-custom .navbar-nav li a::after { left: 4px; right: auto; width: 24px; }
    .brand-ja { font-size: 21px; }
    .brand-en { font-size: 12px; letter-spacing: .26em; }
}

/* ---------- Hero ---------- */
.home-slider.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 140px 0 130px;
    display: flex; align-items: center;
    background: var(--ink) url(../image/bg-1.png) center / cover no-repeat;
    overflow: hidden;
    color: #fff;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(30, 51, 82, .55) 0%, rgba(15, 27, 45, .0) 60%),
        linear-gradient(180deg, rgba(15, 27, 45, .88) 0%, rgba(15, 27, 45, .92) 60%, rgba(15, 27, 45, .97) 100%);
}
.hero-overlay::after {
    content: ""; position: absolute; inset: 28px;
    border: 1px solid rgba(212, 185, 138, .22);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow {
    font-family: var(--latin); font-size: 15px; font-weight: 600;
    letter-spacing: .5em; color: var(--gold-light); margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: ""; display: inline-block; width: 48px; height: 1px;
    background: currentColor; vertical-align: middle; margin: 0 18px; opacity: .7;
}
.hero .home-title {
    font-family: var(--serif); font-weight: 600; color: #fff;
    font-size: clamp(40px, 6.4vw, 76px); letter-spacing: .18em; line-height: 1.3;
    margin: 0 0 18px;
}
.hero-motto {
    font-family: var(--serif); font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: .4em; color: var(--gold-light); margin-bottom: 34px;
}
.hero .home-desc {
    max-width: 760px; margin: 0 auto;
    color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 2.1; text-align: justify;
    text-align-last: center;
}
.hero-actions { margin-top: 46px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-gold, .btn-ghost {
    border-radius: 0; padding: 15px 38px; font-size: 14px; letter-spacing: .16em; font-weight: 500;
    transition: all .4s var(--ease);
}
.btn-gold { background: var(--gold); color: #fff !important; border: 1px solid var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold-light) !important; border-color: var(--gold-light); }
.btn-gold .mdi { transition: transform .4s var(--ease); display: inline-block; }
.btn-gold:hover .mdi { transform: translateX(4px); }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }

.home-arrow { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; text-align: center; }
.home-arrow a { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); }
.scroll-label { font-family: var(--latin); font-size: 12px; letter-spacing: .4em; padding-left: .4em; }
.scroll-line { width: 1px; height: 56px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.scroll-line::after {
    content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
    background: var(--gold-light); animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Section heads ---------- */
.section { padding: 130px 0; }
.section-sm { padding: 110px 0; }
.eyebrow {
    font-family: var(--latin); font-weight: 600; font-size: 14px;
    letter-spacing: .38em; color: var(--gold); margin-bottom: 10px;
}
.section-title {
    font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px);
    letter-spacing: .14em; color: var(--ink); margin-bottom: 0; position: relative; padding-bottom: 26px;
}
.section-title::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 1px; background: var(--gold);
}
.section-title.text-start::after { left: 0; transform: none; }
.section-head { max-width: 820px; margin: 0 auto 30px; }
.section-lead { color: var(--muted); margin: 30px auto 0; line-height: 2.1; }
.body-text { color: var(--muted); margin-top: 30px; line-height: 2.15; text-align: justify; }

/* ---------- Business cards ---------- */
.services-box.market-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 0;
    padding: 52px 38px 40px; text-align: left; color: var(--text);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.services-box.market-card::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.services-box.market-card:hover {
    transform: translateY(-6px); border-color: transparent; color: var(--text);
    box-shadow: 0 24px 50px -24px rgba(15, 27, 45, .28);
}
.services-box.market-card:hover::before { transform: scaleX(1); }
.card-no {
    position: absolute; top: 26px; right: 32px;
    font-family: var(--latin); font-size: 42px; line-height: 1; color: var(--line); font-weight: 600;
    transition: color .5s var(--ease);
}
.market-card:hover .card-no { color: var(--gold-light); }
.services-box .services-img { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: 50%; }
.services-box .services-img::before { display: none; }
.services-box .services-img img { width: 34px; height: 34px; object-fit: contain; }
.card-title { font-size: 22px; font-weight: 600; margin: 28px 0 12px; }
.card-text { color: var(--muted); font-size: 14px; line-height: 1.95; flex: 1; margin-bottom: 26px; }
.market-card .read-more {
    font-size: 13px; letter-spacing: .14em; color: var(--navy); font-weight: 500;
    border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center;
}
.market-card .read-more .mdi { font-size: 18px; transition: transform .4s var(--ease); }
.market-card:hover .read-more { color: var(--gold); }
.market-card:hover .read-more .mdi { transform: translateX(4px); }

/* ---------- Market sections ---------- */
.market { background: #fff; }
.market-alt { background: var(--paper) !important; }
.framed-img { position: relative; margin: 0; padding: 0 22px 22px 0; }
.framed-img::before {
    content: ""; position: absolute; top: 22px; left: 22px; right: 0; bottom: 0;
    border: 1px solid var(--gold); opacity: .55; z-index: 0;
}
.framed-img.framed-left { padding: 0 0 22px 22px; }
.framed-img.framed-left::before { left: 0; right: 22px; }
.framed-img img {
    position: relative; z-index: 1; width: 100%; display: block;
    box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .35);
    transition: transform .8s var(--ease);
}
.framed-img:hover img { transform: translate(-4px, -4px); }
.framed-left:hover img { transform: translate(4px, -4px); }

.features-img {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.features-img img { width: 22px; }
.feature-card {
    display: flex; gap: 24px; height: 100%;
    background: #fff; padding: 36px 34px; border: 1px solid var(--line);
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15, 27, 45, .3); }
.feature-card .features-img { background: var(--paper); border-color: transparent; }
.feature-title { font-size: 18px; font-weight: 600; line-height: 1.6; margin-bottom: 12px; }
.feature-no {
    display: block; font-family: var(--latin); font-size: 15px; letter-spacing: .3em;
    color: var(--gold); margin-bottom: 4px;
}
.feature-card p, .feature-item p { color: var(--muted); font-size: 14.5px; line-height: 2; margin-bottom: 0; text-align: justify; }
.feature-list { margin-top: 38px; }
.feature-item { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature-item:first-child { padding-top: 0; }
.feature-item:last-child { border-bottom: 0; padding-bottom: 0; }

.statement {
    margin-top: 80px; padding: 64px 70px;
    background: var(--ink); color: #fff; position: relative;
}
.statement::before {
    content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212, 185, 138, .28); pointer-events: none;
}
.statement-title {
    font-family: var(--serif); font-size: clamp(19px, 2.1vw, 26px); font-weight: 600;
    letter-spacing: .12em; line-height: 1.8; color: var(--gold-light); text-align: center; margin-bottom: 26px;
}
.statement-text { color: rgba(255, 255, 255, .8); line-height: 2.15; margin: 0 auto; max-width: 860px; text-align: justify; }

/* ---------- Partners ---------- */
#supplier { background: #fff; }
.partner-card {
    background: #fff; border: 1px solid var(--line); height: 100%;
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(15, 27, 45, .32); }
.partner-card .client-images { padding: 34px 30px; display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 0 !important; }
.partner-card .client-images img { height: 44px; width: auto; opacity: 1; filter: none; }
.partner-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.partner-card:hover .partner-photo img { transform: scale(1.04); }

/* ---------- Vision ---------- */
.vision {
    background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%) !important;
    color: #fff; position: relative; overflow: hidden;
}
.vision::before {
    content: "VISION"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-family: var(--latin); font-size: clamp(120px, 20vw, 280px); letter-spacing: .1em;
    color: rgba(255, 255, 255, .035); pointer-events: none; white-space: nowrap;
}
.vision .eyebrow { color: var(--gold-light); }
.vision .section-title { color: #fff; }
.vision-text {
    position: relative; font-family: var(--serif); font-size: clamp(16px, 1.55vw, 19px);
    line-height: 2.3; letter-spacing: .08em; color: rgba(255, 255, 255, .88);
    margin: 44px auto 0; text-align: justify; text-align-last: center;
}

/* ---------- Footer ---------- */
.bg-footer.site-footer { background: #0b1422; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(212, 185, 138, .18); padding: 70px 0 34px; }
.footer-brand { display: inline-flex; align-items: baseline; gap: 12px; }
.footer-brand .brand-ja { color: #fff; }
.footer-brand .brand-en { color: var(--gold-light); }
.footer-company { margin: 20px 0 0; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, .6); }
.footer-links { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 34px; }
.footer-links a { color: rgba(255, 255, 255, .78); font-size: 13.5px; letter-spacing: .1em; position: relative; padding-bottom: 4px; }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--latin); letter-spacing: .24em; font-size: 13px; color: rgba(255, 255, 255, .45); text-align: center; }

/* ---------- Modals ---------- */
.modal-backdrop.show { opacity: .7; background: var(--ink); }
.modal-content { border: 0; border-radius: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.modal-content::before { content: ""; display: block; height: 3px; background: var(--gold); }
.modal-header { border-bottom: 1px solid var(--line); padding: 26px 36px 22px; align-items: center; }
.modal-title { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .1em; margin: 0; }
.modal-header .btn-close { opacity: .55; box-shadow: none !important; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-body.home-modal { padding: 30px 36px 38px; background: #fff; }
.modal-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 18px 8px; vertical-align: top; line-height: 1.95; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 1px solid var(--line); }
.info-table th { width: 30%; font-weight: 500; color: var(--ink); background: var(--paper); padding-left: 20px; letter-spacing: .08em; }
.info-table td { color: var(--text); padding-left: 24px; }
.policy p, .policy li { color: var(--muted); font-size: 14.5px; line-height: 2; }
.policy h4 { font-size: 16px; font-weight: 600; margin: 30px 0 8px; padding-left: 14px; border-left: 2px solid var(--gold); line-height: 1.5; }
.policy ul { padding-left: 1.3em; }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.row > [data-reveal]:nth-child(2) { transition-delay: .12s; }
.row > [data-reveal]:nth-child(3) { transition-delay: .24s; }
.hero [data-reveal]:nth-child(2) { transition-delay: .15s; }
.hero [data-reveal]:nth-child(3) { transition-delay: .3s; }
.hero [data-reveal]:nth-child(4) { transition-delay: .45s; }
.hero [data-reveal]:nth-child(5) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .scroll-line::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section { padding: 96px 0; }
    .section-sm { padding: 84px 0; }
    .statement { padding: 50px 36px; margin-top: 60px; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
    p { font-size: 15px; }
    .section { padding: 80px 0; }
    .section-sm { padding: 72px 0; }
    .home-slider.hero { padding: 120px 0 130px; }
    .hero-overlay::after { inset: 14px; }
    .hero-eyebrow { font-size: 12px; letter-spacing: .36em; }
    .hero-eyebrow::before, .hero-eyebrow::after { width: 22px; margin: 0 10px; }
    .hero .home-title { letter-spacing: .12em; }
    .hero-motto { letter-spacing: .26em; }
    .hero .home-desc { font-size: 14.5px; text-align: left; text-align-last: auto; }
    .hero-actions { flex-direction: column; align-items: stretch; padding: 0 12px; }
    .home-arrow { bottom: 30px; }
    .scroll-line { height: 40px; }
    .services-box.market-card { padding: 44px 28px 32px; }
    .feature-card { padding: 28px 22px; gap: 18px; flex-direction: column; }
    .statement { padding: 44px 24px; }
    .statement::before { inset: 8px; }
    .statement-title { letter-spacing: .06em; }
    .info-table th, .info-table td { display: block; width: 100%; padding: 12px 14px; }
    .info-table th { border-bottom: 0; }
    .info-table tr:first-child td { border-top: 0; }
    .modal-header { padding: 22px 22px 18px; }
    .modal-body.home-modal { padding: 22px 22px 30px; }
    .vision-text { text-align: left; text-align-last: auto; }
    .framed-img { padding: 0 14px 14px 0; }
    .framed-img::before { top: 14px; left: 14px; }
    .framed-img.framed-left { padding: 0 0 14px 14px; }
    .framed-img.framed-left::before { left: 0; right: 14px; }
}

/* ---------- Typographic details ---------- */
.eyebrow, .hero-eyebrow, .card-no, .feature-no, .footer-bottom, .scroll-label { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.section-lead, .body-text, .vision-text, .statement-text, .hero .home-desc, .feature-card p, .feature-item p { text-wrap: pretty; }
.features-img img { filter: grayscale(1) sepia(.35) brightness(.55) contrast(1.1); }
@media (max-width: 575.98px) {
    .hero-inner { padding-left: 26px; padding-right: 26px; }
    .hero-actions { padding: 0; }
}
