/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游ゴシック", "Yu Gothic", YuGothic, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
    font-weight: bold;
}

/* デスクトップ表示でのテキストスタイル統一 */
.about-text p,
.business-description {
    font-size: 1rem;
    line-height: 2.4;
    letter-spacing: 0.03em;
    padding: 0 5px;
    font-weight: bold; /* 両方とも太字にする */
}

.business-description br {
    margin-bottom: 0.5em; /* Businessセクションの改行に余白を追加 */
}

.company-table th,
.company-table td {
    font-weight: normal;
}

::selection {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

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

a:hover {
    opacity: 0.7;
}

/* PC/モバイル切り替え */
.pc-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* AboutセクションのPC表示用スタイル */
.about-pc {
    width: 100%;
}

.about-set,
.business-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}

.about-set:last-child,
.business-item:last-child {
    margin-bottom: 0;
}

.about-image,
.business-image {
    width: 48%;
    border-radius: 10px;
    overflow: hidden;
}

.about-set .about-text,
.business-text {
    width: 48%;
    padding: 25px;
    box-sizing: border-box;
}

/* 交互配置にするためのリバースクラス */
.about-set.reverse {
    flex-direction: row-reverse;
}

/* Common styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #000;
    margin: 20px auto 0;
    transition: width 0.5s ease;
}

.section:hover .section-title::after {
    width: 100px;
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
    font-weight: 400;
    color: #555;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

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

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-company {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 1px;
    line-height: 40px; /* ロゴの高さに合わせる */
    display: inline-block;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 50px;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero::before {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* デスクトップ用とモバイル用の切り替え */
.desktop-hero {
    display: block;
}

.mobile-hero {
    display: none;
}

.hero-text {
    text-align: right;
    width: 55%;
    padding-right: 20px;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.hero-company {
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-catchphrase {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-weight: normal;
    animation: slideInRight 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-catchphrase-sub {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: bold;
    animation: slideInRight 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #555;
    animation: slideInRight 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.scroll-down {
    position: fixed;
    bottom: 30px;
    right: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding-bottom: 30px;
    animation: float 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 20px;
    background-color: #000;
    animation: scrollDown 2s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scrollDown {
    0% { height: 0; opacity: 0; }
    50% { height: 20px; opacity: 1; }
    100% { height: 0; opacity: 0; transform: translateY(20px); }
}

/* About Section */
.about {
    background-color: #fff;
}

.about-content {
    margin-top: 50px;
}

.about-image img,
.business-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Business Section */
.business {
    background-color: #f9f9f9;
}

.business-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}

.business-item-mobile {
    display: none;
    flex-direction: column;
    margin-bottom: 50px;
}

.business-item-mobile .business-title {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.business-item-mobile .business-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.business-item-mobile .business-description {
    width: 100%;
}

.business-item:nth-child(even) {
    flex-direction: row-reverse;
}

.business-text {
    line-height: 2.4;
    width: 48%;
    padding: 25px;
    box-sizing: border-box;
}

.business-image {
    width: 48%;
    border-radius: 10px;
    overflow: hidden;
}

.business-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-right: 30px;
}

.business-title::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.business-title::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.business-title:hover::before {
    width: 100%;
}

.business-title:hover::after {
    transform: translate(5px, -50%);
    opacity: 1;
}

.business-title:hover {
    transform: translateX(5px);
}

.business-description {
    font-size: 1rem;
    line-height: 2.4;
}

.coming-soon {
    text-align: right;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.7;
    position: relative;
    display: inline-block;
    margin-left: auto;
}

/* Company Section */
.company {
    background-color: #fff;
}

.company-info {
    width: 80%;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-info:hover {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.company-table {
    width: 100%;
    margin-bottom: 50px;
}

.company-table tr {
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.company-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.company-table th {
    width: 30%;
    padding: 20px 0;
    text-align: left;
    font-weight: normal;
}

.company-table td {
    width: 70%;
    padding: 20px 0;
}

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 50px;
}

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

/* Footer */
.footer {
    background-color: #f9f9f9;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* カーソル追従アニメーション */
.cursor-follower {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    transition: transform 0.15s ease-out;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.active {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    /* PC/モバイル切り替え */
    .pc-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    /* Aboutモバイル表示 */
    .about-mobile {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* モバイルでヘッダーを非表示 */
    .header {
        display: none;
    }
    
    /* ヒーローセクションのベース調整 */
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero .container {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .hero-content {
        justify-content: center;
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    /* ヒーローセクションのモバイルレイアウト */
    .desktop-hero {
        display: none;
    }
    
    .mobile-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        position: relative;
    }
    
    .mobile-hero-center {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .mobile-hero-bottom {
        position: absolute;
        bottom: 120px; /* 80pxから120pxに上にずらす */
        right: 20px;
        text-align: right;
    }
    
    .mobile-hero .hero-brand {
    justify-content: center;
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    margin-top: -40px;
    max-width: 90vw;
}
    
    .mobile-hero .hero-logo {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    margin-bottom: 0;
}

.mobile-hero .hero-company {
    font-size: 2rem;
    line-height: 60px; /* ロゴの高さに揃える */
}
    
    .mobile-hero .hero-catchphrase-sub {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .mobile-hero .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* ABOUTセクションのスタイル調整 */
    .about-content {
        flex-direction: column;
    }
    
    .about-text, 
    .about-image,
    .business-image,
    .business-text,
    .business-description {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    
    /* 画像と文言の間のスペーシングを統一 */
    .about-image,
    .business-image {
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .about-text,
    .business-description {
        margin-bottom: 30px;
    }
    
    /* 最後のabout-textも統一した30pxマージンを設定 - カルーセル的なレイアウトに対応 */
    .about-text:nth-of-type(2) {
        margin-bottom: 30px;
    }
    
    /* ABOUTセクション全体のマージンを調整 - セクションの最後に余分なスペースが出ないように */
    .about-content {
        margin-bottom: 0;
    }
    
    /* ① 沖縄の風景画像 + 沖縄の魅力は文言 */
    .about-image:nth-of-type(1) {
        order: 1;
    }
    
    .about-text:nth-of-type(1) {
        order: 2;
        margin-bottom: 30px;
    }
    
    /* ② 沖縄の海画像 + 都会の喧騒や文言 */
    .about-image:nth-of-type(2) {
        order: 3;
    }
    
    .about-text:nth-of-type(2) {
        order: 4;
    }
    
    /* ビジネスセクションは統一的なスタイルにしたので、重複する部分は削除 */
    .business-item-mobile {
        display: flex;
        flex-direction: column;
        margin-bottom: 50px;
    }
    
    .business-title {
        margin-bottom: 20px;
        text-align: left;
        width: 100%;
    }
    
    .company-info {
        width: 100%;
        padding: 20px 15px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    }

    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-item {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    /* モバイル向けセクション余白調整 */
    .section {
        padding: 50px 0;
    }

    .section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .about-content,
    .business-item {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* ビジネスセクションとABOUTセクションのテキストスタイルを統一 */
    .about-text p,
    .business-description p,
    .business-description {
        text-align: left;
        font-size: 0.95rem;
        line-height: 2;
        letter-spacing: 0.02em;
        color: #333;
        padding: 0 5px;
        font-weight: bold; /* 両方とも太字にする */
    }

    /* スクロールダウン表示調整 */
    .scroll-down {
        bottom: 15px;
        right: 5px;
        font-size: 0.7rem;
        position: fixed;
        z-index: 50;
    }

    /* カーソル追従をモバイルでは非表示 */
    .cursor-follower {
        display: none;
    }
    
    /* 画像サイズ調整 - 両セクションで統一 */
    .about-image img,
    .business-image img {
        height: 200px;
        object-fit: cover;
        width: 100%;
        border-radius: 8px;
    }
}

/* スマートフォン向け特別調整 */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 30px;
        height: 2px;
        margin: 15px auto 0;
    }

    .hero-company {
        font-size: 2rem;
    }

    .hero-catchphrase {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .hero-catchphrase-sub {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .nav-list {
        width: 85%;
    }

    .nav-item {
        margin: 10px 0;
        font-size: 1rem;
    }

    .logo {
        width: 30px;
        height: 30px;
    }
    
    .header-company {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .business-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-right: 0;
        display: flex;
        align-items: center;
    }
    
    .business-title a {
        display: flex;
        align-items: center;
    }
    
    .business-title::after {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: inline-block;
        margin-left: 10px;
    }
    
    .business-title:hover::after {
        transform: translateX(5px);
        opacity: 1;
    }

    /* テキストスタイルの統一 - 両セクションで同じ値を適用 */
    .about-text p,
    .business-description p,
    .business-description {
        font-size: 0.85rem;
        line-height: 1.8;
        letter-spacing: 0.01em;
        font-weight: bold;
    }

    .company-info {
        padding: 15px 10px;
    }

    .company-table th {
        width: 35%;
        padding: 12px 0;
        font-size: 0.85rem;
    }

    .company-table td {
        width: 65%;
        padding: 12px 0;
        font-size: 0.85rem;
    }

    .map-container {
        height: 250px;
    }

    .footer {
        padding: 15px 0;
        font-size: 0.7rem;
    }

    .coming-soon {
        font-size: 1.2rem;
        padding-right: 25px;
    }

    .about-image img,
    .business-image img {
        height: 160px;
    }
}

/* 超小型スマートフォン向け特別調整 */
@media (max-width: 375px) {
    .mobile-hero-bottom {
        bottom: 100px;
    }
    
    .mobile-hero .hero-logo {
        width: 45px;
        height: 45px;
    }
    
    .mobile-hero .hero-company {
        font-size: 1.7rem;
        line-height: 45px;
    }

    .container {
        padding: 0 10px;
    }
}

/* iPhone SE特別調整 */
@media (max-width: 320px) {
    .mobile-hero-bottom {
        bottom: 80px;
    }
    
    .mobile-hero .hero-logo {
        width: 35px;
        height: 35px;
        margin-right: 6px;
    }
    
    .mobile-hero .hero-company {
        font-size: 1.4rem;
        line-height: 35px;
    }
    
    .mobile-hero .hero-catchphrase-sub {
        font-size: 1.2rem;
    }
    
    .mobile-hero .hero-subtitle {
        font-size: 0.8rem;
    }
}