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

/* HTML5 display-role reset */
article, footer, header, main, section, nav {
	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: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    font-family: "M PLUS 1p", sans-serif;
}

/* ===== テキスト ===== */
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;
}

/* ===== ポリシーセクション ===== */
.policy-section {
    margin: 40px 0;
    padding: 0;
}

.policy-section:first-of-type {
    margin-top: 30px;
}

/* ===== リスト ===== */
ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.7;
    list-style-type: disc;
    color: #404040;
}

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

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

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

/* ===== 連絡先情報 ===== */
.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;
}

/* ===== 日付情報 ===== */
.date-info {
    text-align: right;
    margin-top: 40px;
    color: #666;
    font-size: 13px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.date-info p {
    margin-bottom: 5px;
    font-size: 13px;
}

/* ===== 戻るボタン ===== */
.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;
    color: #fff;
}

.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;
    list-style-type: none;
}

.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;
        margin-top: 20px;
    }
    
    .policy-section {
        margin: 30px 0;
    }
    
    .intro {
        padding: 20px;
        font-size: 15px;
    }
    
    ul {
        padding-left: 18px;
    }
    
    li {
        font-size: 14px;
    }
    
    .contact-info {
        padding: 18px;
    }
    
    .group-button {
        width: 240px;
        min-width: 240px;
        height: 49px;
        font-size: 16px;
    }
    
    .group-button .arrow {
        width: 32px;
        height: 11px;
    }
    
    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;
    }
    
    h3 {
        font-size: 14px;
        margin-top: 18px;
        margin-bottom: 12px;
    }
    
    .intro {
        padding: 18px;
        font-size: 14px;
    }
    
    .policy-section {
        margin: 25px 0;
    }
    
    p {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    ul {
        padding-left: 16px;
        margin-bottom: 18px;
    }
    
    li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info p {
        font-size: 13px;
    }
    
    .date-info {
        margin-top: 30px;
        padding-top: 15px;
        font-size: 12px;
    }
    
    .date-info p {
        margin-bottom: 3px;
        font-size: 12px;
    }
    
    .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;
}

/* Reduce layout shifts */
.container,
.policy-section {
    contain: layout style paint;
}
