@charset "UTF-8";

/* ====================================================
   1. 基本設定・変数
   ==================================================== */
:root {
    --color-bg-base: #ffffff;
    --color-bg-beige: #f4f1ea;
    --color-main-text: #333333;
    --color-sub-text: #666666;
    --color-accent: #de2939;
    --font-en: 'Oswald', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-script: 'Kaushan Script', cursive;
    
    /* 角丸設定 */
    --border-radius-base: 5px;
    --border-radius-large: 10px;
    
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* PCでの基準フォントサイズ (17px) */
    font-size: 17px;
}

body {
    font-family: var(--font-jp);
    color: var(--color-main-text);
    background-color: var(--color-bg-base);
    margin: 0; padding: 0;
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

/* ユーティリティクラス */
.text-nowrap { white-space: nowrap; }
.sp-only, .tablet-br { display: none; }
.inline-block-sp { display: inline; }

h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; }
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }

/* セクション設定 */
/* ★修正：overflow: hidden; を追加して背景文字のはみ出しを防止 */
.section { padding: 150px 0; position: relative; overflow: hidden; }

/* アニメーション */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* 背景装飾テキスト */
.section-bg-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-en); font-size: 15vw; font-weight: 700;
    color: rgba(0, 0, 0, 0.03); white-space: nowrap; pointer-events: none; z-index: 0; line-height: 1;
    writing-mode: vertical-rl;
    left: 20px; right: auto; transform: translateY(-50%);
}
.section-bg-text.right { left: auto; right: 20px; }
.section-bg-text.left { left: 20px; right: auto; }

/* Loader */
#loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #ffffff; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader-logo img { width: 120px; height: auto; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.5; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.05); } }
body.loaded #loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000; background: rgba(255,255,255,0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; padding-left: 30px; }
.header-logo img { height: 50px; width: auto; }
.header-right { display: flex; align-items: center; height: 100%; }
.header-nav-pc { margin-right: 30px; }
.header-nav-pc ul { display: flex; gap: 25px; }
.header-nav-pc a { font-family: var(--font-en); font-weight: 500; font-size: 1rem; color: var(--color-main-text); position: relative; }
.header-nav-pc a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: 0.3s; }
.header-nav-pc a:hover::after { width: 100%; }
.header-reserve-btn { background: #222; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 30px; transition: 0.3s; cursor: pointer; text-decoration: none; }
.header-reserve-btn:hover { background: var(--color-accent); }
.header-reserve-btn .sub { font-size: 0.7rem; opacity: 0.9; }
.header-reserve-btn .main { font-family: var(--font-en); font-size: 1.1rem; }

/* Hamburger */
.hamburger-btn { display: none; width: 40px; height: 40px; background: none; border: none; flex-direction: column; justify-content: space-between; padding: 10px; margin-right: 10px; cursor: pointer; z-index: 1002; }
.btn-bar { width: 100%; height: 2px; background: #333; transition: 0.3s; }
.hamburger-btn.active .btn-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .btn-bar:nth-child(2) { opacity: 0; }
.hamburger-btn.active .btn-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sp-nav-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--color-bg-beige); z-index: 1001; transition: 0.4s; display: flex; justify-content: center; align-items: center; }
.sp-nav-overlay.active { right: 0; }
.sp-nav-menu ul { text-align: center; }
.sp-nav-menu li { margin-bottom: 20px; }
.sp-nav-menu a { font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; }

/* SP Menu Close Button */
.sp-nav-close-btn { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1002; }
.sp-nav-close-btn .bar { width: 24px; height: 2px; background: #333; position: absolute; display: block; }
.sp-nav-close-btn .bar:nth-child(1) { transform: rotate(45deg); }
.sp-nav-close-btn .bar:nth-child(2) { transform: rotate(-45deg); }
.sp-nav-close-btn .text { font-family: var(--font-en); font-size: 0.7rem; font-weight: 700; margin-top: 30px; letter-spacing: 0.1em; color: #333; }

/* Hero */
.hero-section { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.15); }
.hero-content-fixed { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; display: flex; align-items: center; padding-left: 8%; padding-top: 140px; padding-bottom: 100px; box-sizing: border-box; z-index: 2; }
.hero-text-vertical { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 30px; max-height: 100%; pointer-events: auto; }
.main-copy { writing-mode: vertical-rl; font-size: clamp(1.8rem, 4vh, 3.5rem); font-weight: 700; line-height: 1.6; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 15px rgba(0,0,0,0.5); white-space: nowrap; margin: 0; }
.sub-copy { writing-mode: vertical-rl; font-family: var(--font-en); font-size: clamp(0.8rem, 1.2vh, 1rem); letter-spacing: 0.3em; color: rgba(255,255,255,0.9); margin: 0; transform: rotate(180deg); }
.scroll-down-laser { position: absolute; bottom: 0; right: 50px; display: flex; flex-direction: column; align-items: center; z-index: 2; gap: 15px; }
.scroll-text { font-family: var(--font-en); font-size: 0.8rem; color: #fff; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.laser-line { width: 1px; height: 120px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.laser-beam { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: #fff; box-shadow: 0 0 8px #fff; animation: laserShoot 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
@keyframes laserShoot { 0% { top: -40%; opacity: 0; } 30% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Mission */
.mission-section { position: relative; padding: 100px 0 150px; overflow: hidden; z-index: 1; }
.mission-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: top center; opacity: 0; animation: slideShow 18s infinite; }
.slide-item:nth-child(1) { animation-delay: 0s; }
.slide-item:nth-child(2) { animation-delay: 6s; }
.slide-item:nth-child(3) { animation-delay: 12s; }
@keyframes slideShow { 0% { opacity: 0; transform: scale(1); } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1.05); } 100% { opacity: 0; } }
.mission-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.2); z-index: -1; }
.mission-box { background: rgba(255,255,255,0.85); padding: 60px 50px; max-width: 800px; margin: 0 auto; border-radius: var(--border-radius-large); box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; z-index: 2; }
.section-header-center { margin-bottom: 60px; text-align: center; position: relative; z-index: 2; }
.header-en { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; margin-bottom: 10px; color: var(--color-accent); line-height: 1; }
.header-jp { font-size: 1.1rem; color: var(--color-main-text); font-weight: 700; letter-spacing: 0.1em; }
.header-desc { margin-top: 20px; color: var(--color-sub-text); }
.mission-lead { font-size: 2rem; font-weight: 700; margin-bottom: 50px; line-height: 1.6; }
.mission-text { text-align: justify; font-size: 1.05rem; color: var(--color-sub-text); line-height: 2; }

/* Social Issue */
.social-issue-section { position: relative; background-color: var(--color-bg-base); padding-bottom: 280px; z-index: 2; }
.issue-grid { display: flex; flex-direction: column; gap: 60px; max-width: 900px; margin: 0 auto 60px; }
.issue-card { display: flex; align-items: center; background: #fff; border-radius: var(--border-radius-large); padding: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.issue-visual { flex: 0 0 200px; display: flex; justify-content: center; margin-right: 50px; }
.circle-data { width: 180px; height: 180px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.15); text-align: center; }
.circle-data.accent { background: var(--color-accent); }
.circle-data.green { background: #4a8e5a; }
.circle-data .label { font-family: var(--font-en); font-size: 0.9rem; opacity: 0.9; letter-spacing: 0.05em; position: relative; z-index: 2; }
.circle-data .number { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; line-height: 1; position: relative; z-index: 2; }
.circle-data .number small { font-size: 1.2rem; font-weight: 500; font-family: var(--font-jp); }
.circle-data .icon-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); font-size: 6rem; opacity: 0.15; z-index: 1; }
.issue-text-area { flex: 1; }
.issue-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--color-main-text); border-bottom: 2px solid #eee; padding-bottom: 10px; display: inline-block; }
.issue-desc { font-size: 1rem; line-height: 1.9; color: var(--color-sub-text); margin-bottom: 20px; text-align: justify; }
.issue-source { display: block; font-size: 0.8rem; color: #999; font-style: normal; text-align: right; }
.issue-conclusion { text-align: center; font-size: 1.3rem; font-weight: 500; margin-top: 60px; }
.issue-conclusion strong { color: var(--color-accent); font-size: 1.6rem; position: relative; padding: 0 5px; }
.issue-conclusion strong::after { display: none; } /* 赤ライン削除 */

/* Technology */
.technology-section { position: relative; padding: 0; margin-top: -180px; z-index: 2; pointer-events: none; }
.tech-bg-container { background: var(--color-bg-beige); padding: 180px 0 150px; pointer-events: auto; position: relative; }
.tech-bg-container .section-bg-text { top: 15%; transform: translate(-50%, 0); font-size: 18vw; opacity: 0.04; writing-mode: horizontal-tb; left: 50%; right: auto; }

.curve-top-layered, .curve-bottom-layered { position: relative; width: 100%; line-height: 0; }
.curve-top-layered svg, .curve-bottom-layered svg { display: block; width: 100%; height: auto; position: absolute; left: 0; }
.curve-top-layered { height: 100px; margin-bottom: -1px; top: -1px; }
.curve-top-layered .wave-layer-1 { bottom: 0; z-index: 2; }
.curve-top-layered .wave-layer-2 { bottom: 10px; z-index: 1; opacity: 0.7; }
.curve-bottom-layered { height: 100px; margin-top: -1px; bottom: -1px; }
.curve-bottom-layered .wave-layer-1 { top: 0; z-index: 2; }
.curve-bottom-layered .wave-layer-2 { top: 10px; z-index: 1; opacity: 0.7; }

.tech-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 180px; position: relative; z-index: 2; }
.tech-row.reverse { flex-direction: row-reverse; }
.tech-content { width: 45%; padding: 20px; }
.tech-image { width: 50%; }
.tech-number-block { display: inline-block; border-bottom: 2px solid var(--color-accent); padding-bottom: 5px; margin-bottom: 20px; }
.num-label { font-family: var(--font-en); font-size: 1rem; letter-spacing: 0.1em; color: var(--color-accent); margin-right: 10px; }
.num-val { font-family: var(--font-en); font-size: 4rem; font-weight: 700; color: var(--color-accent); line-height: 1; }
.tech-title-en { font-family: var(--font-en); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 15px; }
.tech-title-jp span { display: inline-block; background: #fff; padding: 8px 25px; border-radius: 50px; font-weight: 700; font-size: 1rem; box-shadow: 0 5px 20px rgba(0,0,0,0.08); color: var(--color-accent); }
.tech-desc { margin-top: 35px; text-align: justify; font-size: 1.05rem; line-height: 2; }
.tech-safety-box { background: #fff; padding: 30px; border-radius: var(--border-radius-base); border-left: 6px solid var(--color-accent); margin-top: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.safety-title { font-weight: 700; margin-bottom: 10px; color: var(--color-accent); font-size: 1.2rem; }
.rounded-media { border-radius: var(--border-radius-large); width: 100%; box-shadow: 20px 20px 0 rgba(255,255,255,0.7), 0 10px 40px rgba(0,0,0,0.1); }
.tech-img-small { width: 65%; margin: 0 auto; display: block; }

.marquee-section { overflow: hidden; padding: 80px 0; width: 100%; position: relative; z-index: 2; }
.tech-title-area.center { text-align: center; }
.marquee-wrapper { width: 100%; display: flex; }

/* ★修正：アニメーション時間を60sから20sに変更してスピードアップ */
.marquee-content {
    display: flex;
    gap: 40px;
    will-change: transform;
    /* 速度を10sに変更済み */
    animation: marqueeScroll 20s linear infinite;
    
    /* ▼▼ 追加修正: これでスマホでも途切れなくなります ▼▼ */
    width: max-content;    /* 中身の長さに合わせて枠を広げる */
    padding-right: 40px;   /* gapと同じ余白を最後につけてループを滑らかにする */
}

.marquee-item { position: relative; flex: 0 0 400px; height: auto; background: transparent; }
.marquee-img-box { width: 100%; height: 280px; background: #fff; display: flex; align-items: center; justify-content: center; border-radius: var(--border-radius-base); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); color: #ccc; font-weight: bold; font-family: var(--font-en); font-size: 1.5rem; position: relative; }
.marquee-img-box img { width: 100%; height: 100%; object-fit: cover; }
.ph-label { z-index: 1; }
/* ▼▼ 修正: 活用シーンのテキストサイズを大きくしました ▼▼ */
.marquee-caption { 
    margin-top: 15px; 
    font-size: 1.1rem; /* 0.9remから変更 */
    color: var(--color-main-text); 
    text-align: center; 
    font-weight: 500; 
    line-height: 1.4; 
    min-height: 1.4em; 
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Visual Break */
.visual-break-section { position: relative; min-height: 500px; padding: 100px 0; background-image: url('images/farm.png'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; justify-content: center; align-items: center; margin: 0; z-index: 1; }
.visual-break-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
.visual-break-inner { text-align: center; position: relative; z-index: 2; width: 100%; padding: 0 20px; }
.visual-text { font-family: var(--font-en); color: #fff; font-size: 5rem; letter-spacing: 0.1em; font-weight: 700; text-shadow: 0 0 30px rgba(0,0,0,0.6); line-height: 1.1; word-wrap: break-word; }

/* Business */
.business-section { margin-top: 0 !important; padding-top: 100px; position: relative; z-index: 2; background-color: var(--color-bg-base); }
.business-card { display: flex; background: #fff; border-radius: var(--border-radius-large); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; z-index: 2; }
.business-img, .business-info { width: 50%; }
.business-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.business-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.business-info h3 { font-size: 1.8rem; margin-bottom: 30px; color: var(--color-accent); }
.business-info p { margin-bottom: 30px; }
.check-list li { padding: 15px 0 15px 30px; border-bottom: 1px solid #eee; position: relative; font-weight: 500; font-size: 1.1rem; }
.check-list li::before { 
    content: '・'; 
    font-family: var(--font-jp);
    font-weight: 700; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    color: var(--color-accent); 
    transform: translateY(-50%); 
    font-size: 1.5rem; 
    line-height: 1;
}

/* News */
.news-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 100%; margin: 0 auto 60px; position: relative; z-index: 2; }
.news-card-simple { display: flex; flex-direction: column; gap: 15px; background: #fff; padding: 30px; border-radius: var(--border-radius-base); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; border: none; }
.news-card-simple:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.news-meta { display: flex; align-items: center; gap: 15px; }
.news-meta time { font-family: var(--font-en); color: #999; font-size: 0.9rem; }
.news-meta .tag { font-size: 0.8rem; padding: 4px 12px; color: #fff; background: #333; border-radius: 50px; }
.news-meta .tag.media { background: var(--color-accent); }
.news-ttl { font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.view-more-btn-area { text-align: center; position: relative; z-index: 2; }
.round-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--color-accent); color: #fff; padding: 15px 60px; border-radius: 50px; font-family: var(--font-en); font-weight: 700; letter-spacing: 0.1em; transition: 0.3s; box-shadow: 0 10px 20px rgba(222, 41, 57, 0.3); }
.round-btn:hover { background: #c21c2b; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(222, 41, 57, 0.4); }

/* Company */
.company-wrapper { display: flex; gap: 60px; margin-bottom: 100px; position: relative; z-index: 2; }
.company-info-box { width: 50%; background: #fff; padding: 40px; border-radius: var(--border-radius-base); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.company-dl .row { display: flex; padding: 20px 0; border-bottom: 1px solid #eee; align-items: baseline; }
.company-dl dt { width: 120px; font-weight: 700; color: var(--color-accent); flex-shrink: 0; }
.company-dl dd { text-align: left; }
.access-map { width: 50%; }
.sub-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; font-family: var(--font-en); color: var(--color-accent); }
.map-frame { border-radius: var(--border-radius-large); overflow: hidden; height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.company-origin-wrapper { background: var(--color-bg-beige); padding: 80px 60px; border-radius: var(--border-radius-large); position: relative; z-index: 2; overflow: hidden; }
.company-origin-heading { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--color-accent); font-weight: 700; font-family: var(--font-script); transform: rotate(-5deg); }
.company-origin-text p { margin-bottom: 25px; line-height: 2; text-align: justify; }

.name-dd-flex { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.origin-modal-trigger { background: transparent; border: 1px solid #ccc; border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; color: #888; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.origin-modal-trigger:hover { background: #999; color: #fff; border-color: #999; }

/* Modal */
.modal-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.4s ease; display: flex; justify-content: center; align-items: center; }
.modal-wrapper.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.modal-content { background: #fff; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; border-radius: var(--border-radius-large); position: relative; padding: 60px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.4s ease; }
.modal-wrapper.is-open .modal-content { transform: translateY(0); }
.modal-close-btn { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #f0f0f0; border-radius: 50%; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: background 0.3s; }
.modal-close-btn:hover { background: #ddd; }
.modal-close-btn .bar { width: 18px; height: 2px; background: #333; display: block; position: absolute; }
.modal-close-btn .bar:nth-child(1) { transform: rotate(45deg); }
.modal-close-btn .bar:nth-child(2) { transform: rotate(-45deg); }
.company-origin-heading-modal { text-align: center; font-size: 1.8rem; margin-bottom: 30px; color: var(--color-accent); font-weight: 700; }

/* Member */
.member-list { display: flex; flex-direction: column; gap: 120px; position: relative; z-index: 2; }
.member-row { display: flex; align-items: center; gap: 80px; }
.member-row.reverse { flex-direction: row-reverse; }
.member-visual { width: 40%; }
.member-text { width: 60%; }
.member-photo-frame { width: 100%; height: 380px; overflow: hidden; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; box-shadow: 20px 20px 0 var(--color-bg-beige), 0 20px 40px rgba(0,0,0,0.1); transition: all 0.5s ease; }
.member-photo-frame:hover { border-radius: 50%; }
.member-photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.member-row:hover .member-photo-frame img { filter: grayscale(0%); transform: scale(1.1); }
.member-role { font-family: var(--font-en); color: var(--color-accent); margin-bottom: 10px; letter-spacing: 0.1em; font-weight: 700; }
.member-name-large { font-size: 3rem; font-weight: 700; margin-bottom: 5px; line-height: 1; }
.member-name-en { font-family: var(--font-en); font-size: 1.5rem; letter-spacing: 0.05em; color: #ccc; margin-bottom: 40px; }
.member-bio-text { font-size: 1.05rem; line-height: 2; text-align: justify; }

/* Contact */
.bottom-contact {
    position: relative;
    padding: 180px 0;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* はみ出し防止 */
    z-index: 1;
}
.contact-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.contact-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}
.contact-box {
    background: rgba(255, 255, 255, 0.75); /* グラスモーフィズム */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 80px 60px;
    border-radius: var(--border-radius-large);
    text-align: center;
    max-width: 800px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.contact-heading-group, .contact-text-and-button { position: relative; z-index: 1; }
.contact-heading-en { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; margin-bottom: 5px; color: var(--color-accent); line-height: 1.1; letter-spacing: 0.05em; }
.contact-subheading-jp { font-size: 1.5rem; margin-bottom: 30px; line-height: 1.6; font-weight: 700; color: var(--color-main-text); }
.contact-text { font-size: 1rem; margin-bottom: 45px; line-height: 2; color: var(--color-sub-text); font-weight: 500; }
.reserve-btn-large { display: inline-flex; align-items: center; gap: 15px; background: var(--color-accent); color: #fff; padding: 20px 80px; border-radius: 50px; font-weight: 700; font-family: var(--font-en); font-size: 1.1rem; letter-spacing: 0.1em; transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(222, 41, 57, 0.4); text-decoration: none; }
.reserve-btn-large:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(222, 41, 57, 0.5); background-color: #c21c2b; }

/* Footer */
.footer { background: #111; color: #fff; padding: 100px 0 30px; position: relative; overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; position: relative; z-index: 2; }
.footer-logo { width: 180px; filter: brightness(0) invert(1); margin-bottom: 15px; }
.footer-company-name { font-size: 1rem; opacity: 0.7; }
.footer-nav ul { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-en); color: #999; font-size: 1rem; font-weight: 500; position: relative; }
.footer-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--color-accent); transition: 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { width: 100%; }
.copyright { text-align: center; font-size: 0.9rem; color: #666; border-top: 1px solid #333; padding-top: 30px; position: relative; z-index: 2; }

/* Side Nav */
.side-fixed-nav { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; }
.side-fixed-nav.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.side-contact-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--color-accent); color: #fff; width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 10px 20px rgba(222, 41, 57, 0.4); transition: all 0.3s ease; gap: 2px; }
.side-contact-btn:hover { transform: scale(1.1); box-shadow: 0 15px 30px rgba(222, 41, 57, 0.5); }
.side-contact-btn .icon { font-size: 1.6rem; margin-bottom: 0; line-height: 1; }
.side-contact-btn .text { font-family: var(--font-en); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1; }
.side-pagetop-btn { display: flex; align-items: center; justify-content: center; background: #fff; color: var(--color-main-text); width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-size: 1.2rem; transition: all 0.3s ease; margin: 0 auto; }
.side-pagetop-btn:hover { background: var(--color-main-text); color: #fff; transform: translateY(-5px); }

/* ====================================================
   Sub Page Common (Contact & Privacy Policy)
   ==================================================== */

.sub-page-header,
.contact-page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    background-color: var(--color-bg-beige);
}

.contact-form-section,
.privacy-section {
    padding-top: 60px;
    padding-bottom: 120px;
    background-color: var(--color-bg-base);
}

.contact-form-wrapper,
.privacy-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Contact Page Styles */
.contact-intro-text {
    text-align: center;
    margin-bottom: 60px;
    line-height: 2;
    color: var(--color-main-text);
}

.form-row { margin-bottom: 30px; }

.form-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.required-badge {
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-base);
    font-family: var(--font-jp);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(222, 41, 57, 0.1);
}

.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 0.8rem;
}
select { appearance: none; cursor: pointer; }

.checkbox-row {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: 0.3s;
}

.custom-checkbox:hover input ~ .checkmark { background-color: #ddd; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--color-accent); border-color: var(--color-accent); }

.checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after {
    left: 8px; top: 4px; width: 6px; height: 12px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.privacy-link {
    color: var(--color-accent);
    text-decoration: underline;
    transition: 0.3s;
}
.privacy-link:hover { text-decoration: none; opacity: 0.7; }

.form-submit-area { text-align: center; }
.submit-btn { border: none; cursor: pointer; padding: 18px 80px; font-size: 1.1rem; width: auto; }

/* Privacy Policy Page Styles */
.privacy-intro { margin-bottom: 60px; line-height: 2; text-align: justify; }
.privacy-block { margin-bottom: 50px; }
.privacy-block h3 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 20px;
    padding-left: 15px; border-left: 5px solid var(--color-accent);
    line-height: 1.4; color: var(--color-main-text);
}
.privacy-block h4 {
    font-size: 1.1rem; font-weight: 700; margin-top: 30px; margin-bottom: 15px; color: var(--color-main-text);
}
.privacy-block p {
    margin-bottom: 15px; line-height: 1.9; color: var(--color-sub-text); text-align: justify;
}
.privacy-list { margin-top: 15px; margin-bottom: 15px; padding-left: 1.5em; }
.privacy-list li { list-style-type: disc; margin-bottom: 10px; line-height: 1.8; color: var(--color-sub-text); }
.privacy-contact-info {
    background-color: #f9f9f9; padding: 30px; border-radius: var(--border-radius-base); margin-top: 20px;
}
.privacy-contact-info p { margin-bottom: 5px; color: var(--color-main-text); font-weight: 500; }
.privacy-contact-info p:last-child { margin-bottom: 0; }


/* ====================================================
   Floating Animation
   ==================================================== */
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.floating-animate {
    animation: floatUpDown 3s ease-in-out infinite alternate;
}

/* ====================================================
   ▼ 言語切り替えスイッチ (JP / EN)
   ==================================================== */

/* --- PC用設定 --- */
.lang-switch-pc {
    display: flex;
    align-items: center;
    margin-left: 20px; /* お問い合わせボタンとの距離 */
    margin-right: 15px; /* ハンバーガーボタンとの距離 */
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-main-text);
}

.lang-switch-pc .current-lang {
    font-weight: 700;
    color: var(--color-main-text);
    cursor: default;
}

.lang-switch-pc .separator {
    margin: 0 8px;
    font-weight: 300;
    color: #ccc;
}

.lang-switch-pc .other-lang {
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.lang-switch-pc .other-lang:hover {
    color: var(--color-accent);
}

/* --- スマホ(SP)用設定 --- */
.sp-lang-item {
    margin-top: 30px; /* CONTACTからの距離 */
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-lang-item .current-lang {
    font-weight: 700;
    color: var(--color-main-text);
    border-bottom: 2px solid var(--color-accent); /* 選択中を目立たせる */
    padding-bottom: 2px;
}

.sp-lang-item .separator {
    margin: 0 15px;
    color: #ccc;
}

.sp-lang-item .other-lang {
    color: #999;
}

/* ====================================================
   Responsive Settings (5 Patterns)
   ==================================================== */

/* ----------------------------------------------------
   1. Large Display (1280px ~ ) & 2. Standard PC (960px ~ 1279px)
   ---------------------------------------------------- */
@media screen and (max-width: 1279px) {
    /* ▼▼ 修正: 標準PCでも文字サイズを大きくしました (15px -> 16px) ▼▼ */
    html { font-size: 16px; } 
    .section { padding: 120px 0; }
    .container { padding: 0 30px; }

    /* ▼ 言語切り替え (PC) をタブレット以下で非表示にする ▼ */
    .lang-switch-pc { display: none; }

    .header-nav-pc, .header-reserve-btn { display: none; }
    .hamburger-btn { display: flex; }
    .header-inner { padding: 0 30px; }

    .hero-content-fixed { padding-left: 0; justify-content: center; align-items: center; padding-top: 80px; }
    .hero-text-vertical { flex-direction: column; align-items: center; gap: 20px; }
    .main-copy { writing-mode: horizontal-tb; font-size: 2.5rem; text-align: center; margin-bottom: 10px; white-space: normal; text-shadow: 0 0 15px rgba(0,0,0,0.6); }
    .sub-copy { writing-mode: horizontal-tb; transform: none; font-size: 1rem; letter-spacing: 0.2em; }

    .tablet-br { display: block; }
    .issue-card { flex-direction: column; text-align: center; padding: 50px; }
    .issue-visual { margin-right: 0; margin-bottom: 20px; flex: 0 0 auto; }
    .issue-heading { border-bottom: none; display: block; margin-bottom: 20px; }
    .issue-desc { text-align: left; }
    .circle-data { width: 160px; height: 160px; }

    .tech-row, .tech-row.reverse { display: flex; flex-direction: column; gap: 50px; align-items: center; }
    .tech-content { display: contents; } 
    .tech-number-block { order: 1; width: 100%; text-align: left; }
    .tech-title-area { order: 2; width: 100%; text-align: left; }
    .tech-image { order: 3; width: 100%; margin-top: 20px; margin-bottom: 20px; padding: 0; }
    .tech-desc { order: 4; width: 100%; }
    .tech-safety-box { order: 5; width: 100%; margin-top: 20px; }

    .tech-image video,
    .tech-image img { width: 70%; max-width: 400px; margin: 0 auto; display: block; }
    .tech-image .tech-img-small { width: 50%; max-width: 300px; }

    .num-val { font-size: 3.5rem; }

    .business-card { flex-direction: column; }
    .business-img, .business-info { width: 100%; }
    .business-img img { height: 350px; }
    .business-info { padding: 60px 50px; }

    .company-wrapper { flex-direction: column; gap: 60px; }
    .company-info-box, .access-map { width: 100%; }

    .member-row, .member-row.reverse { flex-direction: column; gap: 30px; text-align: center; }
    .member-visual, .member-text { width: 100%; }
    .member-photo-frame { width: 320px; height: 320px; margin: 0 auto; border-radius: var(--border-radius-large); }
    .member-photo-frame img { filter: grayscale(0%); }
    .member-bio-text { text-align: left; margin-top: 20px; }

    .contact-heading-en { font-size: 2.8rem; }
    .contact-subheading-jp { font-size: 1.4rem; }

    .footer-inner { flex-direction: column; align-items: center; gap: 30px; }
    .footer-nav ul { justify-content: center; gap: 20px 30px; }
}

/* ----------------------------------------------------
   3. Tablet (600px ~ 959px)
   ---------------------------------------------------- */
@media screen and (max-width: 959px) {
    html { font-size: 14px; }
    .section { padding: 100px 0; }
    .container { padding: 0 40px; }

    .main-copy { font-size: 2.2rem; }
    .header-en { font-size: 2.4rem; }
    .header-desc br, .mission-lead br { display: none; }
    .mission-lead { font-size: 1.6rem; text-align: center; }

    .tech-image video,
    .tech-image img { width: 90%; max-width: 600px; }
    .tech-image .tech-img-small { width: 70%; max-width: 450px; }
    
    .contact-heading-en { font-size: 2.4rem; }
    .contact-subheading-jp { font-size: 1.3rem; }
    .footer-nav ul { gap: 15px 25px; }
}

/* ----------------------------------------------------
   4. Large Smartphone (375px ~ 599px)
   ---------------------------------------------------- */
@media screen and (max-width: 599px) {
    html { font-size: 14px; }
    .header-inner { padding: 0 20px; }

    .hero-content-fixed { padding-left: 30px; justify-content: flex-start; padding-top: 120px; }
    .hero-text-vertical { flex-direction: row-reverse; align-items: flex-start; max-height: 70vh; gap: 15px; }
    .main-copy { writing-mode: vertical-rl; font-size: 1.6rem; line-height: 1.5; white-space: nowrap; margin: 0; text-shadow: 0 0 10px rgba(0,0,0,0.7); text-align: left; }
    .sub-copy { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; font-size: 0.8rem; margin: 0; letter-spacing: 0.2em; }
    .scroll-down-laser { right: 20px; }

    .section { padding: 80px 0; }
    .header-en { font-size: 2rem; }
    .header-desc { text-align: left; }
    .header-desc br { display: none; }
    
    .section-bg-text { font-size: 20vw; writing-mode: horizontal-tb; transform: translateX(-50%); left: 50% !important; right: auto !important; top: 5%; opacity: 0.03; }

    .mission-box, .contact-box, .issue-card, .business-info, .company-info-box, .company-origin-wrapper, .news-card-simple, .tech-safety-box { padding: 40px 20px; }

    .mission-box { width: 95%; }
    .mission-lead { font-size: 1.2rem; text-align: left; } 
    .mission-text { text-align: left; }

    .tablet-br { display: none; }
    .issue-card { padding: 40px 20px; }
    .issue-visual { margin-bottom: 10px; flex: 0 0 auto; }
    .circle-data { width: 140px; height: 140px; }
    .circle-data .number { font-size: 2.8rem; }
    .issue-heading { font-size: 1.1rem; } 
    .issue-conclusion { font-size: 1rem; line-height: 1.8; margin-top: 40px; }
    .issue-conclusion strong { font-size: 1.1rem; }
    .inline-block-sp { display: inline-block; }

    .tech-bg-container { padding: 80px 0; }
    .tech-title-en { font-size: 2rem; } 
    .tech-image video, .tech-image img { width: 100%; max-width: 400px; }
    .tech-img-small { width: 100%; max-width: 300px; margin: 0 auto; } 

    .marquee-item { flex: 0 0 280px; } 
    .marquee-img-box { height: 200px; }

    .visual-break-section { min-height: 300px; }
    .visual-text { font-size: 2.5rem; }

    .business-section { padding-top: 60px; }
    .business-img img { min-height: 250px; }
    .business-info h3 { font-size: 1.4rem; }
    .check-list li { font-size: 0.95rem; }

    .company-dl dt { width: 100px; font-size: 0.9rem; }
    .map-frame { height: 300px; }
    .company-origin-heading { font-size: 1.6rem; }

    .member-list { gap: 80px; }
    .member-photo-frame { height: 300px; width: 100%; border-radius: 10px; }
    .member-name-large { font-size: 2.2rem; }

    .bottom-contact { padding: 100px 0; }
    .contact-box { width: 95%; }
    .contact-heading-en { font-size: 2.5rem; }
    .contact-subheading-jp { font-size: 0.95rem; margin-bottom: 20px;line-height: 1.6; } 
    .contact-text { font-size: 0.9rem; text-align: left; }
    .reserve-btn-large { width: 100%; justify-content: center; padding: 18px 0; font-size: 1rem; }

    .footer { padding: 80px 0 30px; }
    .copyright { font-size: 0.75rem; padding-top: 20px; }

    .side-fixed-nav { bottom: 20px; right: 20px; gap: 10px; }
    .side-contact-btn { width: 60px; height: 60px; }
    .side-contact-btn .icon { font-size: 1.3rem; }
    .side-contact-btn .text { font-size: 0.5rem; }
    .side-pagetop-btn { width: 40px; height: 40px; font-size: 1rem; }
    
    .sp-only { display: block; }
    
    .sub-page-header, .contact-page-header { padding-top: 120px; padding-bottom: 40px; }
    .contact-intro-text { font-size: 0.9rem; text-align: left; }
    .submit-btn { width: 100%; }
    
    .privacy-section { padding-top: 40px; padding-bottom: 80px; }
    .privacy-block h3 { font-size: 1.2rem; margin-bottom: 15px; }
    .privacy-intro, .privacy-block p, .privacy-list li { font-size: 0.95rem; text-align: left; }
    .privacy-contact-info { padding: 20px; }
    
    @keyframes floatUpDown {
        0% { transform: translateY(0); }
        100% { transform: translateY(-10px); }
    }
}

/* ----------------------------------------------------
   5. Small Smartphone (~374px)
   ---------------------------------------------------- */
@media screen and (max-width: 374px) {
    html { font-size: 13px; } 
    .section { padding: 60px 0; }
    .hero-content-fixed { padding-top: 100px; padding-left: 20px; }
    .main-copy { font-size: 1.6rem; margin-bottom: 0; }
    .sub-copy { font-size: 0.7rem; }
    
    .header-en { font-size: 2rem; margin-bottom: 5px; } 
    .header-jp { font-size: 0.9rem; }
    .section-bg-text { font-size: 12vw; top: 5%; opacity: 0.02; }

    .mission-box, .contact-box, .issue-card, .business-info, .company-info-box, .news-card-simple, .tech-safety-box { padding: 30px 15px; }

    .circle-data { width: 100px; height: 100px; } 
    .circle-data .number { font-size: 2rem; }
    .circle-data .label { font-size: 0.7rem; }
    .issue-heading { font-size: 1.1rem; }
    .issue-visual { margin-bottom: 10px; flex: 0 0 auto; }
    .issue-conclusion { font-size: 0.85rem; margin-top: 30px; }
    .issue-conclusion strong { font-size: 1rem; }

    .tech-bg-container { padding: 60px 0; }
    .tech-row, .tech-row.reverse { margin-bottom: 50px; gap: 20px; }
    .num-val { font-size: 2.5rem; }
    .tech-title-en { font-size: 2rem; margin-bottom: 10px; }
    .tech-title-jp span { font-size: 0.85rem; padding: 6px 15px; }
    .tech-desc { font-size: 0.9rem; margin-top: 20px; }
    .marquee-item { flex: 0 0 220px; } 
    .marquee-img-box { height: 150px; }

    .business-img img { min-height: 180px; }
    .business-info h3 { font-size: 1.1rem; margin-bottom: 20px; }
    .check-list li { font-size: 0.85rem; padding-left: 1.2em; padding-top: 10px; padding-bottom: 10px; }
    .check-list li::before { font-size: 1.2rem; }

    .company-dl .row { flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px 0; }
    .company-dl dt { width: 100%; border-bottom: 1px dashed #eee; padding-bottom: 5px; margin-bottom: 5px; color: var(--color-sub-text); font-size: 0.8rem; }
    .company-dl dd { padding-left: 0; font-size: 0.9rem; }
    
    .member-list { gap: 60px; }
    .member-photo-frame { height: 250px; border-radius: 10px; }
    .member-name-large { font-size: 1.7rem; }
    .member-name-en { font-size: 1rem; margin-bottom: 20px; }
    .member-bio-text { font-size: 0.9rem; text-align: left; }

    .bottom-contact { padding: 80px 0; }
    .contact-heading-en { font-size: 2.2rem; }
    .contact-subheading-jp { font-size: 1rem; }
    .contact-text { font-size: 0.8rem; margin-bottom: 30px; }
    .reserve-btn-large { padding: 15px 0; font-size: 0.9rem; width: 100%; }
    
    .side-contact-btn { width: 50px; height: 50px; }
    .side-contact-btn .icon { font-size: 1.1rem; }
    .side-contact-btn .text { display: none; } 
    .side-pagetop-btn { width: 35px; height: 35px; font-size: 0.8rem; }
}