body {
    font-size: 1rem;
}

.logo img {
    width: 250px;
}

header {
    width: 100%;
    background-color: white;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    width: 100%;
    max-width: 744px;
    margin: 0 auto;
    color: white;
    display: flex;
    justify-content: left;
    align-items: center;
    height: 30px;
    padding-left: 5%;
}

.title h1 {
    font-size: 0.95rem;
}

.m-top {
    width: 100%;
    background-color: rgb(255, 116, 139);
    height: 30px;
}

.m-mid {
    width: 100%;
}

.process {
    border-top: solid 3px #ccc;
    margin-top: 30px;
    width: 60%;
    max-width: 700px;
    margin: 50px auto;
    position: relative;
}

.p-w {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.info {
    position: absolute;
    top: -15.5px;
    left: -38px;
}

.info p {
    color: rgb(255, 116, 139);
}

.completed p {
    color: #aaa;
}

.completed {
    position: absolute;
    top: -15.5px;
    right: -33px;
}

.number {
    content: "";
    height: 28px;
    width: 28px;
    background-color: rgb(255, 116, 139);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.n2 {
    background-color: #ccc;
}

.fi input {
    border: solid 1px black;
}

.form {
    width: 100%;
    margin-top: 60px;
}

.f-title {
    width: 100%;
    max-width: 726px;
    margin: 0 auto;
    height: 40px;
    background-color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px 5px 0 0;
}

.f-title h2 {
    font-size: 1.1rem;
}

.f-g {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    padding: 0px 6px;
}

.fc {
    margin-top: 20px;
    padding: 0px 6px;
}

.fl {
    width: 100%;
    display: flex;
    background-color: #e1eef4;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: left;
    align-items: center;
    padding-left: 4%;
}

.fl label {
    font-weight: bold;
}

.fl p {
    background-color: rgb(255, 116, 139);
    margin-left: 10px;
    padding: 2px 0px;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 80px;
    text-align: center;
    color: white;
}

.required-label {
    background-color: rgb(255, 116, 139);
    margin-left: 10px;
    padding: 2px 0px;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 80px;
    text-align: center;
    color: white;
}

.fi {
    width: 100%;
    margin: 7px auto;
}

.fi input {
    width: 49.5%;
    border-radius: 5px;
    height: 40px;
    padding-left: 4%;
    border: solid 0.8px #aaa;
}

.fi input:nth-of-type(2) {
    margin-left: calc(0.5% - 4px);
}

.gender select {
    width: 100%;
    border-radius: 5px;
    height: 40px;
    border: solid 0.8px #aaa;
    padding-left: 4%;
}

.birth input {
    width: 32.5%;
}

.birth input:nth-of-type(2),
.birth input:nth-of-type(3) {
    margin-left: calc(1.15% - 5.5px);
}

.url input {
    width: 100%;
}

.letter {
    width: 85%;
    margin: 0 auto;
    margin-top: 10px;
}

.letter p {
    font-size: 0.9rem;
    line-height: 1.2rem;
}

.s-img {
    width: 90%;
    display: flex;
    margin: 10px auto 0 auto;
}

.s-img img {
    width: 100%;
}

.example {
    width: 40%;
}

.example img {
    width: 180px;
    height: auto;
    margin: 20px auto 0 auto;
}

.example p {
    width: 150px;
    font-size: 0.8rem;
    margin: 0 auto;
}
/* ── 写真アップロード全体 wrapper ── */
.photo-upload__wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 10px;
}
/* 左右 50%ずつ */
.photo-upload__control,
.photo-upload__preview {
    flex: 1;
}

/* ファイル選択ボタン */
.photo-upload__button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-weight: bold;
    text-align: center;
    user-select: none;
    color: #757575;
}

/* input は画面外へ隠す */
.photo-upload__input {
    position: absolute;
    left: -9999px;
}

/* ── プレビュー領域 ── */
.photo-upload__preview {
    position: relative;
    width: 100%;
    max-height: 500px; /* お好みで制限 */
    padding-top: 75%; /* アスペクト比 4:3 をキープ */
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.05);
    display: none; /* JSで .visible を付与して表示 */
}
.photo-upload__preview.visible {
    display: block;
}

/* ── 中の画像 ── */
.photo-upload__preview img {
    position: absolute; /* コンテナ内で自由に動かす */
    top: 50%;
    left: 50%; /* 真ん中へ */
    transform: translate(-50%, -50%);
    width: auto; /* 幅は自動 */
    height: auto; /* 高さは自動 */
    max-width: 100%; /* コンテナ内に収める */
    max-height: 100%;
    object-fit: contain; /* 全体を見せる */
    object-position: center; /* 中央揃え */
}

/* ── ×ボタン ── */
.photo-upload__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

/* モバイル時は縦並び */
@media screen and (max-width: 600px) {
    .photo-upload__wrapper {
        flex-direction: column;
    }
}

.f-s {
    flex-direction: column;
    height: 60px;
    margin-top: 20px;
}
.f-s p {
    font-size: 0.8rem;
}

.address input {
    width: 100%;
    padding-left: 4%;
    margin-top: 10px;
}

.address input:nth-of-type(1) {
    margin-top: 0;
}

/* Phone number input と select */
.fi.phone {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.fi.phone select {
    width: 13%; /* selectの幅 */
    min-width: 80px;
    border: none;
    padding: 0 10px;
    font-size: 1rem;
    color: #888;
    outline: none;
    appearance: none; /* デフォルトの矢印を非表示 */
    position: relative;
    cursor: pointer;
}

/* selectに矢印を追加 */
.fi.phone {
    position: relative;
}

.fi.phone input {
    width: 87%; /* inputの幅 */
    border: none;
    padding: 0 10px;
    height: 40px;
    font-size: 1rem;
    outline: none;
    border-left: 1px solid #ddd; /* selectとinputの境界線 */
}

.remark textarea {
    width: 100%;
    height: 60px;
    border: solid 0.5px #aaa;
    border-radius: 5px;
    padding-left: 4%;
    padding-top: 17px;
}

.nominator input {
    width: 100%;
}

.email input {
    width: 100%;
}

.password input {
    width: 100%;
}

.handling a {
    color: rgb(53, 175, 231);
}

.handling p {
    font-size: 0.8rem;
    width: 85%;
    max-width: 700px;
    margin: 0 auto;
}

/* ボタン本体 */
.btn {
    display: inline-block;
    padding: 0.8em 4em;
    background-color: rgb(255, 116, 139); /* 背景色 */
    box-shadow: 0 5px 0 rgb(190, 75, 94); /* 影の太さ・色 */
    border-radius: 10px;
    color: #fff;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none; /* 文字の下線を消す */
}

.entry {
    display: flex;
    justify-content: center;
}

/* ホバー時 */
.btn:hover {
    box-shadow: none;
    transform: translateY(5px);
}

footer {
    background-color: rgb(255, 116, 139);
    height: 35px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    margin-top: 50px;
}

.google {
    display: flex;
    justify-content: center;
    margin: 10px 0px;
    width: 100%;
}

.buy {
    color: #2a2a2a;
}

.b0 p {
    font-size: 1rem;
    width: 90%;
    line-height: 1.2rem;
    margin: 20px auto;
}

.b1 {
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 7%;
    width: 100%;
}

.b1 label {
    font-weight: bold;
    font-size: 1.05rem;
    margin-left: 15px;
}

.b1 input {
    width: 24px;
    border-radius: 10px;
}

.b2 {
    width: 100%;
    display: flex;
}

.b2 img {
    width: 48%;
    border-radius: 10px;
    margin: 10px auto;
}

.b2 {
    display: flex;
}

.b3 li {
    font-size: 0.95rem;
    margin: 3px auto;
}

.bb3 ul {
    width: 95%;
}

.b3 h2 {
    font-size: 1.2rem;
    padding: 10px;
}
.b3 h3 {
    font-size: 1.1rem;
    padding: 0px 5px 5px 5px;
    text-decoration: underline;
}

.product {
    width: 95%;
    margin: 0px auto 10px auto;
}

@media screen and (max-width: 600px) {
    .u-input {
        margin-left: 10px;
    }
}

/* ── ここから追加 ── */

/* ページ全体のコンテナ */
.reserve-container {
    width: 100%;
    max-width: 744px;
    margin: 50px auto;
    padding: 0 15px;
    text-align: center;
}

/* エラーメッセージボックス */
.error-box {
    background-color: #ffe6e6;
    color: #d8000c;
    border: 1px solid #d8000c;
    padding: 1rem;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
}

/* アクションボタンを囲むエリア */
.actions {
    margin-top: 20px;
}

/* プライマリーボタン */
.btn-primary {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: rgb(255, 116, 139);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background-color: rgb(235, 96, 119);
    transform: translateY(2px);
}
/* ── Entry Section ── */

/* Hero */
.entry-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   Entry Card & CTA 統一デザイン
   ============================ */
.entry-card {
    background: #fff;
    padding: 1.5rem;
}

/* ヘッダー：タイトル＋価格 */
.entry-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.entry-card .card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2a2a2a;
}
.entry-card .card-header .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c6a77e;
}

/* 特長リスト */
.features-list li {
    position: relative;
    padding-left: 1.5em;
    line-height: 1.6;
    color: #444;
}
.features-list li:not(.feature-img)::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #c6a77e;
    font-weight: bold;
}
.features-list .feature-img {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}
.features-list .feature-img img {
    max-width: 100%;
    width: 250px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Add-On オプション */
.addon {
    margin-bottom: 2rem;
}
.addon summary {
    cursor: pointer;
    font-weight: 600;
    color: #c6a77e;
    outline: none;
}
.addon summary::-webkit-details-marker {
    display: none;
}
.addon summary::after {
    content: "+";
    float: right;
    font-weight: bold;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.addon[open] summary::after {
    transform: rotate(0deg);
}
.addon p {
    margin: 0.75rem 0 0 1rem;
    line-height: 1.6;
    color: #555;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .entry-card {
        padding: 1rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
}

/* Cancel Policy */
.cancel {
    background: #fff;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
}
.cancel h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.cancel p {
    font-size: 0.95rem;
    margin: 0.25rem 0;
}
.cancel__note {
    font-size: 0.85rem;
    color: #666;
}
