@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');

:root {
    --color-dark: #002d49;
    --color-medium: #4E7185;
    --color-light: #DFDDDA;
    --color-black: #222;
    --color-white: #fff;
    --fs-h2: 24px;
    --fs-h3: 21px;
    --fs-base: 16px;
    --fs-lead: 18px;
    --fs-small: 14px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--color-dark);
    font-size: var(--fs-base);
    line-height: 1.75;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    background: var(--color-dark);
    width: 240px;
    height: 100%;
    z-index: 100;
}

.sidebar header {
    display: block;
    width: 122px;
    height: 72px;
    background-image: url(../image/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 52px 52px 52px 60px;
    font-size: 0px;
}

.sidebar ul a {
    display: block;
    height: 100%;
    width: 100%;
    line-height: 60px;
    color: var(--color-light);
    padding-left: 42px;
    position: relative;
}

.sidebar ul li.current a {
    font-weight: 700;
}

.sidebar ul li.current a::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: var(--fs-h2);
    background-color: var(--color-light);
}

.hamburger { display: none; }

main {
    margin-left: 240px;
    background-color: var(--color-white);
    min-height: 100vh;
}

section {
    padding: 100px 50px;
    min-height: 100vh;
}

.concept-container,
.house-container,
.flow-container,
.staff-container,
.company-container,
.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.concept-sidebar,
.house-sidebar,
.event-sidebar,
.staff-sidebar,
.company-sidebar,
.contact-sidebar,
.flow-sidebar {
    position: sticky;
    top: 60px;
    width: 120px;
    flex-shrink: 0;
    height: auto;
    max-height: 100vh;
}

.concept-sidebar img,
.house-sidebar img,
.event-sidebar img,
.staff-sidebar img,
.company-sidebar img,
.contact-sidebar img,
.flow-sidebar img {
    width: 48px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.concept-content,
.house-content,
.flow-steps,
.staff-content,
.company-content,
.contact-content {
    flex: 1;
}

/* SNSリンクの箱全体 */
.sidebar ul li.sns-link a {
    display: flex;             /* アイコンと文字を横並びに */
    align-items: center;       /* 上下の中心を揃える */
    font-size: 12px;           /* 文字サイズ */
    color:var(--color-white);               /* 少し控えめな色 */
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 42px;        /* 他のメニューと左端を揃える */
    transition: color 0.3s;
}

.sidebar ul li.sns-link a:hover {
    color: #fff;               /* マウスを乗せたら白く */
}

/* アイコン画像（SVG）の設定 */
.sns-icon {
    width: 20px;               /* アイコンの幅 */
    height: 20px;              /* アイコンの高さ */
    margin-right: 12px;        /* 文字との隙間 */
    fill: currentColor;        /* 文字色と同じ色になる魔法の設定 */
}

#top {
    padding: 0;
    padding-bottom: 80px;
}

.main-visual {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

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

.top-message {
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.top-message h2 {
    font-size: var(--fs-h2);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.marker-line {
    background: linear-gradient(transparent 60%, #e6e2de 60%);
    display: inline;
    padding-bottom: 5px;
}

.top-message h2 b {
    font-weight: 700;
}

.top-message .sub-title {
    font-size: var(--fs-h2);
    color: var(--color-dark);
    margin-bottom: 50px;
    font-weight: 400;
}

.top-message .description {
    color: var(--color-dark);
    margin-bottom: 40px;
    font-weight: 400;
}

.service-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-box {
    width: 300px;
    display: block;
    color: var(--color-dark);
    text-align: center;
    cursor: default;
}

.service-box .img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    margin-bottom: 12px;
}

.link-box .img-wrap {
    border: 5px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-box .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    transform: none !important;
    transition: none;
}

.link-box:hover .img-wrap {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-box:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--color-white);
    font-size: var(--fs-h3);
    font-weight: 200;
}

.overlay-arrow {
    width: 30px;
    height: 30px;
    border-bottom: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
    transform: rotate(45deg);
    position: relative;
    margin-top: -10px;
}

.overlay-arrow::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
}

#concept {
    background-image: url(../image/concept-bg.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    width: 100%;
    padding: 100px 0;
}

.concept-content {
    text-align: center;
    margin-left: -120px;
}

.concept-head {
    padding-top: 60px;
    margin-bottom: 60px;
}

.concept-head h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
}

.text-block {
    margin-bottom: 60px;
}

.last-block {
    margin-bottom: 160px;
}

#house {
    width: 100%;
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../image/house-bg.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.house-content {
    padding-left: 40px;
    padding-right: 40px;
    color: var(--color-dark);
}

.house-intro-area {
    position: relative;
    margin-bottom: 80px;
    min-height: 700px;
    display: flex;
}

.house-text {
    width: 860px;
    z-index: 2;
}

.main-lead {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 2;
    margin-bottom: 60px;
    color: var(--color-dark);
}

.concern-list {
    margin-bottom: 24px;
}

.answer-text {
    margin-bottom: 60px;
}

.highlight-box {
    margin: 0 0 40px 0;
    display: inline-block;
}

.highlight-box p {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 2;
    color: var(--color-dark);
    margin: 0;
}

.roles-text {
    width: 860px;
}

.circle-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle-img {
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-1 {
    width: 305px;
    height: 305px;
    top: 180px;
    right: 0;
    z-index: 1;
}

.img-2 {
    width: 185px;
    height: 185px;
    top: 480px;
    right: 240px;
    z-index: 2;
}

.house-nav-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 860px;
    margin: 120px 0 240px 0;
}

.nav-item {
    width: 272px;
    height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: 1px solid var(--color-dark);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.nav-item p {
    font-family: "Noto Serif JP", serif;
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.nav-item .arrow-icon {
    width: 30px;
    height: 30px;
    border-bottom: 1px solid var(--color-dark);
    border-right: 1px solid var(--color-dark);
    transform: rotate(45deg);
    position: absolute;
    bottom: -50px;
    left: 50%;
    margin-left: -15px;
    margin-top: 0;
}

.nav-item .arrow-icon::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--color-dark);
    border-right: 1px solid var(--color-dark);
}

.nav-item .arrow-icon::before {
    display: none;
}

.detail-card {
    background: var(--color-white);
    border: 1px solid var(--color-dark);
    padding: 60px 0 0 0;
    position: relative;
    width: 860px;
    margin-top: 172px;
    scroll-margin-top: 120px;
}

.detail-card .card-title {
    text-align: center;
    width: 568px;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: var(--fs-h2);
    border: 1px solid var(--color-dark);
    display: inline-block;
    padding: 30px 60px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
}

.card-lead {
    text-align: center;
    font-size: var(--fs-h3);
    margin-bottom: 60px;
    margin-top: 60px;
}

.spec-list {
    margin-bottom: 60px;
    padding: 0 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 24px;
}

.spec-icon {
    width: 168px;
    height: 168px;
    background: var(--color-medium);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    font-size: var(--fs-lead);
    line-height: 0.5;
}

.spec-icon .small {
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 6px;
    font-weight: 400;
}

.spec-desc {
    width: 484px;
    flex-shrink: 0;
    text-align: left;
}

.spec-desc h4 {
    color: var(--color-dark);
    margin-bottom: 10px;
}

.spec-desc p {
    font-size: var(--fs-small);
    line-height: 1.8;
}

.card-footer-text {
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 60px;
    padding: 0 20px;
}

.card-bottom-images {
    display: flex;
    width: 100%;
    background-color: var(--color-dark);
    gap: 0.5px;
    margin-bottom: -1px;
}

.card-bottom-images img {
    flex: 1;
    min-width: 0;
    height: 160px;
    object-fit: cover;
    display: block;
}

.comfortable-intro {
    text-align: center;
    margin-bottom: 100px;
    margin-top: 60px;
}

.comfortable-intro p {
    color: var(--color-dark);
    margin: 0;
}

.comfortable-intro .bold {
    font-weight: 700;
    font-size: 16px;
}

.comfortable-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 120px;
    padding: 0 80px;
}

.comfortable-text {
    width: 65%;
    padding-right: 20px;
}

.marker-title {
    font-family: "Noto Serif JP", serif;
    font-size: var(--fs-h3);
    color: var(--color-dark);
    margin-bottom: 30px;
    display: inline-block;
    background: linear-gradient(transparent 60%, var(--color-light) 60%);
    padding-bottom: 2px;
    letter-spacing: 0.05em;
}

.comfortable-images {
    width: 35%;
    position: relative;
    height: 280px;
}

.comfortable-images img {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.c-img-main {
    width: 168px;
    height: 168px;
    top: 0;
    right: 0;
    z-index: 1;
}

.c-img-sub {
    width: 108px;
    height: 108px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.comfortable-images.type-reverse .c-img-main {
    right: auto;
    left: 12px;
}

.comfortable-images.type-reverse .c-img-sub {
    left: auto;
    right: 12px;
    bottom: 12px;
}

#flow {
    width: 100%;
    padding: 120px 0;
    background-color: var(--color-light);
    position: relative;
}

/* =========================================
   イベントセクション（幅・画像調整済み）
   ========================================= */
#event {
    padding: 120px 0 180px 0;
    min-height: auto !important;
    background-color: var(--color-white);
}

.event-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

/* コンテンツエリア */
.event-content {
    flex: 1;
    margin-left: 40px;
    padding-right: 20px;
}

/* 導入文 */
.event-intro {
    /* ★幅を上のセクション（staff-box: 867px）と合わせる */
    width: 867px;
    max-width: 100%; /* 画面が狭い時は100% */
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 2;
    color: var(--color-dark);
}

/* キャンペーン・固定バナーエリア */
.campaign-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    
    /* ★幅を上のセクションと合わせる */
    width: 867px;
    max-width: 100%;
    
    margin-top: 0;
    margin-bottom: 0;
}

/* --- 以下、バナーの中身（変更なし） --- */
.campaign-box {
    border: 2px solid var(--color-dark);
    border-radius: 16px;
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.campaign-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,45,73, 0.15);
}

.camp-header {
    margin-bottom: 15px;
    text-align: center;
}

.camp-badge {
    display: inline-block;
    background-color: #c7243a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.campaign-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.4;
    margin: 0;
}

.camp-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: center;
}

.camp-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: var(--color-dark);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.camp-btn:hover {
    opacity: 0.8;
}

.insta-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}


#flow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../image/flow-bg.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    pointer-events: none;
}

.flow-steps {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 900px;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 63px;
}

.flow-row:last-child {
    margin-bottom: 0;
}

.step-box {
    width: 250px;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 12px;
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    margin-left: 80px;
}

.step-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 24px;
    border-top: 15px solid var(--color-dark);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.flow-row:last-child .step-box::after {
    display: none;
}

.step-num {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 9px;
    opacity: 0.9;
}

.step-content h3 {
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.05em;
}

.step-content .en {
    font-size: 13px;
    font-weight: 400;
    font-family: "Inter", sans-serif;
    text-align: center;
    display: block;
    white-space: nowrap;
    margin-bottom: 30px;
}

.step-desc {
    padding-top: 0;
    width: 415px;
}

.step-desc h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.step-desc p {
    margin: 0;
    text-align: justify;
}

/* =========================================
   スタッフセクションのデザイン変更
   ========================================= */

/* セクション全体の背景 */
#staff {
    background-image: url(../image/staff-bg.jpg); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    padding: 100px 0; 
    width: 100%;
}

/* サイドバーの位置調整 */
.staff-sidebar {
    padding-top: 60px; /* タイトル位置の微調整 */
}

/* コンテンツエリアの調整 */
.staff-content {
    margin-left: 40px;
    max-width: 900px;
    flex: 1;
}

/* 新しい白いボックスのスタイル */
.staff-box {
    background-color: #fff;
    border-radius: 30px; /* 角丸 */
    padding: 60px 80px 120px 80px; /* ボックス内の余白 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 薄い影 */
    width: 867px;
}

/* 導入文のスタイル */
.staff-intro {
    max-width: 90%;
    margin: 0 auto 60px;
    color: var(--color-dark);
    font-weight: 700;
    line-height: 2;
}

/* スタッフリストをグリッドレイアウトに変更 */
.staff-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列にする */
    gap: 60px 40px; /* 縦横の間隔 (縦60px, 横40px) */
    flex-direction: unset; /* 既存のflex設定を解除 */
}

.s-img {
    width: 80%; 
    margin: 0 auto 12px;
    overflow: hidden;
    display: block;
}

.s-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s ease;
}

.staff-item:hover .s-img img {
    transform: scale(1.1);
}

.s-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* 名前のスタイル */
.s-name {
    width: 80%;
    margin: 0 auto 10px; 
    padding-top: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    font-family: "Inter", sans-serif;
}

/* 情報エリアのスタイル */
.s-info {
    width: 80%;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
}

.s-info dt {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 50px; /* 役職名の高さを揃える */
}

.hobby-title {
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
    margin-top: 0;
}

.s-info dd {
    margin: 0;
}


#company {
    background-color: #E6E6E6;
    padding: 172px 0;
    min-height: auto;
}

.company-sidebar img {
    margin-top: -60px;
}

.company-content {
    margin-left: 80px;
    max-width: 900px;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.company-row {
    display: flex;
    align-items: flex-start;
}

.company-row dt {
    width: 120px;
    color: var(--color-dark);
    line-height: 1.8;
    flex-shrink: 0;
    font-weight: 700;
}

.company-row dd {
    flex: 1;
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--color-dark);
    margin: 0;
}

.company-row .ja {
    font-weight: 700;
    margin-bottom: 5px;
}

.license {
    font-size: 13px;
    font-weight: 400;
}

.company-row .en {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    font-family: "Inter", sans-serif;
    margin-bottom: 0;
}

.loc-block {
    margin-bottom: 20px;
}

.loc-block:last-child {
    margin-bottom: 0;
}

.loc-block .label {
    display: inline-block;
    font-weight: 700;
    margin-right: 5px;
}

#contact {
    background-color: #222222;
    color: var(--color-white);
    padding: 100px 0;
}

.contact-content {
    margin-left: 40px;
    max-width: 900px;
}

.contact-intro {
    margin-bottom: 60px;
    font-weight: 700;
    font-size: 16px;
    margin-left: 180px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: flex;
    align-items: flex-start;
}

.form-label {
    width: 180px;
    text-align: right;
    padding-right: 30px;
    padding-top: 10px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}

.form-label .en {
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-family: "Inter", sans-serif;
    opacity: 0.8;
}

.form-input {
    flex: 1;
}

.form-input input[type="text"],
.form-input input[type="email"],
.form-input textarea {
    width: 100%;
    background-color: var(--color-white);
    border: none;
    border-radius: 0;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    appearance: none;
    outline: none;
}

.form-input textarea {
    resize: vertical;
    height: 200px;
}

.form-btn {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.form-btn button {
    background-color: #6a8ccb;
    color: var(--color-white);
    border: none;
    padding: 20px 0;
    width: 300px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-btn button:hover {
    opacity: 0.8;
}

#footer {
    background-color: #222222;
    color: var(--color-white);
    padding: 40px 0 60px;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 12px;
    opacity: 0.6;
    font-family: "Inter", sans-serif;
}

/* --- アニメーション用：ふわっと浮き上がる --- */
.fade-up {
    opacity: 0;                   /* 最初は透明 */
    transform: translateY(50px);  /* 最初は50px下にいる */
    transition: opacity 1.5s ease, transform 1.5s ease; /* 1.5秒かけて変化 */
}

/* JSでこのクラスがつくと表示される */
.fade-up.visible {
    opacity: 1;                   /* 不透明になる */
    transform: translateY(0);     /* 元の位置に戻る */
}

/* --- 画像のホバーエフェクト（ゆっくりズーム） --- */
/* 枠の設定（はみ出した分を隠す） */
.img-wrap, .s-img, .staff-group-img {
    overflow: hidden; /* 必須 */
    display: block;   /* 念のため */
}

/* 画像自体の設定 */
.img-wrap img, .s-img img, .staff-group-img img {
    transition: transform 0.6s ease; /* 0.6秒かけて変化 */
}

/* ホバーした時の動き（1.1倍に拡大） */
.service-box:hover .img-wrap img,
.link-box:hover .img-wrap img,
.staff-item:hover .s-img img {
    transform: scale(1.1);
}

/* =========================================
   アニメーション定義：横からスライドイン
   ========================================= */

/* 共通設定：動きの滑らかさ */
.slide-in {
    opacity: 0;
    transition: transform 1.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.0s ease;
}

/* 右から入ってくる設定（大きい丸用） */
.from-right {
    transform: translateX(150px); /* 右に150pxずらしておく */
}

/* 左から入ってくる設定（小さい丸用） */
.from-left {
    transform: translateX(-150px); /* 左に150pxずらしておく */
}

/* --- 表示された時の状態（元の位置に戻る） --- */
.slide-in.visible {
    opacity: 1;
    transform: translateX(0); /* ズレを0に戻す */
}

/* 時間差：2枚目は少し遅れて入ってくる */
.img-2.slide-in.visible {
    transition-delay: 0.2s;
}

/* --- 心地よい暮らし：サブ画像の遅延設定 --- */
.c-img-sub.slide-in.visible {
    transition-delay: 0.2s; /* 0.2秒遅れてついてくる */
}

/* =========================================
   サンクスポップアップのデザイン
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景を少し暗く */
    display: none; /* 最初は隠す */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 一番手前に */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ポップアップが表示された時の状態 */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 白い箱の部分 */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--color-dark); /* サイトのテーマカラー（紺） */
    color: #fff;
    padding: 15px;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

/* 右上の×ボタン */
.close-modal {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.modal-body {
    padding: 30px 20px;
}

.modal-body p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 閉じるボタン */
.close-btn {
    background: var(--color-dark);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}