@charset "Shift_JIS";

/* Reset & Variables */
:root {
    --primary-color: #b86b7a;
    /* Darker, clearly readable Rose pink */
    --hover-color: #8a3f4e;
    /* Darker, richer Deep Blush for contrast */
    --text-color: #2a2525;
    /* Darker Charcoal for much better readability */
    --text-light: #5a5050;
    /* Darker Lighter Charcoal */
    --bg-color: #fdfbfb;
    /* Very soft warm white */
    --surface-color: #ffffff;
    /* Pure white for cards */
    --border-color: #f0e6e6;
    /* Soft pinkish gray for borders */
    --shadow: 0 10px 30px rgba(181, 101, 118, 0.06);
    --transition-speed: 0.3s;
}

body {
    line-height: 1.8;
    margin: 0;
    padding: 0;
    font-family: 'Yu Mincho', 'YuMincho', 'Shippori Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.03em;
}

* {
    box-sizing: border-box;
}

/* Typography & Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--hover-color);
    opacity: 0.8;
}

h1,
h2,
h3,
h4 {
    font-weight: normal;
    color: var(--hover-color);
    letter-spacing: 0.05em;
}

h1 {
    font-size: 1.6rem;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 35px;
    position: relative;
    line-height: 1.5;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--primary-color);
}

h2 {
    font-size: 1.35rem;
    padding: 15px 20px;
    margin: 45px 0 25px 0;
    background: linear-gradient(90deg, #fff5f6 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
}

/* Layout - CSS Grid */
#op {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-areas:
        "header header"
        "navia  navia"
        "left   menu"
        "footer footer";
    grid-template-columns: 1fr 340px;
    gap: 0 50px;
}

header#header,
.intro {
    grid-area: header;
}

.navia {
    grid-area: navia;
}

#left {
    grid-area: left;
}

#menu {
    grid-area: menu;
}

#footer {
    grid-area: footer;
}

/* Header Elements */
.intro {
    text-align: center;
    margin: 40px 0 30px;
}

.intro>a {
    font-size: 2.2rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

.intro>a:hover {
    transform: translateY(-2px);
    color: var(--hover-color);
}

.intro span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 15px;
}

.navia {
    margin: 0 auto 40px;
    border-bottom: 1px solid var(--border-color);
}

/* Content Elements */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.str,
.ex,
.ad,
#prpf,
#menu .ta {
    background: var(--surface-color);
    padding: 30px;
    margin-bottom: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.str:hover,
#menu .ta:hover,
#prpf:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(181, 101, 118, 0.1);
}

.ex {
    background: #fdf5f6;
    color: var(--text-color);
    border: none;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: opacity var(--transition-speed) ease;
}

img:hover {
    opacity: 0.95;
}

p {
    margin-bottom: 25px;
}

/* Sidebar Menu */
#menu aside,
#menu navi {
    display: block;
    margin-bottom: 40px;
}

#menu .side {
    margin: 0 0 25px 0;
    font-size: 1.15rem;
    color: var(--hover-color);
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

#menu .side::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--primary-color);
}

.mmm a {
    display: block;
    padding: 14px 15px;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mmm a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff5f6;
    z-index: -1;
    transition: width 0.4s ease;
}

.mmm li:last-child a {
    border-bottom: none;
}

.mmm a:hover {
    color: var(--hover-color);
    padding-left: 22px;
}

.mmm a:hover::before {
    width: 100%;
}

/* Footer */
#footer {
    margin-top: 80px;
    padding: 50px 20px 40px;
    text-align: center;
    color: var(--text-light);
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
}

#footer ul {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

#footer li {
    display: inline-block;
}

#footer li::after {
    content: "?";
    margin-left: 15px;
    color: var(--border-color);
}

#footer li:last-child::after {
    content: "";
    margin-left: 0;
}

#footer li a {
    color: var(--text-light);
    font-size: 0.9rem;
}

#footer li a:hover {
    color: var(--hover-color);
}

small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media only screen and (max-width: 900px) {
    #op {
        grid-template-areas:
            "header"
            "navia"
            "left"
            "menu"
            "footer";
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 0 30px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .intro>a {
        font-size: 1.8rem;
    }

    #menu {
        margin-top: 40px;
    }
}