/* 基本設定 */

:root {
    /* Colors */
    --primary-red: #ED1C24;
    --light-gray: #f5f5f5;
    --white: #FDFDFD;
    --text-color: #484242;

    /* Layout & Spacing */
    --container-max-width: 1200px;
    --s-size: clamp(140px, 25vw, 200px);
    --gap: 10px;

    /* Z-index */
    --z-header: 1000;
    --z-hero-fixed: 5;
    --z-overlay: 10;
    --z-contact: 20;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
}

body.is-fixed {
    overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    aspect-ratio: attr(width) / attr(height);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(237, 28, 36, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-header);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(237, 28, 36, 0.25);
    transform: translateY(-110%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.header.is-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

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

.logo {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--white);
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* Navigation & Hamburger */
.nav {
    display: flex;
    align-items: center;
    font-family: "Shippori Antique B1", sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-header) + 1);
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}


/* Hero Section */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden; 
    z-index: var(--z-hero-fixed);
}

.hero::before {
    content: '';
    position: fixed;
	display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	width: 100%;
	height: 100vh;
    background-repeat: no-repeat;
	background-position: 50% 50%;
	background-image: linear-gradient(135deg, rgba(237, 28, 36, 0.2), rgba(237, 28, 36, 0.01)), url('img/hero.webp');
	background-size: cover;
    z-index: -1;
    pointer-events: none; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
    padding-top: 30vh;
    margin-left: clamp(30px, 5vw, 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(22px, 3.5vw, 50px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 70px;
    white-space: nowrap;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 45%;
    right: -17vw;
    transform: translateY(-50%);
    width: clamp(300px, 57vw, 1000px);
    height: 90px;
    background: url('img/rogo.svg') no-repeat center/contain;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
    gap: 0.3vw;
    letter-spacing: 0.25em;
    margin-bottom: 25px;
    width: clamp(250px, 30vw, 350px);
}

.hero-subtitle span {
    display: block;
    line-height: 1.2;
    font-size: clamp(20px, 3vw, 35px);
}

.hero-label {
    display: block;
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 0.05em;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;

}

.hero-description {
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 0.1em;
    line-height: 1.5;

}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/*Hero section animation Trigger */
.hero-label,
.hero-subtitle,
.hero-description {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
}

.hero-label {
    animation-delay: 0.5s;
}

.hero-subtitle {
    animation-delay: 1.0s;
}

.hero-description {
    animation-delay: 1.5s;
}


/* Introduction */

.intro {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
    z-index: var(--z-overlay);
    overflow: hidden;
    text-align: center;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(120px, 27vw, 700px);
    font-weight: 900;
    color: rgba(237, 28, 36, 0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 9;
    font-family: "Shippori Antique B1", sans-serif;
    color: var(--text-color);
    max-width: 1500px;
    width: 100%;
    padding: 0 20px;
}

.intro-text {
    margin:10px 0 60px;
    font-size: clamp(22px, 4.2vw, 40px);
    line-height: 1.6;
    letter-spacing: 0.25em;
    font-weight: 700;
}

.intro-text span {
    position: relative;
    display: inline-block;
}

.animated-line::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: width 2.0s ease-out;
}

.intro.is-active .animated-line::after {
    width: 100%;
}

.intro-heading {
    color: var(--text-color);
    font-size: clamp(12px, 1.2vw, 20px);
    font-weight: 500;
    line-height: 2.2;
    letter-spacing: 0.1em;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    font-family: "Shippori Antique B1", sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--primary-red);
    font-weight: 500;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.3em;
}

.section-divider {
    position: relative;
    z-index: 10;
    background-color: var(--white);
    padding: 60px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.section-divider svg {
    width: 100%;
    max-width: 1000px;
    height: 60px;
}


/* Features */

.features {
    position: relative;
    padding: 100px 0 200px;
    background: var(--white);
    clip-path: ellipse(100% 85% at 50% 15%);
    overflow: visible;
    z-index: var(--z-overlay);
    text-align: center;
}

.features-grid {
    display: grid;
    font-family: "Shippori Antique B1", sans-serif;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px 50px;
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    opacity: 0;
    transform: scale(0.5);
}

.features.is-active .icon-circle {
    animation: popAndFlip 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.features.is-active .feature-body {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) .icon-circle,
.feature-card:nth-child(1) .feature-body {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}

.feature-card:nth-child(2) .icon-circle,
.feature-card:nth-child(2) .feature-body {
    transition-delay: 1.5s;
    animation-delay: 1.5s;
}

.feature-card:nth-child(3) .icon-circle,
.feature-card:nth-child(3) .feature-body {
    transition-delay: 2.0s;
    animation-delay: 2.0s;
}

.feature-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.feature-description {
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--text-color);
}

.cta-button-wrapper {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #1300BB;
    color: var(--white);
    padding: 18px 60px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(10, 0, 187, 0.8);
}

.cta-button:hover {
    background: rgba(10, 0, 187, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 0, 187, 0.3);
}


/*staff-parallax section*/

.staff-parallax {
    position: relative;
    margin-top: -150px;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
	overflow: hidden;
	clip-path: inset(0); 
	isolation: isolate;
    z-index: calc(var(--z-hero-fixed) + 1);
}

.staff-parallax::before {
    content: "";
    position: fixed;
	display: block;
    top: 0;
    left: 0;
	right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
	background-repeat: no-repeat;
	background-position: 20% 100%;
    background-image: url('gallery/gallery08.webp');
    background-size: cover; 
    z-index: 0; 
    pointer-events: none; 
}

.staff-parallax::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
	height: 100vh;
    background-image: radial-gradient(rgba(237, 28, 36, 0.1) 1px, transparent 1px);
    background-size: 3px 3px;
    z-index: 1;
}


/* Services */

.service-about {
    position: relative;
    padding: 120px 0;
    background: var(--white);
    overflow: hidden;
    text-align: center;
    z-index: 10;
}

.service-watermark {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(500px, 60vw, 600px);
    height: clamp(500px, 60vw, 600px);
    background-image: url('img/toko.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

.service-content {
    font-family: "Shippori Antique B1", sans-serif;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: inline-block;
    text-align: left;
}

.check-list li {
    position: relative;
    font-size: clamp(14px, 1.8vw, 22px);
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 40px;
    font-weight: 500;
    color: var(--text-color);
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-color);
    border-radius: 3px;
}

.service-about .check-list li {
    opacity: 0;
    transform: translateX(50px);
}

.service-about.is-active .check-list li {
    animation: slideInRight 0.8s ease-out forwards;
}

.service-about.is-active .check-list li:nth-child(1) {
    animation-delay: 0.5s;
}

.service-about.is-active .check-list li:nth-child(2) {
    animation-delay: 1.0s;
}

.service-about.is-active .check-list li:nth-child(3) {
    animation-delay: 1.5s;
}

.service-about.is-active .check-list li:nth-child(4) {
    animation-delay: 2.0s;
}

.service-highlight {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 2.0s ease-out;
    margin-bottom: 50px;
    font-size: clamp(19px, 3.5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.service-about.is-active .service-highlight, 
.service-about.is-active .service-description{
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2.5s;
}

.service-highlight p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.service-highlight .accent-red {
    color: var(--primary-red);
    font-size: clamp(30px, 5vw, 54px);
    margin: 0 0.2em;
}

.break-point {
    display: inline-block;
    white-space: nowrap;
}

.service-description {
	opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 2.0s ease-out;
    font-size: clamp(12px, 1.5vw, 18px);
    line-height: 2;
    letter-spacing: 0.1em;
}


/* Gallery */

.gallery {
    height: auto;
    min-height: 100vh;
    position: relative;
    padding: 60px 0;
    background: var(--white);
    overflow: hidden;
    z-index: 10;
}

.gallery-slider {
    padding: 50px;
}

.gallery-track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    animation: infinity-scroll 40s linear infinite;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    flex-shrink: 0;
}

.gallery-column.stack {
    width: var(--s-size);
}

.gallery-column.large {
    width: calc(var(--s-size) * 2 + var(--gap));
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}


/* Service Area */

.service-area {
    position: relative;
    padding: 120px 20px;
    background: var(--white);
    z-index: 10;
}

.area-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.area-map {
    flex: 1.0;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.area-map img {
    width: 95%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.area-info {
    flex: 1.0;
    min-width: 260px;
    max-width: 500px;
    font-family: "Shippori Antique B1", sans-serif;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.area-info.is-active {
    opacity: 1;
    transform: translateY(0);
}

.area-banner {
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.area-banner::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.area-banner h3 {
    font-size: clamp(1.2rem, 3.4vw, 1.8rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.1em;
}

.area-banner .icon {
    border: 1px solid var(--white);
    border-radius: 3px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.area-list li {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: clamp(4px, 1vh, 10px);
    letter-spacing: 0.2em;
    line-height: 1.4;
}

.area-note {
    font-size: clamp(0.1rem, 2vw, 0.9rem);
    color: #666;
    text-align: center;
    margin-top: 30px;
    padding-top: 10px;
}


/* Company */

.company {
    position: relative;
	z-index: 10;
}

.company-top-wrapper {
    background: var(--light-gray);
    padding: 100px 0 80px;
}

.company-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.company-message {
    flex: 1;
    background: var(--white);
    padding: clamp(20px, 4vw, 60px);
    line-height: 2;
}

.message-body p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.representative {
    text-align: right;
    margin-top: 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

.company-image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

.company-image {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    line-height: 0;
}

.company-image img {
    width: 100%;
    height: auto;
    display: block;
}

.red-bg-decoration {
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: var(--primary-red);
    bottom: 0;
    right: 0;
    z-index: 1;
    border-radius: 30px;
}

.company-details {
    position: sticky;
	top: 0;
    height: 100vh;
    background-color: var(--white);
    padding: 200px 0;
    z-index: var(--z-overlay);
	transition: none;
}


.details-grid {
    display: flex;
    align-items: center;
    gap: 100px;
}

.details-images {
    position: relative;
    width: 50%;
    aspect-ratio: 4 / 3;
    margin-left: 20px;
    margin-bottom: 2rem;
}

.img-upper {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 1;
}

.img-lower {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 50%;
    z-index: 2;
}

.details-images img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-name {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

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

.info-table th,
.info-table td {
    padding: 20px 0;
    border-top: 1px solid #d33838;
    border-bottom: 1px solid #d33838;
    text-align: left;
    font-size: 0.95rem;
}

.info-table th {
    width: 30%;
    font-weight: 600;
}


/* Contact */

.contact {
    position: relative;
    z-index: var(--z-contact);
}

.contact-curve-wrapper {
	position: relative;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 200px 20px;
    clip-path: ellipse(150% 100% at 50% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    z-index: 21;
}

.contact-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    margin-bottom: 60px;
}

.contact-buttons {
    font-family: "Shippori Antique B1", sans-serif;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
}

.contact-btn {
    flex: 1 0 0;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 40px;
    padding: 50px 80px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.0rem;
    margin-bottom: 15px;

}

.contact-btn .number,
.contact-btn .address {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-btn .hours {
    font-size: 0.8rem;
    opacity: 0.9;
}


/* Footer */

.footer {
    position: relative;
    background-color: #3e3a39;
    color: var(--white);
    margin-top: -1px;
    z-index: 12;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.footer-info {
    flex: 1;
    text-align: left;
}

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.footer-contact-details p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
	padding-bottom: 20px;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.footer-contact-details p a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}


/* Responsive */

/* 1. PC〜タブレット（1080px以下） */
@media (max-width: 1080px) {

    .section-header {
        margin-bottom: 50px;
    }
    
    .features-grid {
        margin-bottom: 50px;
        gap: 30px 50px;
    }

    .feature-card {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
        margin-bottom: 0;
    }
    
    .feature-icon {
        margin-bottom: 0; 
    }
    
    .feature-title {
        margin-bottom: 10px;
    }
    
    .icon-circle {
        margin: 10px 0 0 0;
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
}

/* 2. タブレット（991px以下）*/
@media (max-width: 991px) {

    /* 共通の縦並び設定 */
    .area-content,
    .details-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
    }
     .company-content {
        display: flex;
        flex-direction: column-reverse; 
        gap: 40px;
    }
    
    .company-image-wrapper {
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .company-message{
        width: 90%;
        max-width: none;
        padding: 30px;
    }
    
    .details-info {
        width: 100%;
        max-width: none;
        padding: 10px;
    }
    
    .company-details {
        position: relative;
        height: auto;
        padding: 70px 20px 150px;
    }

    .details-images {
        flex: none;
        width: 90%;
        max-width: 500px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
    }
    
	.contact {
    margin-top: -150px !important;
}
	
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
        height: 300px;
    }	

}

/* 3. スマホ（768px以下）*/
@media (max-width: 768px) {

	.header {
		padding: 10px;
	}
	
    .hamburger {
        display: block;
    }
    
    .hamburger span:last-child {
        margin-bottom: 0;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: rgba(237, 28, 36, 0.95);
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: var(--z-header);
    }

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

    .nav-links {
        font-size: 18px;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
	.intro {
		height: 50vh;
	}
	
	.intro-text {
		margin:10px 0 50px;
	}
		
    .features-grid,
    .contact-buttons,
    .footer-top {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
    }
    
    .features {
		clip-path: ellipse(150% 95% at 50% 5%);
		padding: 30px 0 150px;
	}
    	
	.check-list li {
		padding-left: 20px;
		line-height: 1.5;
	}
	
	.check-list li::before {
		width: 15px;
		height: 15px;
	}
	
	.service-highlight {
		margin-top: 20px;    
		margin-bottom: 25px;
	}
	
	.gallery {
        min-height: auto;
		padding-top: 30px;
	}
	
    .area-map {
        width: 80%;
        margin: 0 auto;
    }
	
	.area-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
        padding: 0 10px;
    }

    .area-list li {
        margin-bottom: 0;
        white-space: nowrap;
    }

	.info-table th,
	.info-table td {
		padding: 10px 0;
		font-size: 0.8rem;
	}
	
	
    .contact-curve-wrapper{
		padding: 150px 20px 100px;
        clip-path: ellipse(200% 100% at 50% 110%);
    }
	
    .contact-btn {
        width: 100%;
        max-width: 400px;
        padding: 30px 20px;
    }
    
    .footer-top {
        text-align: center;
        padding-top: 60px;
    }

    .footer-info {
        width: 100%;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
    }
}

/* 4. 極小スマホ（480px以下）: テキスト微調整 */
@media (max-width: 480px) {
    .service-highlight .accent-red {
        font-size: 1.2em;
    }
}


/*animertion*/

.fade-up-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease-out, transform 2.0s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes popAndFlip {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(0);
    }

    30% {
        opacity: 1;
        transform: scale(1.1) rotateY(0);
    }

    40% {
        opacity: 1;
        transform: scale(1.0) rotateY(0);
    }

    45% {
        opacity: 1;
        transform: scale(1.0) rotateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1.0) rotateY(360deg);
    }
}

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

@keyframes infinity-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


@keyframes blink-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
        /* 半透明になる */
    }
}

.area-info.is-active .area-banner h3,
.area-info.is-active .area-banner .icon {
    animation: blink-text 1.5s ease-in-out infinite;

    animation-delay: 1.2s;
}
