/*
Theme Name: Hakusin Original Theme
Author: Hakusin Co., Ltd.
Description: 株式会社白心のためのオリジナルテーマ
Version: 1.0
*/

/* =========================================
   Base Styles
   ========================================= */
body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.hakusin {
    --c-bg: #fcfbf9;
    --c-text: #3e3e3e;
    --c-accent: #8e6e53;
    --c-gray: #888;
    --c-menu-bg: #2b2b2b;
    --font-main: 'Shippori Mincho', serif;
    --font-num: 'Helvetica', sans-serif;
    
    font-family: var(--font-main);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 2.2;
    width: 100%;
    font-size: 15px;
    overflow-x: hidden;
    position: relative;
}

.hakusin * { box-sizing: border-box; margin: 0; padding: 0; }
.hakusin a { text-decoration: none; color: inherit; transition: opacity 0.4s; }
.hakusin a:hover { opacity: 0.6; }
.hakusin img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Utility */
.hakusin__container { max-width: 1000px; margin: 0 auto; padding: 0 40px; position: relative; }
.hakusin__v-txt { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.2em; line-height: 2; }
.hakusin__section { padding: 100px 0; position: relative; }
.hakusin__heading-wrap { margin-bottom: 60px; text-align: center; }
.hakusin__heading { font-size: 24px; letter-spacing: 0.2em; display: inline-block; border-bottom: 1px solid var(--c-accent); padding-bottom: 10px; font-weight: normal; }

/* =========================================
   Header & Navigation
   ========================================= */
.hakusin__header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; z-index: 1000;
    color: #fff; background-color: transparent;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.hakusin__header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95); color: var(--c-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hakusin__header.is-menu-open {
    background-color: transparent !important; box-shadow: none !important; color: #fff !important;
}
.hakusin__logo { font-size: 24px; font-weight: 500; letter-spacing: 0.1em; z-index: 1001; }

/* Hamburger */
.hakusin__burger { width: 30px; height: 20px; position: relative; cursor: pointer; z-index: 1001; }
.hakusin__burger-line { position: absolute; width: 100%; height: 1px; background-color: #fff; transition: 0.4s; }
.hakusin__header.is-scrolled .hakusin__burger-line { background-color: var(--c-text); }
.hakusin__header.is-menu-open .hakusin__burger-line,
.hakusin__burger.is-open .hakusin__burger-line { background-color: #fff !important; }

.hakusin__burger-line:nth-child(1) { top: 0; }
.hakusin__burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hakusin__burger-line:nth-child(3) { bottom: 0; }
.hakusin__burger.is-open .hakusin__burger-line:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hakusin__burger.is-open .hakusin__burger-line:nth-child(2) { opacity: 0; }
.hakusin__burger.is-open .hakusin__burger-line:nth-child(3) { bottom: auto; top: 50%; transform: rotate(-45deg); }

/* Menu Overlay */
.hakusin__menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--c-menu-bg); color: #fff; z-index: 999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.hakusin__menu-overlay.is-active { opacity: 1; pointer-events: auto; }
.hakusin__menu-list { text-align: center; }
.hakusin__menu-item { margin: 30px 0; overflow: hidden; }
.hakusin__menu-link {
    display: block; font-size: 20px; letter-spacing: 0.2em;
    transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.hakusin__menu-overlay.is-active .hakusin__menu-link { transform: translateY(0); }

/* =========================================
   Hero Sections
   ========================================= */
/* Top Hero */
.hakusin__hero {
    height: 100vh; width: 100%; position: relative; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    color: #fff; --reveal: 1;
}
.hakusin__hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fff; z-index: 5; transform-origin: top; transform: scaleY(var(--reveal)); will-change: transform;
}
.hakusin__hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); z-index: 4; pointer-events: none;
}
.swiper-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.swiper-slide { width: 100%; height: 100%; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes zoomUp { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.swiper-slide-active img { animation: zoomUp 10s linear forwards; }

.hakusin__hero-text { position: relative; z-index: 6; color: #fff; text-align: center; }
.hakusin__hero-catch { font-size: clamp(24px, 4vw, 48px); margin-bottom: 30px; font-weight: 500; display: inline-block; }
.hakusin__char { display: inline-block; }

.hakusin__scroll-guide {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 11px; letter-spacing: 0.2em; opacity: 1;
    display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 6; cursor: pointer;
}
.hakusin__scroll-guide:hover { opacity: 0.7; }
.hakusin__scroll-line {
    width: 1px; height: 40px; background: #fff;
    animation: scrollDown 1.5s infinite ease-in-out; transform-origin: top;
}
@keyframes scrollDown { 0%{transform:scaleY(0);} 50%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin: bottom;} }

/* Sub Page Hero */
.hakusin__sub-hero {
    height: 50vh; width: 100%; position: relative; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    color: #fff; background-size: cover; background-position: center;
}
.hakusin__sub-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1;
}
.hakusin__sub-hero-content { position: relative; z-index: 2; text-align: center; }
.hakusin__page-title { font-size: 32px; letter-spacing: 0.2em; margin:0 auto; margin-bottom: 10px; font-weight: 500; }
.hakusin__page-subtitle { font-family: var(--font-num); font-size: 12px; letter-spacing: 0.2em; opacity: 0.8; }

/* =========================================
   Top Page Contents
   ========================================= */
/* Company */
.hakusin__company-inner { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.hakusin__company-text { width: 45%; }
.hakusin__company-img { width: 50%; height: 400px; overflow: hidden; }
.hakusin__company-btns { margin-top: 40px; display: flex; gap: 30px; }
.hakusin__text-link {
    font-size: 14px; letter-spacing: 0.1em; border-bottom: 1px solid #333; padding-bottom: 5px;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s;
}
.hakusin__text-link:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* Business (Horizontal) */
.hakusin__h-scroll-area { width: 100%; height: 100vh; position: relative; }
.hakusin__sticky-wrap { width: 100%; height: 100vh; overflow: hidden; background: #222; color: #fff; display: flex; align-items: center; }
.hakusin__h-track { display: flex; padding-left: 10vw; width: max-content; }
.hakusin__h-intro { width: 30vw; padding-right: 50px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.hakusin__h-item { width: 50vw; height: 60vh; margin-right: 5vw; position: relative; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.hakusin__h-item-img { height: 350px; opacity: 0.7; transition: opacity 0.3s; overflow: hidden; }
.hakusin__h-item:hover .hakusin__h-item-img { opacity: 1; }
.hakusin__h-item-ttl { font-size: 20px; margin-top: 20px; letter-spacing: 0.1em; }
.hakusin__h-item-desc { font-size: 13px; margin-top: 10px; opacity: 0.7; line-height: 1.8; }

/* News (Top) */
.hakusin__news-list { list-style: none; max-width: 800px; margin: 0 auto 40px; border-top: 1px solid #e0e0e0; }
.hakusin__news-item { border-bottom: 1px solid #e0e0e0; padding: 0; transition: background 0.3s; }
.hakusin__news-link { display: flex; align-items: center; gap: 30px; padding: 20px 0; width: 100%; transition: background 0.3s; }
.hakusin__news-link:hover { background: #fafafa; }
.hakusin__news-date { font-family: var(--font-num); font-size: 14px; color: var(--c-gray); white-space: nowrap; }
.hakusin__news-cat { font-size: 11px; border: 1px solid var(--c-text); padding: 2px 10px; white-space: nowrap; text-align: center; min-width: 80px;}
.hakusin__news-title { font-size: 16px; transition: 0.3s; flex-grow: 1; }
.hakusin__news-link:hover .hakusin__news-title { color: var(--c-accent); transform: translateX(10px); }
.hakusin__view-more { text-align: center; }

/* Recruit / Contact (Top) */
.hakusin__links { background: var(--c-bg); text-align: center; padding-top: 60px; }
.hakusin__btn-area { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.hakusin__btn, a.hakusin__entry-btn {
    display: block; width: 240px; padding: 20px 0; border: 1px solid var(--c-text);
    text-align: center; font-size: 14px; letter-spacing: 0.2em;
    position: relative; overflow: hidden; transition: color 0.4s; background: transparent; color: var(--c-text);
}
a.hakusin__entry-btn {
    width: 300px; background-color: var(--c-text); color: #fff !important; margin: 0 auto;
}
.hakusin__btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: var(--c-text); z-index: -1; transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.hakusin__btn:hover { color: #fff; }
.hakusin__btn:hover::before { width: 100%; }
a.hakusin__entry-btn:hover { background-color: #fff; color: var(--c-text) !important; }

/* =========================================
   Sub Page Contents
   ========================================= */
/* Company */
.hakusin__greeting-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 100px; }
.hakusin__greeting-img { width: 40%; height: 450px; overflow: hidden; }
.hakusin__greeting-text { width: 55%; }
.hakusin__greeting-lead { font-size: 20px; margin-bottom: 30px; line-height: 1.8; }
.hakusin__greeting-sign { margin-top: 40px; text-align: right; }
.hakusin__greeting-role { font-size: 12px; display: block; margin-bottom: 5px; }
.hakusin__greeting-name { font-size: 20px; font-weight: 500; }

.hakusin__profile-dl { border-top: 1px solid #e0e0e0; max-width: 900px; margin: 0 auto; }
.hakusin__profile-row { display: flex; border-bottom: 1px solid #e0e0e0; }
.hakusin__profile-dt { width: 30%; background: #f5f5f5; padding: 25px 20px; font-weight: 500; display: flex; align-items: center; }
.hakusin__profile-dd { width: 70%; padding: 25px 40px; }
.hakusin__map-wrap { width: 100%; height: 400px; background: #ddd; margin-top: 40px; display: flex; justify-content: center; align-items: center; color: #888; }
.hakusin__map-iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1); }

/* Business */
.hakusin__biz-item { display: flex; justify-content: space-between; align-items: center; gap: 60px; margin-bottom: 120px; }
.hakusin__biz-item:nth-child(even) { flex-direction: row-reverse; }
.hakusin__biz-item:last-child { margin-bottom: 0; }
.hakusin__biz-img { width: 45%; height: 400px; overflow: hidden; position: relative; }
.hakusin__biz-content { width: 50%; }
.hakusin__biz-num { font-family: var(--font-num); font-size: 60px; color: #eee; font-weight: 700; line-height: 1; margin-bottom: -20px; position: relative; z-index: 0; }
.hakusin__biz-title { font-size: 22px; font-weight: 700; margin-bottom: 30px; letter-spacing: 0.1em; position: relative; z-index: 1; }
.hakusin__biz-desc { margin-bottom: 30px; text-align: justify; }
.hakusin__biz-list { background: #fff; padding: 20px; border-left: 2px solid var(--c-accent); list-style: none; font-size: 14px; }
.hakusin__biz-list li { margin-bottom: 10px; padding-left: 1.5em; position: relative; }
.hakusin__biz-list li::before { content: '・'; position: absolute; left: 0; top: 0; color: var(--c-accent); }

.hakusin__policy-wrap { background-color: #fff; padding: 80px 40px; text-align: center; display: flex; justify-content: space-between; gap: 40px; }
.hakusin__policy-item { width: 30%; }
.hakusin__policy-icon { font-size: 40px; color: var(--c-accent); margin-bottom: 20px; font-family: var(--font-num); font-weight: bold; }
.hakusin__policy-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; }
.hakusin__policy-text { font-size: 14px; text-align: left; }

/* Recruit */
.hakusin__recruit-msg-wrap { display: flex; justify-content: center; gap: 60px; padding: 60px 0; }
.hakusin__recruit-catch { font-size: 28px; line-height: 2; letter-spacing: 0.2em; border-right: 1px solid var(--c-accent); padding-right: 40px; height: fit-content; }
.hakusin__recruit-body { max-width: 500px; }
.hakusin__recruit-body p { margin-bottom: 30px; text-align: justify; }

.hakusin__points-area { background-color: #f5f5f5; padding: 100px 0; }
.hakusin__points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hakusin__point-card { background: #fff; padding: 40px 30px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.4s; }
.hakusin__point-card:hover { transform: translateY(-10px); }
.hakusin__point-num { font-family: var(--font-num); font-size: 50px; color: #eee; font-weight: 700; position: absolute; top: 10px; right: 20px; line-height: 1; z-index: 0; }
.hakusin__point-ttl { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--c-accent); position: relative; z-index: 1; border-bottom: 2px solid var(--c-accent); display: inline-block; padding-bottom: 5px; }
.hakusin__point-desc { font-size: 14px; line-height: 2; position: relative; z-index: 1; }

.hakusin__voice-list { display: flex; flex-direction: column; gap: 60px; max-width: 800px; margin: 0 auto; }
.hakusin__voice-item { display: flex; align-items: flex-start; gap: 30px; }
.hakusin__voice-item:nth-child(even) { flex-direction: row-reverse; }
.hakusin__voice-img { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid #f5f5f5; }
.hakusin__voice-content { background: #fcfbf9; border: 1px solid #ddd; padding: 30px; border-radius: 10px; position: relative; width: 100%; }
.hakusin__voice-content::before { content: ''; position: absolute; top: 40px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.hakusin__voice-item:nth-child(odd) .hakusin__voice-content::before { left: -10px; border-right: 10px solid #ddd; }
.hakusin__voice-item:nth-child(even) .hakusin__voice-content::before { right: -10px; border-left: 10px solid #ddd; }
.hakusin__voice-role { font-size: 12px; color: var(--c-gray); margin-bottom: 5px; }
.hakusin__voice-ttl { font-weight: 700; margin-bottom: 15px; font-size: 16px; }
.hakusin__voice-txt { font-size: 14px; }

.hakusin__recruit-table { width: 100%; border-collapse: collapse; max-width: 800px; margin: 0 auto; }
.hakusin__recruit-table th, .hakusin__recruit-table td { padding: 20px; border-bottom: 1px solid #ddd; text-align: left; }
.hakusin__recruit-table th { width: 30%; background: #f9f9f9; font-weight: 500; }
.hakusin__entry-area { text-align: center; margin-top: 60px; background: #fcfbf9; padding: 60px 0; }

/* News List Page */
.hakusin__news-container { max-width: 900px; margin: 0 auto; }
.hakusin__news-cat[data-cat="news"] { color: var(--c-text); border-color: var(--c-text); }
.hakusin__news-cat[data-cat="works"] { color: var(--c-accent); border-color: var(--c-accent); }
.hakusin__news-cat[data-cat="recruit"] { background-color: #333; color: #fff; border-color: #333; }
.hakusin__news-ttl { font-size: 16px; transition: 0.3s; flex-grow: 1; padding-right: 40px; }
.hakusin__news-link:hover .hakusin__news-ttl { color: var(--c-accent); }
.hakusin__news-arrow { width: 40px; height: 1px; background: #ddd; position: relative; transition: 0.3s; }
.hakusin__news-arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 1px; background: #ddd; transform: rotate(45deg); transform-origin: right bottom; transition: 0.3s; }
.hakusin__news-link:hover .hakusin__news-arrow { background: var(--c-accent); width: 50px; }
.hakusin__news-link:hover .hakusin__news-arrow::after { background: var(--c-accent); }
.hakusin__pagination { margin-top: 80px; display: flex; justify-content: center; gap: 15px; }
.hakusin__page-num { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border: 1px solid #ddd; font-family: var(--font-num); font-size: 14px; transition: 0.3s; }
.hakusin__page-num.is-current,
span.hakusin__page-num.is-current { background-color: var(--c-text); color: #fff; border-color: var(--c-text); pointer-events: none; }
.hakusin__page-num:hover:not(.is-current) { background-color: var(--c-accent); color: #fff; border-color: var(--c-accent); opacity: 1; }

/* News Detail */
.hakusin__article-wrap { max-width: 800px; margin: 0 auto; background: #fff; padding: 60px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); }
.hakusin__article-header { border-bottom: 1px solid #e0e0e0; padding-bottom: 30px; margin-bottom: 40px; }
.hakusin__article-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.hakusin__article-date { font-family: var(--font-num); font-size: 14px; color: var(--c-gray); }
.hakusin__article-cat { font-size: 11px; padding: 3px 12px; border: 1px solid var(--c-text); color: var(--c-text); }
.hakusin__article-title { font-size: 28px; font-weight: 500; line-height: 1.6; }
.hakusin__article-body { font-size: 16px; line-height: 2; }
.hakusin__article-body p { margin-bottom: 30px; text-align: justify; }
.hakusin__article-body img { width: 100%; height: auto; margin-bottom: 40px; }
.hakusin__article-body h2 { font-size: 22px; margin: 60px 0 30px; padding-left: 15px; border-left: 4px solid var(--c-accent); font-weight: 500; }
.hakusin__article-body h3 { font-size: 18px; margin: 40px 0 20px; font-weight: 700; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.hakusin__article-nav { margin-top: 80px; text-align: center; }
.hakusin__back-btn { display: inline-block; border: 1px solid var(--c-text); padding: 15px 60px; font-size: 14px; letter-spacing: 0.1em; transition: 0.3s; }
.hakusin__back-btn:hover { background: var(--c-text); color: #fff; }

/* Contact Form */
.hakusin__form-intro { text-align: center; margin-bottom: 80px; }
.hakusin__form-dl { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.hakusin__form-row { display: flex; align-items: flex-start; }
.hakusin__form-dt { width: 30%; padding-top: 10px; font-weight: 500; }
.hakusin__form-dd { width: 70%; position: relative; }
.hakusin__req { font-size: 10px; color: #fff; background: var(--c-accent); padding: 2px 6px; margin-left: 10px; vertical-align: middle; }
.hakusin__any { font-size: 10px; color: var(--c-gray); background: #eee; padding: 2px 6px; margin-left: 10px; vertical-align: middle; }
.hakusin__input, .hakusin__textarea, .hakusin__select { width: 100%; background: transparent; border: none; border-bottom: 1px solid #ccc; padding: 15px 0; font-size: 16px; color: var(--c-text); font-family: inherit; outline: none; border-radius: 0; transition: border-color 0.3s; appearance: none; }
.hakusin__textarea { min-height: 150px; resize: vertical; }
.hakusin__focus-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--c-accent); transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.hakusin__input:focus ~ .hakusin__focus-line, .hakusin__textarea:focus ~ .hakusin__focus-line, .hakusin__select:focus ~ .hakusin__focus-line { width: 100%; }
.hakusin__radio-group { padding: 15px 0; display: flex; gap: 30px; flex-wrap: wrap; }
.hakusin__radio-label { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.hakusin__radio-input { appearance: none; width: 18px; height: 18px; border-radius: 50%; position: relative; transition: 0.3s; cursor: pointer; }
.hakusin__radio-input:checked { border-color: var(--c-accent); }
.hakusin__radio-input:checked::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: var(--c-accent); border-radius: 50%; }
.hakusin__submit-area { margin-top: 80px; text-align: center; }
.hakusin__privacy-check { margin-bottom: 40px; font-size: 14px; }
.hakusin__checkbox { appearance: none; width: 18px; height: 18px; border: 1px solid #ccc; vertical-align: middle; margin-right: 10px; cursor: pointer; position: relative; }
.hakusin__checkbox:checked { background: var(--c-accent); border-color: var(--c-accent); }
.hakusin__checkbox:checked::after { content: '✓'; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; }
.hakusin__submit-btn { display: inline-block; width: 300px; padding: 25px 0; background-color: var(--c-text); color: #fff; border: 1px solid var(--c-text); text-align: center; font-size: 16px; letter-spacing: 0.2em; cursor: pointer; transition: 0.4s; font-family: inherit; }
.hakusin__submit-btn:hover { background-color: #fff; color: var(--c-text); }

/* =========================================
   Footer
   ========================================= */
.hakusin__footer { background-color: #2b2b2b; color: #fff; padding: 80px 0 20px; margin-top: 0; font-size: 14px; }
.hakusin__footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.hakusin__footer-info { width: 45%; }
.hakusin__footer-logo { font-size: 24px; margin-bottom: 20px; letter-spacing: 0.1em; }
.hakusin__footer-address { line-height: 2; opacity: 0.8; }
.hakusin__footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 5px; }
.hakusin__footer-contact a { display: inline-block; width: fit-content; transition: 0.3s; }
.hakusin__footer-contact a:hover { color: var(--c-accent); opacity: 1; }
.hakusin__footer-nav { width: 45%; }
.hakusin__footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.hakusin__footer-nav li { width: 40%; }
.hakusin__footer-nav a { display: block; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.2); transition: 0.3s; position: relative; }
.hakusin__footer-nav a:hover { border-color: #fff; padding-left: 10px; }
.hakusin__copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 11px; opacity: 0.5; }

/* =========================================
   Responsive (SP)
   ========================================= */
@media (max-width: 768px) {
    .hakusin__header { padding: 0 20px; height: 60px; }
    .hakusin__logo { font-size: 18px; }
    .hakusin__container { padding: 50px 20px; }
    .hakusin__sub-hero { height: 40vh; }
    .hakusin__page-title { font-size: 24px; }
    
    .hakusin__company-inner { flex-direction: column-reverse; gap: 30px; }
    .hakusin__company-text, .hakusin__company-img { width: 100%; }
    .hakusin__company-img { height: 250px; }
    .hakusin__company-btns { flex-direction: column; gap: 20px; align-items: flex-start; }
    
    .hakusin__h-track { padding-left: 20px; }
    .hakusin__h-intro { width: 80vw; margin-right: 10vw; }
    .hakusin__h-item { width: 70vw; height: 50vh; }
    
    .hakusin__greeting-wrap { flex-direction: column-reverse; gap: 30px; }
    .hakusin__greeting-img, .hakusin__greeting-text { width: 100%; }
    .hakusin__greeting-img { height: 300px; }
    
    .hakusin__profile-row { flex-direction: column; }
    .hakusin__profile-dt, .hakusin__profile-dd { width: 100%; padding: 15px 20px; }
    .hakusin__profile-dt { background: #f0f0f0; border-bottom: 1px solid #e0e0e0; }
    
    .hakusin__biz-item { flex-direction: column !important; gap: 30px; margin-bottom: 80px; }
    .hakusin__biz-img, .hakusin__biz-content { width: 100%; }
    .hakusin__biz-img { height: 250px; }
    .hakusin__policy-wrap { flex-direction: column; gap: 40px; }
    .hakusin__policy-item { width: 100%; }
    
    .hakusin__recruit-msg-wrap { flex-direction: column; gap: 40px; }
    .hakusin__recruit-catch { writing-mode: horizontal-tb; border-right: none; border-bottom: 1px solid var(--c-accent); padding-right: 0; padding-bottom: 20px; width: 100%; }
    .hakusin__points-grid { grid-template-columns: 1fr; }
    .hakusin__voice-item { flex-direction: column; align-items: center; gap: 20px; }
    .hakusin__voice-item:nth-child(even) { flex-direction: column; }
    .hakusin__voice-content::before { top: -20px; left: 50% !important; transform: translateX(-50%); border-left: 10px solid transparent !important; border-right: 10px solid transparent !important; border-bottom: 10px solid #ddd !important; border-top: none !important; }
    .hakusin__recruit-table th, .hakusin__recruit-table td { display: block; width: 100%; }
    .hakusin__recruit-table th { border-bottom: none; background: #eee; padding: 10px 20px; }
    
    .hakusin__form-row { flex-direction: column; }
    .hakusin__form-dt { width: 100%; padding-bottom: 10px; }
    .hakusin__form-dd { width: 100%; }
    
    .hakusin__news-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
    .hakusin__news-meta { width: 100%; justify-content: flex-start; }
    .hakusin__news-arrow { display: none; }
    .hakusin__article-wrap { padding: 30px 20px; }
    .hakusin__article-title { font-size: 20px; }
    .hakusin__article-body h2 { font-size: 18px; }
    
    .hakusin__footer-content { flex-direction: column; gap: 40px; }
    .hakusin__footer-info, .hakusin__footer-nav { width: 100%; }
    .hakusin__footer-nav li { width: 100%; }
    .hakusin__btn-area { flex-direction: column; align-items: center; gap: 20px; }
}






/* =========================================
   Contact Form 7 Design Fix (修正版)
   ========================================= */

/* --- ラジオボタンの配置 --- */
.hakusin__radio-group .wpcf7-list-item {
    display: inline-block;
    margin: 0 20px 10px 0;
}
.hakusin__radio-group .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: auto;
}

/* --- ラジオボタン本体のデザイン --- */
.hakusin__radio-group input[type="radio"] {
    /* ブラウザ標準の見た目を消す */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* サイズと形を固定（ここが重要！） */
    width: 18px !important;
    height: 18px !important;
    border: 1px solid #ccc !important; /* 枠線は残して正円にする */
    border-radius: 50% !important;
    background-color: #fff;
    
    /* 余計な余白や崩れを防ぐ */
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
    outline: none;
    flex-shrink: 0; /* 潰れ防止 */
}

/* 選択時の枠線色（茶色） */
.hakusin__radio-group input[type="radio"]:checked {
    border-color: var(--c-accent) !important;
}

/* 選択時の真ん中の点（茶色） */
.hakusin__radio-group input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--c-accent);
    border-radius: 50%;
    /* 中央寄せ */
    margin: 3px auto 0; 
}

/* ラベル文字の調整 */
.hakusin__radio-group .wpcf7-list-item-label {
    font-weight: normal;
    font-size: 15px;
    color: var(--c-text);
    cursor: pointer;
}

/* --- 以下、変更なし --- */
/* チェックボックス（プライバシー） */
.hakusin__privacy-check .wpcf7-list-item { display: inline-block; margin: 0; }
.hakusin__privacy-check label { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.hakusin__privacy-check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; border: 1px solid #ccc;
    vertical-align: middle; cursor: pointer; position: relative;
    margin: 0 !important; background: #fff;
}
.hakusin__privacy-check input[type="checkbox"]:checked { background: var(--c-accent); border-color: var(--c-accent); }
.hakusin__privacy-check input[type="checkbox"]:checked::after {
    content: '✓'; color: #fff; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 12px; font-weight: bold;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    font-size: 12px; color: #d00; position: absolute; bottom: -20px; left: 0;
}
.hakusin__form-dd { margin-bottom: 15px; }
.wpcf7-response-output {
    margin: 2em 0.5em 1em !important; padding: 1.5em !important;
    border: 1px solid var(--c-accent) !important; font-size: 14px; text-align: center;
}