/*
Theme Name: Long Run Child Theme
Theme URI: http://long-lan.com
Description: 株式会社ロングラン 新デザイン子テーマ
Author: Long Run
Template: kyouiku_a2_tw
Version: 1.0.0
*/

/* ==========================================================================
   基本設定
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Meiryo", "メイリオ", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.clear {
    clear: both;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-image: url('images/header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* トップページのヘッダーを透明に */
.home .site-header,
.page-template-template-main .site-header {
    background-image: none;
    background-color: transparent;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* スクロール後にヘッダーに背景を表示 */
.home .site-header.scrolled,
.page-template-template-main .site-header.scrolled {
    background-image: url('images/header-bg.png');
    background-color: initial;
}

.header-container {
    width: 100%;
    margin: 0;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    text-align: left;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.header-nav {
    margin-left: auto;
}

.header-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-nav .nav-menu li {
    margin: 0;
}

.header-nav .nav-menu a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    text-decoration: none;
}

.header-nav .nav-menu a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================================================
   Main Visual
   ========================================================================== */

.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}


.content-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    display: block;
    width: fit-content;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20vw;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32 0%, #5e35b1 100%);
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
    letter-spacing: 0.1em;
}

/* Vertical Labels */
.section-vertical-label {
    position: absolute;
    transform: rotate(90deg);
    font-size: 120px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: rgba(94, 53, 177, 0.15);
    letter-spacing: -0.02em;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

/* MESSAGE - 左端 */
.label-message {
    left: 55px;
    top: 80px;
    transform-origin: left center;
}

/* ABOUT - 右端 */
.label-about {
    right: 40px;
    top: 1200px;
    transform-origin: right center;
}

/* ACCESS - 左端 */
.label-access {
    left: 55px;
    top: 1720px;
    transform-origin: left center;
}

/* RECRUIT - 左端 */
.label-recruit {
    left: 55px;
    top: 180px;
    transform-origin: left center;
}

/* PRIVACY POLICY - 左端 */
.label-privacy {
    left: 55px;
    top: 180px;
    transform-origin: left center;
}

.message-section {
    background: transparent;
    padding: 60px 40px;
    position: relative;
}

.message-section-content {
    position: relative;
    z-index: 1;
}

.message-section-content .section-title {
    margin-left: 0;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.message-content {
    text-align: left;
    line-height: 2;
    font-size: 16px;
    color: #333;
    width: 60%;
    max-width: 800px;
}

.message-quote {
    font-size: 150% !important;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #196E41 0%, #503286 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 700;
    width: 60%;
    max-width: 800px;
}

.signature {
    text-align: right;
    margin-top: 40px;
    font-size: 18px;
}

/* ABOUT Section */
.about-section {
    background: transparent;
    padding: 60px 40px;
    position: relative;
}

.about-table {
    width: 70%;
    border-collapse: collapse;
    margin: 0 auto;
}

.about-table th,
.about-table td {
    padding: 25px 0 25px 60px;
    border: none;
    text-align: left;
    background: transparent;
}

.about-table th {
    font-weight: 700;
    width: 200px;
    padding-right: 40px;
    vertical-align: middle;
    border-bottom: 1px solid #503286;
}

.about-table td {
    border-bottom: 1px solid rgba(80, 50, 134, 0.3);
}

.about-table td ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.about-table td ul li {
    padding: 3px 0;
}

/* ACCESS Section */
.access-section {
    background: transparent;
    padding: 60px 40px;
}

/* RECRUIT Section */
.recruit-section {
    background: transparent;
    padding: 60px 40px;
    position: relative;
}

.recruit-section .about-table {
    border: 1px solid #333;
}

.recruit-section .about-table th,
.recruit-section .about-table td {
    border-bottom: 1px solid #333;
}

.recruit-section .about-table tr:last-child th,
.recruit-section .about-table tr:last-child td {
    border-bottom: none;
}

.recruit-section .about-table th {
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    background-color: #EFF8F2;
}

.recruit-section .about-table td {
    background: transparent;
}

/* PRIVACY POLICY Section */
.privacy-section {
    background: transparent;
    padding: 60px 40px;
    position: relative;
}

.privacy-content {
    width: 70%;
    margin: 0 auto;
    line-height: 2;
}

.privacy-intro {
    margin-bottom: 40px;
    font-size: 16px;
    text-align: left;
}

.privacy-list {
    margin-bottom: 60px;
    padding-left: 0;
    list-style: none;
    counter-reset: privacy-counter;
}

.privacy-list li {
    margin-bottom: 30px;
    font-size: 16px;
    text-align: left;
    position: relative;
    padding-left: 2em;
    counter-increment: privacy-counter;
}

.privacy-list li::before {
    content: counter(privacy-counter) ". ";
    position: absolute;
    left: 0;
}

.privacy-footer {
    text-align: right;
    margin-bottom: 60px;
    font-size: 16px;
}

.privacy-footer p {
    margin: 5px 0;
}

.privacy-contact {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(51, 51, 51, 0.2);
}

.privacy-contact h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.privacy-contact p {
    margin: 5px 0;
    font-size: 16px;
}

.access-content {
    width: 70%;
    margin: 0 auto;
}

.access-info {
    margin-bottom: 30px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #F5F5F7;
    color: #333;
}

.footer-top {
    padding: 40px 0;
    background: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    margin-bottom: 20px;
    text-align: left;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-company-info {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.footer-right {
    flex: 0 0 auto;
    margin-left: 60px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-nav ul li:last-child {
    margin-bottom: 0;
}

.footer-nav ul li a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 10px 0px 0px 0px;
}

.footer-nav ul li a .arrow {
    color: #5e35b1;
    margin-right: 10px;
    font-size: 12px;
}

.footer-nav ul li a:hover {
    color: #5e35b1;
    opacity: 1;
    text-decoration: none;
}

.footer-bottom {
    background: #3a3a3a;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.footer-bottom-left a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-bottom-right {
    color: #fff;
    font-size: 12px;
}

.footer-bottom-right p {
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */


/* タブレット（992px以下） */
@media (max-width: 992px) {
    /* ヘッダー */
    .header-container {
        padding: 0 30px;
    }

    .header-nav .nav-menu {
        gap: 30px;
    }

    .header-nav .nav-menu a {
        font-size: 15px;
    }

    /* セクション共通 */
    .content-inner {
        padding: 60px 30px;
    }

    .section {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .section-vertical-label {
        font-size: 100px;
    }

    /* MESSAGE セクション */
    .message-section {
        padding: 40px 30px;
    }

    .message-content,
    .message-quote {
        width: 80%;
    }

    /* ABOUT セクション */
    .about-section {
        padding: 40px 30px;
    }

    .about-table {
        width: 85%;
    }

    .about-table th,
    .about-table td {
        padding: 20px 0 20px 40px;
    }

    .about-table th {
        width: 180px;
        padding-right: 30px;
    }

    /* ACCESS セクション */
    .access-section {
        padding: 40px 30px;
    }

    .access-content {
        width: 85%;
    }

    /* RECRUIT セクション */
    .recruit-section {
        padding: 40px 30px;
    }

    /* PRIVACY セクション */
    .privacy-section {
        padding: 40px 30px;
    }

    .privacy-content {
        width: 85%;
    }
}

/* スマートフォン（768px以下） */
@media (max-width: 768px) {
    /* 縦書きラベルを非表示 */
    .section-vertical-label {
        display: none;
    }

    /* ヘッダー */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        gap: 0;
    }

    .site-logo img {
        height: 40px;
    }

    /* ハンバーガーメニューボタンを表示 */
    .hamburger-menu {
        display: flex;
    }

    /* ナビゲーションメニュー */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(46, 125, 50, 0.98);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav .nav-menu {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
    }

    .header-nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav .nav-menu a {
        font-size: 16px;
        padding: 20px 30px;
        display: block;
        width: 100%;
    }

    /* メインビジュアル */
    .main-visual {
        height: 60vh;
        min-height: 400px;
    }

    .main-visual h1 {
        font-size: 36px;
    }

    /* 固定背景をスクロールに変更（モバイル対応） */
    .page-content {
        background-attachment: scroll;
        padding-top: 65px; /* スマホでのヘッダー分のスペース確保 */
    }

    /* トップページのみパディングを削除 */
    .home .page-content,
    .page-template-template-main .page-content {
        padding-top: 0;
    }

    html {
        scroll-padding-top: 65px; /* スマホでのスクロール位置調整 */
    }

    /* セクション共通 */
    .content-inner {
        padding: 40px 20px;
    }

    .section {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }

    .section-title::after {
        width: 60px;
        height: 2px;
    }

    /* MESSAGE セクション */
    .message-section {
        padding: 30px 20px;
    }

    .message-content,
    .message-quote {
        width: 100%;
    }

    .message-quote {
        font-size: 120% !important;
        margin-bottom: 30px;
    }

    .message-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .signature {
        font-size: 16px;
        margin-top: 30px;
    }

    /* ABOUT セクション */
    .about-section {
        padding: 30px 20px;
    }

    .about-table {
        width: 100%;
    }

    .about-table th,
    .about-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .about-table th {
        border-bottom: none;
        padding-bottom: 8px;
        font-size: 15px;
        width: 100%;
    }

    .about-table td {
        padding-top: 0;
        padding-bottom: 20px;
        font-size: 14px;
    }

    .about-table tr:last-child td {
        border-bottom: 1px solid rgba(80, 50, 134, 0.3);
    }

    /* ACCESS セクション */
    .access-section {
        padding: 30px 20px;
    }

    .access-content {
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    /* RECRUIT セクション */
    .recruit-section {
        padding: 30px 20px;
    }

    .recruit-section .about-table th,
    .recruit-section .about-table td {
        padding: 15px 20px;
    }

    /* PRIVACY セクション */
    .privacy-section {
        padding: 30px 20px;
    }

    .privacy-content {
        width: 100%;
    }

    .privacy-intro,
    .privacy-list li,
    .privacy-footer,
    .privacy-contact p {
        font-size: 14px;
    }

    .privacy-list li {
        padding-left: 1.5em;
    }

    .privacy-contact h3 {
        font-size: 16px;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-right {
        margin-left: 0;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-company-info {
        font-size: 13px;
    }

    .footer-nav ul li a {
        font-size: 14px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-left a {
        font-size: 12px;
    }

    .footer-bottom-right {
        font-size: 11px;
    }
}

/* 小型スマートフォン（480px以下） */
@media (max-width: 480px) {
    /* ヘッダー */
    .header-container {
        padding: 0 15px;
    }

    .site-logo img {
        height: 35px;
    }

    .header-nav .nav-menu {
        gap: 10px;
        font-size: 13px;
    }

    /* メインビジュアル */
    .main-visual {
        height: 50vh;
        min-height: 300px;
    }

    .main-visual h1 {
        font-size: 28px;
    }

    /* セクション共通 */
    .content-inner {
        padding: 30px 15px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* MESSAGE セクション */
    .message-section {
        padding: 20px 15px;
    }

    .message-quote {
        font-size: 110% !important;
        margin-bottom: 25px;
    }

    .message-content {
        font-size: 14px;
    }

    .signature {
        font-size: 15px;
    }

    /* ABOUT セクション */
    .about-section {
        padding: 20px 15px;
    }

    .about-table th,
    .about-table td {
        padding: 12px 15px;
    }

    .about-table th {
        font-size: 14px;
    }

    .about-table td {
        font-size: 13px;
    }

    /* ACCESS セクション */
    .access-section {
        padding: 20px 15px;
    }

    .map-container {
        height: 250px;
    }

    /* RECRUIT セクション */
    .recruit-section {
        padding: 20px 15px;
    }

    .recruit-section .about-table th,
    .recruit-section .about-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* PRIVACY セクション */
    .privacy-section {
        padding: 20px 15px;
    }

    .privacy-intro,
    .privacy-list li,
    .privacy-footer,
    .privacy-contact p {
        font-size: 13px;
    }

    .privacy-contact h3 {
        font-size: 15px;
    }

    /* フッター */
    .footer-top {
        padding: 30px 0;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-company-info {
        font-size: 12px;
    }

    .footer-nav ul li a {
        font-size: 13px;
    }
}
