/* ===== ???? ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: white;
    position: relative;
    letter-spacing: 0.0em;
    line-height: 1.5;
    overflow-x: hidden;
    /* ? ???????? */
}

body {
    font-family:
        "Yu Gothic",
        "Yu Gothic",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 16px;
    color: #000000;
    font-weight: 400;

}

/* ===== Overlay ===== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 5;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Header ===== */
header {
    background-color: #abb2ff;
    color: white;
    padding: 20px 20px;
    /* ? 2% ? 20px */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight:300;
    font-family: 'Rubik', sans-serif;
    font-style: italic;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: inherit;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

/* ===== Hamburger ===== */
.menu-btn {
    display: none;
}

.menu-icon {
    width: 40px;
    height: 30px;
    position: absolute;
    left: 20px;
    /* ? 2% ? 20px */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.menu-icon span {
    background: white;
    position: absolute;
    height: 4px;
    width: 100%;
    left: 0;
    transition: 0.3s;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 13px;
}

.menu-icon span:nth-child(3) {
    top: 26px;
}

/* ===== Dropdown Menu ===== */
nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 9;
    line-height: 1.0;
}

.selected {
    font-weight: bold;
    color: orange;
}

nav a {
    display: block;
    padding: 12px 27px 8px 27px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

nav a:last-child {
    border-bottom: none;
}

nav a:hover {
    background-color: #dcdeff;
}

/* ===== Toggle effect ===== */
.menu-btn:checked+.menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.menu-btn:checked+.menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-btn:checked+.menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
}

.menu-btn:checked~nav {
    max-height: 500px;
}

/* ===== Sub-header ===== */
.sub-header {
    background-color: #ffffff;
    padding: 12px 20px 8px 20px;
    /* ? 2% ? 20px */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    z-index: 9;
}

/* X???? */
.sub-header a.icon-x {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-header a.icon-x svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

/* Facebook???? */
.sub-header a.icon-facebook {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-header a.icon-facebook svg {
    width: 26px;
    height: 26px;
    fill: #1877F2;
}

/* ?????? */
.sub-header a.lang-jp {
    color: #0066cc;
    text-decoration: underline;
    padding: 0;
}

/* ===== Main & Boxes ===== */
main {
    padding: 5px 0 20px 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.box {
    background-color: #ececec;
    padding: 24px 32px 29px 32px;
    margin: 0px auto;
    /* ? ???? */
    max-width: 100%;
    /* ? ?????? */
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== Box H2 ===== */
.box h2 {
    color: #0055CC;
    border-bottom: 1px solid #0055CC;
    display: block;
    margin: 0;
    font-size: 20px;
}

/* box2の文章を左、画像を右に回り込ませる float版 */


.box2 .image,
.box4 .image,
.box5 .image {
    float: right;
    margin-left: 20px;
    max-width: 334px;
    width: 100%;
    height: auto;
    display: block;
}

.box3 .image {
    float: left;
    margin-right: 20px;
    max-width: 334px;
    width: 100%;
    height: auto;
    display: block;
}

.text-image::after {
    content: "";
    display: block;
    clear: both;
}

.box1,
.box2,
.box3,
.box4,
.box5 p {
    text-align: left;
}

/* ===== ?Box ===== */
.box1,
.box2,
.box3,
.box4,
.box5 {
    margin-bottom: px;
}

/* ===== Let' dye ===== */

.box h3 {
    color: #0055CC;
    display: block;
    margin: 0;
    padding-top: 15px;
}

.box_title {
    padding-bottom: 1px;
}

.box11 .image {
    width: 100%;
    height: auto;
    display: block;
}

.box13 .image {
    float: left;
    margin-right: 20px;
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
}

.box12 .image {
    float: right;
    margin-left: 20px;
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
}

.box14 .image {
    float: right;
    margin-left: 20px;
    width: 100%;
    height: auto;
    display: block;
}

.box14 .image_m {
    float: right;
    margin-left: 20px;
    height: auto;
    display: block;
}

#langchange {
    padding-right: 2%;
    font-weight: bold;
    font-size: 17px;
}


/* ===== Google Contact Form ===== */

.form-container {
    position: relative;
    width: 100%;
    /* 横幅を親要素いっぱいに */
    padding-top: 150%;
    /* フォームの高さに合わせて調整（150% = 縦横比 2:3） */
    overflow: hidden;
    margin-top: 3%;
}

.form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* ===== Responsive ===== */
/* ===== Let' dye ===== */

@media (max-width: 599px) {
    .box12 .image {
        margin-left: 15px;
        width: 45%;

    }

    .box13 .image {
        margin-right: 20px;
        width: 45%;
    }

    .box14 .image_m {
        margin-left: 15px;
        max-width: 40%;
    }

}

/* ===== Responsive ===== */
@media (max-width: 979px) {
    header h1 {
        font-size: 1.7em;
    }

    .menu-icon {
        width: 35px;
        height: 26px;
    }

    .menu-icon span {
        height: 3.5px;
    }

    .menu-icon span:nth-child(2) {
        top: 11px;
    }

    .menu-icon span:nth-child(3) {
        top: 22px;
    }

    .box {
        margin: 0px auto;
        max-width: 90%;
        /* ? ??????? */
    }

    .sub-header {
        padding: 12px 20px 8px 20px;
        font-size: 0.9rem;
        gap: 12px;
    }
}

@media (max-width: 599px) {
    header h1 {
        font-size: 1.4em;
    }

    .menu-icon {
        width: 30px;
        height: 22px;
    }

    .menu-icon span {
        height: 3px;
    }

    .menu-icon span:nth-child(2) {
        top: 9px;
    }

    .menu-icon span:nth-child(3) {
        top: 18px;
    }

    main {
        max-width: 95%;
    }

    .box {
        width: 100%;
        margin: 0px auto;
        padding: 15px;
        max-width: 100%;
        border-radius: 0;
    }

    nav {
        width: auto;
    }

    .sub-header {
        justify-content: flex-end;
        gap: 12px;
        padding: 12px 20px 8px 20px;
    }
}

/* スマホのみ float解除（480px以下） */
@media screen and (max-width: 480px) {
    .box1 .image {
        float: none;
        /* float解除 */
        display: block;
        margin: 10px auto;
        /* 上下余白、中央寄せ */
        max-width: 100%;
        /* 親幅いっぱい */
    }
}

/* リンク */
#langchange a.lang-jp:hover {
    color: orange;
}

/* スペース */
.paddingtop {
    padding-top: 20px;
}

h3 {
    font-size: 1.1em;
}

.image {
    margin-bottom: 12px;
}

/* 染め直し・仕上がりは？ */
.text-image2{padding-top: 10px;}