/* CSS Reset - 実際に使用される要素のみ */
html, body, div, span,
h1, h2, p, a, img,
header, footer, section, main, ul, li,
form, label, input, button {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset */
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; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/m-plus-1p-v31-japanese_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* 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');
}

/* ===== ベーススタイル（デスクトップ） ===== */
html {
    box-sizing: border-box;
    font-family: 'M PLUS 1p', sans-serif;
    margin: 0 auto;
    overflow-x: hidden;
}

body {
    background-color: #f2fff1;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== コンテンツラッパー ===== */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== ヘッダー ===== */
header {
    text-align: center;
    padding: 30px 0;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
}

.h1-image {
    width: 120px;
    height: auto;
}

/* ===== メインコンテンツ ===== */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* ===== 見出し ===== */
h2 {
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #242424;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: center;
}

/* ===== パラグラフ ===== */
p {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== フォームグループ ===== */
.form-group {
    margin-bottom: 30px;
}

/* ===== ラベル ===== */
label {
    display: block;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 12px;
    color: #242424;
}

/* ===== 入力フィールド（共通） ===== */
input[type="text"] {
    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-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #00E1A9;
}

/* オートコンプリート時の背景色も白に固定 */
input[type="text"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    background: white !important;
}

input[type="text"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    background: white !important;
}

/* ===== 入力コンテナ ===== */
.input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

/* メンバー入力フィールド */
.member-input {
    flex: 1;
    margin-bottom: 0;
}

/* ===== 追加ボタン ===== */
#addMember {
    width: 80px;
    height: 54px;
    background: #00E1A9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: "M PLUS 1p", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

#addMember:hover {
    background: #00c995;
}

/* ===== メンバーリスト ===== */
#memberList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
}

.member-tag {
    display: inline-flex;
    align-items: center;
    background: #00E1A9;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    font-family: "M PLUS 1p", sans-serif;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

.member-tag .remove-member {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.member-tag .remove-member:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ボタンコンテナ ===== */
.button-container {
    text-align: center;
    margin-top: 40px;
}

/* ===== グループ作成ボタン ===== */
.start-button {
    width: 320px;
    min-width: 320px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #35E4A1 0%, #08DBF3 100%);
    color: white;
    padding: 12px 30px 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    font-family: "M PLUS 1p", sans-serif;
}

.start-button .arrow {
    width: 40px;
    height: 15px;
    background-color: white;
    clip-path: polygon(0 40%, 50% 40%, 50% 15%, 100% 50%, 50% 85%, 50% 60%, 0 60%);
    margin-left: auto;
}

.start-button:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* ローディング状態 */
.start-button.loading {
    cursor: not-allowed;
}

/* ===== フッター ===== */
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;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== タブレット対応（768px以下） ===== */
@media (max-width: 768px) {
    header {
        padding: 25px 0;
    }
    
    .h1-image {
        width: 100px;
    }
    
    main {
        padding: 30px 15px;
    }
    
    .form-section {
        padding: 40px 30px;
        max-width: 450px;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    p {
        font-size: 15px;
        margin-bottom: 35px;
    }
    
    label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    input[type="text"] {
        padding: 12px 18px;
        font-size: 16px;
    }
    
    #addMember {
        width: 75px;
        height: 50px;
        font-size: 15px;
    }
    
    .start-button {
        width: 280px;
        min-width: 280px;
        height: 56px;
        font-size: 18px;
        padding: 10px 25px 10px 30px;
    }
    
    .start-button .arrow {
        width: 36px;
        height: 13px;
    }
    
    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;
    }
    
    main {
        padding: 20px 10px;
    }
    
    .form-section {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    p {
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    input[type="text"] {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    #addMember {
        width: 70px;
        height: 46px;
        font-size: 13px;
    }
    
    .member-tag {
        padding: 6px 12px;
        font-size: 12px;
        gap: 8px;
    }
    
    .member-tag .remove-member {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .start-button {
        width: 240px;
        min-width: 240px;
        height: 49px;
        font-size: 16px;
        padding: 10px 20px 10px 25px;
    }
    
    .start-button .arrow {
        width: 32px;
        height: 11px;
    }
    
    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;
    }
}




