@charset "UTF-8";

:root {
    --c-text: #435243; --c-bg: #fcfffa; --c-nav-bg: #618352; --c-nav-border: #a5b69a;
    --c-header-bg: #1b221b; --c-footer-bg: #618352; --c-footer-text: #b4d7a4;
    --c-divider: #cccccc; --c-diamond: #618352; --c-th-bg: #ecf2e9; --c-td-bg: #f4f9f1;
    --c-faq-icon: #618352; --c-highlight: #ffff00;
    --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: "Shippori Mincho", serif; margin: 0; padding: 100px 0 0 0; color: var(--c-text); background-color: var(--c-bg); font-size: 18px; line-height: calc(38 / 18); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* トップページ専用の相殺 */
body.top-page { padding: 0; }
body.is-opening { overflow: hidden; }

h1.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
h2 { font-size: 36px; line-height: calc(56 / 36); text-align: center; font-weight: 400; margin: 0 0 50px 0; }
h3.faq-title { font-size: 21px; line-height: calc(40 / 21); font-weight: 400; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.note { font-size: 16px; line-height: calc(30 / 16); color: #888888; word-break: break-all; }
.highlight { background: linear-gradient(transparent 60%, var(--c-highlight) 60%); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.narrow-container { max-width: 980px; margin: 0 auto; width: 100%; padding: 0 20px; }
.content-area { max-width: 1000px; margin: 0 auto; padding: 80px 20px 120px; }
.content-area p { margin-bottom: 20px; }
.content-area h2 { margin: 0; }
.content-area a { text-decoration: underline; text-underline-offset: 3px; transition: all 0.3s ease; }
.content-area a:hover { text-decoration: none; opacity: 0.7; }
.content-list { padding-left: 20px; margin-bottom: 20px; }
.content-list li { margin-bottom: 8px; }
.date-right { text-align: right; margin-top: 60px; font-size: 18px; }

/* ヘッダー・ナビゲーション */
.sub-header { position: absolute; top: 0; left: 0; width: 100%; height: 100px; background-color: var(--c-header-bg); z-index: 990; display: flex; justify-content: flex-start; align-items: center; }
.header-logo-area { display: flex; align-items: center; gap: 20px; padding-left: 20px; color: var(--white); font-size: 20px; font-weight: 700; letter-spacing: 0.1em; }
.header-logo-link { display: flex; align-items: center; }
.header-logo-link:hover { opacity: 0.7; }
.header-logo-area img { height: 60px; width: auto; }
@media (max-width: 767px) { .header-logo-area { gap: 10px; font-size: 14px; padding-left: 15px; } .header-logo-area img { height: 40px; } }

.hamburger-btn { position: fixed; top: 0; right: 0; z-index: 1001; background-color: var(--c-nav-bg); width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.hamburger-lines { width: 30px; height: 18px; position: relative; margin-bottom: 12px; }
.hamburger-lines span { display: block; position: absolute; width: 100%; height: 1px; background: var(--white); transition: 0.3s; }
.hamburger-lines span:nth-child(1) { top: 0; } .hamburger-lines span:nth-child(2) { top: 8px; } .hamburger-lines span:nth-child(3) { bottom: 0; }
.menu-text { color: var(--white); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.1em; }
.hamburger-btn.open .hamburger-lines span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open .hamburger-lines span:nth-child(2) { opacity: 0; }
.hamburger-btn.open .hamburger-lines span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 767px) { .hamburger-btn { width: 80px; height: 80px; } }

.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.6); z-index: 998; opacity: 0; visibility: hidden; transition: 0.4s; }
.menu-overlay.open { opacity: 1; visibility: visible; }

.sp-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background-color: var(--c-nav-bg); color: var(--white); z-index: 999; transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; padding-top: 120px; }
.sp-menu.open { right: 0; }
.sp-menu ul { list-style: none; padding: 0; margin: 0; }
.sp-menu li { border-bottom: 1px solid var(--c-nav-border); }
.sp-menu a { display: block; padding: 20px 40px; font-size: 18px; font-weight: 700; transition: background-color 0.3s ease; }
.sp-menu a:hover { background-color: rgba(255, 255, 255, 0.15); } 
.sp-ext-links { padding: 40px; display: flex; flex-direction: column; gap: 40px; }
.sp-ext-links .btn-ext { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: transparent; border: 1px solid var(--white); color: var(--white); padding: 15px; font-size: 18px; border-radius: 5px; font-weight: normal; transition: background-color 0.3s ease; }
.sp-ext-links .btn-ext:hover { background-color: rgba(255, 255, 255, 0.15); } 

.pc-nav { position: absolute; bottom: 0; left: 0; width: 100%; background-color: #1b221b; z-index: 100; border-bottom: 1px solid #484848; }
.pc-nav ul { display: flex; list-style: none; margin: 0 auto; padding: 0; max-width: 1980px; width: 100%; }
.pc-nav li { flex: 1; text-align: center; border-left: 1px solid #484848; }
.pc-nav li:last-child { border-right: 1px solid #484848; }
.pc-nav a { display: block; color: var(--white); font-size: 18px; font-weight: 700; padding: 40px 0; transition: background-color 0.3s; width: 100%; }
.pc-nav a:hover { background-color: rgba(255, 255, 255, 0.15); }
@media (max-width: 767px) { .pc-nav { display: none; } }

/* トップページ特有のスタイル */
#opening { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--c-nav-bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); padding: 0 20px; }
#opening.is-hidden { transform: translateY(-100%); }
.opening-text { color: var(--white); font-size: 28px; letter-spacing: 0.15em; text-align: center; line-height: 2; }
/* 箇条書きテキストの共通設定 */
.step-text {
    opacity: 0;
    animation: fadeInText 1s forwards;
    margin: 0;
    line-height: 1.8;
}
/* 1行目: 0.5秒後に表示開始 */
.step-text.step1 { animation-delay: 0.5s; }
/* 2行目: 1行目から3秒後（計3.5秒後）に表示開始 */
.step-text.step2 { animation-delay: 3.5s; }
/* 3行目・4行目: 2行目から3秒後（計6.5秒後）に表示開始 */
.step-text.step3 { animation-delay: 6.5s; }
/* フワッと浮き上がりながら表示されるアニメーションの定義 */
@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) { .opening-text { font-size: 19px; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.0s ease, transform 1.0s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.hero { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .hero { aspect-ratio: auto; height: 100vh; } }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 2; }

.slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transform: scale(1); animation: smoothCrossfade 42s infinite linear; }
.slide:nth-child(1) { background-image: url('../img/kushinsai_main_01.jpg'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('../img/kushinsai_main_03.jpg'); animation-delay: 6s; }
.slide:nth-child(3) { background-image: url('../img/kushinsai_main_07.jpg'); animation-delay: 12s; }
.slide:nth-child(4) { background-image: url('../img/kushinsai_main_04.jpg'); animation-delay: 18s; }
.slide:nth-child(5) { background-image: url('../img/kushinsai_main_05.jpg'); animation-delay: 24s; }
.slide:nth-child(6) { background-image: url('../img/kushinsai_main_09.jpg'); animation-delay: 30s; }
.slide:nth-child(7) { background-image: url('../img/kushinsai_main_10.jpg'); animation-delay: 36s; }
@keyframes smoothCrossfade { 0% { opacity: 0; transform: scale(1); } 3.5% { opacity: 1; transform: scale(1.02); } 14% { opacity: 1; transform: scale(1.06); } 18% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }

.hero-logo-new { position: relative; z-index: 10; display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 40px; color: var(--white); text-shadow: 0 4px 15px rgba(0,0,0,0.6); opacity: 0; transform: scale(0.9); filter: blur(10px); }
body.is-loaded .hero-logo-new { animation: logoEntrance 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes logoEntrance { 100% { opacity: 1; transform: scale(1); filter: blur(0); } }

.logo-main { font-size: 115px; font-weight: 700; letter-spacing: 0.1em; writing-mode: vertical-rl; text-orientation: upright; line-height: 1; }
.logo-sub { font-size: 21px; letter-spacing: 0.2em; font-weight: 400; writing-mode: vertical-rl; text-orientation: upright; line-height: 1; margin-top: 12px; }
@media (max-width: 767px) { .logo-main { font-size: 75px; } .logo-sub { font-size: 14px; margin-top: 5px; } .hero-logo-new { gap: 15px; } }

.scroll-indicator { position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%); z-index: 20; width: 1px; height: 60px; }
.scroll-indicator::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 100%; background-color: rgba(255,255,255,0.7); transform-origin: top; transform: scaleY(0); }
.scroll-indicator::after { content: ""; position: absolute; bottom: 0; left: -4px; width: 8px; height: 8px; border-right: 1px solid rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.7); transform: rotate(45deg); opacity: 0; }
@media (max-width: 767px) { .scroll-indicator { bottom: 80px; } }
body.is-loaded .scroll-indicator::before { animation: scrollLineSmooth 2s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
body.is-loaded .scroll-indicator::after { animation: scrollArrowSmooth 2s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
@keyframes scrollLineSmooth { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes scrollArrowSmooth { 0% { opacity: 0; transform: translateY(-20px) rotate(45deg); } 50% { opacity: 1; transform: translateY(0) rotate(45deg); } 100% { opacity: 0; transform: translateY(0) rotate(45deg); } }

/* 共通パーツ（区切り線など） */
.section-divider { max-width: 1280px; width: 100%; margin: 100px auto; display: flex; align-items: center; justify-content: center; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background-color: var(--c-divider); }
.section-divider .diamond { width: 17px; height: 17px; background-color: var(--c-diamond); transform: rotate(45deg); margin: 0 5px; flex-shrink: 0; }
@media (max-width: 767px) { .section-divider { margin: 60px auto; padding: 0 20px; } }

/* レイアウト・テーブル等 */
.about-row { display: flex; gap: 60px; align-items: flex-start; }
.about-img-col { flex: 0 0 280px; }
.about-text-col { flex: 1; }
.img-license-cert { width: 100%; height: auto; box-shadow: none; }
.flex-row { display: flex; gap: 60px; align-items: flex-start; }
.flex-col-half { flex: 1; }
@media (max-width: 767px) { .about-row, .flex-row { flex-direction: column; gap: 40px; } .about-img-col { flex: auto; width: 100%; display: flex; justify-content: center; } .img-license-cert { width: 280px; } }

.btn-jplatpat { display: flex; width: fit-content; margin: 30px auto 0 auto; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 5px; border: 1px solid var(--c-text); color: var(--c-text); font-size: 18px; transition: all 0.3s ease; }
.btn-jplatpat img { width: 24px; height: 24px; transition: all 0.3s ease; filter: brightness(0) invert(28%) sepia(13%) saturate(769%) hue-rotate(75deg) contrast(88%); }
.btn-jplatpat:hover { background-color: var(--c-text); color: var(--white); }
.btn-jplatpat:hover img { filter: brightness(0) invert(1); }

.video-container { max-width: 980px; margin: 0 auto; width: 100%; }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-note { list-style: none; padding: 0; text-align: left; margin-top: 20px; }
.note a { text-decoration: underline; text-underline-offset: 3px; transition: all 0.3s ease; }
.note a:hover { text-decoration: none; opacity: 0.7; }

/* FAQ */
.faq-container { max-width: 1280px; margin: 0 auto; width: 100%; }
.faq-list { border-top: 1px solid var(--c-divider); }
.faq-item { border-bottom: 1px solid var(--c-divider); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 30px 20px; cursor: pointer; color: var(--c-text); }
.faq-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; font-size: 32px; flex-shrink: 0; margin-right: 20px; }
.faq-icon.q { background-color: var(--c-faq-icon); color: var(--white); }
.faq-icon.a { background-color: transparent; color: var(--c-text); border: 1px solid var(--c-divider); }
.faq-q-text { flex-grow: 1; font-size: 21px; padding-right: 20px; }
.faq-toggle { font-size: 48px; color: var(--c-divider); transition: transform 0.3s ease; line-height: 1; flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; background-color: transparent; }
.faq-answer-inner { display: flex; align-items: flex-start; padding: 0 20px 30px 20px; }
.faq-a-text { flex-grow: 1; margin: 0; padding-top: 10px; padding-right: 80px; }
@media (max-width: 767px) { .faq-icon { width: 40px; height: 40px; font-size: 20px; margin-right: 15px; } .faq-toggle { font-size: 36px; } .faq-q-text { font-size: 18px; padding-right: 10px; } .faq-a-text { padding-right: 40px; } }

/* 会社概要 / 規約テーブル */
.company-wrapper { position: relative; overflow: hidden; padding: 80px 20px; z-index: 1; }
.parallax-bg { position: absolute; top: -500px; left: 0; width: 100%; height: calc(100% + 1000px); background-image: url('../img/kushinsai_back.jpg'); background-size: cover; background-position: center; z-index: -1; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
@media (max-width: 767px) { .company-wrapper { padding: 60px 20px; } .parallax-bg { background-image: none; display: none; } }
.company-table { width: 100%; border-collapse: collapse; background-color: rgba(255,255,255,0.95); }
.company-table th, .company-table td { padding: 20px; border-bottom: 1px solid var(--white); }
.company-table th { width: 30%; background-color: var(--c-th-bg); font-weight: 700; text-align: left; }
.company-table td { background-color: var(--c-td-bg); }
@media (max-width: 767px) { .company-table th, .company-table td { display: block; width: 100%; } .company-table { background-color: transparent; } }

.terms-table-flex { display: flex; width: 100%; margin: 30px 0; }
.terms-col { flex: 1; display: flex; flex-direction: column; }
.terms-th { background-color: var(--c-th-bg); font-weight: 700; text-align: center; padding: 20px; border-bottom: 1px solid var(--white); }
.terms-td { background-color: var(--c-td-bg); padding: 20px; flex-grow: 1; border-bottom: 1px solid var(--white); }
.table-list { list-style: none; padding: 0; margin: 0; }
.table-list li { margin-bottom: 5px; }
.table-list li::before { content: "・"; margin-right: 5px; }
@media (max-width: 767px) { .terms-table-flex { flex-direction: column; } }

/* フッター・TOPへ戻るボタン */
footer { background-color: var(--c-footer-bg); color: var(--c-footer-text); padding: 80px 20px; text-align: center; font-size: 16px; }
.footer-logo { width: 80px; height: auto; margin: 0 auto 40px auto; }
.footer-en-text { max-width: 420px; margin: 0 auto 40px auto; font-size: 16px; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
@media (max-width: 767px) { footer { padding: 60px 20px; font-size: 14px; } .footer-logo { margin-bottom: 40px; } .footer-en-text { margin-bottom: 40px; font-size: 14px; } .footer-links { margin-bottom: 40px; flex-direction: row; gap: 20px; justify-content: center; flex-wrap: wrap; } }

.page-top-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: rgba(27, 34, 27, 0.8); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; z-index: 990; opacity: 0; visibility: hidden; transition: 0.3s; }
.page-top-btn.is-show { opacity: 1; visibility: visible; }
.page-top-btn:hover { background-color: rgba(27, 34, 27, 1); }
@media (max-width: 767px) { .page-top-btn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 20px; } }