/*
Theme Name: chonaikai
Author: Eni-Wifi
*/


/* TABLE OF CONTENTS
------------------------------------------------------------
* Global
* Repeatable Patterns
* Layout
* Header
* Menus
* Featured Area
* Content
* Navigations
* Comments
* Widgets
* Footer
* Plugins
* Print
------------------------------------------------------------ */

/*------------------------------------------------------------
 * タグの基本設定
------------------------------------------------------------*/
html {
    font-size: clamp(15px, 1.5vw, var(--font-size-base));
}

/* 全体 */
body {
    font-size: 1rem;
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}


/* 見出し */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    letter-spacing: .1em;
}

h1 {
    font-size: clamp(28px, 2.8vw, 48px);
}

h2 {
    font-size: clamp(24px, 2.4vw, 40px);
}

h3 {
    font-size: clamp(21px, 2.1vw, 32px);
}

h4 {
    font-size: clamp(18px, 1.8vw, 28px);
}

h5 {
    font-size: clamp(16px, 1.6vw, 24px);
}

h6 {
    font-size: clamp(15px, 1.5vw, 20px);
}

/* 段落 */
p {
    margin-bottom: 2.5rem;
}

@media screen and (max-width: 768px) {
    p {
        margin-bottom: 2rem;
    }
}

/* リンク */
a {
    color: var(--main-color);
    text-decoration: none;
    transition: all .3s;
    display: inline-block;
}

p a {
    color: var(--main-color);
    text-decoration: underline;
}

a:hover {
    opacity: .7;
}

@media screen and (max-width: 768px) {
    a:hover {
        opacity: 1;
    }
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
}

/* フォーム要素 */
input,
button,
textarea,
select {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    padding: 0.5em;
    font-weight: 500;
    width: 100%;
    overflow-x: hidden;
    color: var(--text-color);
}

textarea::placeholder {
    white-space: pre-line;
}

@media screen and (max-width: 1024px) {

    input,
    button,
    textarea,
    select {
        font-size: 16px;
    }
}

button {
    background-color: var(--main-color);
    color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    button:hover {
        background-color: var(--main-color);
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
}

/* iOSでのデフォルトアイコンを非表示にする */
details summary {
    list-style: none;
    /* リストスタイルの削除 */
}

/* Safari特有のデフォルトマーカーを非表示にする */
summary::-webkit-details-marker {
    display: none;
}