/* ===== all ===== */
:root {
    --color-base: #f8f8f8;
    --color-brand: #00ced1;
    --color-brand-light: #aeebec;
    --color-accent: #008080;
    --color-text: #222;
    --color-gray-medium: #dddddd;
    --color-gray-dark: #adadad;
    --color-gray-light: #eeeeee;
}

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

html {
    scroll-behavior: smooth;
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--color-brand);
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.7em;
    color: var(--color-text);
    background-color: var(--color-base);
}

section {
    width: 100%;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1em;
    margin: 0;
}

h2 {
    text-align: center;
    margin-top: 150px;
    font-size: 3em;
    line-height: 1.1em;
    color: var(--color-brand-light);
}

h3 {
    margin-top: -2em;
    padding-bottom: 2em;
    font-size: 0.9em;
    color: var(--color-text);
}

p {
    margin: 0 0 1.5em 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--color-text);
}

.list-memo {
    list-style: none;
}

.container {
    width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.ct {
    text-align: center;
}

.narrow {
    width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rev-color {
    background-color: var(--color-brand);
    color: #fff;
}

.rev-color a {
    color: #fff;
}

.two-clm {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.three-clm {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.clm {
    flex: 1;
    min-width: 280px;
}

hr {
    border: none;
    border-top: 1px solid var(--color-gray-medium);
}

/* ===== topbar ===== */
.topbar-area {
    padding: 1em 0;
}

/* ===== header ===== */
.header-area {
    padding-top: 1em;
    font-size: 0.9em;
}

/* ===== eyecatch ===== */
.eyecatch-area .container {
    background-image: url(img/top_ec_img.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 1em 3em;
}

.catch-copy {
    position: absolute;
    padding-top: 30px;
    font-size: 3.6em;
    line-height: 1.1em;
    font-weight: 800;
    color: var(--color-accent);
}

/* ===== about ===== */

/* ===== map ===== */

/* ===== form ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    animation: slideIn 0.2s ease-out;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

button:hover:not(:disabled) {
    background-color: var(--color-brand);
}

button:disabled {
    background-color: var(--color-gray-medium);
    cursor: not-allowed;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--color-brand)
}

.contact-form button[type="submit"]:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== philosophy ===== */
.accordion {
    margin: 0 auto;
}

.accordion-item + .accordion-item {
    border-top: 1px solid var(--color-gray-light);
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: var(--color-base);
    color: var(--color-text);
    padding: 16px 48px 16px 16px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s, border-color 0.2s;
    border: none; /* ボタンのデフォルトスタイルをリセット */
}

.accordion-header:hover {
    background-color: var(--color-gray-light);
}

.accordion-header:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.accordion-header i {
    transition: transform 0.2s ease;
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 16px;
}

.accordion-panel p {
    margin: 16px 0;
}

.accordion-panel.is-open {
    padding: 16px;
}

.accordion,
.accordion-header,
.accordion-panel {
    font-family: "Shippori Mincho", "Zen Old Mincho", serif;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-panel {
        transition: none;
    }
}

/* ===== footer ===== */
.footer-area {
    margin-top: 100px;
    padding: 3em 0;
    background-color: var(--color-gray-medium);
    font-size: 0.9em;
    line-height: 1.5em;
}

/* ===== copyright ===== */
.copyright-area {
    padding-top: 100px;
    font-size: 0.7em;
}

/* google reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
}

@media (min-width: 768px) {
    .pc-hide {
        display: none;
    }
}

/* ===== mobile ===== */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .narrow {
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    .topbar-area .container {
        width: 100%;
    }

    .header-area {
        font-size: 0.8em;
    }

    .eyecatch-area .container {
        width: 100%;
        padding: 15px;
    }

    .accordion-header {
        padding: 12px 32px 12px 12px;
        font-size: 0.95em;
    }

    label {
        font-size: 0.95rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px; /* モバイルでのズーム防止 */
    }

    .contact-form button[type="submit"] {
        padding: 12px;
        font-size: 0.95rem;
    }
}