.main {
    background: url(../../images/brewing-recipe/iwasaki/bg2.jpg) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.main section:not(.mv) {
    margin-bottom: 0;
    padding-bottom: 0;
}

.iwasaki_main .title_top {
    text-align: center;
    margin-bottom: 30px;
}

.iwasaki_main .title_top img {
    width: 200px;
    height: auto;
}

.iwasaki_main .title_top p {
    color: #333;
    margin-top: 0px;
    font-size: 12px;
    font-weight: bold;
}

.iwasaki_main .title {
    text-align: center;
    margin-bottom: 25px;
}

.iwasaki_main .title h2,
.iwasaki_main .title h3 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 10px;
}

.iwasaki_main .title p {
    font-size: 15px;
    color: #444;
}

/* =========================
     YOUTUBE
  ========================= */
.iwasaki_main .youtube {
    text-align: center;
    margin: 30px 0;
}

.iwasaki_main .youtube iframe {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
}


/* =========================
     FRAME 1 (CUPS)
  ========================= */
.iwasaki_main .cups {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.iwasaki_main .cups img {
    display: block;
    margin: 0 auto;
    max-width: 300px;
}

.frameBox {
    background-image: url(../../images/brewing-recipe/frame_top_left.png), url(../../images/brewing-recipe/frame_top_right.png), url(../../images/brewing-recipe/frame_bottom_left.png), url(../../images/brewing-recipe/frame_bottom_right.png), url(../../images/brewing-recipe/frame_top.png), url(../../images/brewing-recipe/frame_bottom.png), url(../../images/brewing-recipe/frame_left.png), url(../../images/brewing-recipe/frame_right.png);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-x, repeat-x, repeat-y, repeat-y;
    background-position: left top, right top, left bottom, right bottom, top, bottom, left, right;
    background-color: #FFFFFF;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 80px 42.5px;
}

/* =========================
     MAIN CONTAINER
  ========================= */
.iwasaki_main {
    margin: 0;
}

.bg {
    max-width: 1140px;
    margin: 0 auto;
}

.iwasaki_container {
    background-color: #fff;
    max-width: 1100px;
    width: 100%;
    padding: 60px 0 0;
    margin: 0 auto;
    overflow-x: hidden;
}


/* =========================
     TABS
  ========================= */
.iwasaki_tabs {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 8px;
    padding: 0 10vw;
}

.iwasaki_tab {
    flex: 1;
    height: 53px;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 16px;
    align-content: center;
}

.iwasaki_tab:first-child {
    height: 65px;
    background-color: #ea6c2d;
    color: #fff;
}

.iwasaki_tab:last-child {
    background-color: #454344;
    color: #fff;
}

/* =========================
     SECTIONS
  ========================= */
.iwasaki_section_brewing_recipe,
.iwasaki_section_profile,
.iwasaki_section_frames {
    margin-bottom: 60px;
}

.iwasaki_section_brewing_recipe .title_top {
    justify-items: center;
    margin-bottom: 40px;
}

.iwasaki_section_brewing_recipe .title h3 {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 2;
    margin-bottom: 50px;
    font-family: "Noto Sans JP", sans-serif;
}

.iwasaki_section_brewing_recipe .title h3 span {
    background-image: radial-gradient(circle at center, #333 20%, transparent 20%);
    background-position: top center;
    background-repeat: repeat-x;
    background-size: 1em 0.3em;
    padding-top: .4em;
}

.iwasaki_section_brewing_recipe .content {
    position: relative;
    margin-bottom: 140px;
}

.iwasaki_section_brewing_recipe .title {
    margin-bottom: 40px;
}

.iwasaki_section_brewing_recipe .youtube {
    max-width: 640px;
    margin: auto;
}

.iwasaki_section_brewing_recipe .youtube_memo {
    position: absolute;
    left: 70px;
    top: 0;
    transform: translateY(-100%);
}

.iwasaki_section_brewing_recipe .youtube_memo img {
    max-width: 170px;
}

/* =========================
     PROFILE
  ========================= */

.iwasaki_section_profile {
    width: 93%;
    max-width: 930px;
    margin: auto;
    margin-bottom: 100px;
    position: relative;
    background-color: #eeebe6;
}

.iwasaki_section_profile .title_top {
    position: absolute;
    top: -50px;
    left: calc(50% - 50px);

}

.iwasaki_section_profile .title_top img {
    width: 81px;
    height: auto;
}

.iwasaki_section_profile .content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 50px 40px;
}

.iwasaki_section_profile .content_left img {
    width: 180px;
    border-radius: 100%;
    border: 4px solid #f3f3f3;
}

.iwasaki_section_profile .content_right {
    flex: 1;
}

.iwasaki_section_profile .content_right h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.iwasaki_section_profile .content_right p {
    font-size: 13px;
    line-height: 1.8;
}


/* =========================
     FRAMES
  ========================= */
.iwasaki_frame {
    width: 100%;
    margin-bottom: 80px;
    padding: 60px 40px;
    position: relative;
    background-color: #fff;
}

.iwasaki_frame>div {
    position: relative;
    z-index: 2;
}

.iwasaki_frame .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
}

.iwasaki_frame .content .title h3 {
    margin-bottom: 0;
    font-weight: bold;
    margin-top: 26px;
}

.iwasaki_frame .title h3 {
    font-size: 20px;
    margin-top: 16px;
    letter-spacing: 3px;
    font-weight: bold;  
}


.iwasaki_frame .title img {
    height: 28px;
    object-fit: contain;
}

.iwasaki_frame>.title img:last-of-type {
    height: 15px;
}

.iwasaki_frame_1 .title img:last-of-type {
    height: 15px;
    margin-top: -10px;
    margin-left: -5px;
}

.iwasaki_frame .content {
    text-align: center;
}

.iwasaki_frame_1 .cups {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 70px;
    flex-wrap: wrap;
    margin-top: 80px;
}

.iwasaki_frame_1 .cups>div {
    position: relative;
}

.iwasaki_frame_1 .cups>div img {
    width: 170px;
    height: auto;
}

.iwasaki_frame_1 .cups>div:nth-child(2) img {
    width: 160px;
    height: auto;
}

.iwasaki_frame_1 .cups>div:nth-child(3) img {
    width: 200px;
    height: auto;
}

.iwasaki_frame_1 .cups>div img:first-of-type {
    position: absolute;
    top: -35px;
    left: -20px;
    height: 45px;
    width: auto;
}

/* =========================
     FRAME 2 (INFO SECTIONS)
  ========================= */
.iwasaki_frame_2 .content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 65px;
}

.iwasaki_frame_2 .content_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.iwasaki_frame_2 .content_item img {
    max-width: 380px;
    transform: translateY(15px);
}

.iwasaki_frame_2 .content_item .title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #d39d1d;
    margin-bottom: 15px;
}

.iwasaki_frame_2 .title img {
    width: 45px;
    height: auto;
}

.iwasaki_frame_2 .paragraph {
    font-size: 14px;
    text-align: left;
    color: #444;
}

.iwasaki_frame_2 .paragraph p {
    word-break: break-word;
    font-size: 14px;
}

.iwasaki_frame_2 .paragraph p > a {
        text-decoration: underline;
}



/* ====== Base Section ====== */
.iwasaki_frame_2 .coffee-tips {
    background: #f6f3ef;
    padding: 40px 45px 55px;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
}

.iwasaki_frame_2 .coffee-tips-inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ====== Text Content ====== */
.iwasaki_frame_2 .coffee-text {
    width: 80%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.iwasaki_frame_2 .coffee-tips h2 {
    position: relative;
    font-size: 27px;
    font-weight: 700;
    color: #d39d1d;
    line-height: 1.6;
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.iwasaki_frame_2 .coffee-tips h2 span {
    position: absolute;
    left: 50px;
    right: auto;
}

.iwasaki_frame_2 .coffee-tips h2 span:last-of-type {
    position: absolute;
    right: 50px;
    left: auto;
    top: 0;
}

.main_en .iwasaki_frame_2 .coffee-tips h2 span {
    left: 100px;
    right: auto;
}

.main_en .iwasaki_frame_2 .coffee-tips h2 span:last-of-type {
    right: 100px;
    left: auto;
}

.iwasaki_frame_2 .coffee-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.iwasaki_frame_2 .coffee-btn {
    position: relative;
    display: inline-block;
    background: #333333;
    color: #fff;
    text-decoration: none;
    padding: 24px 10px;
    font-size: 0.95rem;
    transition: background 0.3s;
    text-align: center;
}

.iwasaki_frame_2 .coffee-btn img {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-40%);
    width: 18px;
    height: 18px;
}

.main_en .iwasaki_frame_2 .coffee-btn img {
    right: 7%;
}

.iwasaki_frame_2 .coffee-btn:hover {
    background: #555;
}

/* ====== Video Section ====== */
.iwasaki_frame_2 .gif-wrapper video {
    min-width: 50%;
    border: solid 5px #fff;
}

.iwasaki_frame_2 .coffee-video {
   margin-bottom: -6px;
}

/* =========================
     FRAME 3 (TABLE)
  ========================= */


.iwasaki_frame_3 table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 40px;
}

.iwasaki_frame_3 table img {
    max-width: 50px;
}

.iwasaki_frame_3 th,
.iwasaki_frame_3 td {
    border: 4px solid #ffffff;
    padding: 30px 10px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

.iwasaki_frame_3 th {
    background-color: #f8f6f0;
    font-weight: 600;
}

.iwasaki_frame_3 tr th:first-of-type {
    background-color: #eeebe6;
}

.iwasaki_frame_3 tr td:first-of-type {
    background-color: #eeebe6;
}

.iwasaki_frame_3 th:nth-child(2) {
    background-color: #E9C879;
}

.iwasaki_frame_3 th:nth-child(3) {
    background-color: #E2D69C;
}

.iwasaki_frame_3 th:nth-child(4) {
    background-color: #F3DB8E;
}

.iwasaki_frame_3 th>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.iwasaki_frame_3 th p {
    font-size: 17px;
    font-weight: bolder;
}


.iwasaki_frame_3 td {
    background-color: #f5f3f0;
}

.iwasaki_frame_3 td:first-child {
    font-weight: 600;
}

/* FRAME 3 IMAGES + MEMO */
.iwasaki_frame_3 .images {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
}

.iwasaki_frame_3 .images>div:first-of-type {
    width: 52%;
    display: flex;
    flex-direction: column;
}

.iwasaki_frame_3 .images>div:nth-child(2) {
    width: 47%;
    position: relative;
    margin-bottom: 20px;
    margin-left: -40px;
}

.iwasaki_frame_3 .images>div:nth-child(2) img {
    width: 100%;
}


.iwasaki_frame_3 .paragraph {
    position: absolute;
    top: 80px;
    left: 100px;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 20px 25px;
    text-align: left;
}

.iwasaki_frame_3 .paragraph h3 {
    position: relative;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwasaki_frame_3 .paragraph h3 .underline {
    position: absolute;
    bottom: -5px;
    transform: translateX(-5px);
    width: 20px;
    height: 2px;
    background-color: #000;
}

.iwasaki_frame_3 .paragraph ul {
    list-style: none;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iwasaki_frame_3 .paragraph li {
    margin-bottom: 10px;
    font-size: 15px;
}


/* =========================
     FRAME 4
  ========================= */

.iwasaki_frame_4 .title {
    flex-direction: column;
    text-align: center;
    margin-bottom: 45px;
}

.iwasaki_frame_4 .title p {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.iwasaki_frame_4 .content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px;
    padding: 0 20px;
}

.iwasaki_frame_4 .cotent>div {
    display: flex;
    gap: 20px;
}

.iwasaki_frame_4>div img {
    width: 46%;
    height: auto;
    object-fit: contain;
}

.iwasaki_frame_4 .content_item_left {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.iwasaki_frame_4 .content_item_left img:first-of-type {
    width: 53%;
}

.iwasaki_frame_4 .content_item_left img:last-of-type {
    width: 38%;
}

.iwasaki_frame_4 .content_item_right {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.iwasaki_frame_4 .content_item_right img:first-of-type {
    width: 28%;
}

.iwasaki_frame_4 .content_item_right img:last-of-type {
    width: 55%;
}

.iwasaki_frame_4 .paragraph {
    text-align: center;
    font-size: 14px;
    color: #444;
}

.iwasaki_frame_4 .paragraph h3 {
    margin: 20px 0 25px;
    font-size: 23px;
    font-weight: bold;
}

.iwasaki_frame_4 .youtube {
    margin: 40px auto 50px;
}


.main_en .iwasaki_frame_4 .content_item_list {
    width: 100%;
    display: flex;
}

.main_en .iwasaki_frame_4 .content_item_list > div {
    width: 50%;
}

.main_en .iwasaki_frame_4 .content_item_list > div:first-of-type {
    width: 47.5%;
    margin-top: 6px;
}


.main_en .iwasaki_frame_4 .content_item_list > div > img:last-of-type {
    width: 100%;
}



@media (max-width: 1080px) {
    .iwasaki_frame_3 .images {
        flex-direction: column;
    }

    .iwasaki_frame_3 .images>div {
        width: 100% !important;
        margin: 0;
    }

    .iwasaki_frame_3 .images>div:first-of-type {
        align-items: center;
    }

    .iwasaki_frame_3 .images img {
        max-width: 500px;
    }

    .iwasaki_frame_3 .images>div:nth-child(2) img {
        max-width: 380px;
        justify-self: center;
    }

    .iwasaki_frame_3 .paragraph h3 .underline {
        transform: translateX(-1px);
    }

    .iwasaki_frame_3 .images>div:nth-child(2) {
        justify-self: center;
        margin-top: -32px;
    }

    .iwasaki_frame_3 .paragraph {
        max-width: 482px;
        justify-self: center;
        left: 74px;
        top: 71px;
    }
}

/* =========================
     RESPONSIVE (MOBILE < 768px)
========================= */
@media (max-width: 768px) {

	.main section:not(.mv) {
        margin: 0 8px;
	}

    .frameBox {
        padding: 50px 20px 80px;
        background-image: url(../../images/brewing-recipe/frame_top_sp.png), url(../../images/brewing-recipe/frame_bottom_sp.png);
        background-repeat: no-repeat, no-repeat;
        background-position: top, bottom;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background-size: contain;
    }

    .iwasaki_container {
        padding: 30px 10px;
        box-shadow: none;
    }

    .title_top img {
        width: 150px;
    }

    .title p {
        font-size: 13px;
    }

    /* Tabs */
    .iwasaki_tabs {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .iwasaki_tab {
        font-size: 14px;
        padding: 10px 0;
    }

    /* Cups Frame */
    .cups {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

    .cups img {
        max-width: 180px;
    }

    .iwasaki_section_profile {
        width: 100%;
    }

    .iwasaki_section_brewing_recipe .title {
        margin-bottom: 100px;
    }

    .iwasaki_section_brewing_recipe .youtube_memo img {
        max-width: 150px;
    }

    .iwasaki_section_brewing_recipe .youtube_memo {
        position: absolute;
        left: 20px;
        top: -91px;
        transform: rotateZ(13deg);
    }
    /* Profile */
    .iwasaki_section_profile .content {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }

    .iwasaki_section_profile .content_left img {
        width: 160px;
    }

    .iwasaki_section_profile .content_right h3 {
        font-size: 20px;
    }

    .iwasaki_section_profile .content_right p {
        font-size: 13px;
    }

    .iwasaki_section_profile .title_top {
        position: absolute;
        top: -50px;
        left: calc(50% - 42px);
    }

    /* Frame 1 */
    .iwasaki_frame {
        padding: 40px 0;
    }

    .iwasaki_frame .content {
        text-align: center;
        justify-items: center;
        gap: 30px;
    }

    .iwasaki_frame_3 .content > div {
        width: 100%;
        overflow-x: auto;
        margin-bottom: 10px;
    }

    .iwasaki_frame .content table {
        overflow-x: auto;
        margin-bottom: 0;
    }

    .iwasaki_frame .title h3 {
        font-size: 18px;
        letter-spacing: 1px;
        margin-top: 3px;
    }

    .iwasaki_frame_1 .cups {
        gap: 30px;
        margin-top: 40px;
        align-content: center;
    }

    .iwasaki_frame_1 .cups>div img {
        width: 150px !important;
        object-fit: contain;
    }

    .iwasaki_frame_1 .cups>div img:first-of-type {
        top: -25px;
        left: -69px;
        height: 39px;
        object-fit: contain;
    }

    /* Frame 2 */
    .iwasaki_frame_2 .content_item {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .iwasaki_frame_2 .content_item:nth-child(2) {
        flex-direction: column-reverse;
    }

    .iwasaki_frame_2 .content_item img {
        max-width: 100%;
        transform: none;
    }

    .iwasaki_frame_2 .coffee-tips h2 span {
        position: absolute;
        left: 6px;
        right: auto;
        top: 0;
    }

    .iwasaki_frame_2 .coffee-tips h2 span:last-of-type {
        position: absolute;
        right: 6px;
        left: auto;
        top: 0;
    }

    .iwasaki_frame_2 .coffee-tips {
        padding: 25px 16px;
    }

    .iwasaki_frame_2 .coffee-tips-inner {
        flex-direction: column;
        gap: 20px;
    }

    .iwasaki_frame_2 .coffee-text {
        width: 100%;
    }

    .iwasaki_frame_2 .coffee-tips h2 {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .iwasaki_frame_2 .coffee-btn {
        width: 100%;
        padding: 18px 12px;
        font-size: 0.9rem;
    }

    .iwasaki_frame_2 .coffee-btn img {
        display: none;
    }

    /* Frame 3 */
    .iwasaki_frame_3 table,
    .iwasaki_frame_3 th,
    .iwasaki_frame_3 td {
        font-size: 13px;
        padding: 15px 5px;
    }

    .iwasaki_frame_3 th {
        min-width: 200px;
    }

    .iwasaki_frame_3 tr th:first-of-type {
        min-width: 100px;
    }

    .iwasaki_frame_3 .images {
        flex-direction: column;
    }

    .iwasaki_frame_3 .images img {
        max-width: none;
        width: 100%;
    }

    .iwasaki_frame .content .title h3 {
        margin-top: 0;
        text-align: left;
    }

    .iwasaki_frame_3 .images>div {
        width: 100% !important;
        margin: 0;
    }

    .iwasaki_frame_3 .images>div:nth-child(2) img {
        max-width: 380px;
        justify-self: center;
    }

    .iwasaki_frame_3 .paragraph h3 .underline {
        transform: translateX(-1px);
    }

    .iwasaki_frame_3 .images>div:nth-child(2) {
        justify-self: center;
        margin-top: -32px;
    }

    .iwasaki_frame_3 .paragraph {
        justify-self: center;
        left: 3px;
        top: 126px;
        max-width: 317px;
    }

    .iwasaki_frame_3 .paragraph ul {
        margin-top: 20px;
    }

    /* Frame 4 */
    .iwasaki_frame_4 .youtube {
        margin: 40px auto 0;
    }

    .iwasaki_frame_4 .content_item_left,
    .iwasaki_frame_4 .content_item_right {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .iwasaki_frame_4 .content {
        padding: 0;
    }

    .iwasaki_frame_4 .content_item_left {
        flex-direction: column-reverse;
    }

    .iwasaki_frame_4 .content_item_left img,
    .iwasaki_frame_4 .content_item_right img {
        width: 100% !important;
    }

    .iwasaki_frame_4 .content_item_left img:last-of-type {
        width: 80% !important;
    }

    .iwasaki_frame_4 .content_item_right img:first-of-type {
        width: 54% !important;
    }

    .iwasaki_frame_4 .paragraph h3 {
        font-size: 18px;
    }

    .iwasaki_frame_4 .paragraph p {
        font-size: 13px;
    }

    .main_en .iwasaki_frame_4 .content_item_list {
        flex-direction: column;
    }

    .main_en .iwasaki_frame_4 .content_item_list > div {
        width: 100%;
    }

    .main_en .iwasaki_frame_4 .content_item_list > div:first-of-type {
        width: 100%;
    }

    .main_en .iwasaki_frame_4 .content_item_list > div img {
        width: 100% !important;
    }



    .youtube iframe {
        max-width: 100%;
    }
}