/* =====================================================
   三和鉄工株式会社 — Corporate Website
   Inspired by sumimoto-tekkou.co.jp
   Bold typography · Neutral palette · Clean grid
   ===================================================== */

/* ---- Google Fonts ---- */
/* loaded via HTML <link> */

/* ---- Design Tokens ---- */
:root {
    --white: #ffffff;
    --off-white: #f6f6f6;
    --gray-100: #efefef;
    --gray-200: #d9d9d9;
    --gray-400: #999999;
    --gray-600: #666666;
    --black: #111111;
    --dark: #1c1c1c;
    --navy: #132441;
    --navy-mid: #1e3560;
    --blue: #1b4fa0;
    --accent: #1b4fa0;
    /* primary button / link accent */
    --accent-hover: #132e72;
    --yellow: #f5ac00;
    --text: #222222;
    --text-sub: #555555;
    --text-light: #888888;

    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --font-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    --font-en: 'Oswald', sans-serif;

    --section-pad: 120px;
    --max-w: 1200px;
    --header-h: 80px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    letter-spacing: 0.04em;
    /* ページ遷移: 初期は非表示 → JSでフェードイン */
    opacity: 0;
    animation: pageFadeIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ページ読み込み時のフェードイン */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* ページ離脱時のフェードアウト（JSで .page-leaving を付与） */
body.page-leaving {
    animation: pageFadeOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* ---- Layout ---- */
.container {
    width: 90%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section {
    padding: var(--section-pad) 0;
}

.bg-offwhite {
    background: var(--off-white);
}

.bg-navy {
    background: var(--navy);
}

.bg-dark {
    background: var(--dark);
}

.center {
    text-align: center;
}

/* ---- Section Labels ---- */
.en-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.en-label--light {
    color: rgba(255, 255, 255, 0.5);
}

.sec-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.sec-title--light {
    color: var(--white);
}

.sec-title--en {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--dark);
}

.sec-rule {
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin: 1rem 0 2rem;
}

.sec-rule--center {
    margin-left: auto;
    margin-right: auto;
}

.sec-rule--light {
    background: rgba(255, 255, 255, 0.4);
}

.sec-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    max-width: 600px;
    line-height: 1.9;
}

.sec-desc--center {
    margin: 0 auto;
    text-align: center;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn .arrow {
    transition: transform var(--transition);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-ghost-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

.btn-ghost-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-ghost-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-ghost-blue {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost-blue:hover {
    background: var(--accent);
    color: var(--white);
}

/* ── LINK WITH ARROW  (see-more style) ── */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    transition: gap var(--transition);
}

.link-arrow::after {
    content: '→';
    transition: transform var(--transition);
}

.link-arrow:hover {
    gap: 0.8rem;
}

.link-arrow--white {
    color: rgba(255, 255, 255, 0.8);
}

.link-arrow--white:hover {
    color: var(--white);
}

/* =====================================================
   HEADER  — sumimoto-tekkou style
   Top bar: logo left / nav center / phone+CTA right
   Each nav item has JP label + EN sublabel
   ===================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
    background: #ffffff;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* ── Inner layout: logo | nav | right-group ── */
.header-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: var(--header-h);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 0;
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo .logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition);
    opacity: 0.92;
    /* 
       白背景のロゴ画像をダークヘッダーに馴染ませる魔法のCSS
       （白背景→黒背景に反転し、screen合成で黒を透過、ロゴ部分だけを白く残す）
    */

}

.site-header.scrolled .logo-img {
    height: 80px;
}

/* Primary Nav — sumimoto style: JP + small EN beneath */
.primary-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
}

.primary-nav li {
    display: flex;
}

.primary-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    color: rgba(20, 20, 20, 0.82);
    position: relative;
    transition: color var(--transition), background var(--transition);
    gap: 0.15rem;
    min-width: 80px;
    text-align: center;
}

.primary-nav a .nav-jp {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

.primary-nav a .nav-en {
    font-family: var(--font-en);
    font-size: 0.56rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.48;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.05);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

/* Right group: phone + CTA button */
.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.header-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark);
    text-decoration: none;
    transition: background var(--transition);
}

.header-tel:hover {
    background: rgba(255, 255, 255, 0.07);
}

.header-tel .tel-num {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.header-tel .tel-hours {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    opacity: 0.45;
    white-space: nowrap;
}

.header-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.8rem;
    height: 100%;
    background: var(--accent);
    color: var(--white) !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: background var(--transition);
    white-space: nowrap;
}

.header-contact-btn:hover {
    background: var(--accent-hover);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    margin-left: 1rem;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--dark);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =====================================================
   HERO  — full-screen image slideshow (sumimoto style)
   Images auto-crossfade every 5 seconds
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    text-align: center;
}

/* Slideshow: each .hero__slide is a full-bg layer */
.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlide 20s infinite;
    transform: scale(1.06);
    animation-timing-function: ease-in-out;
}

/* Stagger each slide with 5s offset (4 slides = 20s total) */
/* ★ 画像ファイル名の変更は index.html の各 hero__slide div で行ってください ★ */
.hero__slide:nth-child(1) {
    animation-delay: 0s;
}

.hero__slide:nth-child(2) {
    animation-delay: 5s;
}

.hero__slide:nth-child(3) {
    animation-delay: 10s;
}

.hero__slide:nth-child(4) {
    animation-delay: 15s;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg,
            rgba(5, 10, 22, 0.72) 0%,
            rgba(10, 20, 40, 0.52) 45%,
            rgba(5, 10, 22, 0.78) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 2rem;
    animation: fadeSlideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero__eyebrow {
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

/*
 ========================================================================================
 【ヒーローのキャッチコピー編集方法】
   index.html の下記の部分を自由に書き換えてください:

     <h1 class="hero__title">
         見えない所で、船を支える。
         <span class="hero__title-sub">船舶艤装の設計・製作一貫メーカー</span>
     </h1>

 大きな文字 → <h1 class="hero__title"> 〜 </h1> の内側の最初のテキスト
 小さな文字 → <span class="hero__title-sub"> 〜 </span> の内側のテキスト
 ========================================================================================
*/
.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin-bottom: 1.4rem;
}

.hero__title-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-top: 0.6rem;
}

.hero__sub {
    font-size: 0.95rem;
    opacity: 0.78;
    line-height: 2;
    margin: 0 auto 2.8rem;
    max-width: 1100px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll cue */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    opacity: 0.5;
    color: var(--white);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--white));
    animation: scrollLine 2s ease infinite;
}

/* =====================================================
   ABOUT STRIP  (sumimoto: dark-bg, large headline)
   ===================================================== */
.about-strip {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0;
}

.about-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-strip__headline {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.about-strip__text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 2.1;
    margin-bottom: 1rem;
}

.about-strip__sig {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 2;
}

.about-strip__sig strong {
    color: var(--white);
    font-size: 1rem;
}

/* Image side */
.about-strip__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.about-strip__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-strip__img:hover img {
    transform: scale(1.03);
}

.about-strip__badge {
    position: absolute;
    top: 1.5rem;
    left: -1rem;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 1.4rem;
    line-height: 1.3;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-md);
}

.about-strip__badge .year {
    display: block;
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 400;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.3rem;
}

/* =====================================================
   STRENGTHS  (4つの強み)
   ===================================================== */
.strengths {
    background: var(--white);
}

.strengths__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    margin-top: 3.5rem;
}

.strength-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    transition: background var(--transition);
}

.strength-item:hover {
    background: var(--off-white);
}

.strength-item__num {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 400;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.strength-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.strength-item__desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.9;
}

/* =====================================================
   PRODUCTS  (Case grid like sumimoto)
   ===================================================== */
.products-section {
    background: var(--off-white);
}

.products-section .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-200);
}

.product-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.product-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--gray-100);
    color: var(--gray-400);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    border: 2px dashed var(--gray-200);
}

.product-card__placeholder svg {
    color: var(--accent);
    opacity: 0.3;
}

.product-card__case {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.product-card__body {
    padding: 1.6rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.product-card__desc {
    font-size: 0.83rem;
    color: var(--text-sub);
    line-height: 1.85;
    flex: 1;
    margin-bottom: 1.2rem;
}

.product-card__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    transition: gap var(--transition);
}

.product-card:hover .product-card__link {
    gap: 0.8rem;
}

/* =====================================================
   COMPANY TABLE  (info section)
   ===================================================== */
.company__grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 5rem;
    align-items: start;
}

.company__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.company__table tr {
    border-bottom: 1px solid var(--gray-200);
}

.company__table tr:first-child {
    border-top: 1px solid var(--gray-200);
}

.company__table th {
    padding: 1.1rem 1.2rem;
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--dark);
    background: var(--off-white);
    width: 36%;
    vertical-align: top;
    text-align: left;
    white-space: nowrap;
}

.company__table td {
    padding: 1.1rem 1.2rem;
    color: var(--text-sub);
    line-height: 1.9;
    vertical-align: top;
}

.company__map iframe {
    width: 100%;
    height: 340px;
    border: 1px solid var(--gray-200);
}

.company__map-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    line-height: 1.7;
}

/* =====================================================
   CTA STRIP
   ===================================================== */
.cta-strip {
    background: var(--navy);
    padding: 80px 0;
}

.cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-strip__text .en-label {
    color: rgba(255, 255, 255, 0.4);
}

.cta-strip__headline {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin: 0.4rem 0 0.6rem;
    letter-spacing: 0.04em;
}

.cta-strip__sub {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
}

.cta-strip__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.cta-tel {
    text-align: right;
}

.cta-tel__label {
    font-size: 0.73rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 0.2rem;
}

.cta-tel__num {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.cta-tel__num:hover {
    opacity: 0.75;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark);
    padding: 5rem 0 0;
    color: rgba(255, 255, 255, 0.55);
    border-top: 3px solid var(--accent);
}

.footer__body {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 4rem;
}

.footer__brand .logo-img {
    height: 38px;
    margin-bottom: 1.4rem;
}

.footer__address {
    font-size: 0.83rem;
    line-height: 2;
    margin-bottom: 0.5rem;
}

.footer__email a {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer__email a:hover {
    color: var(--white);
}

.footer__nav-title {
    font-size: 0.73rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.2rem;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav-list a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__nav-list a::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    transition: width var(--transition), background var(--transition);
}

.footer__nav-list a:hover {
    color: var(--white);
}

.footer__nav-list a:hover::before {
    width: 20px;
    background: var(--yellow);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.4rem 0;
    display: flex;
    justify-content: center;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

/* =====================================================
   PAGE HEADER (subpages)
   ===================================================== */
.page-header {
    padding: calc(var(--header-h) + 3rem) 0 3.5rem;
    background: var(--dark);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.page-subtitle {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    opacity: 0.45;
    margin-top: 0.3rem;
}

/* =====================================================
   SERVICE / PRODUCT — detail pages
   ===================================================== */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse>* {
    direction: ltr;
}

.service-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

/* ── COMPANY TABLE ON SUBPAGE ── */
.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.company-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.company-table th {
    padding: 1rem 1.4rem;
    font-weight: 700;
    background: var(--off-white);
    color: var(--dark);
    text-align: left;
    width: 30%;
    white-space: nowrap;
    vertical-align: top;
}

.company-table td {
    padding: 1rem 1.4rem;
    color: var(--text-sub);
    line-height: 1.9;
    vertical-align: top;
}

.partner-list-simple {
    list-style: none;
    padding: 0;
}

.partner-list-simple li::before {
    content: '・';
    color: var(--accent);
    margin-right: 0.2rem;
}

/* ── PLACEHOLDER BOX ── */
.placeholder-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-200);
    color: var(--gray-400);
    font-size: 0.82rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

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

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* Hero image crossfade: visible for 4s, fade 1s, hidden 15s (total 20s per slide)
   0% = fade in, 20% = hold, 25% = fade out, 100% end = hidden */
@keyframes heroSlide {
    0% {
        opacity: 0;
        transform: scale(1.06);
    }

    5% {
        opacity: 1;
        transform: scale(1.03);
    }

    23% {
        opacity: 1;
        transform: scale(1.00);
    }

    28% {
        opacity: 0;
        transform: scale(1.00);
    }

    100% {
        opacity: 0;
        transform: scale(1.06);
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 90px;
    }

    .about-strip__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .company__grid {
        grid-template-columns: 1fr;
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strengths__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 64px;
    }

    .header-tel .tel-hours {
        display: none;
    }

    .header-tel .tel-num {
        font-size: 0.9rem;
    }

    .primary-nav a {
        padding: 0 0.7rem;
        min-width: 60px;
    }

    .primary-nav a .nav-en {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 58px;
        --section-pad: 64px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__scroll {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-tel {
        display: none;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 300px);
        height: 100vh;
        background: var(--dark);
        padding: 5rem 2rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .primary-nav.open {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        height: auto;
    }

    .primary-nav li {
        display: block;
    }

    .primary-nav a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.9rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        color: rgba(255, 255, 255, 0.8);
        gap: 0.6rem;
        min-width: unset;
    }

    .primary-nav a .nav-en {
        display: inline;
        opacity: 0.4;
        font-size: 0.65rem;
    }

    .primary-nav a::after {
        bottom: 0;
        left: 0;
        right: 0;
    }

    .header-contact-btn {
        padding: 0 1.2rem;
        font-size: 0.78rem;
    }

    .cta-strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-strip__actions {
        align-items: flex-start;
    }

    .cta-tel {
        text-align: left;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .footer__body {
        flex-direction: column;
    }

    .sec-title {
        font-size: 1.7rem;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .about-strip__badge {
        top: 1rem;
        left: 0;
    }
}

@media (max-width: 520px) {
    .products__grid {
        grid-template-columns: 1fr;
    }

    .strengths__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: center;
    }

    .hero__title {
        font-size: 1.8rem;
    }
}

/* =====================================================
   NEWS BAR & INFO LIST (Reference: torii-tosou)
   ===================================================== */
.news-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 10;
}

.news-bar__inner {
    display: flex;
    align-items: stretch;
    min-height: 60px;
}

.news-bar__label {
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.news-bar__more {
    background: #f0f0f0;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: background var(--transition);
    border-right: 1px solid var(--gray-200);
}

.news-bar__more:hover {
    background: var(--gray-200);
}

.news-bar__more::after {
    content: '>';
    margin-left: 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-bar__content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    color: var(--text);
    transition: color var(--transition);
}

.news-bar__content:hover {
    color: var(--accent);
}

.news-bar__date {
    font-family: var(--font-en);
    font-size: 0.85rem;
    margin-right: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.news-bar__title {
    font-size: 0.92rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info List Page */
.info-list {
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.info-item {
    border-bottom: 1px solid var(--gray-200);
}

.info-item a {
    display: flex;
    padding: 1.8rem 0;
    transition: background 0.2s;
}

.info-item a:hover {
    background: rgba(0, 0, 0, 0.01);
}

.info-item__date {
    font-family: var(--font-en);
    width: 140px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.info-item__title {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

@media (max-width: 768px) {
    .news-bar__inner {
        flex-direction: column;
    }

    .news-bar__label {
        padding: 0.6rem 0;
        width: 100%;
    }

    .news-bar__more {
        order: 3;
        padding: 0.8rem 0;
        border-right: none;
        border-top: 1px solid var(--gray-200);
    }

    .news-bar__content {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .news-bar__date {
        margin-right: 0;
    }

    .news-bar__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .info-item a {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item__date {
        width: auto;
    }
}

/* =====================================================
   PRODUCT DETAIL PAGES & INTERACTIVE LIGHTBOX GALLERY
   ===================================================== */
.service-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-image-link img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.service-image-link:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

/* Hover indicator overlay on products.html images */
.service-image-link::after {
    content: 'CLICK TO VIEW DETAILS';
    position: absolute;
    inset: 0;
    background: rgba(19, 36, 65, 0.4);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 2;
}

.service-image-link:hover::after {
    opacity: 1;
}

/* Responsive Grid for Details Pages */
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.detail-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.detail-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.detail-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-card:hover .detail-card__img img {
    transform: scale(1.06);
}

.detail-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-card__model {
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.detail-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.detail-card__desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
}

.detail-card__action {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

/* Lightbox Modal Styles */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.94);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 960px;
    background: var(--white);
    padding: 30px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-modal.open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-main-display {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.modal-main-img.fade-out {
    opacity: 0.1;
}

.modal-info-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-serif);
}

.modal-product-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.8;
}

.modal-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.modal-gallery-title {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    font-family: var(--font-en);
    color: var(--gray-600);
    text-transform: uppercase;
}

.modal-thumbs {
    display: flex;
    gap: 15px;
}

.modal-thumb {
    width: 90px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition), transform var(--transition);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb:hover {
    transform: translateY(-2px);
}

.modal-thumb.active {
    border-color: var(--accent);
}

.modal-thumb__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 36, 65, 0.85);
    color: var(--white);
    font-size: 0.58rem;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.05em;
}

/* Responsiveness for details page */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-container {
        padding: 20px;
        gap: 15px;
    }

    .modal-thumbs {
        gap: 8px;
    }

    .modal-thumb {
        width: 70px;
    }

    .modal-thumb__label {
        font-size: 0.5rem;
    }
}

/* =====================================================
   全ページ統一ヘッダー — 上書きCSS
   トップページと同じデザインを全ページで使用
   ===================================================== */

/* ── ヘッダー背景を白に統一 ── */
.site-header {
    background: #ffffff !important;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* ── ロゴサイズ統一 ── */
.site-logo .logo-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
}

.site-header.scrolled .site-logo .logo-img {
    height: 80px !important;
}

/* ── ナビゲーション: flex 横並び固定 ── */
.primary-nav {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.primary-nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 100% !important;
    gap: 0 !important;
    writing-mode: horizontal-tb !important;
}

.primary-nav li {
    display: flex !important;
    writing-mode: horizontal-tb !important;
}

.primary-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1.1rem !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
}

.primary-nav a .nav-jp {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
}

.primary-nav a .nav-en {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
}

/* ── header-inner レイアウト固定 ── */
.header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    min-height: var(--header-h) !important;
}

/* ── header-right 横並び固定 ── */
.header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* ── 下層ページヘッダー ── */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: calc(var(--header-h) + 40px) 0 60px;
    text-align: center;
    margin-top: 0 !important;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.page-subtitle {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* =====================================================
   レスポンシブ — ヘッダー統一
   ===================================================== */

/* ── タブレット (1024px以下) ── */
@media (max-width: 1024px) {
    .primary-nav ul {
        gap: 0 !important;
    }

    .primary-nav a {
        padding: 0 0.6rem !important;
    }

    .primary-nav a .nav-jp {
        font-size: 0.75rem !important;
    }

    .primary-nav a .nav-en {
        font-size: 0.5rem !important;
    }

    .header-tel .tel-num {
        font-size: 0.9rem;
    }

    .header-contact-btn {
        padding: 0 1.2rem !important;
        font-size: 0.75rem !important;
    }
}

/* ── モバイル (768px以下) ── */
@media (max-width: 768px) {

    /* ハンバーガー表示 */
    .hamburger {
        display: flex !important;
    }

    /* ロゴサイズ調整 */
    .site-logo .logo-img {
        height: 50px !important;
    }

    /* ナビ: 初期非表示 → .open で展開 */
    .primary-nav {
        display: none !important;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
        padding: 1.5rem 0;
    }

    .primary-nav.open {
        display: block !important;
    }

    .primary-nav ul {
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
    }

    .primary-nav li {
        display: block !important;
    }

    .primary-nav a {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0.8rem 2rem !important;
        gap: 0.6rem !important;
        border-bottom: 1px solid var(--gray-100);
    }

    .primary-nav a::after {
        display: none !important;
    }

    .primary-nav a .nav-jp {
        font-size: 0.88rem !important;
    }

    .primary-nav a .nav-en {
        font-size: 0.6rem !important;
        opacity: 0.4;
    }

    /* 電話・お問い合わせ非表示 (モバイルではフッターに配置) */
    .header-tel {
        display: none !important;
    }

    .header-contact-btn {
        display: none !important;
    }

    /* header-inner */
    .header-inner {
        min-height: 60px !important;
        padding: 0 0.5rem !important;
    }

    /* page-header */
    .page-header {
        padding: calc(60px + 30px) 0 40px;
        margin-top: 0 !important;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* =====================================================
   最終固定：全ページでホームと同じヘッダーにする
   ===================================================== */

.site-header,
.site-header.scrolled {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
}

.site-header .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    min-height: 80px !important;
}

.site-header .site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 1.5rem 0 0 !important;
}

.site-header .site-logo a {
    display: flex !important;
    align-items: center !important;
}

.site-header .site-logo .logo-img,
.site-header.scrolled .logo-img,
.site-header.scrolled .site-logo .logo-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* PC表示では必ず横並び */
@media (min-width: 769px) {
    .site-header .primary-nav {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .site-header .primary-nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        height: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .primary-nav li {
        display: flex !important;
        width: auto !important;
    }

    .site-header .primary-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 1.1rem !important;
        min-width: 80px !important;
        color: rgba(20, 20, 20, 0.82) !important;
        text-align: center !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
    }

    .site-header .primary-nav a .nav-jp,
    .site-header .primary-nav a .nav-en {
        writing-mode: horizontal-tb !important;
        white-space: nowrap !important;
        transform: none !important;
    }

    .site-header .header-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
}

/* =====================================================
   余白修正：ヘッダー上部の不要な白余白を削除
   ===================================================== */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header {
    top: 0 !important;
    margin-top: 0 !important;
}

.page-header {
    margin-top: 0 !important;
}

/* =====================================================
   スマホ用ハンバーガーメニュー 最終上書き
   ===================================================== */
@media (max-width: 768px) {

    .site-header,
    .header-inner {
        overflow: visible !important;
    }

    .primary-nav {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        padding: 1rem 0 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    }

    .primary-nav.open {
        display: block !important;
    }

    .primary-nav.open ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        width: 100% !important;
    }

    .primary-nav.open li {
        display: block !important;
        width: 100% !important;
    }

    .primary-nav.open a {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.9rem 1.5rem !important;
        color: #1c1c1c !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        gap: 0.6rem !important;
    }

    .primary-nav.open a .nav-jp {
        font-size: 0.9rem !important;
        color: #1c1c1c !important;
    }

    .primary-nav.open a .nav-en {
        font-size: 0.62rem !important;
        color: #666666 !important;
        opacity: 0.7 !important;
    }
}

/* =====================================================
   タブレット表示調整 最終上書き
   769px〜1180px / iPad・Galaxy Tab対応
   ===================================================== */
@media (min-width: 769px) and (max-width: 1180px) {

    :root {
        --header-h: 70px;
        --section-pad: 80px;
    }

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hero,
    .news-bar,
    .about-strip,
    .section,
    .cta-strip,
    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
    }

    .container {
        width: 94% !important;
        max-width: 1100px !important;
    }

    .section>.container {
        max-width: 1040px !important;
    }

    .site-header,
    .site-header .header-inner {
        overflow: visible !important;
    }

    .site-header .header-inner {
        min-height: 70px !important;
        align-items: center !important;
        padding: 0 1rem !important;
    }

    .site-header .site-logo .logo-img,
    .site-header.scrolled .site-logo .logo-img {
        height: 64px !important;
        width: auto !important;
    }

    /* タブレットでは通常ナビを非表示 */
    .site-header .primary-nav {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        padding: 1rem 0 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
    }

    .site-header .primary-nav.open {
        display: block !important;
    }

    .site-header .primary-nav.open ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .primary-nav.open li {
        display: block !important;
        width: 100% !important;
    }

    .site-header .primary-nav.open a {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        min-width: unset !important;
        padding: 0.9rem 2rem !important;
        color: #1c1c1c !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        gap: 0.7rem !important;
    }

    .site-header .primary-nav.open a::after {
        display: none !important;
    }

    .site-header .primary-nav.open a .nav-jp {
        font-size: 0.95rem !important;
        color: #1c1c1c !important;
    }

    .site-header .primary-nav.open a .nav-en {
        display: inline !important;
        font-size: 0.65rem !important;
        color: #666666 !important;
        opacity: 0.65 !important;
    }

    /* タブレットでは右側の電話・お問い合わせボタンを非表示 */
    .site-header .header-right {
        display: none !important;
    }

    /* タブレットではハンバーガー表示 */
    .site-header .hamburger {
        display: flex !important;
        margin-left: auto !important;
    }

    .page-header {
        margin-top: 0 !important;
        padding: calc(70px + 45px) 0 55px !important;
    }

    .about-strip__inner,
    .company__grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .products__grid,
    .strengths__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        direction: ltr !important;
    }
}

/* =====================================================
   フッターロゴ非表示
   ヘッダーのロゴは残し、フッターのロゴだけ消す
   ===================================================== */

.site-footer .footer__brand .logo-img {
    display: none !important;
}

/* =====================================================
   トップページ：お問い合わせCTAとフッター住所を中央寄せ・大きく表示
   ===================================================== */

/* お問い合わせCTAを中央配置 */
.cta-strip__inner {
    justify-content: center !important;
    text-align: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.8rem !important;
}

/* CONTACT US */
.cta-strip__text .en-label {
    text-align: center !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.24em !important;
}

/* お問い合わせ */
.cta-strip__headline {
    text-align: center !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
}

/* 製品のご相談・ご質問など〜 */
.cta-strip__sub {
    text-align: center !important;
    font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
    line-height: 2 !important;
}

/* 電話番号部分も中央寄せ */
.cta-strip__actions {
    align-items: center !important;
    text-align: center !important;
}

.cta-tel {
    text-align: center !important;
}

.cta-tel__label {
    font-size: 0.85rem !important;
}

.cta-tel__num {
    font-size: clamp(2.4rem, 5vw, 3.4rem) !important;
}

/* フッター全体を中央寄せ */
.site-footer .footer__body {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
}

/* 会社住所部分を中央寄せ・大きく */
.site-footer .footer__brand {
    text-align: center !important;
    width: 100% !important;
}

.site-footer .footer__address {
    text-align: center !important;
    font-size: clamp(1rem, 1.6vw, 1.35rem) !important;
    line-height: 2.1 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    letter-spacing: 0.06em !important;
}

/* フッターナビも中央寄せ */
.site-footer nav {
    text-align: center !important;
}

.site-footer .footer__nav-list {
    align-items: center !important;
}

/* =====================================================
   スマホ表示：トップページ メインコピー1行固定
   ===================================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
    }

    .hero {
        min-height: 100svh !important;
        height: auto !important;
        padding: 120px 0 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero .container {
        width: 92% !important;
        max-width: 100% !important;
    }

    .hero__content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .hero .hero__eyebrow {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        text-align: center !important;

        font-size: clamp(0.52rem, 2.25vw, 0.72rem) !important;
        line-height: 1.4 !important;
        letter-spacing: 0.12em !important;

        margin-bottom: 1.4rem !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    .hero .hero__eyebrow::before,
    .hero .hero__eyebrow::after {
        display: none !important;
        content: none !important;
    }

    .hero .hero__title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;

        font-size: clamp(1.25rem, 6vw, 2.15rem) !important;
        line-height: 1.35 !important;
        letter-spacing: 0.03em !important;

        margin-bottom: 1.2rem !important;
        text-align: center !important;
    }

    .hero .hero__title-main,
    .hero .hero__title-line {
        display: inline !important;
        white-space: nowrap !important;
    }

    .hero .hero__title br {
        display: none !important;
    }

    .hero .hero__title-sub {
        display: block !important;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;

        font-size: clamp(0.78rem, 3.4vw, 1.05rem) !important;
        line-height: 1.7 !important;
        letter-spacing: 0.07em !important;

        margin-top: 0.9rem !important;
    }

    .hero__sub {
        max-width: 24em !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(0.82rem, 3.5vw, 0.95rem) !important;
        line-height: 1.95 !important;
        letter-spacing: 0.04em !important;
        text-align: center !important;
    }

    .hero__actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero__actions .btn {
        width: min(100%, 280px) !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.08em !important;
        padding: 1rem 1.4rem !important;
    }
}

@media (max-width: 430px) {

    .hero .hero__eyebrow {
        font-size: clamp(0.5rem, 2.15vw, 0.62rem) !important;
        letter-spacing: 0.1em !important;
    }

    .hero .hero__title {
        font-size: clamp(1.22rem, 5.9vw, 1.65rem) !important;
        letter-spacing: 0.02em !important;
    }

    .hero .hero__title-sub {
        font-size: 0.82rem !important;
        letter-spacing: 0.06em !important;
    }

    .hero__sub {
        max-width: 21em !important;
        font-size: 0.86rem !important;
    }
}

@media (max-width: 360px) {

    .hero .hero__eyebrow {
        font-size: 0.48rem !important;
        letter-spacing: 0.08em !important;
    }

    .hero .hero__title {
        font-size: 1.16rem !important;
        letter-spacing: 0.01em !important;
    }
}

/* =====================================================
   最終上書き：全デバイス共通の文字サイズ調整
   スマホでもヒーロー見出しを必ず1行表示
   ===================================================== */

/* PC・タブレットでは現在の雰囲気を維持 */
.hero .hero__eyebrow,
.hero .hero__title {
    max-width: 100%;
}

/* スマートフォン・小型タブレット */
@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: 90% !important;
        max-width: 100% !important;
    }

    .hero {
        min-height: 100svh !important;
        height: auto !important;
        padding: 120px 0 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero .container {
        width: 92% !important;
        max-width: 100% !important;
    }

    .hero__content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* SANWA IRON WORKS CO.,LTD | Since. 1950 を1行固定 */
    .hero .hero__eyebrow {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        text-align: center !important;

        font-size: clamp(0.52rem, 2.25vw, 0.72rem) !important;
        line-height: 1.4 !important;
        letter-spacing: 0.12em !important;

        margin-bottom: 1.4rem !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    /* スマホでは左右の横線を消して、文字の横幅を確保 */
    .hero .hero__eyebrow::before,
    .hero .hero__eyebrow::after {
        display: none !important;
        content: none !important;
    }

    /* 海をつなぐ、ものづくり を1行固定 */
    .hero .hero__title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;

        font-size: clamp(1.25rem, 6vw, 2.15rem) !important;
        line-height: 1.35 !important;
        letter-spacing: 0.03em !important;

        margin-bottom: 1.2rem !important;
        text-align: center !important;
    }

    /* もし前回のspanが残っていても強制的に1行化 */
    .hero .hero__title-main,
    .hero .hero__title-line {
        display: inline !important;
        white-space: nowrap !important;
    }

    .hero .hero__title br {
        display: none !important;
    }

    /* サブタイトルは通常通り折り返しOK */
    .hero .hero__title-sub {
        display: block !important;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;

        font-size: clamp(0.78rem, 3.4vw, 1.05rem) !important;
        line-height: 1.7 !important;
        letter-spacing: 0.07em !important;

        margin-top: 0.9rem !important;
    }

    .hero__sub {
        max-width: 24em !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(0.82rem, 3.5vw, 0.95rem) !important;
        line-height: 1.95 !important;
        letter-spacing: 0.04em !important;
        text-align: center !important;
    }

    .hero__actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero__actions .btn {
        width: min(100%, 280px) !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.08em !important;
        padding: 1rem 1.4rem !important;
    }

    /* 下層ページ共通：スマホで見出しが大きすぎる問題を抑える */
    .page-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
        line-height: 1.35 !important;
        letter-spacing: 0.06em !important;
        word-break: keep-all !important;
    }

    .page-subtitle {
        font-size: 0.82rem !important;
        letter-spacing: 0.14em !important;
    }

    .sec-title,
    .section-title,
    .section__title,
    .about-strip__headline,
    .cta-strip__headline {
        font-size: clamp(1.45rem, 6.5vw, 2.05rem) !important;
        line-height: 1.45 !important;
        letter-spacing: 0.05em !important;
        word-break: keep-all !important;
    }

    .section p,
    .section li,
    .about-strip__text,
    .company-table td,
    .company-table th,
    .footer__address {
        font-size: 0.92rem !important;
        line-height: 1.9 !important;
        letter-spacing: 0.03em !important;
        overflow-wrap: break-word !important;
    }
}

/* iPhone 12 Pro / Galaxy系の幅に対する追加調整 */
@media (max-width: 430px) {

    .hero .hero__eyebrow {
        font-size: clamp(0.5rem, 2.15vw, 0.62rem) !important;
        letter-spacing: 0.1em !important;
    }

    .hero .hero__title {
        font-size: clamp(1.22rem, 5.9vw, 1.65rem) !important;
        letter-spacing: 0.02em !important;
    }

    .hero .hero__title-sub {
        font-size: 0.82rem !important;
        letter-spacing: 0.06em !important;
    }

    .hero__sub {
        max-width: 21em !important;
        font-size: 0.86rem !important;
    }
}

/* さらに小さいスマホ用 */
@media (max-width: 360px) {

    .hero .hero__eyebrow {
        font-size: 0.48rem !important;
        letter-spacing: 0.08em !important;
    }

    .hero .hero__title {
        font-size: 1.16rem !important;
        letter-spacing: 0.01em !important;
    }
}

/* =====================================================
   最終上書き：全デバイス共通の文字サイズ調整
   スマホでもヒーロー見出しを必ず1行表示
   ===================================================== */

/* PC・タブレットでは現在の雰囲気を維持 */
.hero .hero__eyebrow,
.hero .hero__title {
    max-width: 100%;
}

/* スマートフォン・小型タブレット */
@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: 90% !important;
        max-width: 100% !important;
    }

    .hero {
        min-height: 100svh !important;
        height: auto !important;
        padding: 120px 0 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero .container {
        width: 92% !important;
        max-width: 100% !important;
    }

    .hero__content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* SANWA IRON WORKS CO.,LTD | Since. 1950 を1行固定 */
    .hero .hero__eyebrow {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        text-align: center !important;

        font-size: clamp(0.52rem, 2.25vw, 0.72rem) !important;
        line-height: 1.4 !important;
        letter-spacing: 0.12em !important;

        margin-bottom: 1.4rem !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    /* スマホでは左右の横線を消して、文字の横幅を確保 */
    .hero .hero__eyebrow::before,
    .hero .hero__eyebrow::after {
        display: none !important;
        content: none !important;
    }

    /* 海をつなぐ、ものづくり を1行固定 */
    .hero .hero__title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;

        font-size: clamp(1.25rem, 6vw, 2.15rem) !important;
        line-height: 1.35 !important;
        letter-spacing: 0.03em !important;

        margin-bottom: 1.2rem !important;
        text-align: center !important;
    }

    /* もし前回のspanが残っていても強制的に1行化 */
    .hero .hero__title-main,
    .hero .hero__title-line {
        display: inline !important;
        white-space: nowrap !important;
    }

    .hero .hero__title br {
        display: none !important;
    }

    /* サブタイトルは通常通り折り返しOK */
    .hero .hero__title-sub {
        display: block !important;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;

        font-size: clamp(0.78rem, 3.4vw, 1.05rem) !important;
        line-height: 1.7 !important;
        letter-spacing: 0.07em !important;

        margin-top: 0.9rem !important;
    }

    .hero__sub {
        max-width: 24em !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(0.82rem, 3.5vw, 0.95rem) !important;
        line-height: 1.95 !important;
        letter-spacing: 0.04em !important;
        text-align: center !important;
    }

    .hero__actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero__actions .btn {
        width: min(100%, 280px) !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.08em !important;
        padding: 1rem 1.4rem !important;
    }

    /* 下層ページ共通：スマホで見出しが大きすぎる問題を抑える */
    .page-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
        line-height: 1.35 !important;
        letter-spacing: 0.06em !important;
        word-break: keep-all !important;
    }

    .page-subtitle {
        font-size: 0.82rem !important;
        letter-spacing: 0.14em !important;
    }

    .sec-title,
    .section-title,
    .section__title,
    .about-strip__headline,
    .cta-strip__headline {
        font-size: clamp(1.45rem, 6.5vw, 2.05rem) !important;
        line-height: 1.45 !important;
        letter-spacing: 0.05em !important;
        word-break: keep-all !important;
    }

    .section p,
    .section li,
    .about-strip__text,
    .company-table td,
    .company-table th,
    .footer__address {
        font-size: 0.92rem !important;
        line-height: 1.9 !important;
        letter-spacing: 0.03em !important;
        overflow-wrap: break-word !important;
    }
}

/* iPhone 12 Pro / Galaxy系の幅に対する追加調整 */
@media (max-width: 430px) {

    .hero .hero__eyebrow {
        font-size: clamp(0.5rem, 2.15vw, 0.62rem) !important;
        letter-spacing: 0.1em !important;
    }

    .hero .hero__title {
        font-size: clamp(1.22rem, 5.9vw, 1.65rem) !important;
        letter-spacing: 0.02em !important;
    }

    .hero .hero__title-sub {
        font-size: 0.82rem !important;
        letter-spacing: 0.06em !important;
    }

    .hero__sub {
        max-width: 21em !important;
        font-size: 0.86rem !important;
    }
}

/* さらに小さいスマホ用 */
@media (max-width: 360px) {

    .hero .hero__eyebrow {
        font-size: 0.48rem !important;
        letter-spacing: 0.08em !important;
    }

    .hero .hero__title {
        font-size: 1.16rem !important;
        letter-spacing: 0.01em !important;
    }
}

/* =====================================================
   会社概要テーブル 最終調整
   トップページ company__table / 下層ページ company-table 共通
   ===================================================== */

/* PC・タブレット共通 */
.company__table,
.company-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.company__table tr,
.company-table tr {
    display: table-row !important;
}

.company__table th,
.company-table th {
    display: table-cell !important;
    width: 24% !important;
    padding: 1rem 0.9rem !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    vertical-align: top !important;
}

.company__table td,
.company-table td {
    display: table-cell !important;
    width: 76% !important;
    padding: 1rem 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    vertical-align: top !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}

/* 会社名下の英字表記 */
.company__table td small,
.company-table td small {
    display: block !important;
    margin-top: 0.35rem !important;
    font-size: 0.72rem !important;
    line-height: 1.6 !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
}


/* =====================================================
   スマートフォン表示
   左列を狭く、右列を広くする
   ===================================================== */

@media (max-width: 768px) {

    .company__grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .company__table,
    .company-table {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 0.88rem !important;
    }

    .company__table th,
    .company-table th {
        width: 28% !important;
        padding: 0.9rem 0.65rem !important;
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
        white-space: nowrap !important;
        letter-spacing: 0.03em !important;
    }

    .company__table td,
    .company-table td {
        width: 72% !important;
        padding: 0.9rem 0.75rem !important;
        font-size: 0.88rem !important;
        line-height: 1.85 !important;
        letter-spacing: 0.03em !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    .company__table td small,
    .company-table td small {
        font-size: 0.66rem !important;
        line-height: 1.6 !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
    }

    .partner-list-simple li {
        font-size: 0.86rem !important;
        line-height: 1.8 !important;
    }
}


/* =====================================================
   さらに小さいスマートフォン用
   iPhone SEなど
   ===================================================== */

@media (max-width: 360px) {

    .company__table th,
    .company-table th {
        width: 30% !important;
        padding: 0.8rem 0.55rem !important;
        font-size: 0.76rem !important;
    }

    .company__table td,
    .company-table td {
        width: 70% !important;
        padding: 0.8rem 0.65rem !important;
        font-size: 0.84rem !important;
    }

    .company__table td small,
    .company-table td small {
        font-size: 0.6rem !important;
        letter-spacing: 0.01em !important;
    }
}

/* =====================================================
   会社概要テーブル：納品先行の表示調整
   index.html / about.html 共通
   ===================================================== */

/* 左列の「主な納品先」と「（敬称略）」を2行表示 */
.company__table .company-th-main,
.company-table .company-th-main {
    display: block !important;
    white-space: nowrap !important;
}

.company__table .company-th-note,
.company-table .company-th-note {
    display: block !important;
    margin-top: 0.25rem !important;
    font-size: 0.72em !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
}

/* 納品先名を1社ずつ1行で表示 */
.company__table .company-partners,
.company-table .company-partners {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-height: 1.9 !important;
}

.company__table .company-partners .partner-name,
.company-table .company-partners .partner-name {
    display: block !important;
    white-space: nowrap !important;
}


/* =====================================================
   スマホ表示：左列を狭く、右列を広くする
   ===================================================== */

@media (max-width: 768px) {

    .company__table,
    .company-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .company__table th,
    .company-table th {
        width: 26% !important;
        padding: 0.9rem 0.5rem !important;
        font-size: 0.78rem !important;
        line-height: 1.6 !important;
        vertical-align: top !important;
        white-space: normal !important;
    }

    .company__table td,
    .company-table td {
        width: 74% !important;
        padding: 0.9rem 0.65rem !important;
        font-size: 0.86rem !important;
        line-height: 1.85 !important;
        vertical-align: top !important;
    }

    .company__table .company-partners,
    .company-table .company-partners {
        font-size: 0.82rem !important;
        letter-spacing: 0.01em !important;
    }

    .company__table .company-th-note,
    .company-table .company-th-note {
        font-size: 0.68em !important;
    }
}


/* iPhone SEなど、さらに狭い端末用 */
@media (max-width: 360px) {

    .company__table th,
    .company-table th {
        width: 25% !important;
        padding: 0.8rem 0.4rem !important;
        font-size: 0.72rem !important;
    }

    .company__table td,
    .company-table td {
        width: 75% !important;
        padding: 0.8rem 0.55rem !important;
        font-size: 0.8rem !important;
    }

    .company__table .company-partners,
    .company-table .company-partners {
        font-size: 0.76rem !important;
    }
}

/* =====================================================
   会社概要テーブル：主な取引銀行を1行表示
   index.html / about.html 共通
   ===================================================== */

.company__table .company-th-bank,
.company-table .company-th-bank {
    display: block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* スマホ表示でも1行固定 */
@media (max-width: 768px) {

    .company__table .company-th-bank,
    .company-table .company-th-bank {
        font-size: 0.76rem !important;
        letter-spacing: 0.01em !important;
        white-space: nowrap !important;
    }
}

/* さらに小さいスマホ用 */
@media (max-width: 360px) {

    .company__table .company-th-bank,
    .company-table .company-th-bank {
        font-size: 0.7rem !important;
        letter-spacing: 0 !important;
    }
}

/* =====================================================
   スマホ表示：トップページ背景スライドをスマホ専用画像に切り替え
   PC用画像はそのまま、スマホだけ縦長画像を使用
   ===================================================== */

@media (max-width: 768px) {

    .hero {
        min-height: 100svh !important;
        height: auto !important;
        overflow: hidden !important;
        background: #0f1726 !important;
    }

    .hero__slides {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
        background: #0f1726 !important;
    }

    .hero__slide {
        position: absolute !important;
        inset: 0 !important;

        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;

        transform: none !important;
        animation-name: heroSlideSp !important;
    }

    /* 以前追加した contain / ぼかし背景用の疑似要素を無効化 */
    .hero__slide::before,
    .hero__slide::after {
        display: none !important;
        content: none !important;
    }

    /* スマホ専用スライド画像 */
    .hero__slide--01 {
        background-image: url('gazou/slide01-sp.png') !important;
    }

    .hero__slide--02 {
        background-image: url('gazou/slide02-sp.png') !important;
    }

    .hero__slide--03 {
        background-image: url('gazou/slide03-sp.png') !important;
    }

    .hero__slide--04 {
        background-image: url('gazou/slide04-sp.png') !important;
    }

    /* スマホではズームなしでフェードのみ */
    @keyframes heroSlideSp {
        0% {
            opacity: 0;
        }

        5% {
            opacity: 1;
        }

        23% {
            opacity: 1;
        }

        28% {
            opacity: 0;
        }

        100% {
            opacity: 0;
        }
    }
}

/* =====================================================
   スマホ表示：トップページ NEWSエリア最終調整
   対象：.news-bar / .news-bar__label / .news-bar__more
   ===================================================== */

@media (max-width: 768px) {

    /* NEWSエリア全体：上下に余白を作る */
    .news-bar {
        padding: 1.8rem 0 2rem !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--gray-200) !important;
    }

    /* NEWS内側：横幅を整えて中央寄せ */
    .news-bar .news-bar__inner {
        width: 88% !important;
        max-width: 430px !important;
        margin: 0 auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        min-height: auto !important;
        gap: 1rem !important;
    }

    /* NEWS ネイビー帯：少し小さくして余白を作る */
    .news-bar .news-bar__label {
        width: 82% !important;
        max-width: 320px !important;
        height: 50px !important;

        padding: 0 !important;
        margin: 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: var(--navy) !important;
        color: var(--white) !important;

        font-family: var(--font-en) !important;
        font-size: 0.82rem !important;
        letter-spacing: 0.22em !important;
        line-height: 1 !important;
    }

    /* お知らせ本文 */
    .news-bar .news-bar__content {
        width: 100% !important;

        padding: 0.85rem 0.4rem 0.65rem !important;
        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.45rem !important;

        color: var(--text) !important;
        text-align: left !important;
    }

    .news-bar .news-bar__date {
        margin-right: 0 !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        color: var(--text-light) !important;
    }

    .news-bar .news-bar__title {
        font-size: 0.92rem !important;
        line-height: 1.8 !important;
        letter-spacing: 0.04em !important;

        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
    }

    /* VIEW MORE グレーボタン：少し小さくして中央寄せ */
    .news-bar .news-bar__more {
        width: 82% !important;
        max-width: 320px !important;
        height: 48px !important;

        padding: 0 !important;
        margin: 0.2rem auto 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #f0f0f0 !important;
        border-top: 1px solid var(--gray-200) !important;
        border-right: none !important;

        font-family: var(--font-en) !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.16em !important;
        line-height: 1 !important;
        color: var(--text-sub) !important;
    }

    .news-bar .news-bar__more::after {
        margin-left: 0.7rem !important;
        font-size: 0.72rem !important;
    }
}

/* =====================================================
   アクセスマップ：住所・地図・電車案内 最終調整
   PC / タブレット / スマホ共通
   ===================================================== */

.access-section {
    overflow-x: hidden !important;
}

.access-container {
    width: 90% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

.access-main-info {
    text-align: center !important;
    margin-bottom: 2rem !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.access-address-title {
    display: block !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;

    font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important;
    line-height: 1.6 !important;
    letter-spacing: 0.04em !important;

    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.access-tel-text {
    color: var(--text-sub) !important;
    margin-top: 0.6rem !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
}

.access-separator {
    display: inline-block !important;
    margin: 0 0.35rem !important;
}

.access-map-frame {
    width: 100% !important;
    height: 480px !important;
    border: 1px solid var(--gray-200) !important;
    display: block !important;
}

/* 電車案内 */
.access-route-note {
    margin-top: 1.5rem !important;
    padding: 1.2rem 1.5rem !important;
    background: var(--off-white) !important;
    border-left: 4px solid var(--accent) !important;
    color: var(--text-sub) !important;
    text-align: left !important;
}

.access-route-item {
    display: grid !important;
    grid-template-columns: 5.5em minmax(0, 1fr) !important;
    column-gap: 0.8rem !important;
    align-items: start !important;
}

.access-route-heading {
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    white-space: nowrap !important;
    line-height: 1.9 !important;
}

.route-mark {
    color: var(--accent) !important;
    font-size: 0.75em !important;
    margin-right: 0.35em !important;
}

.access-route-detail {
    min-width: 0 !important;
}

.access-route-detail p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    letter-spacing: 0.02em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.no-break {
    white-space: nowrap !important;
}

/* =====================================================
   アクセスマップ：スマホ表示調整
   住所の見切れ・電車案内の崩れ防止
   ===================================================== */

@media (max-width: 768px) {

    .access-container {
        width: 88% !important;
        max-width: 100% !important;
    }

    .access-main-info {
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
    }

    .access-address-title {
        font-size: clamp(1rem, 4.1vw, 1.22rem) !important;
        line-height: 1.7 !important;
        letter-spacing: 0.02em !important;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    .access-tel-text {
        font-size: 0.86rem !important;
        line-height: 1.8 !important;
        letter-spacing: 0.02em !important;
    }

    .access-map-frame {
        height: 360px !important;
    }

    .access-route-note {
        margin-top: 1.2rem !important;
        padding: 1rem !important;
    }

    .access-route-item {
        grid-template-columns: 1fr !important;
        row-gap: 0.45rem !important;
    }

    .access-route-heading {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .access-route-detail p {
        font-size: 0.84rem !important;
        line-height: 1.85 !important;
        letter-spacing: 0.01em !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 390px) {

    .access-container {
        width: 86% !important;
    }

    .access-address-title {
        font-size: 0.98rem !important;
        line-height: 1.75 !important;
        letter-spacing: 0.01em !important;
    }

    .access-tel-text {
        font-size: 0.8rem !important;
    }

    .access-map-frame {
        height: 320px !important;
    }

    .access-route-detail p {
        font-size: 0.8rem !important;
        line-height: 1.8 !important;
    }
}

/* =====================================================
   トップページ：メインコピー「海をつなぐ、ものづくり」サイズ微調整
   PC / タブレット / スマホ共通
   ===================================================== */

/* PC・タブレット表示 */
.hero .hero__title {
    font-size: clamp(1.8rem, 4.4vw, 3.5rem) !important;
    line-height: 1.28 !important;
}

/* =====================================================
   製品案内ページ：ラインナップクリック案内文
   ===================================================== */

.products-lineup-note {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--accent);
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

/* スマホ表示 */
@media (max-width: 768px) {
    .products-lineup-note {
        margin-top: 1.2rem;
        font-size: 0.78rem;
        line-height: 1.8;
        padding: 0 1rem;
    }
}

/* =====================================================
   製品案内ページ：導入文とクリック案内文の余白調整
   ===================================================== */

.products-intro-text {
    text-align: center !important;
    margin: 0 !important;
    color: var(--text-sub) !important;
    line-height: 2 !important;
    letter-spacing: 0.04em !important;
}

.products-lineup-note {
    margin-top: 0.55rem !important;
    margin-bottom: 2rem !important;
    font-size: 0.82rem !important;
    color: var(--accent) !important;
    text-align: center !important;
    line-height: 1.8 !important;
    letter-spacing: 0.04em !important;
}

/* スマホ表示 */
@media (max-width: 768px) {
    .products-intro-text {
        padding: 0 1rem !important;
        line-height: 1.9 !important;
    }

    .products-lineup-note {
        margin-top: 0.45rem !important;
        margin-bottom: 1.6rem !important;
        font-size: 0.78rem !important;
        line-height: 1.8 !important;
        padding: 0 1rem !important;
    }
}

/* =====================================================
   product_ladder：スマホ表示時の文字サイズ調整
   ===================================================== */

@media (max-width: 768px) {

    .product-detail-lead {
        font-size: 0.78rem !important;
    }

    .product-detail-note {
        font-size: 0.76rem !important;
    }
}

@media (max-width: 430px) {

    .product-detail-lead {
        font-size: 0.78rem !important;
    }

    .product-detail-note {
        font-size: 0.74rem !important;
    }
}

/* =====================================================
   採用情報：オールウェイズカジュアルウェア行を1行表示に固定
   ===================================================== */

.welfare-nowrap {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;

    font-size: 0.78rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.8 !important;
}

/* =====================================================
   採用情報ページ：スマホ表示 最終調整
   横幅崩れ・不自然な改行を防ぐ
   ===================================================== */

/* PC表示では、指定した長文だけ1行にする */
@media (min-width: 769px) {
    .welfare-nowrap {
        display: inline-block !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        font-size: 0.72rem !important;
        letter-spacing: -0.04em !important;
        line-height: 1.8 !important;
    }
}

/* スマホ表示では、長文を自然に折り返す */
@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .section,
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* 採用ページ内の長文は横にはみ出さない */
    .welfare-nowrap {
        display: inline !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        font-size: inherit !important;
        letter-spacing: inherit !important;
        line-height: inherit !important;
    }

    /* 採用ページの文章全体を読みやすくする */
    .recruit-table,
    .company-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        overflow-x: hidden !important;
    }

    .recruit-table th,
    .recruit-table td {
        word-break: normal !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* スマホでは採用情報の表を縦積みにして読みやすくする */
    .recruit-table tr {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid var(--gray-200) !important;
    }

    .recruit-table th {
        display: block !important;
        width: 100% !important;
        padding: 1rem 1rem 0.45rem !important;
        background: var(--off-white) !important;
        font-size: 0.86rem !important;
        line-height: 1.7 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .recruit-table td {
        display: block !important;
        width: 100% !important;
        padding: 0.75rem 1rem 1.2rem !important;
        font-size: 0.86rem !important;
        line-height: 1.9 !important;
        letter-spacing: 0.02em !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* 募集職種カード内の文章調整 */
    .position-card,
    .recruit-card,
    .job-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .position-card p,
    .recruit-card p,
    .job-card p,
    .position-card li,
    .recruit-card li,
    .job-card li {
        font-size: 0.86rem !important;
        line-height: 1.9 !important;
        letter-spacing: 0.02em !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* URLなど長い英数字はスマホで折り返す */
    .position-card a,
    .recruit-card a,
    .job-card a {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

@media (max-width: 430px) {

    .recruit-table td,
    .position-card p,
    .recruit-card p,
    .job-card p,
    .position-card li,
    .recruit-card li,
    .job-card li {
        font-size: 0.82rem !important;
        line-height: 1.85 !important;
        letter-spacing: 0.01em !important;
    }
}