/* ============================
   グローバル設定
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    color: #333;
    line-height: 1.8;
}

/* ============================
   オープニングアニメーション
   ============================ */
/* オープニングオーバーレイ */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004d26 0%, #00703d 30%, #22a84f 70%, #a3d944 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOutOverlay 0.8s ease 5.0s forwards;
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 中央の5つのアイコン */
.stars-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
}

.star {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

/* パルス効果 */
.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
}

/* 各星の初期位置（正五角形・上向き） */
.star:nth-child(1) {
    left: 50%;
    top: 14%;
    transform: translate(-50%, -50%);
    animation: starAppear 0.25s ease 0.1s forwards,
               starPulse 0.4s ease 0.35s forwards,
               starDisappear 0.2s ease 0.7s forwards;
}

.star:nth-child(1)::before {
    animation: pulseRing 0.4s ease 0.35s forwards;
}

.star:nth-child(2) {
    left: 84%;
    top: 39%;
    transform: translate(-50%, -50%);
    animation: starAppear 0.25s ease 0.2s forwards,
               starPulse 0.4s ease 0.45s forwards,
               starDisappear 0.2s ease 0.85s forwards;
}

.star:nth-child(2)::before {
    animation: pulseRing 0.4s ease 0.45s forwards;
}

.star:nth-child(3) {
    left: 71%;
    top: 79%;
    transform: translate(-50%, -50%);
    animation: starAppear 0.25s ease 0.3s forwards,
               starPulse 0.4s ease 0.55s forwards,
               starDisappear 0.2s ease 1.0s forwards;
}

.star:nth-child(3)::before {
    animation: pulseRing 0.4s ease 0.55s forwards;
}

.star:nth-child(4) {
    left: 29%;
    top: 79%;
    transform: translate(-50%, -50%);
    animation: starAppear 0.25s ease 0.4s forwards,
               starPulse 0.4s ease 0.65s forwards,
               starDisappear 0.2s ease 1.15s forwards;
}

.star:nth-child(4)::before {
    animation: pulseRing 0.4s ease 0.65s forwards;
}

.star:nth-child(5) {
    left: 16%;
    top: 39%;
    transform: translate(-50%, -50%);
    animation: starAppear 0.25s ease 0.5s forwards,
               starPulse 0.4s ease 0.75s forwards,
               starDisappear 0.2s ease 1.3s forwards;
}

.star:nth-child(5)::before {
    animation: pulseRing 0.4s ease 0.75s forwards;
}

@keyframes starAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

@keyframes starDisappear {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* 収束点の座標 */
.convergence-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
}

/* 星から中心への光のライン */
.light-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    transform-origin: left center;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
}

.light-line:nth-child(1) {
    animation: lineShoot1 0.3s ease 0.7s forwards,
               lineFadeOut 0.2s ease 1.0s forwards;
}

.light-line:nth-child(2) {
    animation: lineShoot2 0.3s ease 0.85s forwards,
               lineFadeOut 0.2s ease 1.15s forwards;
}

.light-line:nth-child(3) {
    animation: lineShoot3 0.3s ease 1.0s forwards,
               lineFadeOut 0.2s ease 1.3s forwards;
}

.light-line:nth-child(4) {
    animation: lineShoot4 0.3s ease 1.15s forwards,
               lineFadeOut 0.2s ease 1.45s forwards;
}

.light-line:nth-child(5) {
    animation: lineShoot5 0.3s ease 1.3s forwards,
               lineFadeOut 0.2s ease 1.6s forwards;
}

@keyframes lineShoot1 {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: var(--line-length);
        opacity: 1;
    }
}

@keyframes lineShoot2 {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: var(--line-length);
        opacity: 1;
    }
}

@keyframes lineShoot3 {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: var(--line-length);
        opacity: 1;
    }
}

@keyframes lineShoot4 {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: var(--line-length);
        opacity: 1;
    }
}

@keyframes lineShoot5 {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: var(--line-length);
        opacity: 1;
    }
}

@keyframes lineFadeOut {
    to {
        opacity: 0;
    }
}

/* 画面全体のフラッシュ（強化版） */
.flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    animation: flashEffect 0.6s ease 1.6s forwards;
}

@keyframes flashEffect {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* 衝撃波エフェクト */
.shockwave {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: shockwaveExpand 0.8s ease 1.6s forwards;
}

.shockwave:nth-child(2) {
    animation-delay: 1.7s;
}

.shockwave:nth-child(3) {
    animation-delay: 1.8s;
}

@keyframes shockwaveExpand {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(25);
    }
}

/* パーティクル爆発 */
.particles-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

/* 白い円の登場（回転付き） */
.white-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    animation: circleExpandRotate 1s ease 2.4s forwards;
}

@keyframes circleExpandRotate {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* ロゴの登場（3D回転） */
.main-logo {
    width: 140px;
    height: auto;
    opacity: 0;
    animation: logoAppear3D 0.8s ease 3.0s forwards;
}

@keyframes logoAppear3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateY(-90deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateY(0deg) scale(1);
    }
}

/* 最終的なアイコン配置（白い円の周囲） */
.final-icons-container {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0;
    animation: finalIconsAppear 0.6s ease 3.0s forwards;
}

@keyframes finalIconsAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.final-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* 五角形配置（上向き） */
.final-icon:nth-child(1) {
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
}

.final-icon:nth-child(2) {
    right: 0;
    top: 38%;
    transform: translate(50%, -50%);
}

.final-icon:nth-child(3) {
    right: 15%;
    bottom: 0;
    transform: translate(50%, 50%);
}

.final-icon:nth-child(4) {
    left: 15%;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.final-icon:nth-child(5) {
    left: 0;
    top: 38%;
    transform: translate(-50%, -50%);
}

/* ============================
   ヘッダー・ナビゲーション
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:active .logo-image {
    animation: logoWave 0.6s ease;
}

.logo-image {
    width: 180px;
    height: 50px;
    background: url('../image/logo_top.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #1a5f3f;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

nav {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a5f3f, #7fb842);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #1a5f3f;
}

nav a:hover::after {
    width: 100%;
}

/* ============================
   ヒーローエリア
   ============================ */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/top-image.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 95, 63, 0.7) 0%,
        rgba(45, 134, 89, 0.6) 50%,
        rgba(127, 184, 66, 0.5) 100%
    );
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1000px;
    padding: 0 60px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #7fb842;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 60px;
    position: relative;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: #7fb842;
}

.hero h1 {
    font-size: 70px;
    font-weight: 900;
    color: white;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow:
        0 6px 30px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero h1 .highlight {
    display: block;
    color: #7fb842;
    text-shadow:
        0 6px 30px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(127, 184, 66, 0.3);
}

.hero-description {
    font-size: 16px;
    color: white;
    line-height: 1.9;
    margin-bottom: 40px;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

.hero-contact-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(127, 184, 66, 0.4);
    letter-spacing: 1px;
}

.hero-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(127, 184, 66, 0.6);
    background: linear-gradient(135deg, #8dc954 0%, #b5e955 100%);
}

.hero-scroll {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.scroll-text {
    font-size: 12px;
    color: #1a5f3f;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(26, 95, 63, 0),
        rgba(26, 95, 63, 1),
        rgba(26, 95, 63, 0)
    );
    margin: 0 auto;
    animation: scrollMove 2s ease-in-out infinite;
}

/* ============================
   セクション共通
   ============================ */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.section-title.visible {
    animation: slideUp 0.8s ease forwards;
}

.section-subtitle {
    font-size: 14px;
    color: #7fb842;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
}

.section-subtitle.visible {
    animation: slideUp 0.8s ease forwards 0.2s;
}

/* ============================
   お知らせ
   ============================ */
#news {
    background: white;
    padding: 120px 0;
}

.news-board {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.news-card {
    background: white;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(26, 95, 63, 0.05);
}

.news-card.visible {
    animation: slideUp 0.6s ease forwards;
}

.news-card:hover {
    border-color: #7fb842;
    box-shadow: 0 8px 30px rgba(26, 95, 63, 0.12);
    transform: translateY(-5px);
}

.news-card .news-date {
    display: inline-block;
    font-size: 13px;
    color: #7fb842;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: #f8fdf9;
    border-radius: 4px;
    letter-spacing: 1px;
}

.news-card .news-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.news-archive {
    text-align: center;
    margin-top: 50px;
}

.news-archive-link {
    display: inline-block;
    padding: 14px 40px;
    color: #1a5f3f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #7fb842;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.news-archive-link:hover {
    background: #7fb842;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
}

/* ============================
   法人概要
   ============================ */
#company {
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
    padding: 120px 0;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.company-text {
    opacity: 0;
    transform: translateX(-30px);
}

.company-text.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.company-text h3 {
    font-size: 32px;
    color: #1a5f3f;
    margin-bottom: 30px;
    font-weight: 700;
}

.company-text .company-mission {
    font-size: 24px;
    color: #7fb842;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.6;
}

.company-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 2;
}

.company-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 95, 63, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* 法人概要 CTAボタン */
.company-cta {
    text-align: center;
    margin-top: 60px;
}

.company-detail-btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
}

.company-detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 184, 66, 0.5);
}

/* ============================
   地域包括ケアシステム セクション
   ============================ */
#care-system {
    background: #ffffff;
    padding: 120px 0;
}

/* 説明テキストブロック */
.care-intro {
    max-width: 1000px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
}

.care-intro.visible {
    animation: slideUp 0.8s ease forwards;
}

.care-intro p {
    font-size: 16px;
    color: #555;
    line-height: 2.2;
    margin-bottom: 1.5em;
}

.ring-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1500px;
    margin: 12rem 0 2rem;
}

.ring {
    position: absolute;
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    margin-left: -450px;
    margin-top: -450px;
    transform: rotateX(30deg) rotateY(0deg);
}

.ring-item {
    position: absolute;
    width: 250px;
    height: 350px;
    top: 50%;
    left: 50%;
    margin-left: -125px;
    margin-top: -175px;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.2);
    transform-style: preserve-3d;
    backface-visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 20px;
    overflow: hidden;
}

/* リングアイテムの画像 */
.ring-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

/* リングアイテムのオーバーレイ */
.ring-item-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.ring-item:nth-child(1) {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    transform: rotateY(0deg) translateZ(400px);
    color: #1a5f3f;
}

.ring-item:nth-child(2) {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    transform: rotateY(72deg) translateZ(400px);
    color: #1a5f3f;
}

.ring-item:nth-child(3) {
    background: linear-gradient(135deg, #a5d6a7, #81c784);
    transform: rotateY(144deg) translateZ(400px);
    color: #1a5f3f;
}

.ring-item:nth-child(4) {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    transform: rotateY(216deg) translateZ(400px);
    color: white;
}

.ring-item:nth-child(5) {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: rotateY(288deg) translateZ(400px);
    color: white;
}

.ring-item-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: white;
}

/* リング中央のロゴ */
.ring-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 15px 45px rgba(26, 95, 63, 0.25);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ring-center-logo img {
    max-width: 75%;
    height: auto;
    display: block;
}

/* ============================
   実績数値カウントアップセクション
   ============================ */
.stats-section {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.stats-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
    font-size: 14px;
    color: #a3d944;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 40px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #a3d944;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(163, 217, 68, 0.5);
}

.stat-number {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #a3d944 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(163, 217, 68, 0.5);
}

.stat-number::after {
    content: '+';
    font-size: 0.6em;
    margin-left: 5px;
}

.stat-number-no-plus::after {
    content: '';
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.stat-unit {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ============================
   代表挨拶
   ============================ */
#greeting {
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
    padding: 120px 0;
}

.greeting-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

/* 左カラム（写真 + 学歴・職歴） */
.greeting-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 写真 */
.president-photo {
    width: 380px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 95, 63, 0.15);
    opacity: 0;
    transform: scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.president-photo.visible {
    animation: zoomIn 0.8s ease forwards;
}

.president-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右カラム（挨拶テキスト） */
.greeting-text {
    opacity: 0;
    transform: translateY(30px);
}

.greeting-text.visible {
    animation: slideUp 0.8s ease forwards 0.3s;
}

.greeting-text h3 {
    font-size: 28px;
    color: #1a5f3f;
    margin-bottom: 10px;
    font-weight: 700;
}

.greeting-text h3 .en-name {
    font-size: 16px;
    color: #7fb842;
    margin-left: 10px;
    font-weight: 500;
}

.greeting-text .position {
    font-size: 14px;
    color: #7fb842;
    margin-bottom: 30px;
    font-weight: 600;
}

.greeting-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 2;
}

/* 学歴・職歴ボックス */
.career-box {
    width: 380px;
    padding: 20px;
    background: #f8fdf9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.08);
    transform: translateY(20px);
}

.career-box.visible {
    animation: slideUp 0.8s ease forwards;
}

.career-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 20px;
}

.career-title span {
    font-size: 14px;
    color: #7fb842;
    margin-left: 10px;
    letter-spacing: 1px;
}

.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-list li {
    font-size: 11px;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px solid #e6f2e8;
    line-height: 1.8;
}

.career-list li:last-child {
    border-bottom: none;
}

.career-list .year {
    font-weight: 700;
    margin-right: 14px;
    color: #1a5f3f;
}

/* 代表挨拶 スタッフ紹介リンク */
.greeting-cta {
    text-align: center;
    margin-top: 60px;
}

.greeting-staff-link {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
}

.greeting-staff-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 184, 66, 0.5);
}

/* ============================
   関連施設（スライダー）
   ============================ */
#facilities {
    background: white;
    padding: 120px 0;
    overflow: hidden;
}

.facilities-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.facilities-track {
    display: flex;
    gap: 30px;
    animation: scroll 45s linear infinite;
}

.facility-card {
    min-width: 400px;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-10px);
}

.facility-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 95, 63, 0.9), transparent);
    padding: 30px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-overlay {
    transform: translateY(0);
}

.facility-overlay h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.facility-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 法人ごとのブロック */
.corp-block {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(122, 179, 96, 0.18);
}

.corp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 10px;
}

.corp-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a5f3f;
}

.corp-label {
    font-size: 12px;
    color: #7fb842;
    letter-spacing: 2px;
}

.pref-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.pref-title span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #7fb842;
}

.facility-list {
    list-style: none;
    margin-top: 8px;
}

.facility-item {
    padding: 8px 0;
    border-top: 1px dotted #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.facility-item:first-child {
    border-top: none;
}

.facility-name {
    font-weight: 600;
    font-size: 15px;
}

.facility-link {
    font-size: 13px;
    color: #1a5f3f;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(26,95,63,0.2);
    background: rgba(232,245,233,0.6);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.facility-link:hover {
    background: #1a5f3f;
    color: #fff;
}

.facility-link span {
    font-size: 11px;
}

.facility-note {
    font-size: 12px;
    color: #777;
}

/* 補足テキスト */
.note-box {
    margin-top: 30px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f1f8e9;
    font-size: 13px;
    color: #555;
}

/* ============================
   お問い合わせ
   ============================ */
#contact {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
}

#contact .section-title {
    color: white;
}

#contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.contact-content.visible {
    animation: slideUp 0.8s ease forwards;
}

.contact-text {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.contact-button {
    display: inline-block;
    padding: 20px 60px;
    background: white;
    color: #1a5f3f;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================
   フッター
   ============================ */
footer {
    background: #1a2f23;
    color: #fff;
    padding: 60px 0 30px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

/* 左：会社情報 */
.footer-company h4 {
    font-size: 20px;
    color: #7fb842;
}

.company-info-list {
    list-style: none;
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.company-info-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.company-info-list li:last-child {
    border-bottom: none;
}

.company-info-list li span {
    display: inline-block;
    min-width: 80px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* 電話番号にリンクを張る場合用 */
.company-info-list a {
    color: inherit;
    text-decoration: none;
}

.company-info-list a:hover {
    text-decoration: underline;
}

/* 中央・右：リンク共通 */
.footer-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #7fb842;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ロゴ＋会社名を横並びに */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* ロゴ画像 */
.footer-logo {
    width: 56px;
    height: auto;
    display: block;
}

/* 会社名＋タグライン */
.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ===========================
   Footer 会社情報（dl / dt / dd）
   =========================== */
.footer-company-info {
    margin-top: 16px;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: start;
}

.footer-info-row dt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding-top: 2px;
}

.footer-info-row dd {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.7;
}

/* 下部コピーライト */
.footer-bottom {
    margin-top: 30px;
    padding: 20px 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ============================
   ToTop ボタン
   ============================ */
.to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5f3f, #7fb842);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.3);
}

.to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 95, 63, 0.5);
}

/* ============================
   アニメーション定義
   ============================ */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes scrollMove {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

@keyframes logoWave {
    0%, 100% {
        transform: perspective(400px) rotateY(0);
    }
    25% {
        transform: perspective(400px) rotateY(-15deg);
    }
    50% {
        transform: perspective(400px) rotateY(15deg);
    }
    75% {
        transform: perspective(400px) rotateY(-10deg);
    }
}

/* ============================
   サブページ共通スタイル
   ============================ */
.page-main {
    padding-top: 90px;
    min-height: 100vh;
}

.page-hero {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 300; /* contact-hero用に追加 */
}

.page-content {
    background: white;
    padding: 80px 0 120px;
}

/* プライバシーポリシー専用スタイル */
.privacy-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 30px;
    background: #f8fdf9;
    border-left: 4px solid #1a5f3f;
    border-radius: 8px;
    line-height: 2;
    color: #333;
}

.privacy-section {
    max-width: 900px;
    margin: 0 auto 50px;
}

.privacy-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7fb842;
}

.privacy-section p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
}

.privacy-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.privacy-list li {
    font-size: 16px;
    line-height: 2;
    color: #555;
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.privacy-list li::before {
    content: '●';
    position: absolute;
    left: 10px;
    color: #7fb842;
    font-size: 12px;
}

.contact-info-box {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #f8fdf9;
    border-radius: 12px;
    border: 1px solid #e6f2e8;
}

.contact-company {
    font-size: 20px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 15px;
}

.contact-address {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.contact-tel {
    font-size: 16px;
    font-weight: 600;
    color: #1a5f3f;
    margin-bottom: 10px;
}

.contact-email {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.contact-note {
    font-size: 14px;
    color: #777;
}

.policy-date {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 8px;
    text-align: right;
}

.policy-date p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.back-to-top-link {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, #1a5f3f, #2d8659);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 63, 0.3);
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 95, 63, 0.4);
}

/* ページフッターリンク */
.page-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e8f5e9;
}

.page-footer-btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
}

.page-footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 184, 66, 0.5);
}

.page-footer-btn-secondary {
    background: white;
    color: #1a5f3f;
    border: 2px solid #7fb842;
    box-shadow: none;
}

.page-footer-btn-secondary:hover {
    background: #f8fdf9;
    border-color: #1a5f3f;
}

/* ============================
   アクセスページ専用スタイル
   ============================ */
.access-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.access-info {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(26, 95, 63, 0.08);
}

.access-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #7fb842;
}

.access-detail-group {
    margin-bottom: 30px;
}

.access-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #7fb842;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.access-detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.access-tel-link {
    color: #1a5f3f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.access-tel-link:hover {
    color: #7fb842;
}

.access-station-list {
    list-style: none;
    padding: 0;
}

.access-station-list li {
    font-size: 15px;
    line-height: 2;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.access-station-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #7fb842;
    font-size: 10px;
}

.access-note {
    font-size: 14px;
    color: #999;
}

.access-map {
    position: sticky;
    top: 100px;
}

/* ============================
   スタッフ紹介ページ専用スタイル
   ============================ */
.staff-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(26, 95, 63, 0.08);
    border: 1px solid rgba(122, 179, 96, 0.15);
    transition: all 0.3s ease;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(26, 95, 63, 0.15);
}

.staff-photo-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e8f5e9;
}

.staff-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 8px;
}

.staff-position {
    font-size: 14px;
    color: #7fb842;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.staff-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

/* ============================
   事業詳細ページ専用スタイル
   ============================ */
/* ミッションセクション */
.business-mission {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
    border-radius: 12px;
}

.business-mission-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.business-mission-subtitle {
    font-size: 20px;
    color: #7fb842;
    font-weight: 600;
    letter-spacing: 2px;
}

/* イントロダクション */
.business-intro {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 30px;
    background: #f8fdf9;
    border-left: 4px solid #1a5f3f;
    border-radius: 8px;
}

.business-intro p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

.business-intro p:last-child {
    margin-bottom: 0;
}

/* 事業紹介セクション */
.business-services {
    max-width: 900px;
    margin: 0 auto;
}

.services-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a5f3f;
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 3px solid #7fb842;
}

/* 各事業アイテム */
.service-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(26, 95, 63, 0.08);
    border: 1px solid rgba(122, 179, 96, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 各事業アイテムの背景画像（右側に円形で配置） */
.service-item-01::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../image/service-01.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    border-radius: 50%;
    border: 3px solid rgba(127, 184, 66, 0.3);
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.15);
    pointer-events: none;
    z-index: 0;
}

.service-item-02::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../image/service-02.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    border-radius: 50%;
    border: 3px solid rgba(127, 184, 66, 0.3);
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.15);
    pointer-events: none;
    z-index: 0;
}

.service-item-03::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../image/service-03.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    border-radius: 50%;
    border: 3px solid rgba(127, 184, 66, 0.3);
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.15);
    pointer-events: none;
    z-index: 0;
}

.service-item-04::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../image/service-04.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    border-radius: 50%;
    border: 3px solid rgba(127, 184, 66, 0.3);
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.15);
    pointer-events: none;
    z-index: 0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 95, 63, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    max-width: calc(100% - 260px);
}

.service-number {
    font-size: 32px;
    font-weight: 900;
    color: #7fb842;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fdf9, #e8f5e9);
    border-radius: 50%;
    border: 3px solid #7fb842;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a5f3f;
    line-height: 1.4;
}

.service-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    max-width: calc(100% - 260px);
}

.service-content p {
    font-size: 16px;
    line-height: 2;
    color: #555;
}

/* サービスタグ */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
    max-width: calc(100% - 260px);
}

.service-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8fdf9;
    color: #1a5f3f;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #7fb842;
}

/* お問い合わせCTA */
.business-cta {
    max-width: 800px;
    margin: 80px auto 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.3);
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-contact {
    display: inline-block;
    padding: 15px 50px;
    background: white;
    color: #1a5f3f;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================
   レスポンシブ対応
   ============================ */
@media (max-width: 768px) {
    /* オープニングアニメーションのスマホ対応 */
    .stars-container {
        width: 180px;
        height: 180px;
    }
    
    .star {
        width: 30px;
        height: 30px;
    }

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

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        padding: 100px 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .header-container {
        padding: 15px 20px;
    }

    .section-inner {
        padding: 0 24px; /* 20px → 24px に余白を拡大 */
    }

    /* ========================================
       スマホ表示の包括的改善
    ======================================== */
    
    /* 全体のセクション間余白を調整 */
    section {
        padding: 60px 0;
    }

    /* セクションタイトルは中央揃えを維持 */
    .section-title {
        font-size: 28px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 30px → 10px に詰める */
    }

    .section-subtitle {
        text-align: center !important; /* 中央揃えを維持（優先） */
        font-size: 12px;
        margin-bottom: 40px; /* サブタイトル下の余白 */
    }

    /* 本文テキストを左揃えに、行間を改善 */
    section p:not(.section-subtitle),
    .section-inner p:not(.section-subtitle),
    .business-intro p,
    .greeting-text p {
        text-align: left;
        font-size: 16px; /* 15px → 16px に統一 */
        line-height: 1.8; /* 行間を広げる */
        margin-bottom: 16px;
    }

    /* 小見出しのサイズを統一 */
    section h3,
    .section-inner h3 {
        font-size: 22px; /* 20px → 22px に統一 */
        text-align: left;
        margin-bottom: 16px;
    }

    /* ボタンは中央揃えを維持（目立たせるため） */
    .hero-contact-btn,
    .btn-contact,
    .cta-button {
        display: block;
        margin: 0 auto;
    }

    /* ヒーローエリアのスマホ対応 */
    .hero-image {
        background-position: 70% center;
        background-size: cover;
    }

    .hero-content {
        padding: 0 20px;
        text-align: center;
    }

    .hero-subtitle {
        padding-left: 0;
        font-size: 12px;
        position: static; /* relative を解除してバーを完全に非表示 */
    }

    .hero-subtitle::before {
        display: none !important; /* 確実に非表示にする */
        content: none !important; /* contentも削除 */
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px; /* 15px → 16px に統一 */
        margin-bottom: 30px;
        line-height: 1.8; /* 行間を広げる */
    }

    .hero-contact-btn {
        padding: 14px 35px;
        font-size: 14px;
    }

    /* Scrollインジケーターをスマホでは非表示 */
    .hero-scroll {
        display: none;
    }

    /* 実績数値セクションのレスポンシブ */
    .stats-title {
        font-size: 28px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 余白を詰める */
    }

    .stats-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 40px;
        text-align: center !important; /* 中央揃えを維持（優先） */
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 56px;
    }

    .stat-label {
        font-size: 18px;
    }

    /* お知らせカードのレスポンシブ */
    .news-card {
        padding: 20px;
    }

    .news-card .news-content {
        font-size: 14px;
    }

    /* 会社概要・代表挨拶の最適化 */
    .company-text,
    .greeting-text {
        text-align: left;
        font-size: 16px;
        line-height: 1.8;
    }

    .company-grid,
    .greeting-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .company-image {
        max-width: 100%;
    }

    .president-photo {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }

    .president-photo img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .facility-card {
        min-width: 300px;
    }

    /* アクセスページのレスポンシブ */
    .access-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .access-map {
        position: static;
    }

    /* スタッフページのレスポンシブ */
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .page-footer-btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 30px 20px 0;
    }

    .to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .ring-container {
        display: none;
    }

    .facilities-slider {
        display: none;
    }

    .greeting-left {
        align-items: center;
    }

    .career-box {
        width: 100%;
    }

    .company-info-list li span {
        min-width: 90px;
    }

    /* サブページのレスポンシブ */
    .page-main {
        padding-top: 70px;
    }

    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero-content {
        padding: 0 20px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .page-content {
        padding: 60px 0 80px;
    }

    .privacy-intro,
    .privacy-section,
    .contact-info-box,
    .policy-date {
        padding: 20px;
    }

    .privacy-heading {
        font-size: 20px;
    }

    .btn-back {
        padding: 12px 40px;
        font-size: 14px;
    }

    /* 事業詳細ページのレスポンシブ */
    .business-mission {
        padding: 30px 24px;
        text-align: center; /* 中央揃えを維持 */
    }

    .business-mission-title {
        font-size: 24px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 余白を詰める */
    }

    .business-mission-subtitle {
        font-size: 16px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 30px;
    }

    .services-main-title {
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center; /* 中央揃えを維持 */
    }

    .service-item {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        max-width: 100%;
    }

    .service-number {
        font-size: 24px;
        min-width: 50px;
        height: 50px;
    }

    .service-title {
        font-size: 22px; /* 20px → 22px */
        text-align: left;
    }

    .service-content {
        max-width: 100%;
    }

    .service-content p {
        font-size: 16px; /* 15px → 16px */
        text-align: left;
        line-height: 1.8;
    }

    .service-tags {
        gap: 8px;
        max-width: 100%;
    }

    .service-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .business-cta {
        padding: 40px 28px; /* 35px 25px → 40px 28px */
        margin: 60px auto 40px;
    }

    .cta-title {
        font-size: 24px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 余白を詰める */
    }

    .cta-text {
        font-size: 16px;
        text-align: center; /* 中央揃えを維持 */
        line-height: 1.8;
    }

    .btn-contact {
        padding: 12px 40px;
        font-size: 14px;
    }

    /* モバイルでの背景画像調整 */
    .service-item-01::after,
    .service-item-02::after,
    .service-item-03::after,
    .service-item-04::after {
        width: 120px;
        height: 120px;
        opacity: 0.15;
        right: 15px;
        border-width: 2px;
    }

    /* お問い合わせフォームのレスポンシブ */
    .contact-hero {
        padding: 60px 0 40px;
        padding-top: calc(70px + 60px); /* page-mainのpadding-top 70px + 元のpadding-top 60px */
    }

    .contact-hero h1,
    .contact-hero-content h1,
    .contact-hero .page-title {
        font-size: 32px;
        text-align: center; /* 中央揃えを維持 */
    }

    .contact-hero p,
    .contact-hero-content p,
    .contact-hero .page-subtitle {
        text-align: center; /* 中央揃えを維持 */
        font-size: 16px;
        line-height: 1.8;
    }

    .contact-form-section {
        padding: 60px 0 80px;
    }

    .form-container {
        padding: 40px 28px; /* 25px → 28px */
    }

    .form-group label {
        font-size: 16px; /* 15px → 16px */
        text-align: left;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* 15px → 16px */
    }

    .submit-btn {
        padding: 16px 35px;
        font-size: 15px;
    }

    /* 確認画面のレスポンシブ */
    .confirm-container {
        padding: 40px 25px;
    }

    .form-group-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .back-btn,
    .form-group-buttons .submit-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 15px;
    }

    .confirm-label {
        font-size: 14px;
    }

    .confirm-value {
        font-size: 15px;
        padding: 12px 15px;
    }

    /* 完了画面のレスポンシブ */
    .thanks-container {
        padding: 50px 25px;
    }

    .thanks-icon {
        font-size: 60px;
    }

    .thanks-title {
        font-size: 22px;
    }

    .thanks-message p {
        font-size: 15px;
    }

    .thanks-message .pc-only {
        display: none;
    }

    .thanks-note {
        padding: 20px;
        text-align: left;
    }

    .thanks-note p {
        font-size: 13px;
    }

    .btn-top {
        padding: 16px 40px;
        font-size: 15px;
        width: 100%;
    }
}

/* ========================================
   事業紹介ページ（business.html）専用スタイル
======================================== */

/* パートナーシップメッセージ */
.partnership-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #1a5f3f;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.partnership-message h3 {
    color: #1a5f3f;
    font-size: 24px;
    margin-bottom: 15px;
}

.partnership-message p {
    color: #333;
    line-height: 1.8;
}

/* ビジネスミッション */
.business-mission {
    text-align: center;
    margin: 60px 0 40px;
}

.business-mission-title {
    font-size: 36px;
    color: #1a5f3f;
    margin-bottom: 10px;
    font-weight: bold;
}

.business-mission-subtitle {
    font-size: 18px;
    color: #666;
}

.business-intro {
    margin: 40px 0;
    line-height: 1.9;
    color: #333;
}

.business-intro p {
    margin-bottom: 20px;
}

/* 承継の流れセクション */
.process-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 60px 0;
}

.process-title {
    text-align: center;
    font-size: 32px;
    color: #1a5f3f;
    margin-bottom: 10px;
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.process-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #1a5f3f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.process-content h3 {
    color: #1a5f3f;
    font-size: 20px;
    margin-bottom: 10px;
}

.process-content p {
    color: #555;
    line-height: 1.7;
}

/* FAQセクション */
.faq-section {
    margin: 60px 0;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    color: #1a5f3f;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #1a5f3f;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e8f5e9;
}

.faq-question i {
    font-size: 24px;
    color: #1a5f3f;
}

.faq-answer {
    padding: 20px;
    background: white;
    color: #333;
    line-height: 1.8;
}

/* 事業紹介ページのレスポンシブ対応（追加） */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 15px;
    }

    .partnership-message {
        padding: 24px;
        text-align: center; /* 中央揃えを維持 */
    }

    .partnership-message h3 {
        font-size: 22px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 余白を詰める */
    }

    .partnership-message p {
        text-align: left; /* 本文は左揃え */
        font-size: 16px;
        line-height: 1.8;
    }

    .process-title,
    .faq-title {
        font-size: 26px;
        text-align: center; /* 中央揃えを維持 */
        margin-bottom: 10px; /* 余白を詰める */
    }

    .faq-answer {
        font-size: 16px;
        line-height: 1.8;
        text-align: left;
    }
}

/* ============================
   iPhone SEなど小型スマートフォン対応
   ============================ */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .page-title {
        font-size: 32px;
    }
}

/* ============================
   お問い合わせフォームページ
   ============================ */
/* ヒーローセクション */
.contact-hero {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    padding: 80px 0 60px;
    padding-top: calc(90px + 80px); /* page-mainのpadding-top 90px + 元のpadding-top 80px */
    text-align: center;
    color: white;
}

.contact-hero-content h1,
.contact-hero .page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* フォームセクション */
.contact-form-section {
    background: #f8fdf9;
    padding: 80px 0 100px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro p {
    font-size: 16px;
    color: #555;
    line-height: 2;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.1);
}

/* フォームグループ */
.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a5f3f;
    margin-bottom: 12px;
}

.required {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

.optional {
    display: inline-block;
    background: #95a5a6;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7fb842;
    box-shadow: 0 0 0 3px rgba(127, 184, 66, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.8;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 25px;
}

.submit-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
    letter-spacing: 1px;
}

.submit-btn i {
    margin-right: 8px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 184, 66, 0.5);
}

/* フォーム注記 */
.form-note {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.form-note p {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

.form-note a {
    color: #1a5f3f;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-note a:hover {
    color: #7fb842;
}

/* ============================
   お問い合わせ確認画面（confirm.php）
   ============================ */
/* 確認画面用コンテナ */
.confirm-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.1);
}

/* 確認画面フォームグループ */
.confirm-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8f4ec;
}

.confirm-group:last-of-type {
    border-bottom: none;
    margin-bottom: 45px;
}

/* 確認画面ラベル */
.confirm-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a5f3f;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 確認画面の値表示 */
.confirm-value {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding: 15px 20px;
    background: #f8fdf9;
    border-radius: 8px;
    border-left: 4px solid #7fb842;
}

/* 改行対応 */
.confirm-value.nl2br {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 未入力の場合 */
.empty-value {
    color: #999;
    font-style: italic;
}

/* ボタンエリア */
.form-group-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 45px;
}

/* 修正するボタン */
.back-btn {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #1a5f3f;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #1a5f3f;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.back-btn i {
    margin-right: 8px;
}

.back-btn:hover {
    background: #1a5f3f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 63, 0.3);
}

/* 送信するボタン（確認画面用） */
.form-group-buttons .submit-btn {
    padding: 16px 45px;
}

/* ============================
   お問い合わせ完了画面（thanks.php）
   ============================ */
/* 完了画面コンテナ */
.thanks-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 80px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.1);
    text-align: center;
}

/* 成功アイコン */
.thanks-icon {
    font-size: 80px;
    color: #7fb842;
    margin-bottom: 30px;
    animation: checkAnimation 0.6s ease;
}

@keyframes checkAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 完了タイトル */
.thanks-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 30px;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* 完了メッセージ */
.thanks-message {
    margin-bottom: 40px;
}

.thanks-message p {
    font-size: 16px;
    color: #555;
    line-height: 2;
    margin-bottom: 15px;
}

.thanks-message .pc-only {
    display: inline;
}

/* 注記エリア */
.thanks-note {
    background: #f8fdf9;
    border-left: 4px solid #7fb842;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 45px;
}

.thanks-note p {
    font-size: 14px;
    color: #1a5f3f;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.8;
}

.thanks-note p:last-child {
    margin-bottom: 0;
}

.thanks-note i {
    margin-right: 8px;
    color: #7fb842;
}

/* トップに戻るボタン */
.thanks-button {
    margin-top: 45px;
}

.btn-top {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #7fb842 0%, #a3d944 100%);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(127, 184, 66, 0.3);
    letter-spacing: 1px;
}

.btn-top i {
    margin-right: 8px;
}

.btn-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 184, 66, 0.5);
}
