/* CSS Reset - 実際に使用される要素のみ */
html, body, div, span,
h1, h2, h3, p, a, img,
header, footer, section, article, main, ul, li,
form, label, input, button, select, textarea, option {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset */
article, footer, header, main, section {
	display: block;
}

body {
	line-height: 1;
}

ul {
	list-style: none;
}

/* ローカルフォントの定義（使用するフォントのみ） */
/* m-plus-1p-500 - japanese_latin */
@font-face {
  font-display: swap;
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/m-plus-1p-v31-japanese_latin-500.woff2') format('woff2');
}

/* m-plus-1p-700 - japanese_latin */
@font-face {
  font-display: swap;
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/m-plus-1p-v31-japanese_latin-700.woff2') format('woff2');
}

/* mochiy-pop-p-one-regular - japanese_latin */
@font-face {
  font-display: swap;
  font-family: 'Mochiy Pop P One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/mochiy-pop-p-one-v11-japanese_latin-regular.woff2') format('woff2');
}

/* zen-kaku-gothic-new-500 - japanese_latin */
@font-face {
  font-display: swap;
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/zen-kaku-gothic-new-v17-japanese_latin-500.woff2') format('woff2');
}

/* zen-kaku-gothic-new-900 - japanese_latin */
@font-face {
  font-display: swap;
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/zen-kaku-gothic-new-v17-japanese_latin-900.woff2') format('woff2');
}

/* ===== ベーススタイル（Critical CSS） ===== */
html {
    box-sizing: border-box;
    font-family: 'M PLUS 1p', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100vw;
    margin: 0 auto;
    overflow-x: hidden;
}

body {
    background-color: #f2fff1;
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

/* ===== ヘッダー（Critical） ===== */
header {
    text-align: center;
    padding: 30px 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 30px auto;
    cursor: pointer;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
}

.h1-image {
    width: 120px;
    height: auto;
}

/* ===== メインコンテンツ（Critical） ===== */
main {
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ===== タイトル（Critical） ===== */
h1 {
    font-family: "Mochiy Pop P One", sans-serif;
    color: #242424;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
}

/* ===== 見出し ===== */
h2 {
    color: #242424;
    border-bottom: 2px solid #00E1A9;
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

h3 {
    color: #404040;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

/* ===== テキスト ===== */
p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #404040;
}

.intro {
    font-size: 16px;
    font-weight: 500;
    color: #242424;
    background: rgba(232, 248, 245, 0.5);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #00E1A9;
    margin-bottom: 30px;
}

/* ===== 強調 ===== */
strong {
    font-weight: 700;
    color: #242424;
}

/* ===== リンク ===== */
a {
    color: #00E1A9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00c995;
    text-decoration: underline;
}

/* ===== フォーム関連スタイル（Critical） ===== */
.contact-form-section {
    margin: 40px 0;
}

.contact-form {
    background: rgba(232, 248, 245, 0.3);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 225, 169, 0.2);
    margin: 20px 0;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* ラベル */
.form-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: #242424;
    font-family: "M PLUS 1p", sans-serif;
}

.required {
    color: #00E1A9;
    font-weight: 700;
}

/* 入力フィールド共通スタイル */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: "M PLUS 1p", sans-serif;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00E1A9;
    box-shadow: 0 0 0 3px rgba(0, 225, 169, 0.1);
}

/* オートコンプリート時の背景色を白に固定 */
.form-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    background: white !important;
}

.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    background: white !important;
}

/* テキストエリア */
.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* セレクトボックス */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 13L2 7h12l-6 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* プレースホルダー */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* ヘルプテキスト */
.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* 送信ボタン（統一スタイル） */
.form-submit .group-button {
    width: 280px;
    min-width: 280px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #35E4A1 0%, #08DBF3 100%);
    color: white;
    padding: 10px 25px 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "M PLUS 1p", sans-serif;
}

.form-submit .group-button:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.form-submit .group-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit .group-button .arrow {
    width: 36px;
    height: 13px;
    background-color: white;
    clip-path: polygon(0 40%, 50% 40%, 50% 15%, 100% 50%, 50% 85%, 50% 60%, 0 60%);
    margin-left: auto;
}

/* 成功メッセージ */
.success-message {
    background: rgba(212, 237, 218, 0.8);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: #155724;
}

.success-message h3 {
    color: #155724;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    border: none;
    padding: 0;
}

.success-message p {
    margin-bottom: 0;
    color: #155724;
}

.success-message .success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.success-message .checkmark-circle {
    width: 40px;
    height: 40px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-message .checkmark {
    width: 12px;
    height: 8px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    position: relative;
    top: -2px;
}

/* 直接メール連絡セクション */
.direct-contact {
    margin: 40px 0;
    padding: 25px;
    background: rgba(232, 248, 245, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 225, 169, 0.2);
}

.direct-contact h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.direct-contact p {
    margin-bottom: 15px;
}

/* 連絡先情報 */
.contact-info {
    background: rgba(248, 249, 250, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.contact-info p {
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 15px;
}

.contact-info p:not(:last-child) {
    margin-bottom: 12px;
}

.note {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* FAQ セクション */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.faq-item h3 {
    color: #242424;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    font-family: "M PLUS 1p", sans-serif;
}

.faq-item p {
    margin-bottom: 0;
    color: #404040;
    line-height: 1.7;
    font-size: 14px;
}

/* 個人情報・運営者情報セクション */
.privacy-notice,
.company-info {
    margin: 40px 0;
}

/* 戻るボタン */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.group-button {
    width: 280px;
    min-width: 280px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #35E4A1 0%, #08DBF3 100%);
    color: white;
    padding: 10px 25px 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.group-button .arrow {
    width: 36px;
    height: 13px;
    background-color: white;
    clip-path: polygon(0 40%, 50% 40%, 50% 15%, 100% 50%, 50% 85%, 50% 60%, 0 60%);
    margin-left: auto;
}

.group-button:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* ===== フッター ===== */
footer {
    background-color: #404040;
    color: #fff;
    padding: 50px 40px 25px 40px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
}

footer hr {
    border: none;
    border-top: 1px solid #888;
    margin: 18px 0 10px 0;
    width: 100%;
    max-width: 600px;
    opacity: 0.4;
}

footer p {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-size: 12px;
    margin: 0;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.footer-lists {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    margin-bottom: 12px;
    gap: 16px;
}

.footer-lists ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.footer-lists li {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.footer-lists a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-lists a:hover {
    color: #00E1A9;
}

/* ===== タブレット対応（768px以下） ===== */
@media (max-width: 768px) {
    header {
        padding: 25px 0;
    }
    
    .h1-image {
        width: 100px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
        margin-top: 30px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 12px 18px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .group-button {
        width: 240px;
        min-width: 240px;
        height: 49px;
        font-size: 16px;
    }
    
    .group-button .arrow {
        width: 32px;
        height: 11px;
    }
    
    .direct-contact {
        padding: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    main {
        max-width: calc(100vw - 20px);
        padding: 15px;
    }
    
    footer {
        padding: 36px 24px 18px 24px;
        margin-top: 50px;
    }
    
    .footer-lists li {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

/* ===== スマートフォン対応（480px以下） ===== */
@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 16px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .intro {
        padding: 20px;
        font-size: 14px;
    }
    
    .contact-form {
        padding: 20px;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-textarea {
        min-height: 90px;
    }
    
    .form-help {
        font-size: 12px;
    }
    
    .form-submit .group-button {
        width: 200px;
        min-width: 200px;
        height: 46px;
        font-size: 14px;
    }
    
    .form-submit .group-button .arrow {
        width: 28px;
        height: 9px;
    }
    
    .success-message {
        padding: 20px;
    }
    
    .success-message h3 {
        font-size: 16px;
    }
    
    .direct-contact {
        padding: 15px;
    }
    
    .direct-contact h2 {
        font-size: 16px;
    }
    
    .faq-item {
        padding: 18px;
    }
    
    .faq-item h3 {
        font-size: 14px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info p {
        font-size: 13px;
    }
    
    .group-button {
        width: 200px;
        min-width: 200px;
        height: 46px;
        font-size: 14px;
    }
    
    .group-button .arrow {
        width: 28px;
        height: 9px;
    }
    
    footer {
        padding: 36px 24px 18px 24px;
    }
    
    footer p {
        font-size: 11px;
    }
    
    .footer-lists {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .footer-lists li {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Reduce layout shifts */
.container,
.contact-form,
.faq-item {
    contain: layout style paint;
}
