/* =============================================================================
   みどり訪問看護ステーション - 完全版CSS
   ============================================================================= */

/* -----------------------------------------------------------------------------
   基本設定・リセット
   ----------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(45deg, #f8f4f0 0%, #faf7f2 50%, #f5f1eb 100%);
    background-attachment: fixed;
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* セクション開始位置の調整 */
section[id] {
    scroll-margin-top: 100px;
    position: relative;
}

#about::before, #services::before, #features::before, 
#flow::before, #price::before, #company::before, 
#documents::before, #recruit::before, #contact::before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
}

/* -----------------------------------------------------------------------------
   ヘッダー
   ----------------------------------------------------------------------------- */
.header {
    background: linear-gradient(135deg, #D2B48C 0%, #A0845C 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ロゴ */
.logo {
    gap: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 0;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-fallback {
    font-size: 2rem;
    margin-right: 10px;
    display: none;
}

/* ナビゲーション */
.nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.nav li {
    position: relative;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.1rem 0.5em;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: block;
    box-sizing: border-box;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav a:hover {
    color: #F5F5DC;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav a:hover::before {
    left: 100%;
}

/* 電話番号 */
.phone-number {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    position: absolute;
    top: 1rem;
    right: 20px;
    box-sizing: border-box;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
	align-items: center; 
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px auto;
    transition: all 0.3s;
    border-radius: 2px;
    display: block;
    transform-origin: center; /* 回転の中心を線の中央に設定 */
}

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

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

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

/* -----------------------------------------------------------------------------
   ヒーローセクション（カルーセル）
   ----------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: -30px;
    padding-top: 0px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* 各スライドの背景 */
.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-image-1.jpg');
    background-size: cover;
    background-position: center;
}

.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-image-2.jpg');
    background-size: cover;
    background-position: center;
}

.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-image-3.jpg');
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

/* 矢印ボタン */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* ドットインジケーター */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}
/* -----------------------------------------------------------------------------
   セクション共通スタイル
   ----------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8B7355;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D2B48C, #BC9A6A);
    border-radius: 2px;
}

.subsection-title {
    color: #8B7355;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* -----------------------------------------------------------------------------
   私たちについて
   ----------------------------------------------------------------------------- */
.about-section {
    background: #FAF0E6;
}

.philosophy-section {
    margin-bottom: 4rem;
}

.philosophy-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.philosophy-text {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy-text h4 {
    color: #8B7355;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.philosophy-text h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D2B48C, #BC9A6A);
    border-radius: 2px;
}

.philosophy-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1rem;
}

.philosophy-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
    background: #FAF0E6;
    border-radius: 15px;
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.value-item h5 {
    color: #8B7355;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* 代表挨拶 */
.greeting-section {
    margin-bottom: 2rem;
}

.greeting-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: flex-start;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.greeting-photo {
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 200px;
    height: 250px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
	background-color: #ffffff;
}

.photo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.photo-placeholder p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.greeting-text h4 {
    color: #8B7355;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #D2B48C;
    padding-bottom: 0.5rem;
}

.greeting-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.2rem;
}

.greeting-signature {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #FAF0E6;
    border-radius: 10px;
    text-align: right;
}

.greeting-signature p {
    margin-bottom: 0.5rem;
    color: #8B7355;
    font-weight: bold;
}

/* -----------------------------------------------------------------------------
   サービス紹介
   ----------------------------------------------------------------------------- */
.services {
    background: #FAF0E6;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(210,180,140,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float2 8s ease-in-out infinite;
}

.services-grid {
    display: grid;grid-template-columns: repeat(4, 1fr);  /* 4列固定 */
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D2B48C, #BC9A6A);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #8B7355;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   特徴
   ----------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #DDB892 0%, #C4A484 100%);
    color: white;
    border-radius: 15px;
    transition: transform 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* -----------------------------------------------------------------------------
   ご利用の流れ
   ----------------------------------------------------------------------------- */
.flow-section {
    background: #fff;
}

.flow-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    background: #FAF0E6;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: relative;
}

.step-number {
    background: linear-gradient(135deg, #D2B48C 0%, #BC9A6A 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(210,180,140,0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #8B7355;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.step-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.step-note {
    background: rgba(210,180,140,0.2);
    color: #8B7355;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.step-arrow {
    text-align: center;
    font-size: 2rem;
    color: #D2B48C;
    margin: 1rem 0;
    font-weight: bold;
}

.flow-contact {
    background: linear-gradient(135deg, #DDB892 0%, #C4A484 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.flow-contact h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.flow-contact p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.flow-contact-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.flow-contact-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* -----------------------------------------------------------------------------
   利用料金
   ----------------------------------------------------------------------------- */
.price-section {
    background: #FAF0E6;
    position: relative;
}

.price-section::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -3%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(188,154,106,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float3 10s ease-in-out infinite;
}

.price-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2列固定 */
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.price-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-header {
    background: linear-gradient(135deg, #D2B48C 0%, #BC9A6A 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.price-content {
    padding: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.price-label {
    color: #8B7355;
    font-weight: bold;
    min-width: 120px;
    font-size: 0.95rem;
}

.price-value {
    text-align: right;
    flex: 1;
}

.price-main {
    color: #555;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.price-detail {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price-note {
    background: rgba(210,180,140,0.1);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #8B7355;
    line-height: 1.5;
    margin-top: 1rem;
}

.price-contact {
    background: linear-gradient(135deg, #DDB892 0%, #C4A484 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.price-contact h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-contact p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.price-contact-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.price-contact-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* -----------------------------------------------------------------------------
   会社概要
   ----------------------------------------------------------------------------- */
.company-section {
    background: #fff;
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.company-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th {
    background: linear-gradient(135deg, #D2B48C 0%, #BC9A6A 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
    width: 250px;
    vertical-align: top;
}

.company-table td {
    background: #FAF0E6;
    padding: 1.5rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    vertical-align: top;
    border-bottom: 1px solid rgba(139,115,85,0.1);
}

.company-table tr:last-child td {
    border-bottom: none;
}

.company-table tr:hover td {
    background: #F5F5DC;
}

/* -----------------------------------------------------------------------------
   公開情報
   ----------------------------------------------------------------------------- */
.documents-section {
    background: #fff;
}

.documents-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.documents-list {
    max-width: 800px;
    margin: 0 auto;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #FAF0E6;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #D2B48C 0%, #BC9A6A 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(210,180,140,0.3);
}

.document-content {
    flex: 1;
}

.document-content h3 {
    color: #8B7355;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.document-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #CD853F 0%, #B8860B 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(205,133,63,0.3);
}

.document-link:hover {
    background: linear-gradient(135deg, #B8860B 0%, #A0845C 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205,133,63,0.4);
}

.link-icon {
    font-size: 1.1rem;
}

/* -----------------------------------------------------------------------------
   求人情報
   ----------------------------------------------------------------------------- */
.recruit {
    background: #FAF0E6;
}

.recruit-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.recruit-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.position-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #D2B48C;
}

.position-card h3 {
    color: #8B7355;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.position-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    min-width: 100px;
    color: #8B7355;
    font-weight: bold;
}

.detail-item span {
    flex: 1;
    line-height: 1.6;
}

.recruit-benefits {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.recruit-benefits h3 {
    color: #8B7355;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1rem;
    background: #FAF0E6;
    border-radius: 10px;
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #8B7355;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.recruit-contact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.recruit-contact h3 {
    color: #8B7355;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.recruit-contact p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.recruit-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.recruit-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.recruit-button.phone {
    background: #CD853F;
    color: white;
    box-shadow: 0 4px 15px rgba(205,133,63,0.3);
}

.recruit-button.phone:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205,133,63,0.4);
}

.recruit-button.email {
    background: #A0845C;
    color: white;
    box-shadow: 0 4px 15px rgba(160,132,92,0.3);
}

.recruit-button.email:hover {
    background: #8B7355;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160,132,92,0.4);
}

/* -----------------------------------------------------------------------------
   お問い合わせ
   ----------------------------------------------------------------------------- */
.contact {
    background: linear-gradient(135deg, #A0845C 0%, #D2B48C 100%);
    color: white;
}

.contact-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    font-size: 1.1rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
}

.contact-details {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-item strong {
    margin-right: 1rem;
    min-width: 100px;
}

.contact-form-button {
    display: inline-block;
    background: #CD853F;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(205,133,63,0.3);
}

.contact-form-button:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205,133,63,0.4);
}

/* -----------------------------------------------------------------------------
   Googleマップ
   ----------------------------------------------------------------------------- */
.map-section {
    background: #fff;
}

.map-container {
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.map-container .map-iframe {
    border: 0;
    border-radius: 15px;
}

.map-info {
    text-align: center;
    background: #FAF0E6;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.map-info p {
    margin-bottom: 0.5rem;
    color: #8B7355;
}

.map-info p:first-child {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   フッター
   ----------------------------------------------------------------------------- */
.footer {
    background: #8B7355;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* =============================================================================
   アニメーション
   ============================================================================= */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -15px) scale(1.1); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -10px) rotate(90deg); }
    50% { transform: translate(-10px, -20px) rotate(180deg); }
    75% { transform: translate(-25px, 10px) rotate(270deg); }
}

/* =============================================================================
   レスポンシブデザイン - iPad対応
   ============================================================================= */

/* タブレット用メディアクエリ（iPad対応） */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* ヘッダー修正 - body padding-topを調整 */
    body {
        padding-top: 80px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    section[id] {
        scroll-margin-top: 80px;
    }
    
    #about::before, #services::before, #features::before, 
    #flow::before, #price::before, #company::before, 
    #documents::before, #recruit::before, #contact::before {
        height: 80px;
        margin-top: -80px;
    }
    
    /* ヘッダー全体をコンパクトに */
    .header {
        padding: 0.3rem 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    /* 電話番号を非表示 */
    .phone-number {
        display: none;
    }
    
    /* メインメニューをコンパクトに */
    .nav {
        gap: 0.1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    
    .nav a {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
        font-weight: bold;
        border-radius: 8px;
        white-space: nowrap;
        margin: 0;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ヒーローセクションの調整 */
    .hero {
        margin-top: -40px;
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    /* セクション調整 */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* グリッドレイアウト調整 */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .price-cards {
        grid-template-columns: 2,1fr;  /* 1列表示 */
        gap: 2rem;
        max-width: 900px;  /* 幅を制限して見やすく */
        margin: 0 auto 3rem;  /* 中央寄せ */
    }
    
    /* その他の調整 */
    .step-item {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .recruit-positions {
        grid-template-columns: 2fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .greeting-content {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    
    .photo-placeholder {
        width: 160px;
        height: 200px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-details {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .document-item {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .document-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

/* iPad Pro 11インチ・12.9インチ対応 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1100px;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .price-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 横向きタブレット調整 */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1024px) {
    .hero {
        padding-top: 0px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .service-card,
    .feature-item {
        padding: 1rem;
    }
    
    .price-cards {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* =============================================================================
   レスポンシブデザイン - モバイル対応
   ============================================================================= */
@media (max-width: 768px) {
    
    /* ヘッダー修正 */
    body {
        padding-top: 120px;
    }
    
    html {
        scroll-padding-top: 20px;
    }
    
    section[id] {
        scroll-margin-top: 30px;
    }
    
    #about::before, #services::before, #features::before, 
    #flow::before, #price::before, #company::before, 
    #documents::before, #recruit::before, #contact::before {
        height: 120px;
        margin-top: -120px;
    }
    
    .hero {
        margin-top: -120px;
        padding-top: 0px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .logo {
    gap: 12px;
        order: 1;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    

    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #D2B48C 0%, #A0845C 100%);
        flex-direction: column !important;
        padding: 0.2rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        order: 3;
        width: 100%;
        gap: 0;
    }

    .nav.active {
        display: flex !important;
    }

    .nav li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav a {
        padding: 0.1rem 0.5rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
    }

    .nav a:hover {
        background: rgba(255,255,255,0.15);
        transform: translateX(5px);
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-number {
        display: none;
    }
    
    /* グリッドを1列に */
    .services-grid,
    .features-grid,
    .price-cards,
    .recruit-positions {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .step-number {
        align-self: center;
    }

    .greeting-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .philosophy-values {
        grid-template-columns: 1fr;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .company-table th {
        border-bottom: none;
    }

    .company-table td {
        border-bottom: 1px solid rgba(139,115,85,0.2);
        margin-bottom: 1rem;
    }

    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .document-icon {
        align-self: center;
    }
    
    .recruit-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .recruit-button {
        width: 100%;
        max-width: 300px;
    }

    .logo-image { height: 40px; width: auto; }
    .logo { gap: 8px; }
}

/* =============================================================================
   アクセシビリティとユーザビリティ向上
   ============================================================================= */

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .service-icon,
    .feature-icon {
        font-size: 3rem;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .service-card::before,
    .section-title::after {
        height: 5px;
    }
}

/* タッチ操作最適化 */
@media (pointer: coarse) {
    .nav a {
        min-width: 44px;
        min-height: 40px;
        padding: 0.5rem 0.6rem;
    }
    
    .hamburger {
        min-width: 48px;
        min-height: 48px;
    }
    
    .service-card:active,
    .feature-item:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .nav a:active {
        background: rgba(255,255,255,0.3);
    }
    
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #D2B48C;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #BC9A6A;
    }
}

/* Safari対応 */
@supports (-webkit-touch-callout: none) {
    .hero {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .service-icon,
    .feature-icon,
    .step-number {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .hero::after,
    .services::before,
    .price-section::before {
        animation: none;
    }
    
    .service-card:hover,
    .feature-item:hover {
        transform: none;
    }
    
    .nav a::before {
        display: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .service-card,
    .feature-item,
    .price-card {
        border: 3px solid #8B7355;
    }
    
    .nav a {
        border: 1px solid rgba(255,255,255,0.5);
    }
    
    .section-title::after {
        height: 6px;
    }
}