/* ==========================================================================
   WooPro Theme - Main Styles
   ==========================================================================

   目次:
   1. リセット&ベーススタイル
   2. タイポグラフィ
   3. レイアウト（コンテナ、ラッパー）
   4. UIコンポーネント
      4.1 スクロール進行バー
      4.2 ヘッダー
      4.3 ヒーローセクション
      4.4 セクションタイトル
      4.5 サービスセクション
      4.6 会社情報セクション
      4.7 コンタクトセクション
      4.8 フッター
      4.9 ページトップボタン
   5. レスポンシブデザイン
   6. タッチデバイス最適化
   ========================================================================== */

/* ==========================================================================
   1. リセット&ベーススタイル
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

body {
    font-family: 'Barlow', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222222;
    background-color: #c79f62;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 320px;
}

/* ==========================================================================
   2. タイポグラフィ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #D4B27C;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #B89A6B;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   3. レイアウト（コンテナ、ラッパー）
   ========================================================================== */
.wrapper {
    max-width: 1500px;
    margin: 0 auto;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

/* ==========================================================================
   4. UIコンポーネント
   ========================================================================== */

/* 4.1 スクロール進行バー
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: #D4B27C;
    z-index: 1060;
    transition: width 0.1s ease;
}

/* 4.2 ヘッダー
   -------------------------------------------------------------------------- */

.header__container {
    max-width: 1320px;
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header.menu-open {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    padding: 0 2.4rem;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header.scrolled .header__logo {
    opacity: 1;
    visibility: visible;
}

.header.menu-open .header__logo {
    opacity: 1;
    visibility: visible;
}

.header__logo-icon {
    height: 34px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    font-size: 20px;
    color: #ffffff;
    transition: color 0.15s ease;
    font-weight: 600;
}

.header.scrolled .header__nav-link {
    color: #222222;
}

.header__nav-link:hover {
    color: #D4B27C;
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
}

.header__menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

.header.scrolled .header__menu-toggle span {
    background: #222222;
}

.header.menu-open .header__menu-toggle span {
    background: #222222;
}

.header__menu-toggle.active span {
    background: #D4B27C;
}

.header__menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.header__menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 4.3 ヒーローセクション
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
}

.hero__content {
    position: relative;
    width: 100%;
}

.hero__panel {
    position: relative;
}

.hero__panel--left {
    background-color: #c79f62;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 136px;
    z-index: 2;
}

.hero__panel--right {
    background: #c79f62;
    position: relative;
}

.hero__logo--overlay {
    position: absolute;
    top: 14.5%;
    left: 3.9%;
    z-index: 3;
}

.hero__logo-icon {
    width: 218px;
    height: auto;
}

.hero__vertical-text {
    position: absolute;
    left: 59%;
    top: 70%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.hero__image {
    position: relative;
    width: 100%;
    height: 740px;
    display: flex;
    flex-direction: row;
    gap: 0;
}

.hero__img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__character {
    position: absolute;
    right: 0;
    bottom: -34px;
    z-index: 4;
    width: 40%;
}

.hero__character-img {
    height: auto;
    display: block;
}

.hero__scroll {
    position: absolute;
    bottom: -7%;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-decoration: none;
    color: #ffffff;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.hero__scroll:hover {
    opacity: 0.7;
}

.hero__scroll-text {
    writing-mode: horizontal-tb;
    transform: rotate(90deg);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.hero__scroll-line {
    width: 3px;
    height: 120px;
    background-color: #ffffff;
    display: block;
}

/* 4.4 セクションタイトル（共通スタイル）
   -------------------------------------------------------------------------- */
.section-title {
    display: flex;
    align-items: baseline;
    font-size: 3.1rem;
    color: #ffffff;
    font-weight: 700;
    gap: 1.3rem;
    margin-bottom: 2.1rem;
    letter-spacing: 0.06em;
}

.section-title::after {
    content: '';
    background: #ffffff;
    flex-shrink: 0;
    width: 66px;
    height: 2px;
    transform: translateY(-0.3em);
}

/* 4.5 サービスセクション
   -------------------------------------------------------------------------- */
.services {
    padding: 9.4rem 0 6rem;
    background: #c79f62;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 7.8rem;
    padding: 0 2.6rem;
}

.services__item {
    transition: all 0.3s ease;
}

.services__image {
    position: relative;
    height: 295px;
}

.services__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services__item:hover .services__img {
    transform: scale(1.05);
}

.services__character {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateX(58%);
}

.services__character-img {
    width: auto;
    height: 150px;
    object-fit: contain;
}

.services__content {
    padding: 1.1rem 0;
    color: #ffffff;
}

.services__item-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.services__list {
    list-style: none;
}

.services__list > li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.services__list li::before {
    content: '・';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 4.6 会社情報セクション
   -------------------------------------------------------------------------- */
.company {
    padding: 2.5rem 0 4.4rem;
    background: #c79f62;
    color: #ffffff;
    position: relative;
}

.company__title {
    margin-bottom: 5.2rem;
}

.company__content {
    position: relative;
    display: block;
    z-index: 2;
    max-width: 1026px;
    width: 100%;
    margin: 0 auto 62px;
}

.company__info {
    position: relative;
    z-index: 2;
}

.company__name {
    margin-bottom: 2.8rem;
    color: white;
}

.company__name-jp {
    display: block;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.company__name-en {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
}

.company__director {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.company__contact {
    margin-bottom: 2rem;
}

.company__contact p {
    margin-bottom: 0.45rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #ffffff;
}

.company__business {
    margin-bottom: 2rem;
}

.company__business-title {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    color: #ffffff;
}

.company__business ul {
    list-style: none;
}

.company__business li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.company__business li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.company__license {
    color: #ffffff;
    opacity: 0.8;
}

.company__body {
    font-size: 1rem;
    line-height: 1.85;
    color: #ffffff;
    white-space: pre-line;
}

.company__body a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.company__img {
    width: 100%;
    max-width: 840px;
    display: block;
}

/* デスクトップ・タブレット版：絶対配置 */
@media screen and (min-width: 769px) {
    .company__img {
        position: absolute;
        top: 130px;
        right: 4%;
    }
}

/* マップセクション */
.company__map-section {
    margin-top: 3rem;
}

.map-container {
    position: relative;
    align-items: stretch;
    max-width: 1026px;
    width: 100%;
    margin: 0 auto;
}

.map-frame {
    height: 350px;
    width: 70%;
    padding: 18px;
    position: relative;
    background-color: #80663e;
    margin-right: 1rem;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
}

.map-iframe {
    border: 0;
}

.character-content {
    position: absolute;
    right: -8%;
    top: 47%;
    transform: translateY(-50%);
}

.character-img {
    width: 330px;
}

/* 4.7 コンタクトセクション
   -------------------------------------------------------------------------- */
.contact {
    padding: 5.8rem 0 7rem;
    background: #c79f62;
    position: relative;
    overflow: hidden;
}

.contact__title {
    margin-bottom: 5.5rem;
}

.contact__field-group {
    display: flex;
    gap: 5rem;
    margin-bottom: 2rem;
}

.contact__field-group:last-child {
    gap: 3rem;
}

.contact__field-group .contact__field {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.contact__field-group .contact__field:has(textarea) {
    flex: 0 0 calc(66%);
}

textarea.contact__input {
    resize: vertical;
    min-height: 120px;
}

.contact__form {
    max-width: 1034px;
    width: 100%;
    margin: 0 auto 6rem;
}

.contact__form > .contact__field:first-child {
    display: flex;
    justify-content: space-between;
}

.contact__label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.15rem;
}

.contact__required {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 2px 8px;
    background-color: #80663e;
    color: #ffffff;
    font-size: 0.9rem;
}

.contact__form > .contact__field:first-child .contact__label {
    margin-bottom: 0;
    white-space: nowrap;
}

.contact__divider {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    border-top: 1px solid #ffffff;
}

.contact__radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4.6rem;
}

.contact__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2rem;
}

.contact__radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.contact__radio input[type="radio"]:checked {
    background-color: transparent;
}

.contact__radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
}

.contact__input {
    width: 100%;
    padding: 0.875rem;
    border: none;
    font-size: 1.2em;
    transition: border-color 0.15s ease;
}

.contact__input:focus {
    outline: none;
    border-color: #D4B27C;
}

.contact__input[type="text"],
.contact__input[type="email"],
.contact__input[type="tel"] {
    height: auto;
}

.contact__checkbox {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.contact__checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    margin-bottom: 2rem;
}

.contact__checkbox label {
    font-size: 1.1rem;
}

.contact__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.contact__checkbox input[type="checkbox"]:checked {
    background-color: transparent;
}

.contact__checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
}

.contact__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: #D4B27C;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.contact__submit:hover {
    background: #B89A6B;
}

.contact__submit-success {
    display: flex;
    align-items: center;
    justify-content: left;
}

.contact__submit-success-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    animation: fadeInScale 0.5s ease-in-out;
}

/* Contact Form 7 画像ボタン制御 */
.contact__submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    max-width: 195px;
    width: 100%;
    height: auto;
}

.contact__submit-button img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* ボタン状態別のopacity制御 */
.contact__submit-button[data-state="unchecked"] {
    cursor: not-allowed;
}

.contact__submit-button[data-state="unchecked"] img {
    opacity: 0.4; /* 未チェック時：薄く表示 */
}

.contact__submit-button[data-state="ready"] {
    cursor: pointer;
}

.contact__submit-button[data-state="ready"] img {
    opacity: 1; /* チェック時：完全表示 */
}

.contact__submit-button[data-state="sent"] {
    cursor: default;
}

.contact__submit-button[data-state="sent"] img {
    opacity: 1; /* 送信完了時：完全表示 */
    /* 画像切替はJSでimg.srcを更新 */
}

/* 送信完了時のアニメーション */
.contact__submit-button.submit-success-animation img {
    animation: submitSuccessFadeIn 0.6s ease-out forwards;
}

/* Contact Form 7標準ボタンを非表示 */
.wpcf7-submit {
    display: none !important;
}

.contact__characters {
    position: absolute;
    right: 13%;
    bottom: -50px; /* 30px下に移動（調整可能） */
    display: flex;
    z-index: 10;
}

.contact__character {
    width: auto;
    height: 140px;
    transition: transform 0.3s ease;
    margin-left: -10px;
}

.contact__character:hover {
    transform: translateY(-20px) scale(1.1) !important;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 送信完了時のフェードイン + スケールアニメーション */
@keyframes submitSuccessFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* フォームバリデーション */
.contact__input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* 通知メッセージ */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification--success {
    border-left: 4px solid #27ae60;
}

.notification--error {
    border-left: 4px solid #e74c3c;
}

.notification--info {
    border-left: 4px solid #3498db;
}

.notification__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.notification__message {
    color: #222222;
    font-size: 0.875rem;
    line-height: 1.5;
}

.notification__close {
    background: none;
    border: none;
    font-size: 1.125rem;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color 0.15s ease;
}

.notification__close:hover {
    color: #222222;
}

/* プライバシーポリシー */
.contact__privacy {
    margin: 7.5rem auto 0;
    max-width: 1024px;
    width: 100%;
}

.privacy-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.15s ease;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.privacy-toggle:hover {
    color: #B89A6B;
}

.privacy-toggle__text {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
}

.privacy-toggle__text::before,
.privacy-toggle__text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 180px;
    height: 2px;
    background-color: white;
    transform: translateY(-50%);
}

.privacy-toggle__text::before {
    right: 100%;
    margin-right: 1rem;
}

.privacy-toggle__text::after {
    left: 100%;
    margin-left: 1rem;
}

.privacy-toggle__icon {
    font-size: 1.75rem;
    font-weight: bold;
}

.privacy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.privacy-content.open {
    max-height: 2000px;
}

.privacy-content__text p {
    margin-bottom: 1.7rem;
    line-height: 1.9;
    color: white;
    font-size: 1rem;
}

/* 4.8 フッター
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    z-index: 10;
}

.footer__content {
    background: #80663e;
    color: #ffffff;
    padding: 1.7rem 0;
    position: relative;
    z-index: 2;
}

.footer__copyright {
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* 4.9 ページトップボタン
   -------------------------------------------------------------------------- */
.page-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 90px;
    height: 90px;
    background: #D4B27C;
    border: none;
    border-radius: 9999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1030;
}

.page-top.show {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background: #B89A6B;
    transform: translateY(-2px);
}

.page-top__character {
    width: 100%;
}

/* ==========================================================================
   5. レスポンシブデザイン（タブレット・モバイル: 768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    body {
        line-height: 1.6;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding: 0 1em;
    }

    /* Prevent text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Mobile performance optimization */
    .hero__img,
    .services__img,
    .company__office-img {
        will-change: transform;
    }

    /* Header mobile */
    .header__content {
        height: 70px;
        padding: 0 1rem !important;
    }

    .header__logo-icon {
        width: 32vw;
        height: auto;
    }

    .header__nav {
        display: flex;
        align-items: center;
    }

    .header__nav-list {
        display: flex;
        gap: 0.6rem;
        gap: 2.4vw;
    }

    .header__nav-link {
        display: inline-block;
        font-weight: 700;
        font-size: 3.2vw;
    }

    .header.scrolled .header__nav-link {
        color: #222222;
    }

    .header.menu-open .header__nav-link {
        color: #222222;
    }

    .header__nav-link:hover {
        color: #D4B27C;
    }

    .header__menu-toggle {
        display: none;
    }

    /* Hero section mobile */
    .hero__content {
        display: flex;
        flex-direction: row;
    }

    .hero__panel--left {
        position: relative;
        width: 21.33%;
        height: auto;
    }

    .hero__panel--right {
        width: 78.67%;
    }

    .hero__vertical-text {
        font-size: 0.75rem;
        position: absolute;
        left: 50%;
        top: 70%;
        letter-spacing: 0.1em;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero__logo--overlay {
        top: 10%;
        left: 5%;
    }

    .hero__logo-icon {
        width: 170px;
    }

    .hero__image {
        height: 86vh;
        flex-direction: column;
    }

    .hero__img {
        width: 100%;
        height: 50%;
    }

    .hero__character {
        position: absolute;
        bottom: -1%;
        right: 3%;
        z-index: 4;
    }

    .hero__scroll {
        gap: 1rem;
    }

    .hero__scroll-text {
        font-size: 14px;
    }

    .hero__scroll-line {
        height: 80px;
    }

    /* Services section mobile */
    .services {
        padding: 5rem 0 3rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.6rem;
    }

    .services__image {
        height: 250px;
    }

    .services__item-title {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .services__list > li {
        margin-bottom: 0.2rem;
    }

    .services__character {
        transform: translateX(18%);
    }

    .services__character-img {
        height: 120px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    /* Company section mobile */
    .company {
        padding: 2rem 0 3rem;
    }

    .company__title {
        margin-bottom: 2rem;
    }

    .company__img {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 0 2.5rem 0;
        display: block;
    }

    .company__content {
        margin-bottom: 3rem;
        padding: 0 0.8rem;
    }

    .company__visual {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }

    .company__office {
        display: flex;
        justify-content: center;
    }

    .company__office-img {
        max-width: 100%;
        width: 100%;
    }

    .company__name {
        margin-bottom: 2rem;
    }

    .company__name-jp {
        font-size: 1.25rem;
    }

    .company__name-en {
        font-size: 1rem;
    }

    /* Map section mobile */
    .map-container {
        flex-direction: column;
        padding: 0 !important;
    }

    .map-frame {
        width: 100%;
        height: 300px;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .character-content {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
    }

    .character-img {
        width: 200px;
    }

    /* Contact section mobile */
    .contact {
        padding: 4rem 0 7rem;
    }

    .contact__title {
        margin-bottom: 3rem;
    }

    .contact__form {
        padding: 0 1.5rem !important;
        margin-bottom: 1rem;
    }

    .contact__field-group {
        flex-direction: column;
        gap: 1.6rem;
    }


    .contact__label {
        font-size: 1.1em;
        margin-bottom: 0.5rem;
    }


    .contact__input {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .contact__field-group .contact__field:has(textarea),
    .contact__field-group .contact__field:has(.contact__checkbox) {
        flex: 1 1 auto;
    }

    .contact__radio-group {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .contact__form > .contact__field:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact__privacy {
        margin-top: 3rem;
        padding: 0 1.5rem !important;
    }

    .contact__characters {
        right: 3%;
        bottom: -32px;
    }

    .contact__character {
        height: 114px;
    }


    .contact__submit-button {
        margin: 0 auto;
    }

    .privacy-toggle__text::before,
    .privacy-toggle__text::after {
        width: 60px;
    }

    /* Footer mobile */
    .footer__content {
        padding: 3rem 0;
    }

    .footer__copyright {
        font-size: 0.8rem;
    }

    /* Page top button mobile */
    .page-top {
        width: 70px;
        height: 70px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ==========================================================================
   6. タッチデバイス最適化
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .header__nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact__radio,
    .contact__checkbox-group {
        min-height: 44px;
    }

    .contact__radio input[type="radio"],
    .contact__checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .contact__radio input[type="radio"]:checked::after,
    .contact__checkbox input[type="checkbox"]:checked::after {
        width: 12px;
        height: 12px;
    }

    /* Remove hover effects on touch devices */
    .services__item:hover .services__img {
        transform: none;
    }

    .contact__character:hover {
        transform: none !important;
    }

    .page-top:hover {
        transform: none;
    }

    .privacy-toggle:hover {
        color: white;
    }

    .hero__scroll:hover {
        opacity: 1;
    }

    /* Prevent sticky hover states */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}
