/* @import url('reset.css'); */
@import url('common.css');

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

#wrapper {
    max-width: 800px;
    margin: auto;
    padding: 0.5rem;
}


/* 三つの結果診断を逆三角で表示する */
label {
    display: block;
    padding: 0.2rem;
}

figure, figcaption {
    margin: 0;
}

.grid-main {
    display: grid;
    width: 100%;
    gap: 1%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
}

h2,h3,h4,h5,h6 {
    border-radius: var(--border-radius);
    padding: 0.2rem 0 0.2rem 0;
}

dl > dt, menu > li {
    border-radius: var(--border-radius);
    padding: 0.8rem 1.2rem;
    margin: 0;
}

dl > dd {
    padding: 0.2rem 0 1rem 1rem;
}

/* 課題と目的と組み合わせ */
textarea {
    resize: none;
    border: none;
    border-radius: var(--border-radius);
    font-size: medium;
    overflow: scroll;
}

textarea[name="issue"] {
    background-color: var(--issue-bg-color);
}

textarea[name="purpose"] {
    background-color: var(--purpose-bg-color);
}

textarea[name="combination"] {
    background-color: var(--combination-bg-color);
}

.triangle-container {
    width: 500px;
    margin: auto;
    text-align:center;
}

polygon {
    fill: none;
    stroke: black;
    stroke-width: 3;
}


.rotate-button {
    border-radius: var(--border-radius-btn);
    padding: 0.3rem;
    border-style: none;
    border: solid 1px;
    cursor: pointer;
    font-size: medium;
    min-height: 3.8rem;
    width: 100%;
    background-color: var(--default-button-color);
    margin-bottom: 0.3rem;
}

#issue-text-second + .rotate-button {
    margin-bottom: 0;
}

.rotate-button:hover {
    background-color: rgb(211,211,211);
    transition: 0.5s;
}

.fixed-height-button {
    border-radius: var(--border-radius-btn);
    border-style: none;
    border: solid 1px;
    cursor: pointer;
    min-height: 6rem;
    font-size: medium;
    background-color: var(--default-button-color);
    display: flex;
    align-self: center;
    justify-self: center;
}

.margin-top {
    margin-top: 1.4rem;
}

.margin-top1 {
    margin-top: 1rem;
}

.margin-top2 {
    margin-top: 2rem;
}

.margin-top3 {
    margin-top: 3rem;
}

.center {
    text-align: center;
}

.right {
    float: right;
}

.inline {
    display: inline-block;
}


.svg {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 
-----------------------
グーチョキパー図 
-----------------------
*/

.title {
    background-color: var(--title-bg-color);
}


.font-color-black {
    color:black;
}

.bottom {
    position: absolute;
    bottom: 0;
    right: 0; /* set the right to 0 */
}

.margin-bottom {
    margin-bottom: 8rem;
}

@media ( max-width: 600px ) { 

    figcaption > h5{
        font-size: medium;
    }

    textarea{
        height:7rem;
    }

    .font-small {
        font-size: small;
        min-height: 2rem;
    }

    .fixed-height-button {
        min-height: 7rem;
        width: 5rem;
    }

    #issue-text-second + .rotate-button {
        min-height: 7rem;
    }

    #help-text {
        font-size: 1.5rem;
    }
}


