/* ========================================
   @font-face定義
======================================== */

@font-face {
    font-family: 'Wask New';
    src: url('../fonts/wask_new-webfont.eot');
    src: url('../fonts/wask_new-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/wask_new-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Wask New';
    src: url('../fonts/wask_new_bold-webfont.eot');
    src: url('../fonts/wask_new_bold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/wask_new_bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Wask New';
    src: url('../fonts/wask_new_italic-webfont.eot');
    src: url('../fonts/wask_new_italic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/wask_new_italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}


/* ========================================
   リセットCSS
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 10px = 1rem */
}

body {
    font-family: 'Wask New', 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}


/* ローディング */

.page-loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* 画面全体でスクロール（背景は固定表示） */

html,
body {
    height: 100%;
}


/* ========================================
   ヘッダー
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
}

.global-nav ul {
    display: flex;
    gap: 2.4rem;
}

.global-nav a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: opacity .2s ease;
    font-weight: 700;
    font-size: 1.8rem;
}

.global-nav a:hover {
    opacity: .7;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.hamburger-line {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(1) {
    transform: translate(-50%, calc(-50% - 6px));
}

.hamburger-line:nth-child(2) {
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
    transform: translate(-50%, calc(-50% + 6px));
}

.nav-close {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity .2s ease;
}

a:hover {
    opacity: .7;
}


/* すべての段落に文字詰め（トラッキング）と和文用プロポーショナル代替を適用 */

p {
    letter-spacing: 0.02em;
    font-feature-settings: "palt" 1;
}

ul,
ol {
    list-style: none;
}


/* ========================================
   リセット設定（動画背景用）
======================================== */

body {
    position: relative;
}


/* ========================================
   メインビジュアル（動画背景）
======================================== */

.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

.main-message {
    position: relative;
    /* モバイルのアドレスバーの影響を避けるため --vh を採用（JSで設定） */
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 3;
}


/* オーバーレイのみスクロールさせるラッパー */

.overlay-scroll {
    position: relative;
    z-index: 5;
    min-height: 100vh;
}

.hero-logo {
    width: min(18vw, 230px);
    height: auto;
    display: block;
    margin: 0 auto 5rem;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    animation: hero-logo-fade 1.2s ease-out 0.2s forwards;
}

@keyframes hero-logo-fade {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.main-title {
    font-family: 'Wask New', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.sub-title {
    font-family: 'Wask New', 'Noto Sans JP', sans-serif;
    font-style: italic;
    font-size: 1.6rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.5;
}

section h2 {
    font-size: 2.2rem;
}


/* ニュース */

.news {
    color: #fff;
    background: rgba(0, 0, 0, .6);
}

.news-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15rem 2rem;
}

.news h2 {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.news-list {
    margin-top: 1.2rem;
    margin-left: 0px;
}

.news-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

.news-list time {
    font-weight: 700;
    opacity: .9;
    font-size: 1.8rem;
}

.news-list span {
    line-height: 1.9;
}


/* タイプライター用カーソル */

.type-caret {
    display: inline-block;
    width: 1ch;
    margin-left: 2px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}


/* ========================================
   メインコンテンツ
======================================== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-family: 'Wask New', 'Noto Sans JP', sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 1rem;
}

section p {
    line-height: 1.8;
}


/* About */

.about {
    background: transparent;
    color: #fff;
    position: relative;
    z-index: 5;
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
}

.about h2 {
    font-size: 2.6rem;
    letter-spacing: .08em;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.about p {
    max-width: 820px;
    margin: 0 auto 2.4rem;
    line-height: 2;
    text-align: left;
}


/* Button */

.btn {
    display: inline-block;
    padding: .9rem 2.2rem;
    border-radius: 999px;
    font-weight: 700;
}

.btn-outline {
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
}


/* Contact (CF7想定) */

.contact {
    background: rgba(0, 0, 0, .5);
    color: #fff;
    position: relative;
    z-index: 5;
    margin-bottom: 0px;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.contact h2 {
    font-size: 2.6rem;
    letter-spacing: .08em;
    margin-bottom: 1.2rem;
    text-align: center;
}

.wpcf7 .wpcf7-form p {
    margin-bottom: 1.4rem;
}

.wpcf7-form-control {
    width: 100%;
    background: transparent;
    border: 1.6px solid rgba(255, 255, 255, .9);
    color: #fff;
    padding: .9rem 1rem;
    border-radius: 6px;
}

.wpcf7-textarea {
    resize: vertical;
}

.wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, .7);
}

.wpcf7-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
    border-color: #fff;
    color: #fff;
}


/* CF7 入力フィールドの文字色を常に白に（入力中/入力後/オートフィル含む） */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="search"],
.wpcf7 input[type="password"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
    color: #fff !important;
    caret-color: #fff;
}


/* プレースホルダーも白系に統一 */

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, .7);
}


/* オートフィル時（Chrome/Safari）も白文字を維持 */

.wpcf7 input:-webkit-autofill,
.wpcf7 textarea:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: inset 0 0 0 1000px transparent !important;
}

.contact-actions {
    text-align: center;
    margin-top: 2rem;
}

.wpcf7-response-output {
    margin-top: 1rem;
    font-size: 1.4rem;
    opacity: .8;
}


/* label */

.wpcf7 .wpcf7-form label {
    font-weight: 700;
    font-size: 1.8rem;
}


/* submit button font */

.wpcf7-submit {
    font-family: 'Wask New', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}


/* PCでフォーム幅を少し狭く */

@media screen and (min-width: 769px) {
    .contact-inner {
        max-width: 680px;
    }
}


/* ========================================
    त्यッター
======================================== */

footer {
    position: relative;
    z-index: 6;
    width: 100%;
    background: transparent;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}


/* ========================================
   サブページ用メインコンテンツ
======================================== */

.subpage-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
    color: #fff;
}

.subpage-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.subpage-content {
    line-height: 1.9;
    background: rgba(0, 0, 0, 0.5);
    padding: 100px;
    margin-bottom: 50px;
}


/* サブページ本文内の見出しに白の下線 */

.subpage-content h2 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: .6rem;
}

.subpage-content h3 {
    padding: 15px 0px;
}

.subpage-content p {
    padding: 15px 0px;
}


/* 事業内容ブロックの上下スペース */

.subpage-content .business-brief {
    margin: 24px 0;
}


/* サブページ本文内のリスト */

.subpage-content ul {
    list-style: none;
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1.6rem;
}

.subpage-content li {
    position: relative;
    padding-left: .8rem;
    margin: .4rem 0;
    line-height: 1.8;
}

.subpage-content li::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.95em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.subpage-content ul ul {
    margin-top: .4rem;
    margin-bottom: .4rem;
    padding-left: 1.6rem;
}


/* サブページ本文内のテーブル（Mission/Vision/Values） */

.subpage-content .kv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}

.subpage-content .kv-table th,
.subpage-content .kv-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2rem 1rem;
    vertical-align: top;
}

.subpage-content .kv-table th {
    width: 160px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}


/* サブページ見出しブロック（高さ200px・中央揃え） */

.subpage-hero {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ヒーロー内の見出しを少し下げる（高さはそのまま）*/

.subpage-hero .subpage-title {
    transform: translateY(20px);
}


/* ========================================
   レスポンシブ対応
======================================== */

@media screen and (max-width: 768px) {
    .hero-logo {
        width: min(60vw, 100px);
        height: auto;
    }
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    .logo img {
        height: 20px;
    }
    .hamburger-line {
        width: 22px;
        height: 2px;
    }
    .hamburger-line+.hamburger-line {
        margin-top: 0;
    }
    .hamburger-line:nth-child(1) {
        transform: translate(-50%, calc(-50% - 5px));
    }
    .hamburger-line:nth-child(2) {
        transform: translate(-50%, -50%);
    }
    .hamburger-line:nth-child(3) {
        transform: translate(-50%, calc(-50% + 5px));
    }
    /* メッセージを約70%に縮小（行間も安定化） */
    .main-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    .sub-title {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    /* News 本文（span）をやや小さく */
    .news-list span {
        font-size: 1.4rem;
    }
    /* 段落も同サイズに */
    p {
        font-size: 1.4rem;
    }
    /* News 内側余白を縮小 */
    .news-inner {
        padding: 6rem 1.5rem;
    }
    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80%, 320px);
        background: rgba(0, 0, 0, 0.85);
        transform: translateX(100%);
        transition: transform .25s ease;
        padding: 7rem 2rem 2rem;
    }
    .nav-close {
        display: inline-block;
        /* SPで表示 */
        position: absolute;
        top: 1.4rem;
        right: 1.4rem;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .nav-close-line {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }
    .nav-close-line:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .nav-close-line:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .global-nav ul {
        flex-direction: column;
        gap: 1.6rem;
    }
    .global-nav a {
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
    }
    .global-nav.is-open {
        transform: translateX(0);
    }
    /* サブページ本文の横パディングを縮小 */
    .subpage-content {
        padding: 20px 16px;
        margin-bottom: 15px;
    }
    /* 会社概要テーブルを縦積み表示 */
    .subpage-content .kv-table,
    .subpage-content .kv-table tbody,
    .subpage-content .kv-table tr,
    .subpage-content .kv-table th,
    .subpage-content .kv-table td {
        display: block;
        width: 100%;
    }
    .subpage-content .kv-table tr {
        margin-bottom: 1rem;
    }
    .subpage-content .kv-table th {
        width: auto;
        border-bottom: none;
        padding: .4rem 0 .2rem;
        font-size: 1.6rem;
        opacity: .9;
    }
    .subpage-content .kv-table td {
        padding: 0 0 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }
}