/* Variables */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --header-height: 60px;
    --transition-speed: 0.3s;
    --font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    --max-width: 1480px;
    --content-width: 1080px;
}

/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-repeat: no-repeat;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

picture {
    display: block;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PC/SP Image Display */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* Components Styles */

.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0 28px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 10rem;
    background: linear-gradient(160deg, #B29441 -8.9%, #B29441 3.41%, #D4C28E 16.72%, #F8F1DC 21.15%, #C0A55B 32.48%, #B29441 50.71%, #BDA155 65.98%, #CBB780 75.34%, #987001 93.57%);
}

.cta-button:hover {
    filter: brightness(1.1);
}

.cta-button span {
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .1rem;
    color: #FFFFFF;
    text-shadow: 4px 3px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.subhead {
    display: inline-block;
    position: absolute;
    top: 0;
    left: -120px;
    margin-bottom: 100px;
    z-index: 10;
}

.subhead.right {
    left: auto;
    right: -120px;
}

.subhead span {
    display: inline-block;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    color: white;
    position: relative;
    z-index: 2;
    padding: 40px 80px 40px 160px;
}

.subhead.right span {
    padding: 40px 160px 40px 80px;
}

.subhead::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    border-radius: 10rem;
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
    top: 0;
    opacity: .9;
}

.subhead::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    border-radius: 10rem;
    border: 4px solid rgba(113, 76, 161, 0.8);
    opacity: .9;
}

.subhead.right::after {
    left: auto;
    right: 8px;
}


.subhead2 {
    text-align: center;
    padding: 1rem;
    margin-bottom: 20px;
    position: relative;
}

.subhead2 span {
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: white;
    position: relative;
    z-index: 2;
}

.subhead2::before {
    content: '';
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
    display: block;
    width: calc( 100% - 10px );
    height: calc( 100% - 10px );
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
}

.subhead2::after {
    content: '';
    border: 4px solid rgba(113, 76, 161, 0.6);
    display: block;
    width: calc( 100% - 8px );
    height: calc( 100% - 8px );
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
}


/* Header Styles */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(113, 76, 161, 0.8);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}


header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px 10px 40px;
    flex: 1;
}

header .logo {
    flex: 1;
    padding-top: .5rem;
}

header .logo img {
    height: 40px;
    width: auto;
}

header .instagram-icon {
    height: 42px;
    width: auto;
    display: block;
}

header .cta-button {
    padding: 0 28px;
    border-radius: 0;
}

header .cta-button span {
    font-size: 26px;
}

/* Main Visual */

.mainvisual {
    height: 76.554vw;
    max-height: 1133px;
    background-image: url("../images/pc/mainvisual_bg.jpg");
    background-size: cover;
    overflow: visible;
    padding: 77px 0 0;
}

.mainvisual-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.mainvisual h1, .mainvisual h2 {
    display: none;
}

.mainvisual .badges {
    display: flex;
    align-items: center;
    top: 11px;
    left: 25px;
    position: absolute;
}

.mainvisual .badges picture {
    margin: 0;
}

.mainvisual .badges .badge-tokyo {
    width: 360px;
    height: 117px;
    margin-right: 30px;
}

.mainvisual .badges .badge-patent {
    width: 490px;
    height: 155px;
    margin-right: 10px;
}

.mainvisual .badges .badge-doctor {
    width: 151px;
    height: 142px;
}

.mainvisual .product-image {
    position: absolute;
    width: 532px;
    height: 590px;
    right: 0;
    bottom: -185px;
}

.mainvisual .cta-button {
    position: absolute;
    width: 360px;
    height: 60px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
}

.mainvisual .cta-button span {
    font-size: 22px;
}

/* Section Styles */

main {
    overflow: hidden;
}

section {
    position: relative;
    padding-top: 250px;
}

.bg1 {
    background-image: url("../images/pc/bg.jpg");
    background-size: cover;
    background-position: top center;
    padding-top: 220px;
}

.bg2 {
    padding-top: 150px;
    position: relative;
}

.bg2::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transform: scaleX(-1);
    background-image: url("../images/pc/bg.jpg");
    background-size: cover;
    background-position: top center;
}

/* Section 1 */

.section1 {
    margin-bottom: 150px;
}

.section1 ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 90px 108px;
    list-style: none;
    padding: 0 140px;
}

.section1 ul li {
    width: calc( calc( 100% - 108px ) / 2 );
    display: flex;
    flex-direction: column;
}

.section1 ul li h4 {
    height: 107px;
    position: absolute;
    top: 0;
    left: -64px;
}

.section1 ul li h4 picture {
    height: 100%;
}

.section1 ul li h4 picture img {
    height: 100%;
    width: auto;
}

.section1 ul li .photo img {
    border-top-right-radius: 55px;
}

.section1 ul li p {
    background-color: #EEE8FB;
    padding: 1rem;
    line-height: 1.5;
}

/* Section 2 */

.section2 {
    padding-top: 110px;
    padding-bottom: 150px;
}

.section2 ul {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background-image: url("../images/pc/s2_bg.jpg");
    background-size: contain;
    list-style: none;
    width: 100%;
    max-width: 1280px;
    height: 720px;
    margin: 0 auto 60px;
    padding: 40px 12px;
    border-radius: 34px;
}

.section2 ul li {
    width: auto;
    height: 185px;
    margin-bottom: -36px;
}

.section2 ul li:nth-of-type(even) {
    margin-left: 160px;
}

.section2 ul li h4 {
    width: auto;
    height: 100%;
}

.section2 ul li h4 picture {
    width: auto;
    height: 100%;
}

.section2 ul li h4 picture img {
    width: auto;
    height: 100%;
}

.section2 .badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 55px;
    flex-wrap: wrap;
    padding: 0 10rem;
    margin-bottom: 90px;
}

.section2 .badges .badge-patent {
    width: 947px;
    height: 301px;
}

.section2 .badges .badge-doctor {
    width: 300px;
    height: 282px;
}

.section2 .badges .badge-tokyo {
    width: 680px;
    height: 220px;
}

.section2 .misc {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 65px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.section2 .misc > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: calc( calc( 100% - 65px ) / 2 );
}

.section2 .misc > div h5 {
    display: inline-block;
    color: white;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    padding: .6rem 3rem;
    border-radius: 10rem;
    background-color: #7BA8E3;
}

.section2 .misc .misc-movie a picture img {
    border-radius: .5rem;
}

/* Section 3 */

.section3 {
    padding: 0 0 50px;
    background-image: url("../images/pc/s3_bg.jpg");
    background-size: cover;
}

.section3 h3 {
    width: 100%;
    height: 224px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../images/pc/s3_subhead_bg.png");
    background-size: cover;
    background-position: center center;
    margin-bottom: 3rem;
}

.section3 h3 span {
    color: white;
    font-size: 57px;
    font-weight: 500;
    line-height: 1;
    padding-bottom: 4rem;
}

.section3 > div {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.section3 > div .s3-lead {
    font-size: 18px;
    text-align: center;
    line-height: 2;
}

.section3 > div .s3-list {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    filter: drop-shadow(10px 10px 8px rgba(25, 22, 70, 0.25));
}

.section3 > div .s3-list h4 {
    color: white;
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    background-color: #7BA8E3;
    padding: 1rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.section3 > div .s3-list ul {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem 8rem;
    gap: 1rem;
}

.section3 > div .s3-list ul li {
    width: calc( 50% - 1rem );
    color: #07238B;
    font-size: 30px;
    line-height: 1;
    display: flex;
    gap: .5rem;
}

.section3 > div .s3-list ul li::before {
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background-image: url("../images/checkbox.png");
    background-size: contain;
}

.section3 > div .s3-caption {
    font-size: 16px;
    line-height: 1;
}

/* Section 4 */

.section4 ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 70px;
    list-style: none;
    filter: drop-shadow(8px 8px 6px rgba(0, 0, 0, 0.25));
    width: 100%;
    max-width: 1148px;
    margin: 0 auto 100px;
}

.section4 ul li {
    width: calc( calc( 100% - 140px ) / 3 );
}

.section4 ul li:nth-of-type(1) p {
    background-color: #8A66EE;
}

.section4 ul li:nth-of-type(2) p {
    background-color: #B37BE9;
}

.section4 ul li:nth-of-type(3) p {
    background-color: #C79FEC;
}

.section4 ul li:nth-of-type(4) p {
    background-color: #8CDBF7;
}

.section4 ul li:nth-of-type(5) p {
    background-color: #6C9FFD;
}

.section4 ul li:nth-of-type(6) p {
    background-color: #5F75E4;
}

.section4 ul li picture img {
    border-top-left-radius: 30px;
}

.section4 ul li p {
    padding: 1rem;
    border-bottom-right-radius: 30px;
    color: white;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.section4 > div {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 80px;
}

@keyframes fadeInEffect {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 画像スタイル（前回と同じ） --- */
.target-img {
    display: none;
}
.target-img.show {
    display: block;
    animation: fadeInEffect 0.6s ease-out forwards;
}

.section4 .round-btn-set {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-bottom: 20px;
}

.section4 .round-btn-set .round-btn {
    font-weight: 500;
    font-size: 20px;
    padding: 0;
    margin: 0;
    height: 48px;
    line-height: 48px;
    background: #a1a1a1;
}

.section4 .round-btn-set .round-btn.active {
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
}

.section4 .s4-market h4 {
    margin-bottom: 50px;
}

.section4 .s4-market > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

.section4 .s4-market > div picture {
    width: 444px;
    height: 368px;
}

.section4 .s4-market > div p {
    flex: 1;
    line-height: 2;
}

/* Section 5 */

.section5 {
    padding-top: 190px;
    padding-bottom: 150px;
}

.section5 a {
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section 6 */

.section6 {
    padding-top: 0;
    margin-bottom: 0;
}

.section6 h3 {
    color: white;
    font-size: 57px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    letter-spacing: .3rem;
    padding: 2rem;
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
}

.section6 dl {
    background-color: white;
    padding: 110px 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section6 dl div {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.section6 dl div dt,
.section6 dl div dd {
    padding: 1rem;
}

.section6 dl div dt {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #7BA8E3;
    color: white;
}

.section6 dl div dd {
    border: 1px solid #7BA8E3;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Section 7 */

.section7 {
    padding-top: 100px;
    background-color: white;
}

.section7 > div {
    padding: 160px 0;
    background-image: url("../images/pc/s7_bg.jpg");
    background-size: cover;
}

.section7 > div > div {
    background-color: white;
    padding: 40px 80px;
    position: relative;
}

.section7 > div > div::after {
    content: '';
    width: 100%;
    height: 100%;
    border: 4px solid rgba(113, 76, 161, 0.6);
    display: block;
    position: absolute;
    z-index: 1;
    right: -20px;
    bottom: -20px;
}

.section7 > div > div dl {
    margin-bottom: 1rem;
}

.section7 > div > div dl div dt,
.section7 > div > div dl div dd {
    display: inline;
    margin-right: .5rem;
    font-size: 28px;
    font-weight: 300;
    line-height: 2;
}

.section7 > div > div dl div dt {
    font-weight: 500;
}

.section7 > div > div p {
    font-size: 20px;
}

.section7 > div > div > picture {
    width: 645px;
    height: 716px;
    position: absolute;
    z-index: 2;
    right: 70px;
    bottom: -176px;
}

/* Section 8 */
.section8 {
    padding: 120px 0 200px;
    background-image: url("../images/pc/bg.jpg");
    background-size: cover;
    background-position: center;
}
.section8 h4 {
    width: 100%;
    margin-bottom: 32px;
}
.section8 .content > div {
    padding: 40px 90px;
    background-color: white;
    border-radius: 12px;
}
.section8 dl {
    width: 100%;
    max-width: 900px;
}
.section8 dl dt {
    width: 100%;
    padding: 15px 0;
    font-weight: 700;
    font-size: 18px;
    color: #3E036B;
}
.section8 dl dt span.required{
    background: #FF378F;
    color: #FFFFFF;
    margin-right: 2%;
    padding: 4px 8px;
    font-size: 15px;
}
.section8 dl dd {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    color: #3E036B;
    }
.section8 dl dd input[type="text"],
.section8 dl dd input[type="email"],
.section8 dl dd input[type="tel"],
.section8 dl dd select,
.section8 dl dd textarea {
    width: 100%;
    height: 48px;
    padding: 20px;
    background: #EEE8FB;
    border: 1px solid #E0E0E0;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.20);
}
.section8 dl dd textarea {
    height: 140px;
    resize: vertical;
}
.section8 dl dd input::placeholder,
.section8 dl dd textarea::placeholder {
  color: #AB89BF;
  opacity: 1;
}
.section8 dl dd span.error_blank {
    display: inline-block;
    margin-top: 8px;
    color: #FF0000;
    font-size: 15px;
    font-weight: 700;
}
.section8 #policy {
    height: 180px;
    overflow-y: scroll;
    margin: 20px auto 40px auto;
    text-align: left;
    outline: none;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
}
.section8 #policy .privacy {
    padding: 20px;
    line-height: 2em;
    text-align: left;
    line-height: 1.6;
}
.section8 #policy .privacy h2 {
    font-size: 16px;
    text-align: center;
    margin: 0 auto 20px;
    padding: 0;
}
.section8 #policy .privacy h3 {
    font-size: 15px;
    margin: 0 auto 20px;
    padding: 0;
}
.section8 #policy .privacy p {
    font-size: 14px;
    text-align: left;
    margin: 0 0 20px 0;
}
.section8 #form_submit {
    position: relative;
    margin: 60px auto 0;
}
.section8 #form_submit input, button {
    cursor: pointer;
    width: 270px;
    height: 66px;
    display: block;
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
    border-radius: 33px;
    color: #FFFFFF;
    font-size: 32px;
    letter-spacing: 0.1em;
    text-decoration: none;
    line-height: 66px;
    padding: 0 20px;
    font-weight: 700;
    border: none;
    z-index: 1;
    transition: all 0.25s;
    text-align: center;
    margin: 0 auto;
}
.section8 #form_submit input:hover,
.section8 #form_submit button:hover {
    filter: brightness(1.15);
}

/* Section 9 */
.section9 {
    padding: 200px 0 200px;
    background-image: url("../images/pc/bg.jpg");
    background-size: cover;
    background-position: center;
}
.section9 .content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 90px;
    background-color: white;
    border-radius: 12px;
}
.section9 .content h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}
.section9 .content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.section9 .content .btn a {
    cursor: pointer;
    width: 270px;
    height: 66px;
    display: block;
    background: linear-gradient(160deg, #B67ADD 40%, #8AB9E6 60%);
    border-radius: 33px;
    color: #FFFFFF;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-decoration: none;
    line-height: 66px;
    padding: 0 20px;
    font-weight: 700;
    border: none;
    z-index: 1;
    transition: all 0.25s;
    text-align: center;
    margin: 0 auto;
}
.section9 .content .btn a:hover {
    filter: brightness(1.15);
}
/* Footer */

.footer {
    background: #8F61AC;
    color: white;
    padding: 40px 0 26px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 37px;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
}

.footer-logo .instagram-icon {
    height: 34px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 16px;
    line-height: 1;
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer .copyright {
    font-size: 14px;
    line-height: 1;
}

/* Back to Top Button */

.back-to-top {
    width: auto;
    position: fixed;
    bottom: 30px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top picture {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.back-to-top:hover picture {
    transform: translateY(-3px);
}
