/*
Theme Name: Sumi Design
Description: WordPress theme for Sumi Design
Version: 1.0
Author: Sumi Design
*/

/* Variable Definitions */
:root {
    --color-black: #000;
    --color-red: #FF0000;
    --color-white: #f9f8f8;
    --color-gray-bg: #F9F9F9;
    --color-gray-text: #333;
    --font-heading: 'REM', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 2;
    color: var(--color-black);
    background-color: var(--color-white);
    letter-spacing: 0.05em;
}

@media screen and (max-width: 500px) {
    body {
        font-size: 15px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

/*a:hover {
    opacity: 0.7;
}*/

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
@media screen and (max-width: 1250px) {
    .container {
        width: 100%;
        padding: 0 40px;
    }

}
@media screen and (max-width: 500px) {
    .container {
        padding: 0 20px;
    }
}

.text-red {
    color: var(--color-red);
}

.mt-4 {
    margin-top: 3rem;
}
.sp-only{
        display: none;
    }

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 70px 15px 40px;
    /* Right padding for arrow space, optional if we center content */
    border-radius: 60px;
    min-width: 320px;
    position: relative;
    text-align: center;
    line-height: 1.2;
    overflow: hidden; 
    z-index: 1;
    transition: color 0.4s ease; 
}
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-red); /* hover時の背景色 */
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1; 
    border-radius: 100px;
    border: none;
}
.btn:hover::before {
    transform: translateX(0); /* 左から中央へスライド */
}
.btn:hover{
    border: none;
}
.btn-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    display: block;
}

.btn-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.9;
    letter-spacing: 0.05em;
    display: block;
}

.btn--black {
    background-color: var(--color-black);
    color: var(--color-white);
}
.btn--white {
    background-color: var(--color-white);
    color: var(--color-black);
    min-width: 300px;
}
.btn--red {
    background-color: var(--wp--preset--color--vivid-red);
    color: var(--color-white);
}

/*.btn--black::before {
    background-color: #424242; 
}*/

.arrow {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('data:image/svg+xml,%3Csvg%0A%20%20clip-rule%3D%22evenodd%22%0A%20%20fill%3D%22%23fff%22%0A%20%20fill-rule%3D%22evenodd%22%0A%20%20stroke-linejoin%3D%22round%22%0A%20%20stroke-miterlimit%3D%222%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m10.211%207.155c-.141-.108-.3-.157-.456-.157-.389%200-.755.306-.755.749v8.501c0%20.445.367.75.755.75.157%200%20.316-.05.457-.159%201.554-1.203%204.199-3.252%205.498-4.258.184-.142.29-.36.29-.592%200-.23-.107-.449-.291-.591-1.299-1.002-3.945-3.044-5.498-4.243z%22%2F%3E%0A%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 30px;
}
.arrow.black{
    background-image: url('data:image/svg+xml,%3Csvg%20clip-rule%3D%22evenodd%22%20ill-rule%3D%22evenodd%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%222%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m10.211%207.155c-.141-.108-.3-.157-.456-.157-.389%200-.755.306-.755.749v8.501c0%20.445.367.75.755.75.157%200%20.316-.05.457-.159%201.554-1.203%204.199-3.252%205.498-4.258.184-.142.29-.36.29-.592%200-.23-.107-.449-.291-.591-1.299-1.002-3.945-3.044-5.498-4.243z%22%2F%3E%3C%2Fsvg%3E');
}
.text-center{
    text-align: center;
}
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header__menu-btn {
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.header__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    right: 0;
    transition: 0.3s;
}

.header__logo a{
    display: flex;
    gap: 10px;
}
.header__logo-name{
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

/* Menu lines similar to image - looks like thin lines */
.header__menu-btn span:nth-child(1) {
    top: 0;
}

.header__menu-btn span:nth-child(2) {
    top: 9px;
}

.header__menu-btn span:nth-child(3) {
    bottom: 0;
}

/* Hero */
.hero {
    padding-bottom: 15vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero__wrapper{
    position: relative;
    padding-top: 25vh;
    padding-bottom: 10vh;
}
.hero__icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.cube-icon {
    width: 90px;
    height: 90px;
    opacity: 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 5.0rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 300px;
    /* Increased from 80px */
    font-weight: 500;
    letter-spacing: 0.5em;
    /* Spaced out Japanese text */
}

.hero__desc {
    font-family: var(--font-body);
    font-size:clamp(14px, 14 / 480 * 100vw ,16px);
    line-height: 2.4;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    padding: 0 20px;
}

.hero__lead {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero__bg-text {
    position: absolute;
    bottom: -4vw;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 22vw;
    font-weight: 900;
    color: #F8F8F8;
    z-index: -1;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}
@media screen and (max-width: 767px) {
    .header {
        padding: 10px 20px;
        background-color: #ffffffed;
    }
}
@media screen and (max-width: 430px) {
    .header__logo-name {
        font-size: 1.2rem;
    }
    .header__logo svg{
        width: 30px;
        height: auto;
    }
}


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

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}
@media screen and (max-width: 480px) {
    .section-header {
        margin-bottom: 40px;
    }
    .section-title {
        margin-bottom: 8px;
    }
}
/* Service */
.service {
    padding: 0 0 150px;
}

/* Service (continued) */
.service__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.service-card {
    border: 3px solid var(--color-black);
    border-radius: 20px;
    padding: 50px 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: #DDDDDD;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    max-width: 380px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
}

.service-card__title .ja {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.service-card__desc {
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
}

.service__btn-wrapper {
    text-align: center;
}




/* Message Section (Black Strip) */
.message {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 50px 0 100px;
    text-align: center;
    overflow: hidden;
    /* Hide overflow from marquee */
}

.message__marquee {
    width: 100%;
    margin-bottom: 50px;
}

.message__marquee-inner {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
}

.message__title {
    font-family: var(--font-heading);
    font-size: 10rem;
    /* Much larger */
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    /*    text-transform: uppercase;*/
    padding-right: 50px;
    /* Gap between repeats */
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

.message__text {
    line-height: 2.2;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Works */
.works {
    padding: 150px 0;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.work-item {
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
}
.work-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:  0.5s ease;
    filter: brightness(1);
}
.work-img-placeholder {
    width: 100%;
    height: 100%;
}
.work-item:hover img{
    transform: scale(1.3);
    transition:  0.5s ease;
    filter: brightness(0.7);
}

.works__slider-container{
    margin-bottom: 80px;
}

.works__btn-wrapper {
    text-align: center;
}
/* swiper */

.swiper-button-next,
.swiper-button-prev{
    color: #fff !important;
    border-radius: 100px;
    background-color: var(--color-gray-text);
    width: 50px !important;
    height: 50px !important;
}
.swiper-button-next:after, 
.swiper-button-prev:after{
    font-size: 20px !important;
}
.swiper-pagination-bullet-active{
    background: #000 !important;
}
@media screen and (max-width: 1024px) {
    .swiper-button-next,
    .swiper-button-prev{
        width: 30px !important;
        height: 30px !important;
    }
    .swiper-button-next:after, 
    .swiper-button-prev:after{
        font-size: 18px !important;
    }
}
@media screen and (max-width: 767px) {
    .works__slider-container {
        margin-bottom: 40px;
        padding: 0 20px;
    }
}

/* About */
.about {
    padding: 100px 0;
}

.about__content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.about__text-box {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 40px 40px 50px;
    border-radius: 50px;
    position: relative;
}


.about__img_circle {
    aspect-ratio: 200/140;
    width: 180px;
    height: auto;
    min-width: 100px;
    border-radius: 50%;
    position: absolute;
    top: -140px;
    right: 60px;
}

.about__img {
    position: absolute;
    z-index: -1;
    width: 140px;
    min-width: 100px;
    right: 20px;
    bottom: 150px;
    opacity: 0;
    transform-origin: bottom center; 
    transform: translateY(20px) rotate(30deg) ;
    transition: opacity 0.1s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* クラスがついたら元の位置に戻る */
.about__img.is-visible {
  opacity: 1;
  transform: translateY(20px) rotate(21deg);
}

/* Speech bubble tail 
.about__text-box::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent var(--color-black);
}*/

.about__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-red);
}

.about__text-box dl {
    display: grid;
    grid-template-columns: 200px 1fr; /* 項目の幅を固定 */
    gap: 15px 10px;
    line-height: 1.6;
}
.about__text-box dd {
    margin: 0;
}

@media screen and (max-width: 767px) {
    .about__img_circle {
        width: 140px;
        top: -110px;
        right: 30px;
    }

    .about__text-box dl {
        display: block;
    }
    .about__text-box dt {
        margin-bottom: 5px;
    }
    .about__text-box dd {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 480px) {
    .about__img_circle {
        width: 120px;
        top: -80px;
        right: 30px;
    }
    .about__text-box {
        padding: 28px 28px 20px;
    }
}

/* Contact section (CTA) */
.contact {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 130px 40px;
    text-align: center;
    max-width: 1550px;
    margin: 100px auto 20px;
    border-radius: 80px;
    position: relative;
    overflow: hidden;
}

.contact__bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, 0);
    font-family: var(--font-heading);
    font-size: min(230px, 15vw);
    font-weight: 900;
    color: #FFF;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.contact__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    /* Constrain width for better look */
    margin: 0 auto;
}

.contact__text-content {
    flex: 1;
    margin-right: 40px;
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-white);
    line-height: 1.2;
}

.contact__sub {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact__desc {
    margin-bottom: 0px;
    /* Margin handled by flex gap or container logic */
    font-size: 0.9rem;
    line-height: 1.8;
}
@media screen and (max-width: 1600px) {
    .contact{
       margin-left: 20px;
       margin-right: 20px;
    }
    .contact__bg-text {
        top: 5%;
        left: 2%;
        transform: unset;
    }
}
/* Responsive adjustment for contact */
@media (max-width: 768px) {
    .contact__inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact__text-content {
        margin-right: 0;
    }
    .contact {
        margin: 60px 20px 20px;
        padding: 70px 20px;
        border-radius: 50px;
    }
    .contact__bg-text {
        top: 10%;
        font-size: 16vw;
    }
}
@media screen and (max-width: 550px) {
    .contact__desc {
        text-align: left;
    }
    .contact__title {
        font-size: 3.0rem;
    }

}
/* Animation & Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 9999;
    transition: opacity 1.5s ease-out, visibility 1.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Initial States for Animation */
.hero__title,
.hero__subtitle,
.hero__desc,
.hero__bg-text,
.scroll-wrapper {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

body.is-loaded .hero__title,
body.is-loaded .hero__subtitle,
body.is-loaded .hero__desc,
body.is-loaded .hero__bg-text,
body.is-loaded .scroll-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Cube Animation */
.hero__icons {
    overflow: visible;
}

/* Cube Icon Base Style */
.cube-icon {
    width: 90px;
    height: 90px;
    opacity: 0;
}

/* Middle Decor Cubes */
.middle-cubes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto 50px;
    width: fit-content;
    margin-right: 1em;
}

.middle-cubes .cube-icon {
    opacity: 1;
    /* Always visible */
}

.middle-cubes-container {
    max-width: 1550px;
    margin: 0 auto;
}
@media screen and (max-width: 767px) {
    .middle-cubes-container .cube-icon {
        width: 70px;
        height: 70px;
    }
    .middle-cubes {
        gap: 15px;
    }
}
@media screen and (max-width: 430px) {
    .middle-cubes-container .cube-icon {
        width: 50px;
        height: 50px;
    }
    .middle-cubes {
        margin: 50px auto 20px;
    }
}
section{
    overflow-x: hidden;
}
.break{
    display: inline-block;
}
.mv-left{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%) rotate(180deg);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: moveRight 1s ease-out 0.5s forwards;
    font-family: var(--font-heading);
    font-size:clamp(10px, 10 / 375 * 100vw ,15px);
}

.mv-right{
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: moveRight 1s ease-out 0.5s forwards;
    font-family: var(--font-heading);
    font-size:clamp(10px, 10/ 375 * 100vw ,15px);
}
.mv-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 27vw;
    font-weight: 900;
    line-height: 1;
    text-align: right;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* SCROLL */
.scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #333;
  font-weight: 500;
  text-indent: 0.3em; 
}
.scroll-line {
  width: 1px;
  height: 60px;
  background-color: #eee; 
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: var(--color-black); 
  animation: scroll-line-anim 2.5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* ラインが上から下へ通り抜けるアニメーション */
@keyframes scroll-line-anim {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}
/* Page Top Button */
.page-top {
    position: fixed;
    bottom: 0;
    right: 30px;
    width: 110px;
    height: 60px;
    background-color: var(--color-red);
    border-radius: 100px 100px 0 0;
    z-index: 800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    padding-bottom: 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.page-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-top:hover {
    height: 70px;
    /* Grow slightly up */
    padding-bottom: 15px;
}

.arrow-up {
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(-45deg);
    margin-top: 5px;
}

.page-top-text {
    color: var(--color-white);
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Updated Text Animation: Random Reveal */
.hero__title {
    width: 100%;
    margin: 0 auto 10px;
    /* Revert standard styles */
    transform: scale(1);
    opacity: 1;
}

.hero__title .char {
    opacity: 0;
    transition: opacity 0.5s ease;
    display: inline-block;
    /* Allows transform if needed later, but mainly for consistent rendering */
}

/* Space characters need to serve as spacing */
.hero__title .char-space {
    display: inline-block;
    width: 0.3em;
}

/* But we have other elements too. */
/* Background Text Animation */
.hero__bg-text {
    opacity: 0;
    transform: translateX(-50%) scale(1.1);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

body.is-loaded .hero__bg-text {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Subtitle and Desc Animation ("Fuwatto" Fade Up) */
.hero__subtitle,
.hero__desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

body.is-loaded .hero__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.0s;
    /* Slight delay after main text */
}

body.is-loaded .hero__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
    /* Comes in later */
}

.hero__icons {
    opacity: 0;
    transition: opacity 1s ease-out 0.5s;
}
@media screen and (max-width: 480px) {
    body.is-loaded .hero__desc {
        text-align: left;
    }
    .hero__lead{
        font-size: 1.4rem;
        text-align: center;
    }
    .hero__wrapper{
        padding-top: 20vh;
        padding-bottom: 2vh;
    }
    .hero__subtitle {
        margin-bottom: 100px;
    }
    .mv-bg-text {
        line-height: 1.3;
    }

}
/* =========================================
   Price Page Styles
   ========================================= */

/* Page Header */
.page-header {
    position: relative;
    padding: 15vh 0 10vh;
    text-align: center;
    background-color: var(--color-gray-bg);
    overflow: hidden;
}

.page-header__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.page-header__inner {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header__title .text-title-red {
    color: var(--color-red);
}

.page-header__sub {
    font-size: 1rem;
    color: var(--color-gray-text);
    letter-spacing: 0.2em;
}


@media screen and (max-width: 1024px) {
    .page-header__bg-text {
        font-size: clamp(110px, 110 / 375 * 100vw, 220px);
    }
}

/* Price Content */
.price-content {
    padding: 60px 20px 100px;
}

.price-intro {
    text-align: center;
    margin-bottom: 80px;
    line-height: 2;
}
@media screen and (max-width: 550px) {
    .price-intro {
        text-align: left;
    }
    .price-intro .pc-only{
    display: none;
    }
}

/* Price List Table */
.price-list {
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 100px;
    background-color: #fcfcfc;
}

.price-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #ccc;
}

.price-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-item:first-child {
    padding-top: 0;
}

.price-item__header {
    width: 200px;
    flex-shrink: 0;
}

.price-item__header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1.5;

}

.price-item__header .ja {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.price-item__content {
    flex-grow: 1;
}

.price-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.price-detail.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.price-detail .label {
    font-weight: 700;
    font-size: 1.1rem;
}

.price-detail .val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.price-detail .tax {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

.desc-small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

/* Option Grid Custom */
.price-item__content.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10%;
}

.price-detail.simple {
    border-bottom: 1px dotted #ddd;
    padding-bottom: 5px;
}

.price-item-option {
    .price-detail .label {
        font-weight: 600;
        font-size: 0.9rem;
    }

    .price-detail .val {
        font-weight: 500;
        font-size: 0.9rem;
    }
}
@media screen and (max-width: 550px) {
    .price-list {
        padding: 40px 20px;
    }
    .price-detail .val {
        display: flex;
        flex-direction: column;
    }

}
/* Estimate Section */
.estimate-section {
    margin-top: 50px;
}

.estimate-header-bar {
    background-color: var(--color-black);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    margin-bottom: 40px;
}

.estimate-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.estimate-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.estimate-card__visual {
    width: 35%;
    flex-shrink: 0;
}

.visual-box {
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    /* Taller visual */
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain for illustrations */
    padding: 20px;
}

.visual-placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
}

.estimate-card__details {
    flex-grow: 1;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Estimate Card Header (for 2nd card) */
.estimate-card__header {
    width: 35%;
    flex-shrink: 0;
    padding-right: 20px;
}

.estimate-card__header h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.estimate-card__header .red {
    color: var(--color-red);
}

.estimate-card__header p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.estimate-card__details.full {
    width: 65%;
    /* Rest of width */
}

/* Header Text in Card 2 */
.estimate-card__header-text {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.estimate-card__header-text h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.6;
}

.estimate-card__header-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Highlight Image (Bou) */
.price-highlight-img {
    position: absolute;
    bottom: -20px;
    right: -50px;
    width: 80px;
    height: auto;
    pointer-events: none;
    animation: floatBou 2s infinite ease-in-out;
}

@keyframes floatBou {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.text-red {
    color: var(--color-red);
}


/* =========================================
   New Estimate Example (Layout 2)
   ========================================= */

.estimate-example-wrapper {
    display: flex;
    gap: 25px;
    align-items: stretch;
}

.example-left {
    width: 40%;
    background-color: #f0f0f0;
    border-radius: 20px;
    border: 2px solid #333;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.scenario-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.scenario-container {
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
}

.person-img-box {
    width: 90px;
    margin-right: -15px;
    z-index: 2;
    margin-bottom: -10px;
}

.person-img-box img {
    width: 100%;
    display: block;
}

.req-bubble {
    background: white;
    border-radius: 15px;
    padding: 20px 20px 20px 40px;
    position: relative;
    flex-grow: 1;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Speech bubble arrow */
.req-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 30px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid white;
}

.req-bubble li {
    list-style: none;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.check-icon {
    color: var(--color-red);
    margin-right: 8px;
    font-style: normal;
    font-weight: 900;
}

.note-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #444;
}

.note-box li {
    list-style: none;
}

/* Pin icon */
.pin-icon {
    position: absolute;
    top: -15px;
    right: 10px;
    width: 43px;
    transform: rotate(20deg);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

.demo-btn {
    margin-top: auto;
    background: var(--color-black);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    line-height: 1.5;
    gap: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 0;    
    width: 100%;

    display: none;

}
.demo-btn::before {
    border-radius: 8px;
}
.arrow-right {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}

/* Right Side */
.example-right {
    width: 60%;
    border: 2px solid #333;
    border-radius: 30px;
    padding: 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breakdown-group {
    margin-bottom: 25px;
    position: relative;
}

.cat-label {
    display: inline-block;
    background: var(--color-red);
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.breakdown-content {
    background: #fdfdfd;
    /* Image shows alternating stripes or just spacing. I'll focus on spacing. 
       Actually image shows white BG for whole right side but maybe rows have subtle distinction?
       The labels are floating above.
    */
    padding: 5px 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px 0;
}

.item-name {
    font-weight: 700;
    font-size: 1rem;
}

.item-price,
.item-desc {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

.item-desc {
    font-size: 1rem;
}

.x-count {
    font-size: 0.9rem;
    margin: 0 5px;
    font-weight: normal;
}

.sub-text {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}

.row-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0;
    margin-left: 10px;
}

/* Tooltip Customization for Example */
.breakdown-row .info-btn {
    vertical-align: middle;
}

/* Total */
.total-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    border-top: 2px dashed #999;
    padding-top: 30px;
    margin-top: 0;
}

.total-label {
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 30px;
}

.total-amount {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .estimate-example-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .example-left,
    .example-right {
        width: 100%;
        padding: 20px;
    }

    .scenario-container {
        flex-direction: column;
        align-items: center;
    }

    .person-img-box {
        width: 60px;
        margin: 0 0 -10px 0;
    }

    .req-bubble::before {
        display: none;
        /* Hide arrow on mobile vertical stack */
    }

    .req-bubble {
        width: 100%;
        padding: 20px;
    }

    .breakdown-row {
        flex-wrap: wrap;
    }

    .item-price {
        margin-left: auto;
    }
}


/* =========================================
   Support Pack Section
   ========================================= */

.support-pack-section {
    background-color: #e6e6e6;
    padding: 100px 0;
    margin-top: 100px;
}

.pack-title {
    color: #333;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.pack-intro {
    text-align: center;
    margin-bottom: 70px;
    line-height: 2;
    font-size: 0.95rem;
}

/* White Theme Modifier */
.example-left.white-theme {
    background-color: white;
    border: 3px solid #333;
    /* Slightly thicker border for card look */
    border-radius: 30px;
}

.gray-bubble {
    background-color: #f3f3f3;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    margin-bottom: 30px;
}

.gray-bubble::before {
    /* Speech bubble bottom leftish */
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-top: 15px solid #f3f3f3;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.bubble-text {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: bold;
}

.req-list-simple {
    margin-left: 40px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.req-list-simple li {
    list-style: none;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.check-box-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background: var(--color-red);
    color: white;
    font-size: 14px;
    margin-right: 10px;
    border-radius: 3px;
    font-style: normal;
}

/* Override icon to be a check box style provided in image? 
   Image shows Red Box with Check. FontAwesome or CSS. 
   I used CSS sqaure with check.
*/

.person-img-woman {
    text-align: right;
    margin-top: -60px;
    /* Pull up to overlap/sit next to list */
    margin-right: 0;
    margin-bottom: 20px;
}

.person-img-woman img {
    width: 110px;
}

.simple-box {
    background-color: #f9f9f9;
    font-size: 0.85rem;
    padding: 20px;
}

/* Discount Area in Right Side */
.total-discount-area {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 0;
    padding-top: 20px;
    border-top: 2px dashed #999;
    position: relative;
}

/* Spiky Bubble for 'Deals' */
.discount-bubble {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 140px;
    background: white;
    border: 3px solid var(--color-red);
    border-radius: 50% 50% 5% 50%;
    /* Weird shape */
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(-5deg);
    z-index: 5;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    display: none;
    /* Hide old bubble */
}

/* New Image Bubble */
.discount-bubble-img {
    position: absolute;
    left: -20px;
    /* Adjust based on visual balance */
    bottom: -10px;
    width: 200px;
    /* Allow it to be larger as it's an image */
    z-index: 5;
    transform: rotate(-5deg);
}

.discount-bubble-img .otoku-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
}

.discount-bubble-img .bou-img {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 70px;
    transform: rotate(5deg);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

.discount-bubble p {
    line-height: 1.4;
    margin: 0;
}

.bou-icon {
    position: absolute;
    bottom: -15px;
    left: -40px;
    width: 50px;
    transform: rotate(0deg);
    display: none;
    /* Hide old icon */
}

.price-compare {
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 900;
}

.old-price-row {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 0px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.old-price-row .value.strike {
    text-decoration: line-through;
    text-decoration-color: var(--color-red);
    text-decoration-thickness: 3px;
    font-size: 1.4rem;
}

.arrow-down {
    text-align: center;
    margin: 0 25% 0 auto;
    width: 50px;
}
.new-price-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 20px;
}

.new-price-row .value {
    font-size: 2.8rem;
    line-height: 1;
}

/* Specific button style for pack? defaults are okay. */
@media screen and (max-width: 1100px) {
    .discount-bubble-img {
        left: -20px;
        bottom: 50px;
        width: 180px;
    }
}
@media (max-width: 768px) {
    .support-pack-section {
        padding: 50px 0;
    }

    .total-discount-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .discount-bubble {
        position: static;
        margin-bottom: 20px;
        transform: none;
    }

    .discount-bubble-img {
        margin-bottom: 30px;
        width: 180px;
        left: 16px;
        bottom: 120px;
    }

    .discount-bubble-img .bou-img {
        bottom: -45px;
        left: -35px;
        width: 73px;
    }

    .bou-icon {
        left: -30px;
    }

    .price-compare {
        text-align: center;
    }

    .new-price-row {
        justify-content: center;
    }

    .old-price-row {
        justify-content: center;
    }

    .arrow-down {
        margin: 0 35% 0 auto;
        width: 50px;
    }
    .breakdown-row{
        margin-bottom: 0;
        padding: 0;
    }
}
@media screen and (max-width: 450px) {
    .total-amount {
        font-size: 2.1rem;
    }
    .total-label {
        font-size: 1.0rem;
        margin-right: 20px;
    }

    .new-price-row .value {
        font-size: 2.1rem;
    }
    .new-price-row {
        gap: 15px;
    }
    .old-price-row {
        justify-content: flex-end;
        font-size: 1.0rem;
    }
    .discount-bubble-img {
        width: 140px;
    }
    .discount-bubble-img .bou-img {
        width: 64px;
    }
}
.est-tag {
    display: inline-block;
    width: 100px;
    padding: 4px 0;
    text-align: center;
    font-size: 0.8rem;
    color: white;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
}

.est-tag.red {
    background-color: var(--color-red);
}

.est-tag.empty {
    background-color: transparent;
}

.est-desc {
    flex-grow: 1;
    font-weight: 700;
}

.est-price {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: right;
    width: 180px;
}

.est-price .note {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 5px;
}

.info-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    background-color: #ddd;
    color: #555;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 25px;
    /* Above the icon */
    right: -10px;
    width: 200px;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: normal;
    text-align: left;
    display: none;
    /* Hidden by default */
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #333 transparent transparent;
}

/* Show tooltip when class active */
.info-btn.active .tooltip {
    display: block;
}

/* Total Row */
.est-total {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ccc;
    font-family: var(--font-heading);
}

.est-total .label {
    font-size: 1rem;
    margin-right: 20px;
    padding-bottom: 5px;
}

.est-total .amount {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.est-total .old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    padding-bottom: 5px;
}

.est-total .arrow {
    font-size: 1.5rem;
    color: var(--color-red);
    margin-right: 10px;
    padding-bottom: 5px;
}

.est-total .amount.red {
    color: var(--color-red);
}


/* Responsive */
@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        gap: 15px;
    }

    .price-item__header {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .price-item__content.grid-2-col {
        grid-template-columns: 1fr;
    }

    .estimate-card {
        flex-direction: column;
    }

    .estimate-card__visual,
    .estimate-card__header,
    .estimate-card__details.full {
        width: 100%;
    }

    .est-row {
        flex-wrap: wrap;
    }

    .est-price {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }

    .visual-box {
        aspect-ratio: 16/9;
    }
}

/* Global Menu Overlay */
.global-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    display: flex;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 260px;
    overflow-y: auto;
}

.global-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.global-menu__list {
    list-style: none;
    text-align: center;
}

.global-menu__item {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger animation for items */
.global-menu.is-active .global-menu__item:nth-child(1) {
    transition-delay: 0.1s;
}

.global-menu.is-active .global-menu__item:nth-child(2) {
    transition-delay: 0.2s;
}

.global-menu.is-active .global-menu__item:nth-child(3) {
    transition-delay: 0.3s;
}

.global-menu.is-active .global-menu__item:nth-child(4) {
    transition-delay: 0.4s;
}

.global-menu.is-active .global-menu__item:nth-child(5) {
    transition-delay: 0.5s;
}

.global-menu.is-active .global-menu__item:nth-child(6) {
    transition-delay: 0.6s;
}

.global-menu.is-active .global-menu__item {
    opacity: 1;
    transform: translateY(0);
}

.global-menu__item a {
    text-decoration: none;
    color: var(--color-white);
    display: block;
    transition: color 0.3s;
}

.global-menu__item a:hover {
    color: var(--color-red);
}

.global-menu__item .en {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Large text */
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.global-menu__item .ja {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.7;
    font-weight: 400;
}

.header__menu-btn {
    z-index: 1000;
}
.header__menu-btn.menu-open span{
    background-color: #fff;
}
.header__menu-btn.menu-open span:nth-of-type(1) {
    transform: translateY(10px) rotate(45deg);
}

.header__menu-btn.menu-open span:nth-of-type(2) {
    opacity: 0;
}

.header__menu-btn.menu-open span:nth-of-type(3) {
    transform: translateY(-10px) rotate(-45deg);
    top: 20px;
}

.header__menu-btn span {
    transition: all 0.3s;
}

body.is-loaded .hero__icons {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 40px;
    font-family: var(--font-heading);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.icon-circle rect,
.icon-circle path,
.icon-circle circle {
    /* Ensure icon colors are correct handled by SVG internal fill/stroke */
}

.footer__policy{
	text-align: right;
    display: block;
    font-size: 0.8em;
}

.footer__divider {
    border: none;
    border-top: 2px solid white;
    width: 100%;
    margin: 0 0 30px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer__nav {
    display: flex;
    gap: 10px 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.footer__nav a:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

/* Responsive */
@media screen and (max-width: 900px) {
    .service__grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
        /* Adjusted from 3.2rem */
    }

    .message__title {
        font-size: 6rem;
        /* Adjusted from 8rem */
    }
    .hero__subtitle{
        font-size: 1.0rem;
    }
    .service__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        margin: auto;
    }

    .works__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__content {
        flex-direction: column;
    }
    .about__text-box::after {
        display: none;
    }

    .footer__top {
        flex-direction: column;
        gap: 20px;
    }
}
@media screen and (max-width: 430px) {
    .hero__title {
        font-size: 1.7rem;
    }
    .message {
        padding: 50px 0 70px;
    }
    .message__text {
        text-align: left;
    }
    .message__text .break{
        display: inline;
    }
    .message__text br{
        display: none;
    }
    .hero__subtitle .sp-only{
        display: block;
    }
    .cube-icon {
        width: 60px;
        height: 60px;
    }
    .hero__icons {
        margin-bottom: 26px;
    }

    .global-menu__item .en {
        font-size: 2rem;
    }
    .global-menu__item .ja {
        font-size: 0.8rem;
    }
    .global-menu__item {
        margin-bottom: 20px;
    }
    .service-card{
        padding: 30px 30px 35px;
        min-height: auto;
    }
    .service__grid{
        margin-bottom: 70px;
    }
    .service {
        padding: 0 0 100px;
    }
    .works {
        padding: 100px 0 30px;
    }
    .about {
        padding: 100px 0 60px;
    }
}
/* =========================================
   Service Page
   ========================================= */

.service-content {
    padding: 60px 20px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-intro {
    text-align: center;
    line-height: 2;
    margin-bottom: 80px;
}

.service-group {
    margin-bottom: 80px;
}

.service-group__header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 3px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Use previously defined cubes or icons */

.service-header-text .en {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-heading);
    display: block;
}

.service-header-text .ja {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 5px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.service-items {
    padding-left: 0;
}

.service-item {
    margin-bottom: 50px;
}

.service-item__title {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-item__desc p {
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
    margin-left: 1.2em;
    /* Indent */
}

/* Link to Price */
.price-link-area {
    text-align: center;
    margin-top: 60px;
}

/* Service Bottom Section */
.service-bottom {
    background-color: #e6e6e6;
    /* Light gray */
    padding: 100px 0 150px;
    /* Extra padding bottom for illustration overlapping footer? No, just space */
    margin-top: 50px;
    position: relative;
}

.relative-container {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
}

.speech-bubble-white {
    background-color: white;
    border-radius: 40px;
    padding: 50px;
    width: 70%;
    /* Occupy left side */
    margin-bottom: 60px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.speech-bubble-white::after {
    /* Speech pointer pointing down-right */
    content: '';
    position: absolute;
    top: 50px;
    right: -14px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid white;
    transform: rotate(0deg);
}

.speech-bubble-white h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.speech-bubble-white p {
    line-height: 1.8;
    color: #444;
}

.bottom-illustration {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 20%;
    max-width: 200px;
    z-index: 2;
}

.bottom-illustration img {
    width: 100%;
}

.bottom-nav-btns {
    display: flex;
    justify-content: flex-start;
    /* Align with bubble? Or center of page? Design shows below bubble. */
    gap: 30px;
    padding-left: 50px;
    /* Align somewhat mostly left */
}

.btn--black-round {
    background-color: black;
    color: white;
    border-radius: 50px;
    padding: 15px 40px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 240px;
    transition: all 0.3s;
    position: relative;
}

.btn--black-round .btn-main {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.btn--black-round .btn-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn--black-round .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}



/* Responsive */
@media (max-width: 768px) {
    .service-content {
        padding: 40px 20px;
    }

    .service-group__header {
        flex-direction: row;
        /* Keep row */
        gap: 15px;
    }

    .service-header-text .en {
        font-size: 1.6rem;
    }

    .speech-bubble-white {
        width: 100%;
        padding: 30px;
        margin-bottom: 30px;
    }

    .speech-bubble-white::after {
        top: unset;
        bottom: -20px;
        right: 64%;
        transform: rotate(80deg);
    }

    .bottom-illustration {
        position: static;
        width: 160px;
        margin: 0 auto 30px;
        display: block;
    }

    .bottom-nav-btns {
        flex-direction: column;
        padding-left: 0;
        align-items: center;
    }

    .btn--black-round {
        width: 100%;
        max-width: 320px;
        min-width: auto;
    }
}

/* =========================================
   Flow Page
   ========================================= */
/* Reuse .page-header */
.mb-80 {
    margin-bottom: 80px;
}

/* Flow Steps */
.flow-section {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.flow-steps {
    position: relative;
    padding: 40px 0;
}

/* Red Vertical Line */
/* Red Vertical Line Removed from container, added to steps */

.flow-step {
    background-color: white;
    border: 2px solid black;
    border-radius: 60px;
    /* Pill shape */
    padding: 40px 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    /* Above line */
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    /* Slight shadow/depth? Image looks flat but clean */
    display: block;
}

.flow-step::after {
    content: '';
    position: absolute;
    bottom: -45px;
    /* Slightly longer to ensure overlap if margin varies, but 40px is gap. 40px+border? */
    /* margin-bottom is 40px. The next item is 40px away. */
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 45px;
    /* Enough to reach */
    background-color: var(--color-red);
    z-index: -1;
}

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

.flow-step__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.flow-step__text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.step-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: black;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    font-family: var(--font-heading);
    margin-right: 15px;
    margin-bottom: 0;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.flow-step__text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    display: block;
}

.flow-step__text p {
    font-size: 0.95rem;
    line-height: 1.8;
    width: 100%;
    margin-top: 15px;
    padding-left: 55px;
}

/* Sprite Container */
.flow-step__img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background-size: 200%;
    /* 2x2 grid means 200% width/height relative to container? 
                             If container is 120, image needs to be 240.
                             Background size 200% means the background image is 2x the container size?
                             Yes. So 0% and 100% positions work for edges.
                          */
    background-repeat: no-repeat;
    /* Hide the img tag inside */
}

.flow-step__img img {
    display: none;
}

/* Sprite Mapping */
/* Set 1 */
.flow-step__img:has(.icon-01) {
    background-image: url('../images/price/flow_icons_set_1.png');
    background-position: 0 0;
}

.flow-step__img:has(.icon-02) {
    background-image: url('../images/price/flow_icons_set_1.png');
    background-position: 100% 0;
}

.flow-step__img:has(.icon-03) {
    background-image: url('../images/price/flow_icons_set_1.png');
    background-position: 0 100%;
}

.flow-step__img:has(.icon-04) {
    background-image: url('../images/price/flow_icons_set_1.png');
    background-position: 100% 100%;
}

/* Set 2 */
.flow-step__img:has(.icon-05) {
    background-image: url('../images/price/flow_icons_set_2.png');
    background-position: 0 0;
}

.flow-step__img:has(.icon-06) {
    background-image: url('../images/price/flow_icons_set_2.png');
    background-position: 100% 0;
}

.flow-step__img:has(.icon-07) {
    background-image: url('../images/price/flow_icons_set_2.png');
    background-position: 0 100%;
}

.flow-step__img:has(.icon-08) {
    background-image: url('../images/price/flow_icons_set_2.png');
    background-position: 100% 100%;
}

/* Note: if :has() not supported well enough (active in most modern browsers), fallback to shared classes on parent div 
   or assume I added the classes to the DIV in HTML?
   In HTML I wrote: 
   <div class="flow-step__img">
      <img ... class="flow-icon icon-01">
   </div>
   So :has(.icon-01) works.
   Alternatively, I can target the img class if I make the img display block and use object-fit?
   I'll stick to bg image on container via :has (Supported in Chrome/Edge/Safari/FF).
*/

/* FAQ Section */
.faq-section {
    background-color: #eeeeee;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq-bg-text {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 16vw;
    font-weight: 900;
    color: white;
    z-index: 0;
    font-family: var(--font-heading);
    pointer-events: none;
    line-height: 1;
    letter-spacing: 0.1em;
    margin-top: 100px;
}

.faq-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 100px auto 0;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.faq-sub {
    font-size: 1rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #c9c9c9;
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 25px 0;
    border-bottom: 1px solid #c9c9c9;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 700;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.q-icon {
    font-size: 1.2rem;
    margin-right: 20px;
    font-family: var(--font-heading);
}

.q-text {
    flex: 1;
    padding-right: 20px;
}

.status-icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}

.status-icon::before,
.status-icon::after {
    content: '';
    position: absolute;
    background-color: black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.status-icon::before {
    width: 100%;
    height: 2px;
}

.status-icon::after {
    width: 2px;
    height: 100%;
    transition: transform 0.3s;
}

details[open] .status-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    overflow: hidden;
    padding-bottom: 30px;
}

/* Animation for details is tricky without JS, will just pop open */

.a-box {
    display: flex;
    align-items: flex-start;
    padding: 10px 10px 10px 0;
}

.a-icon {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--color-red);
    margin-right: 20px;
    font-family: var(--font-heading);
}

.contact-flow-style {
    margin-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.middle-cubes-flow {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card-black {
    background-color: black;
    border-radius: 40px;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-heading);
}

.contact-card__content {
    position: relative;
    z-index: 1;
}

.contact-card__content h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.contact-card__content .sub {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-card__content .desc {
    margin-bottom: 40px;
    line-height: 2;
}

.btn--white-round {
    background-color: white;
    color: black;
    border-radius: 50px;
    padding: 15px 50px;
    min-width: 280px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s;
}

.btn--white-round:hover {
    transform: translateY(-3px);
}

.btn--white-round .btn-main {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.btn--white-round .btn-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn--white-round .arrow {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    /* Flow line on mobile handled by .flow-step::after if needed, or hide if preferred. 
       Let's keep it visible or hide? User didn't specify for mobile. 
       If I remove this block, it does nothing as ::before doesn't exist. 
       I'll remove it to clean up. */

    .flow-step {
        border-radius: 40px;
        padding: 30px 20px;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .flow-step__content {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .flow-step__text {
        justify-content: center;
    }

    .flow-step__text p {
        padding-left: 0;
        text-align: justify;
        /* Or left */
    }

    .step-num {
        margin: 0 10px 0 0;
    }

    .faq-title {
        font-size: 2rem;
    }

    .contact-card__content h2 {
        font-size: 2.2rem;
    }
}

/* =========================================
   Contact Page
   ========================================= */

.contact-form-section {
    max-width: 1000px;
    margin: 0 auto 150px;
    padding: 0 20px;
}

.contact-form {
    background-color: #d9d9d9;
    padding: 60px 80px;
    border-radius: 20px;
    border: 3px solid black;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    margin-bottom: 30px;
}

.form-label {
    width: 240px;
    /* Increased slightly for 1000px width safety? Or keep 200 */
    flex-shrink: 0;
    padding-top: 10px;
}
.form-label p br{
    display: none;
}
.label-en {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
}

.label-ja {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
}

.required {
    display: inline-block;
    color: var(--color-red);
    font-weight: 900;
    margin-left: 5px;
    vertical-align: text-top;
    /* Slight adjustment */
    font-size: 0.8rem;
    line-height: 1;
}

.form-input {
    flex-grow: 1;
}

.form-input input[type="text"],
.form-input input[type="email"],
.form-input textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-input input::placeholder,
.form-input textarea::placeholder {
    color: #aaa;
}

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

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.wpcf7-list-item-label{
    font-weight: 700;
}


.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border-radius: 3px;
}

/* Checkmark icon */
.custom-checkbox input:checked~.checkmark::after {
    display: block;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Privacy */
.privacy-check {
    text-align: center;
    margin: 40px 0 20px;
    display: flex;
    justify-content: center;
}


/* Submit Btn */
.form-submit {
    text-align: center;
}

.submit-btn {
    background-color: var(--color-red);
    color: white;
    border: none;
    padding: 15px 80px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 0 #990000;
    display: block;
    margin: auto;
    max-width: 320px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #cc0000;
    transform: translateY(2px);
    box-shadow: 0 3px 0 #990000;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .contact-form {
        padding: 60px 60px;
    }

    .form-label {
        width: 180px;
    }
}
@media (max-width: 768px) {
    .contact-form-section{
        padding: 0;
    }
    .contact-form {
        padding: 40px 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .label-en {
        display: inline-block;
    }

    .label-ja {
        display: inline-block;
        margin-left: 10px;
    }

    .form-input textarea {
        margin-top: 10px;
    }
    .privacy-check {
        margin: 30px 0 10px;
    }

}



.point-image figure,
.point-image figure img{
    width: 100%;
}

.point-image figure{
    margin-bottom: 16px;
}
.wrap-heading{
    margin-bottom: 40px;
}
.font-heading{
    font-family: var(--font-heading);
    font-weight: 900;
}
.wp-block-group.section{
    margin-bottom: 120px;
}
.wide-s{
    max-width: 850px;
    margin: auto;
}
.features-box img{
    width: 100%;
}

.website__btn-wrapper {
    display: flex;
    max-width: 760px;
    margin: auto;
}
.website__btn-wrapper .btn{
    margin: auto;
}


/*************************/
/* カスタム投稿：website   */
/*************************/

.single-website main{
    background-color: #f0efed;
    background-color: #f2eeea;
    padding-bottom: 10px;
}
.single-website .page-header{
    margin-bottom: 50px;
}
.single-website .middle-cubes {
    margin: 50px auto 0px;
    margin-right: 1em;
}
/* カルーセル画像 */
.section-main-image{
    width: 75vw;
    margin: 0 calc(50% - 37.5cqi);
}
/* コンセプト */
.concept-text{
    width: fit-content;
    margin: auto;
}
.concept-text p{
    margin-bottom: 0.8em;
    line-height: 2 ;
}
.point-image{
    background-color: #fff;
}
/* デザインのこだわり */
.design-points{
    margin-top: 50px;
}
/* 特徴 */
.features{
    margin: 50px auto;
    gap: 15px;
}
.feature-box{
    border: 3px solid var(--color-black);
    border-radius: 20px;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #DDDDDD;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1500px) {
    .section-main-image{
        width: 100%;
        margin: auto;
    }
}
@media screen and (max-width: 767px) {
    .website__btn-wrapper {
        flex-direction: column-reverse;
        gap: 15px;
    }
}




/* =========================================
    WORKS-WEBDEISFN一覧ページ 
========================================= */
/* 一覧全体のコンテナ */
.works__list {
    display: grid;
    gap: 30px 20px; /* 縦・横の余白 */
    grid-template-columns: repeat(1, 1fr); /* スマホ：1カラム */
}

@media (min-width: 768px) {
    .works__list {
        grid-template-columns: repeat(3, 1fr); /* PC：3カラム */
    }
}

/* 各アイテムのスタイル */
.work-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.work-item__link:hover {
    opacity: 0.8;
}

.work-item__img {
    aspect-ratio: 1 / 1; /* 画像の比率を統一 */
    overflow: hidden;
    background: #eee;
}

.work-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-item__title {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}


/*ページャー*/
.page-numbers:not(.next, .prev) {
    width: 34px;
    height: 34px;
    display: inline-block;
    border: solid 1px var(--color-gray-text);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.page-numbers.current{
    background-color: var(--color-black);
    color: #fff;
    border: solid 2px var(--color-gray-text);
}
.nav-links{
    width: fit-content;
    margin: 30px auto 0;
}


.privacy-policy h2.wp-block-heading{
	margin-top:1em;
}
.privacy-policy ul.wp-block-list{
	margin-left:2em;
	list-style:disc;
}



body.is-fixed {
  overflow: hidden;
}