@charset "UTF-8";

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

a:visited {
    text-decoration: none;
}

button {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: inherit;
    border: none;
    background-color: transparent;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

ul,
li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-block-start: 0;
    padding-block-end: 0;
    color: inherit;
}

/* settings */
:root {
    --color-text: #1d1d1d;
    --color-white: #f5f5f5;
    --color-primary: #E90078;
    --color-secondary: #AF00E9;
    --color-accent: #DA0913;

    --space-section-LR: 1.25rem;
    --space-section-sm: 1.5rem;
    --space-section-md: 2rem;
    --space-section-lg: 4rem;

    --font-heading: 1.5rem;
    --font-text: 1.25rem;

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 50px;
}

html {
    color: var(--color-text);
    font-family: 'LINE Seed JP', sans-serif;
    font-feature-settings: "palt";
    line-height: 1.5;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height, 0px);
}

body {
    max-width: 768px;
    min-height: 100%;
    margin-inline: auto;
    background: var(--color-white);
}

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

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* header */
.header {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    z-index: 4;
}

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

.header__logo {
    position: relative;
    z-index: 3;
}

.header__logo-link {
    display: block;
    width: 9rem;
    min-width: 9rem;
    aspect-ratio: 143 / 45;
    background: url(images/logo.webp) center / contain no-repeat;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    overflow: hidden;
    z-index: 0;
}

.hamburger {
    position: relative;
    display: grid;
    place-items: center flex-end;
    width: 2.5rem;
    height: 2.375rem;
    cursor: pointer;
    z-index: 3;
}

.hamburger__line {
    grid-area: 1 / 1;
    width: 100%;
    height: 0.25rem;
    border-radius: var(--radius-lg);
    background: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger__line:nth-of-type(1) {
    transform: translateY(-0.375rem);
}

.hamburger__line:nth-of-type(2) {
    width: 70%;
    transform: translateY(0.375rem);
}

.hamburger.is-active .hamburger__line:nth-of-type(1) {
    transform: rotate(30deg);
}

.hamburger.is-active .hamburger__line:nth-of-type(2) {
    width: 100%;
    transform: rotate(-30deg);
}

.menu {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: calc(var(--header-height) + var(--space-section-sm)) var(--space-section-LR) var(--space-section-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--color-white);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
    z-index: 2;
}

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

.menu__title {
    font-size: var(--font-heading);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: var(--space-section-sm);
}

.menu__img {
    border-radius: var(--radius-sm);
}

.overlay {
    position: fixed;
    inset: 0;
    background: var(--color-text);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.overlay.is-active {
    opacity: 0.7;
    pointer-events: auto;
}

/* main */

/* caution */
.caution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 90%;
    margin-block: 1rem var(--space-section-md);
    margin-inline: auto;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--color-accent);
}

.caution__icon {
    color: var(--color-white);
}

.caution__message {
    font-weight: 700;
    color: var(--color-white);
}

/* issue */
.issue {
    margin: var(--space-section-md) var(--space-section-LR) 0;
}

.heading {
    position: relative;
    font-size: var(--font-heading);
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.heading::before,
.heading::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2.5rem;
    height: 0.25rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    transform: translateY(-50%);
}

.heading::before {
    left: 0;
}

.heading::after {
    right: 0;
}

.issue__text {
    font-size: var(--font-text);
}

.heading+.issue__text {
    margin-top: var(--space-section-sm);
}

.issue__text:not(:first-of-type) {
    margin-top: 1rem;
}

.section-break {
    display: block;
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-align: center;
}

/* point */
.point {
    margin-top: 1rem;
    margin-inline: var(--space-section-LR);
}

.point__copy {
    position: relative;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

.point__copy::before,
.point__copy::after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    width: 1.25rem;
    height: 0.125rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
}

.point__copy::before {
    left: 2.5rem;
    transform: translateY(-50%) rotate(45deg);
}

.point__copy::after {
    right: 2.5rem;
    transform: translateY(-50%) rotate(-45deg);
}

.point__wrapper {
    border: solid 3px var(--color-primary);
    border-radius: var(--radius-md);
}

.point__heading {
    padding-block: 0.5rem;
    font-size: var(--font-heading);
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--color-primary);
}

.point__list {
    padding: var(--radius-md) var(--radius-sm);
}

.point__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.point__item+.point__item {
    margin-top: var(--radius-md);
}

.point__icon {
    font-size: 2rem;
}

.point__text {
    font-size: var(--font-text);
    font-weight: 700;
}

.strong-color {
    color: var(--color-accent);
}

/* category */
.category {
    margin-top: var(--space-section-lg);
    margin-inline: var(--space-section-LR);
}

.heading+.category__list {
    margin-top: var(--space-section-sm);
}

.category__item+.category__item {
    margin-top: var(--space-section-sm);
}

.category__img {
    border-radius: var(--radius-lg);
}

/* outside */
.outside {
    margin-block: 5rem var(--space-section-lg);
}

.outside__heading {
    padding-block: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-white);
    text-align: center;
    background: var(--color-secondary);
}

.outside__list {
    margin-top: var(--space-section-sm);
    margin-inline: var(--space-section-LR);
}

.outside__item {
    padding-block: 0.75rem;
    border-bottom: solid 1px var(--color-secondary);
}

.outside__item:first-of-type {
    padding-top: 0;
}

.outside__link {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 1rem;
}

.outside__img {
    /* flex: 1; を削除し、サイズを固定します */
    width: 120px;           /* お好みのサイズに調整してください */
    height: 100px;          /* 高さを固定するとデザインが揃います */
    object-fit: cover;      /* 指定したサイズに合わせて画像を切り抜く */
    flex-shrink: 0;         /* 画像が圧縮されるのを防ぐ */
    border-radius: var(--radius-sm);
}

.outside__description {
    flex: 1;                /* 説明文が残りの幅をすべて使う */
    position: relative;
    padding-right: 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;      /* 文字が溢れる場合は少し小さく調整 */
    line-height: 1.4;
}

.outside__description::after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    right: 0;
    width: 0.6rem;          /* 矢印を少し小さく調整 */
    aspect-ratio: 91 / 334;
    background: url(images/arrow.svg) center / contain no-repeat;
    transform: translateY(-50%);
}

/* back */
.back {
    margin-bottom: var(--space-section-lg);
    text-align: center;
}

.back__link {
    padding: 0.5rem var(--space-section-md);
    font-size: var(--font-text);
    font-weight: 800;
    color: var(--color-primary);
    border: solid 3px var(--color-primary);
    border-radius: var(--radius-lg);
}

/* footer */
.footer {
    padding-block: var(--space-section-lg) var(--space-section-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--color-text);
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--color-white);
    text-align: center;
}

/* bg-wrapper */
.bg-wrapper {
    inset: 0;
    background: url(images/tox.webp) center / contain repeat;
}

/* contents */
.contents {
    margin-top: var(--space-section-md);
    margin-inline: var(--space-section-LR);
}

.contents__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-section-sm);
    padding: var(--space-section-md) var(--space-section-LR);
    border: solid 3px var(--color-primary);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 0.1);
    backdrop-filter: blur(3px);
}

.contents__item+.contents__item {
    margin-top: var(--space-section-md);
}

.contents__heading {
    font-weight: 800;
    color: var(--color-primary);
}

.contents__img {
    border-radius: var(--radius-sm);
}

.contents__text {
    font-size: var(--font-text);
}

.contents__link {
    position: relative;
    max-width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    border-radius: var(--radius-lg);
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    box-shadow: 0px 3px 25px 1px rgb(233 0 120 / 0.5);
}

.contents__link::after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    right: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-white);
    clip-path: polygon(40% 0, 90% 50%, 40% 100%, 30% 90%, 70% 50%, 30% 10%);
    transform: translateY(-50%);
}

.back--subpage {
    margin-block: var(--space-section-lg);
}

/* media-query */
@media screen and (min-width: 768px) {
    .heading::before {
        left: 15%;
    }

    .heading::after {
        right: 15%;
    }

    .point__copy::before {
        left: 25%;
    }

    .point__copy::after {
        right: 25%;
    }

    .outside__description {
        line-height: 2;
    }
}

@media screen and (min-width: 500px) {
    html {
        font-size: 22px;
    }
}

@media screen and (max-width: 374px) {
    html {
        font-size: 14px;
    }
}